/* ============================================================
   ORÁCULO ENCUENTROS — Hoja de estilos unificada
   Fusión de los 3 estilos del sitio original (landing, temas,
   tiradas/resultado y carruseles de carta), sin duplicados.
   ============================================================ */

:root {
  --dorado: #CDD3DE;
  --dorado-oscuro: #9AA2B1;
  --dorado-borde: #5C6370;
  --cafe-oscuro: #000000;
  --cafe-medio: #0e0e0e;
  --cafe: #5C6370;
  --cafe-claro: #1f1f1f;
  --cafe-borde: #3F454E;
  --crema: #e2d5c9;
  --crema-claro: #efebe9;
  --brillo: 205, 211, 222;
  --sombra-dorada: 0 0 25px rgba(var(--brillo), 0.5);
  --sombra-negra: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--cafe-oscuro);
  color: #fff;
  font-family: 'Marcellus', serif;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

body.fondo-landing {
  background: url('../formatos/fondo_landingpage.webp') no-repeat center center fixed;
  background-size: cover;
}

body.fondo-tirada {
  background: url('../formatos/fondo_tirada.webp') no-repeat center center fixed;
  background-size: cover;
}

body.fondo-preparacion {
  background: url('../formatos/fondo_preparacion.webp') no-repeat center center fixed;
  background-size: cover;
}

body.fondo-leinad {
  background: url('../formatos/leinad.webp') no-repeat center center fixed;
  background-size: cover;
}

img { max-width: 100%; }

/* ---------- Menú superior unificado ---------- */
.menu-dorado {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);
  border-bottom: 2px solid var(--dorado);
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.menu-dorado--centrado { justify-content: center; }

.logo-menu {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado) !important;
  font-size: 1.2rem;
  text-shadow: 0 0 25px rgba(var(--brillo), 0.7);
  letter-spacing: 3px;
  white-space: nowrap;
  text-decoration: none;
}

.contenedor-enlaces {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-menu {
  font-family: 'Marcellus', serif;
  letter-spacing: 0.5px;
  color: var(--dorado) !important;
  text-decoration: none;
  font-size: 0.95em;
  padding: 8px 20px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--cafe-borde);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: inline-block;
}

.btn-menu:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #fff8e5 !important;
  text-shadow: 0 0 15px rgba(var(--brillo), 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn-menu:active,
.btn-menu.active {
  color: #fff !important;
  border-color: #fff !important;
}

/* ---------- Portada (index) ---------- */
.contenido {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.botones-magicos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 5vh;
}

.boton-magico {
  font-family: 'MedievalSharp', cursive;
  padding: 15px 25px;
  font-size: 1.2em;
  background: linear-gradient(145deg, var(--dorado-oscuro), var(--dorado));
  color: #3e2723 !important;
  border: 2px solid var(--dorado-borde);
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  width: 180px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.boton-magico:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(var(--brillo), 0.6);
  filter: brightness(1.1);
}

.boton-magico:active { transform: translateY(1px); }

.control-audio {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 0, 40, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(var(--brillo), 0.5);
  border: 1px solid var(--dorado);
  transition: all 0.3s ease;
}

.control-audio:hover { transform: scale(1.1); background: rgba(0, 0, 60, 0.9); }
.control-audio i { color: var(--dorado); font-size: 1.2em; }

footer.pie {
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 15px;
  width: 100%;
  font-size: 0.8em;
  margin-top: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---------- Carrusel de imágenes (despertar / tiradas) ---------- */
.carrusel {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 75%;
  height: 75vh;
  transform: translate(-50%, -50%);
  z-index: 1;
  border: 3px solid var(--cafe);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--sombra-negra);
}

.slides-container {
  height: 100%;
  display: flex;
  transition: transform 0.8s ease;
}

.slide {
  height: 100%;
  background-size: cover;
  background-position: center;
  flex: 0 0 100%;
}

.controles-carrusel {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  gap: 20px;
}

.btn-carrusel {
  font-family: 'Marcellus', serif;
  padding: 12px 30px;
  background: rgba(212, 175, 55, 0.22);
  border: 2px solid #4a342e;
  border-radius: 30px;
  color: #f5f5f5;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.btn-carrusel:hover { background: var(--cafe); transform: translateY(-2px); }

.controles-audio {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1001;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-audio {
  font-family: 'Marcellus', serif;
  padding: 10px 20px;
  background: rgba(212, 175, 55, 0.22);
  border: 2px solid #4a342e;
  border-radius: 25px;
  color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-audio:hover { background: var(--cafe); }

/* ---------- Contenedor genérico ---------- */
.contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 100px 20px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.titulo-dorado {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado);
  text-shadow: 0 0 25px rgba(var(--brillo), 0.5);
  letter-spacing: 2px;
}

.instrucciones { margin-bottom: 1rem; }

.instrucciones p { font-size: 1.1em; }

/* ---------- Grid de temas (tiradas1) ---------- */
body.grid-fondo {
  background: var(--cafe-oscuro);
  padding-top: 80px;
}

.intro-tiradas {
  max-width: 900px;
  margin: 95px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--dorado);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--crema);
  text-align: center;
  line-height: 1.6;
}

.intro-tiradas b { color: var(--dorado); }

.intro-consejo {
  margin-top: 10px;
  color: var(--dorado);
  font-size: 0.95em;
}

.grupo-tiradas {
  max-width: 1200px;
  margin: 26px auto 0;
}

.grupo-titulo {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado);
  text-align: center;
  font-size: 1.25em;
  letter-spacing: 2px;
  margin: 0 0 4px;
  text-shadow: 0 0 18px rgba(var(--brillo), 0.5);
}

.grupo-tiradas .grid-tiradas {
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .grupo-tiradas .grid-tiradas { grid-template-columns: repeat(3, 1fr); }
}

.grid-tiradas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.btn-tirada {
  display: block;
  position: relative;
  height: 250px;
  border: 3px solid var(--cafe);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  background-color: var(--cafe-medio);
}

.btn-tirada:hover { transform: translateY(-5px); }

.btn-tirada::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 0.95em;
  font-family: 'MedievalSharp', cursive;
}

/* ---------- Tiradas bloqueadas (suscripción) ---------- */
.btn-tirada.bloqueado {
  cursor: not-allowed;
}

.btn-tirada.bloqueado:hover { transform: none; }

.velo-tirada {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.55);
}

.badge-suscripcion {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: linear-gradient(135deg, var(--dorado-oscuro), var(--dorado));
  color: #1a1a1a;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(var(--brillo), 0.6);
}

/* ---------- Página de tema ---------- */
.contenedor-imagen {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.contenedor-imagen img { display: block; width: 100%; height: auto; }

.capas-proteccion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.btn-tirar {
  display: block;
  width: 250px;
  margin: 30px auto;
  padding: 15px 30px;
  font-family: 'MedievalSharp', cursive;
  font-size: 1.3em;
  background-color: var(--cafe-claro);
  color: var(--crema-claro);
  border: 2px solid var(--cafe);
  border-radius: 25px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 3;
}

.btn-tirar:hover {
  background-color: var(--cafe);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.btn-tirar:active { transform: translateY(1px); }

/* ---------- Página de tirada ---------- */
.contenedor-tiradas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 800px;
}

.btn-magico {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--dorado) 20%, var(--dorado-oscuro));
  border: 3px solid var(--dorado);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.9em;
  color: #000;
  margin: 0 auto;
  box-shadow: var(--sombra-dorada);
  transition: 0.4s;
  padding: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
}

.btn-magico:hover { transform: scale(1.1) rotate(15deg); }
.btn-magico.oculto { display: none; }

.btn-magico.revelado {
  cursor: default;
  background: radial-gradient(circle, #0e0e0e 25%, #000000);
  border-color: var(--dorado);
  box-shadow: 0 0 16px rgba(var(--brillo), 0.4);
  padding: 10px;
}

.btn-magico.revelado:hover { transform: none; }

.celda-tirada {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pos-etiqueta {
  font-size: 0.72em;
  color: var(--dorado);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  font-family: 'Marcellus', serif;
}

.pos-label {
  display: block;
  font-size: 0.6em;
  color: var(--dorado);
  letter-spacing: 1px;
  margin-bottom: 5px;
  line-height: 1.2;
}

.carta-nombre {
  display: block;
  font-size: 0.9em;
  color: #fff;
  line-height: 1.15;
  max-width: 92%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Resultado de la tirada ---------- */
.resultado { display: none; margin-top: 2rem; width: 100%; max-width: 600px; }

.resultado.visible { display: block; }

.contenedor-carta {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.proteccion-imagen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: inherit;
  pointer-events: all;
}

.carta-revelada {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--dorado);
  border-radius: 12px;
  box-shadow: var(--sombra-dorada);
  box-sizing: border-box;
  user-select: none;
  -webkit-user-drag: none;
  animation: revelacion 0.8s ease;
}

.mensaje-profetico { font-size: 1.05em; margin: 1rem 0; }

.btn-dorado {
  font-family: 'Cinzel Decorative', cursive;
  margin: 1.5rem auto;
  padding: 12px 28px;
  background: linear-gradient(45deg, var(--dorado), var(--dorado-oscuro));
  color: #000;
  border: 2px solid var(--dorado);
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.btn-dorado:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(var(--brillo), 0.5); }

/* ---------- Resultado final (análisis completo) ---------- */
.analisis-carta { position: relative; margin: 2rem 0; }

.flotante-arcano {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: linear-gradient(45deg, var(--dorado), var(--dorado-oscuro));
  color: #000;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  border: 2px solid var(--dorado);
  font-family: 'Cinzel Decorative', cursive;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  z-index: 3;
  transition: 0.3s;
}

.flotante-arcano:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(var(--brillo), 0.5); }

/* ---------- Página de carta (carrusel) ---------- */
.carrusel-cartas {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 80vh;
  margin: 90px auto 0;
  overflow: hidden;
  border: 3px solid var(--cafe);
  border-radius: 15px;
  box-shadow: var(--sombra-negra);
  background: rgba(0, 0, 0, 0.35);
}

.slide-carta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide-carta.activo { opacity: 1; }

.slide-carta img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  color: var(--cafe);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 10;
  border: none;
}

.flecha.izquierda { left: 10px; }
.flecha.derecha { right: 10px; }
.flecha:hover { background: rgba(255, 255, 255, 0.55); }

.boton-audio {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  font-size: 1.5em;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  transition: opacity 0.3s;
}

.boton-audio:hover { opacity: 0.8; }

.btn-audio-tour {
  margin: 10px auto 0;
  font-size: 0.95em;
  padding: 10px 22px;
}

.tour-audios {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0 4px;
}

.btn-audio.activo {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--dorado);
  color: #fff;
}

.btn-sonido {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-sonido:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 10px rgba(var(--brillo), 0.4);
}

.btn-sonido.apagado {
  opacity: 0.55;
  border-color: #888;
  color: #aaa;
}

/* ---------- Zoom de imágenes (lupa) ---------- */
.zoomable { cursor: zoom-in, pointer; }

.zoomable .proteccion-imagen { cursor: zoom-in, pointer; }

.lupa-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(var(--brillo), 0.35);
}

.lupa-badge svg { display: block; }

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out, default;
  animation: fundido 0.25s ease;
}

.zoom-overlay img {
  max-width: 96vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(var(--brillo), 0.35);
  cursor: zoom-out, default;
}

.zoom-cerrar {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid var(--dorado);
  color: var(--dorado);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.zoom-cerrar:hover {
  background: rgba(212, 175, 55, 0.28);
  color: #fff;
  border-color: #fff;
}

.zoom-leyenda {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--dorado);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.9em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  padding: 0 10px;
}

@keyframes fundido {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Modal centrado (carta del Arcano) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-overlay[hidden] { display: none; }

.modal-caja {
  position: relative;
  width: min(94vw, 660px);
  height: min(90vh, 820px);
  background: var(--cafe-oscuro);
  border: 2px solid var(--dorado);
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(var(--brillo), 0.4);
  overflow: hidden;
}

.modal-caja iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Modal de aviso (tirada bloqueada) ---------- */
.modal-aviso {
  width: min(92vw, 520px);
  height: auto;
  padding: 34px 30px 28px;
  text-align: center;
}

.modal-aviso-texto {
  font-family: 'Marcellus', serif;
  font-size: 1.05em;
  color: #f3ead8;
  line-height: 1.6;
  margin: 12px 0 24px;
}

.modal-aviso-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Botón de suscripción por WhatsApp ---------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1ebe5d, #25d366);
  color: #0b2e1f;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(37, 211, 102, 0.65);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.cta-suscripcion {
  text-align: center;
  margin: 26px auto 12px;
}

/* Ajustes de la página de carta cuando vive dentro del modal */
body.en-modal .contenedor { padding-top: 20px; min-height: auto; }
body.en-modal .carrusel-cartas { height: 68vh; margin-top: 10px; }
body.en-modal .btn-dorado { display: none; }

/* ---------- Animaciones ---------- */
@keyframes revelacion {
  0% { transform: rotateY(90deg) scale(0.1); opacity: 0; }
  100% { transform: rotateY(0) scale(1); opacity: 1; }
}

/* ---------- Consulta personal (formulario) ---------- */
.form-consulta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid var(--dorado);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.form-consulta label {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado);
  font-size: 0.9em;
  letter-spacing: 1px;
}

.form-consulta input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--cafe-borde);
  background: rgba(255, 255, 255, 0.92);
  color: #0e0e0e;
  font-family: 'Marcellus', serif;
  font-size: 1em;
  box-sizing: border-box;
}

.form-consulta input:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 8px rgba(var(--brillo), 0.5);
}

.vista-signo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--dorado-oscuro);
  margin-top: 4px;
}

.signo-simbolo { font-size: 2.4rem; color: var(--dorado); text-shadow: 0 0 14px rgba(var(--brillo), 0.6); }

.signo-texto { color: var(--crema); font-size: 0.95em; }
.signo-texto b { color: var(--dorado); font-family: 'Cinzel Decorative', cursive; }

.nota-privacidad { font-size: 0.8em; color: var(--crema); opacity: 0.75; margin-top: 14px; }

.consulta-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--dorado);
  color: var(--dorado);
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.9em;
  margin: 0 auto 8px;
}

.saludo-consulta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 95px auto 0;
  padding: 12px 18px;
  border: 1px solid var(--dorado);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--dorado);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1em;
}

.boton-consulta {
  background: linear-gradient(145deg, var(--dorado-borde), var(--dorado));
  font-size: 1.3em;
  box-shadow: 0 0 25px rgba(var(--brillo), 0.7);
}

/* ---------- Análisis por carta ---------- */
.analisis-detalle {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.aspecto {
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(var(--brillo), 0.25);
}

.aspecto-titulo {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado);
  font-size: 0.95em;
  margin: 0 0 6px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(var(--brillo), 0.3);
  padding-bottom: 5px;
}

.aspecto-texto {
  color: var(--crema);
  line-height: 1.6;
  margin: 0;
  font-size: 0.98em;
}

.significado {
  color: var(--crema);
  line-height: 1.55;
  margin: 10px 0;
}
.significado b { color: var(--dorado); font-family: 'Cinzel Decorative', cursive; font-size: 0.95em; }

.consejo {
  color: #ffe9a8;
  line-height: 1.5;
  margin: 8px 0 4px;
  padding: 10px 14px;
  border-left: 3px solid var(--dorado);
  background: rgba(212, 175, 55, 0.12);
  border-radius: 0 8px 8px 0;
}
.consejo b { color: var(--dorado); font-family: 'Cinzel Decorative', cursive; font-size: 0.95em; }

/* ---------- Resumen de la consulta ---------- */
.resumen {
  width: 100%;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 22px 24px;
  border: 2px solid var(--dorado);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 35px rgba(var(--brillo), 0.25);
  text-align: left;
}

.resumen .titulo-dorado { text-align: center; }

.resumen-sub {
  font-family: 'Cinzel Decorative', cursive;
  color: var(--dorado);
  margin: 18px 0 8px;
  font-size: 1.05em;
  border-bottom: 1px solid rgba(var(--brillo), 0.35);
  padding-bottom: 6px;
}

.resumen-datos { color: var(--crema); font-size: 0.98em; }
.resumen-datos b { color: var(--dorado); }
.resumen-datos a { color: var(--dorado); }

.resumen-intro { color: var(--crema-claro); font-style: italic; }

.resumen-puntos { color: var(--crema); padding-left: 20px; }
.resumen-puntos li { margin: 8px 0; line-height: 1.5; }
.resumen-puntos b { color: var(--dorado); }

.resumen-pasos { color: var(--crema); padding-left: 22px; }
.resumen-pasos li { margin: 10px 0; line-height: 1.5; }

.resumen-cierre {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--dorado-oscuro);
  color: var(--dorado);
}

/* ---------- Biorritmo ---------- */
.biorritmo {
  width: 100%;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 22px 24px;
  border: 2px solid var(--dorado);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 0 35px rgba(var(--brillo), 0.25);
}

.biorritmo .titulo-dorado { text-align: center; }

.biorritmo-fecha {
  text-align: center;
  color: var(--crema);
  font-size: 0.9em;
  margin: 4px 0 10px;
}

.biorritmo-svg { width: 100%; }
.biorritmo-svg svg { width: 100%; height: auto; display: block; }

.biorritmo-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  text-align: left;
}

.biorritmo-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--crema);
  font-size: 0.92em;
  line-height: 1.45;
}

.biorritmo-chip b { color: var(--dorado); }
.biorritmo-chip .punto { flex-shrink: 0; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; }
.biorritmo-chip.biorritmo-positivo { border-left: 3px solid #2ecc71; }
.biorritmo-chip.biorritmo-negativo { border-left: 3px solid #e74c3c; }
.biorritmo-chip.biorritmo-crítico { border-left: 3px solid var(--dorado); }

.resumen-guia {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--dorado-oscuro);
  color: var(--dorado);
  line-height: 1.5;
}

/* ---------- Selector de aspectos de lectura ---------- */
.selector-aspectos {
  width: 100%;
  max-width: 760px;
  margin: 14px auto 0;
  padding: 16px 18px;
  border: 2px solid var(--dorado);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 25px rgba(var(--brillo), 0.2);
}

.selector-titulo {
  color: var(--dorado);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.9em;
  margin: 0 0 12px;
  text-align: center;
}

.selector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip-aspecto {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--cafe-borde);
  background: rgba(0, 0, 0, 0.4);
  color: var(--crema);
  font-family: 'Marcellus', serif;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip-aspecto:hover { border-color: var(--dorado); }

.chip-aspecto.activo {
  background: linear-gradient(145deg, var(--dorado-oscuro), var(--dorado));
  border-color: var(--dorado-borde);
  color: #2b1a00;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(var(--brillo), 0.45);
}

.chip-todas {
  display: block;
  margin: 12px auto 0;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px dashed var(--dorado);
  background: transparent;
  color: var(--dorado);
  font-family: 'Marcellus', serif;
  font-size: 0.88em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip-todas:hover { background: rgba(212, 175, 55, 0.15); }

.nota-aspectos {
  color: var(--dorado);
  font-size: 0.92em;
  margin: 4px 0 10px;
  text-align: center;
}

/* ---------- Impresión ---------- */
@media print {
  .menu-dorado, .control-audio, .controles-carrusel, .controles-audio,
  .btn-carrusel, .btn-audio, .btn-dorado, .flotante-arcano, .lupa-badge,
  .zoom-overlay, .modal-overlay, .zoom-cerrar, .proteccion-imagen, .capas-proteccion,
  .saludo-consulta, .consulta-badge { display: none !important; }

  body, body.fondo-tirada, body.grid-fondo, body.fondo-landing,
  body.fondo-preparacion, body.fondo-leinad { background: #fff !important; color: #111; }

  .contenedor { padding: 0; min-height: auto; max-width: 100%; }
  .titulo-dorado { color: #5d4037; text-shadow: none; }
  .nota-aspectos { color: #6d4c41; }
  .analisis-carta { page-break-inside: avoid; border-bottom: 1px solid #ccc; padding-bottom: 14px; margin: 1.4rem 0; }
  .contenedor-carta { width: 70% !important; max-width: 540px; margin: 0 auto; }
  .carta-revelada { box-shadow: none; }
  .analisis-detalle { max-width: 100%; }
  .mensaje-profetico { color: #333; }
  .aspecto { background: #fdf6e3; border: 1px solid #c9b98a; }
  .aspecto-titulo { color: #6d4c41; border-bottom: 1px solid #c9b98a; }
  .aspecto-texto { color: #222; }
  .significado { color: #333; }
  .significado b { color: #6d4c41; }
  .consejo { color: #222; background: #fdf6e3; border-left: 3px solid #6b6b6b; }
  .consejo b { color: #6d4c41; }
  .resumen { border: 2px solid #6b6b6b; background: #fdf6e3; box-shadow: none; color: #111; }
  .resumen-sub { color: #6d4c41; border-bottom: 1px solid #c9b98a; }
  .resumen-datos, .resumen-intro, .resumen-puntos, .resumen-puntos li,
  .resumen-pasos, .resumen-pasos li { color: #222; }
  .resumen-puntos b { color: #6d4c41; }
  .resumen-cierre { border-color: #6b6b6b; background: #f5ecd7; color: #4a342e; }
  .biorritmo { border: 2px solid #6b6b6b; background: #fdf6e3; box-shadow: none; }
  .biorritmo-fecha { color: #333; }
  .biorritmo-svg svg { background: #fdf6e3; border: 1px solid #c9b98a; border-radius: 8px; }
  .biorritmo-svg text { fill: #333 !important; }
  .biorritmo-chip { color: #222; border-color: #c9b98a; background: #fff; }
  .biorritmo-chip b { color: #6d4c41; }
  .resumen-guia { border-color: #6b6b6b; background: #f5ecd7; color: #4a342e; }
}

/* ---------- Portada: dos alternativas ---------- */
body.fondo-landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.fondo-landing .contenido {
  flex: 1;
  min-height: 0;
  justify-content: center;
}

.titulo-principal {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(1.6em, 4vw, 2.6em);
  color: var(--dorado);
  text-align: center;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(var(--brillo), 0.6);
  margin: 0 0 10px;
}

.lema {
  font-family: 'Marcellus', serif;
  color: var(--crema);
  text-align: center;
  font-size: 1.05em;
  margin: 0 0 6vh;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.botones-inicio {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.boton-inicio {
  display: block;
  width: min(340px, 85vw);
  padding: 20px 30px;
  text-align: center;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.25em;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 40px;
  border: 2px solid var(--dorado);
  transition: all 0.3s ease;
  cursor: pointer;
}

.boton-inicio-a {
  background: linear-gradient(145deg, var(--dorado-oscuro), var(--dorado));
  color: #1a1000;
  box-shadow: 0 0 25px rgba(var(--brillo), 0.45);
}

.boton-inicio-a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(var(--brillo), 0.7);
}

.boton-inicio-b {
  background: rgba(0, 0, 0, 0.55);
  color: var(--dorado);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

.boton-inicio-b:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(var(--brillo), 0.35);
}

.boton-inicio-c {
  background: transparent;
  color: var(--dorado);
  border: 2px solid var(--dorado);
  box-shadow: none;
}

.boton-inicio-c:hover {
  background: rgba(var(--brillo), 0.12);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(var(--brillo), 0.35);
}

/* ---------- Recorrido guiado (aprender) ---------- */
.tour { max-width: 980px; }

.tour-marco {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 8px auto 0;
  border: 2px solid var(--dorado);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  background: #000;
}

.tour-marco img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #000;
}

.tour-texto {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--crema);
  line-height: 1.65;
  font-size: 1.02em;
  min-height: 60px;
}

.tour-pasos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 14px 0 4px;
}

.tour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.tour-dot.activo {
  background: var(--dorado);
  box-shadow: 0 0 8px rgba(var(--brillo), 0.8);
  transform: scale(1.25);
}

.tour-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tour-contador {
  color: var(--dorado);
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.95em;
  min-width: 64px;
  text-align: center;
}

.tour-nav .btn-dorado[disabled] {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .menu-dorado { padding: 10px 4%; flex-direction: column; gap: 8px; }
  .logo-menu { font-size: 1rem; }
  .btn-menu { font-size: 0.85em; padding: 8px 14px; }
  .carrusel { width: 90%; height: 60vh; }
  .btn-carrusel { padding: 10px 25px; }
  .controles-carrusel { bottom: 85px; }
  .controles-audio { left: 15px; right: 15px; bottom: 15px; justify-content: center; }
  .btn-audio { padding: 8px 14px; font-size: 0.9em; }
  .grid-tiradas { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px; }
  .grupo-tiradas .grid-tiradas { grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 15px; }
  .btn-tirada { height: 180px; }
  .contenedor-tiradas { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .btn-magico { width: 110px; height: 110px; font-size: 0.8em; }
  .contenedor { padding: 130px 15px 15px; }
  .carrusel-cartas { width: 92%; height: 68vh; margin-top: 100px; }
  .titulo-dorado { font-size: 1.3em; }
  .boton-magico { width: 150px; font-size: 1em; }
  .btn-tirar { width: 220px; font-size: 1.15em; }
  .analisis-carta img { max-width: 320px; }

  /* Móvil: mostrar la imagen completa en lugar de recortarla */
  .slide { background-size: contain; background-repeat: no-repeat; background-color: #000; }
  .btn-tirada { background-size: contain; background-repeat: no-repeat; background-color: var(--cafe-oscuro); }
  .velo-tirada { background-size: contain; background-repeat: no-repeat; background-color: var(--cafe-oscuro); }
  .carta-revelada { object-fit: contain; }
  .analisis-carta img { max-width: 100%; }

  /* Móvil: navegación del recorrido en una sola fila compacta */
  .tour-nav {
    flex-wrap: nowrap !important;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
  }
  .tour-nav .btn-dorado {
    margin: 0 !important;
    padding: 10px 10px;
    font-size: 0.78em;
    flex: 0 1 auto;
    max-width: 44%;
    min-width: 0;
    border-radius: 18px;
    white-space: nowrap;
  }
  .tour-contador { min-width: 0; flex: 0 0 auto; font-size: 0.8em; padding: 0 2px; }
  #tourComenzar { margin: 1.2rem auto 0; padding: 10px 22px; font-size: 0.95em; }

  /* Móvil: contorno oscuro al título principal para que resalte sobre fondos claros */
  .titulo-principal {
    color: var(--dorado);
    text-shadow:
      0 0 30px rgba(var(--brillo), 0.65),
      0 0 6px rgba(0, 0, 0, 0.95),
      2px 2px 0 #000, -2px 2px 0 #000, 2px -2px 0 #000, -2px -2px 0 #000,
      0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000;
  }

  /* Móvil: el lema también necesita contorno sobre la zona clara del fondo */
  .lema {
    color: var(--crema-claro);
    text-shadow:
      0 0 6px rgba(0, 0, 0, 0.95),
      1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000,
      0 1px 0 #000, 0 -1px 0 #000, 1px 0 0 #000, -1px 0 0 #000;
  }

  /* Móvil: planes de suscripción siempre en columna vertical (sin scroll horizontal) */
  body { overflow-x: hidden; }
  .planes-grid { grid-template-columns: 1fr !important; }
  .plan, .bold-slot { min-width: 0; max-width: 100%; }
  .bold-slot a, .bold-slot button { max-width: 100%; }
}

@media (max-width: 480px) {
  .grid-tiradas, .grupo-tiradas .grid-tiradas { grid-template-columns: 1fr; }
  .btn-tirada { height: 210px; }
  .carrusel { height: 52vh; }
  .carrusel-cartas { height: 60vh; margin-top: 120px; }
  .contenedor { padding: 120px 12px 12px; }
}

/* ---------- Página de suscripción (fase 2) ---------- */
.suscripcion-intro {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--crema);
  text-align: center;
  line-height: 1.65;
}

.suscripcion-intro b { color: var(--dorado); }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 26px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 18px 20px;
  border: 1px solid var(--cafe-borde);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  text-align: center;
}

.plan-destacado {
  border: 2px solid var(--dorado);
  box-shadow: 0 0 25px rgba(var(--brillo), 0.25);
}

.plan-etiqueta {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--dorado-oscuro), var(--dorado));
  color: #111;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.68em;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-nombre {
  font-family: 'Cinzel Decorative', serif;
  color: var(--dorado);
  font-size: 1.15em;
  margin: 6px 0 0;
}

.plan-precio {
  font-size: 1.7em;
  color: #fff;
  margin: 4px 0;
  font-family: 'Marcellus', serif;
}

.plan-precio span { font-size: 0.5em; color: var(--crema); }

.plan-antes {
  color: var(--crema);
  text-decoration: line-through;
  opacity: 0.75;
  margin: -8px 0 0;
  font-size: 0.9em;
}

.plan-lista {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  color: var(--crema);
  font-size: 0.92em;
  line-height: 1.6;
  text-align: left;
}

.plan-lista li { padding-left: 18px; position: relative; }

.plan-lista li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-size: 0.7em;
  top: 0.35em;
}

.btn-pago {
  display: block;
  background: linear-gradient(135deg, #0b1035, #1b2a6b);
  color: #fff;
  font-family: 'Cinzel Decorative', serif;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid #3a4fb0;
  box-shadow: 0 0 14px rgba(70, 110, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-pago:hover { transform: scale(1.04); box-shadow: 0 0 22px rgba(70, 110, 255, 0.6); }

.btn-pago-wa {
  display: block;
  color: var(--dorado);
  font-size: 0.85em;
  text-decoration: none;
  margin-top: 2px;
}

.btn-pago-wa:hover { text-decoration: underline; }

.suscripcion-nota {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--crema);
  text-align: center;
  font-size: 0.95em;
  line-height: 1.6;
}

.activar-caja {
  max-width: 560px;
  margin: 30px auto;
  padding: 24px;
  border: 2px solid var(--dorado);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.activar-texto { color: var(--crema); margin: 8px 0 16px; }

.activar-fila {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.activar-fila input {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--cafe-borde);
  background: #0e0e0e;
  color: #fff;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.activar-fila input:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 10px rgba(var(--brillo), 0.4);
}

.activar-fila .btn-dorado { margin: 0; }

.activar-msg { margin: 14px 0 0; font-size: 0.95em; }
.activar-msg.ok { color: #9ee6b0; }
.activar-msg.error { color: #ff9d9d; }

.bold-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bold-error { color: #ff9d9d; font-size: 0.8em; margin: 4px 0 0; }

/* ---------- Página La Historia ---------- */
.historia-wrap { max-width: 860px; }

.historia-sub {
  text-align: center;
  color: var(--dorado);
  font-family: 'Marcellus', serif;
  letter-spacing: 0.04em;
  margin: 0 auto 30px;
  max-width: 620px;
  line-height: 1.6;
}

.historia-seccion {
  margin: 34px 0;
  padding: 26px 28px;
  border: 1px solid var(--cafe-borde);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
}

.historia-titulo {
  font-family: 'Cinzel Decorative', serif;
  color: var(--dorado);
  font-size: 1.25em;
  margin: 0 0 14px;
  text-align: center;
}

.historia-texto {
  color: var(--crema);
  line-height: 1.75;
  margin: 0 0 14px;
}

.historia-texto b { color: var(--dorado); }

.historia-cita {
  margin: 20px auto;
  padding: 14px 24px;
  border-left: 3px solid var(--dorado);
  color: var(--crema-claro);
  font-style: italic;
  font-family: 'Marcellus', serif;
  font-size: 1.05em;
  max-width: 560px;
}

.sello-humano {
  border-color: var(--dorado);
  box-shadow: 0 0 25px rgba(var(--brillo), 0.18);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.galeria-item {
  margin: 0;
  border: 1px solid var(--cafe-borde);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.galeria-item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #000;
}

.galeria-cap {
  text-align: center;
  padding: 8px;
  color: var(--dorado);
  font-size: 0.78em;
  letter-spacing: 0.05em;
}

.linea-tiempo { margin-top: 10px; }

.tl-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--cafe-borde);
}

.tl-item:last-child { border-bottom: none; }

.tl-ano {
  font-family: 'Cinzel Decorative', serif;
  color: var(--dorado);
  font-size: 1.1em;
  min-width: 76px;
}

.tl-texto { color: var(--crema); line-height: 1.55; }

.historia-cta { text-align: center; border-color: var(--dorado); }

.historia-botones {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.historia-botones .btn-dorado { margin: 0; }

@media (max-width: 768px) {
  .historia-seccion { padding: 20px 16px; }
  .galeria-item img { height: 200px; }
}
