* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #faf7fb;
  color: #1a1420;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

section {
  width: 100%;
}

/* ==========================================================
   ANIMACIONES DE SCROLL (reveal)
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- DIVISOR "MOÑO" (firma visual) ---------- */
.mono-divisor {
  width: 60px;
  height: 30px;
  margin: 22px auto;
  position: relative;
}
.mono-divisor::before,
.mono-divisor::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 26px;
  background: #6b4c7a;
  border-radius: 50% 50% 50% 0;
}
.mono-divisor::before { left: 4px; transform: rotate(45deg); }
.mono-divisor::after { right: 4px; transform: rotate(-45deg) scaleX(-1); }

.mono-claro::before,
.mono-claro::after { background: #e8c4d4; }

/* eyebrow tipo "SPOTTED:" de blog de chismes */
.subtitulo {
  font-size: 12px;
  letter-spacing: 4px;
  color: white;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.subtitulo-claro { color: black; }

/* BOTÓN MÚSICA */
.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #e8c4d4;
  color: #1a1420;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 22px;
  cursor: pointer;
  z-index: 999;
}

/* ==========================================================
   INTRO: SOBRE CERRADO CON SELLO DE CERA
   ========================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #f6effa 0%, #e9dcf1 45%, #d8c3e6 100%);
}

.intro-fondo-decorativo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 140, 199, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(232, 196, 212, 0.35) 0%, transparent 50%);
}

.intro-contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.intro { padding: 0; }

.intro-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: none;
  padding: 0;
  background: #1a1420;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-imagen-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #6b4c7a 0%, #9d77ae 55%, #e8c4d4 100%);
  overflow: hidden;
}

.intro-imagen {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

/* Sombreado para que el texto se lea sobre la foto */
.intro-degradado {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 20, 32, 0.25) 0%,
    rgba(26, 20, 32, 0.05) 40%,
    rgba(26, 20, 32, 0.55) 100%);
}

.intro-texto-sobre {
  position: absolute;
  inset: 0;
  transform: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(7vh, 44px) 24px max(6vh, 36px);
  text-align: center;
}

.intro-arriba { width: 100%; }
.intro-abajo { width: 100%; }

.intro-nombre {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 14vw, 6.5rem);
  line-height: 1;
  color: #ffffff;
  font-weight: 400;
  text-shadow: 0 3px 16px rgba(26, 20, 32, 0.5);
  margin-bottom: 14px;
}

.intro-fecha {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(26, 20, 32, 0.5);
  margin-bottom: 30px;
}

.btn-entrar {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 15px 40px;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 20, 32, 0.35);
  transition: transform 0.25s ease, background 0.3s ease;
}

.btn-entrar:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

/* Línea con corazón bajo el botón */
.intro-linea-corazon {
  margin: 30px auto 0;
  max-width: 260px;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.intro-linea-corazon::before,
.intro-linea-corazon::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.btn-entrar:hover { transform: translateY(-2px); }

/* --- Cambio de fase --- */
.oculto-fase {
  display: none;
}

.intro-card.fase-saliendo {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.intro-contenido.fase-entrando {
  animation: aparecerFase 0.6s ease forwards;
}

@keyframes aparecerFase {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.intro-titulo {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: #6b4c7a;
  margin-bottom: 34px;
  text-shadow: 0 2px 12px rgba(107, 76, 122, 0.18);
}

.intro-instruccion {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #6b4c7a;
  margin-top: 34px;
  letter-spacing: 1px;
}

/* Escena del sobre */
.sobre-escena {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.sobre3d {
  position: relative;
  width: min(88vw, 420px);
  aspect-ratio: 3 / 2;
  filter: drop-shadow(0 18px 30px rgba(74, 47, 90, 0.30));
}

/* Solapa trasera (triángulo superior fijo, detrás de la carta) */
.solapa-trasera {
  position: absolute;
  inset: 0;
  background: #a37bb5;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  border-radius: 8px;
  z-index: 1;
}

/* Cartita que sale del sobre */
.carta-mini {
  position: absolute;
  left: 6%;
  bottom: 6%;
  width: 88%;
  height: 88%;
  background: #fffdfe;
  border: 1px solid #e8d5f0;
  border-radius: 6px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
  box-shadow: 0 6px 16px rgba(74, 47, 90, 0.15);
}

.carta-mini-arriba {
  font-size: 10px;
  letter-spacing: 3px;
  color: #6b4c7a;
  font-weight: 600;
}

.carta-mini-nombre {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  color: #6b4c7a;
  font-weight: 400;
  line-height: 1;
}

.carta-mini-abajo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #1a1420;
}

/* Frente del sobre (bolsillo con muesca en V) */
.sobre-frente {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c9b6dc 0%, #b598c9 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  border-radius: 8px;
  z-index: 3;
}

/* Solapa frontal (la que se abre) */
.solapa-frontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56%;
  background: linear-gradient(180deg, #b598c9 0%, #a37bb5 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 8px 8px 0 0;
  transform-origin: top center;
  transition: transform 0.9s ease, opacity 0.4s ease 0.7s;
  z-index: 4;
}

/* Sello de cera */
.sello {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border: none;
  border-radius: 47% 53% 51% 49% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 32% 30%, #8f6a9e 0%, #6b4c7a 45%, #4a2f5a 100%);
  color: #f6effa;
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow:
    0 4px 10px rgba(42, 24, 54, 0.45),
    inset 0 2px 6px rgba(255, 255, 255, 0.25),
    inset 0 -3px 8px rgba(26, 14, 34, 0.4);
  transition: transform 0.25s ease, opacity 0.4s ease;
}

@keyframes latidoSello {
  0%, 100% { box-shadow: 0 4px 10px rgba(42,24,54,0.45), inset 0 2px 6px rgba(255,255,255,0.25), inset 0 -3px 8px rgba(26,14,34,0.4), 0 0 0 0 rgba(107,76,122,0.35); }
  50% { box-shadow: 0 4px 10px rgba(42,24,54,0.45), inset 0 2px 6px rgba(255,255,255,0.25), inset 0 -3px 8px rgba(26,14,34,0.4), 0 0 0 16px rgba(107,76,122,0); }
}

/* --- Estado ABIERTO del sobre --- */
.sobre3d.abierto .solapa-frontal {
  transform: rotateX(180deg);
  opacity: 0;
}

.sobre3d.abierto .sello {
  opacity: 0;
  pointer-events: none;
  animation: none;
}

.sobre3d.abierto .carta-mini {
  transform: translateY(-58%);
  z-index: 4;
}

.intro.saliendo {
  animation: fadeOutIntro 0.9s ease forwards;
}

@keyframes fadeOutIntro {
  to { opacity: 0; visibility: hidden; }
}

.oculto-inicial { display: none; }

/* ==========================================================
   PORTADA: CARTA CON MONOGRAMA
   ========================================================== */
.portada {
  min-height: 100vh;
  background: linear-gradient(160deg, #2a1f35 0%, #6b4c7a 55%, #b98cc7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.carta-principal {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 253, 254, 0.22);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 24px 50px rgba(20, 10, 28, 0.3);
}

.carta-borde {
  border: 1px dashed rgba(185, 140, 199, 0.7);
  border-radius: 4px;
  padding: 48px 26px;
  text-align: center;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.6);
}

.texto-arriba {
  font-size: 11px;
  letter-spacing: 3px;
  color: black;
  margin-bottom: 26px;
  font-weight: 600;
}

.monograma {
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  border: 1px solid #b98cc7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #6b4c7a;
  background: radial-gradient(circle at 35% 30%, #faf3fc 0%, #f0e2f6 100%);
}

.titulo-principal {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #d4af37;
}

.nombre {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #d4af37;
  font-weight: 400;
  line-height: 1.1;
}

.portada-fecha {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 5px;
  color: red;
  margin-bottom: 14px;
}

.xoxo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: red;
}

/* HERO / CONTADOR */
.hero {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #6b4c7a 0%, #3a2a48 60%, #1a1420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.overlay {
  width: 100%;
  max-width: 520px;
}

.mini-titulo {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: black;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-xv {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 500;
  color: #d4af37;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-xv span {
  color: #d4af37;
  font-style: italic;
}

.hero-nombre {
  font-family: 'Great Vibes', cursive;
  font-size: 3.2rem;
  color: #33105d;
  margin-top: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.linea {
  width: 150px;
  height: 1px;
  background: #e8c4d4;
  margin: 20px auto;
}

.fecha-evento {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: black;
  margin-bottom: 25px;
}

.contador {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  padding: 20px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  box-shadow:
    0 8px 32px rgba(74, 47, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/* Brillo diagonal tipo cristal */
.contador::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 220%;
  background: linear-gradient(105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: rotate(8deg);
  pointer-events: none;
}

.contador-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contador-box span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #4a2f5a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.contador-box small {
  font-size: 12px;
  letter-spacing: 2px;
  color: #3a2a48;
  font-weight: 700;
}

/* SECCIONES GENERALES */
.seccion {
  padding: 70px 20px;
  text-align: center;
}

.clara { background: #f1e9f5; }
.oscura { background: #1a1420; }

.titulo-seccion {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.titulo-claro { color: #fff7f7; }

/* CARD */
.card {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #fffdfe;
  border: 1px solid #e0cce8;
  padding: 35px 20px;
  box-shadow: 0 8px 18px rgba(107,76,122,0.10);
  border-radius: 8px;
}

.script-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #6b4c7a;
}

.direccion {
  font-size: 14px;
  letter-spacing: 2px;
  color: #7a6b85;
  margin-bottom: 20px;
}

.linea-pequena {
  width: 80px;
  height: 1px;
  background: #dcc4e6;
  margin: 18px auto;
}

/* BOTONES */
.btn {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #1a1420;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s ease;
  border: 1px solid #dcc4e6;
  border-radius: 4px;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #6b4c7a;
}

.oscuro {
  background: #1a1420;
  color: white;
  border: 1px solid #1a1420;
}

/* GALERÍA */
.galeria {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 20px auto;
}

.foto-galeria {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.5s ease;
  display: block;
  background: #e6d9ee;
  box-shadow: 0 14px 26px rgba(74, 47, 90, 0.25);
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(107, 76, 122, 0.35);
  color: white;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 2;
}

.flecha:hover {
  background: rgba(107, 76, 122, 0.55);
  transform: translateY(-50%) scale(1.05);
}

.izquierda { left: 15px; }
.derecha { right: 15px; }

.puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.punto {
  width: 10px;
  height: 10px;
  background: #ddc7e6;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.punto.activo {
  background: #6b4c7a;
  transform: scale(1.15);
}

/* CONFIRMACIÓN — "¿Podrás Asistir?" */
.confirmacion-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: #fffdfe;
  border: 1px solid #e6d1ee;
  padding: 48px 30px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(107,76,122,0.12);
  text-align: center;
}

.asistir-titulo {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 9vw, 4rem);
  color: #1a1420;
  font-weight: 400;
  margin-bottom: 18px;
}

.asistir-fecha {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto 30px;
  padding: 14px 0;
  border-top: 1px solid #e0cce8;
  border-bottom: 1px solid #e0cce8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #1a1420;
}

.punto-lila {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8f5fb0;
  display: inline-block;
}

.pase-linea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.pase-texto {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #1a1420;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d5bfe2;
  background: #faf3fc;
  color: #6b4c7a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 0.25s ease;
}

.stepper-btn:hover {
  background: #efe0f6;
  border-color: #8f5fb0;
}

.stepper-circulo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #8f2fd6;
  background: radial-gradient(circle at 32% 28%, #a75ce0 0%, #8f2fd6 60%, #6b1fa8 100%);
  color: #fff;
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 31, 168, 0.35);
}

.label-nombre {
  display: block;
  font-size: 15px;
  color: #1a1420;
  margin-bottom: 10px;
}

.input-nombre {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  background: #1a1420;
  border: none;
  border-bottom: 3px solid #8f2fd6;
  color: #fff;
  font-size: 17px;
  text-align: center;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-nombre::placeholder { color: #b9a8c4; }

.input-nombre:focus {
  border-bottom-color: #c084f5;
  box-shadow: 0 6px 18px rgba(143, 47, 214, 0.25);
}

.form-confirmacion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.btn-asistire {
  margin-top: 16px;
  padding: 17px 44px;
  background: linear-gradient(135deg, #b05ce6 0%, #8f2fd6 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(143, 47, 214, 0.35);
}

.btn-asistire:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(143, 47, 214, 0.45);
}

@media (min-width: 768px) {
  .confirmacion-card { padding: 56px 45px; }
}

@media (max-width: 480px) {
  .confirmacion-card { padding: 32px 18px; }
  .asistir-fecha { font-size: 1.3rem; gap: 10px; }
  .input-nombre { font-size: 16px; padding: 15px; }
  .btn-asistire { width: 100%; padding: 15px; font-size: 14px; }
}

/* MENSAJES DE RESPUESTA */
.mensaje-confirmacion {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-size: 15px;
  display: none;
}

.mensaje-confirmacion.exito {
  display: block;
  background-color: #ecdcf2;
  color: #4a1f5c;
  border: 1px solid #d8a7c9;
}

.mensaje-confirmacion.error {
  display: block;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* TRIVIA — pasos, corazones y marco */
.trivia-progreso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 34px;
}

.paso {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #c9a8d8;
  background: #fffdfe;
  color: #6b4c7a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.paso.activo {
  background: #8f5fb0;
  border-color: #8f5fb0;
  color: #fff;
  transform: scale(1.08);
}

.paso.completado {
  background: #e4d2ee;
  border-color: #b98cc7;
}

.paso-linea {
  width: 34px;
  height: 1.5px;
  background: #c9a8d8;
  flex-shrink: 0;
}

.nivel-amistad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 30px;
  padding: 14px 22px;
  background: #f6ebfa;
  border: 1px solid #ecd9f4;
  border-radius: 12px;
  flex-wrap: wrap;
}

.nivel-texto {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #1a1420;
}

.corazones {
  display: flex;
  gap: 8px;
  font-size: 1.5rem;
  line-height: 1;
}

.corazon {
  color: #dcC4e6;
  filter: grayscale(0.4);
  opacity: 0.45;
  transition: all 0.4s ease;
}

.corazon.lleno {
  color: #b05ce6;
  filter: none;
  opacity: 1;
  transform: scale(1.12);
}

.trivia-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 26px auto 0;
  background: #fffdfe;
  border: 1.5px solid #d9bfe6;
  padding: 48px 22px 35px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(107, 76, 122, 0.10);
}

/* Moño en la parte superior del marco */
.trivia-mono {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 30px;
}
.trivia-mono::before,
.trivia-mono::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #c084f5 0%, #8f5fb0 100%);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 3px 8px rgba(107, 76, 122, 0.3);
}
.trivia-mono::before { left: 3px; transform: rotate(45deg); }
.trivia-mono::after { right: 3px; transform: rotate(-45deg) scaleX(-1); }

.pregunta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 28px;
  color: #3d2b33;
}

.opcion {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 13px auto;
  padding: 15px 22px;
  border: 1px solid #ecd9f4;
  background: #fdf6ff;
  font-size: 17px;
  font-family: 'Cormorant Garamond', serif;
  color: #3d2b33;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 999px;
  text-align: left;
}

.opcion:nth-child(even) { background: #f9eefc; }

.opcion:hover {
  background: #f2ddf9;
  border-color: #c9a8d8;
  transform: translateY(-2px);
}

.opcion-emoji {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.resultado-trivia {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.05rem;
}

/* Botón de reinicio de trivia */
.btn-reiniciar-trivia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 15px auto 0;
  padding: 15px 34px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #d886b8 0%, #b05ce6 100%);
  color: #fff;
  font-size: 16px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 8px 18px rgba(176, 92, 230, 0.35);
}

.btn-reiniciar-trivia:hover { transform: translateY(-2px); }

/* CIERRE */
.cierre-seccion {
  background: linear-gradient(160deg, #2a1f35 0%, #6b4c7a 100%);
  padding: 90px 20px;
}

.cierre-frase {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: #e8c4d4;
  margin-bottom: 12px;
}

.cierre-xoxo {
  font-family: 'Great Vibes', cursive;
  font-size: 3.4rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* FONDO DESDE LUGAR HASTA TRIVIA */
.fondo-detalles {
  position: relative;
  background: linear-gradient(180deg, #f1e9f5 0%, #e2d3ec 50%, #f1e9f5 100%);
}

.fondo-detalles > * { position: relative; z-index: 1; }
.fondo-detalles .seccion.clara { background: transparent; }

/* DEDICATORIA + FAMILIA */
.dedicatoria-seccion {
  position: relative;
  background: linear-gradient(135deg, #3a2a48 0%, #6b4c7a 60%, #8f6a9e 100%);
  padding: 90px 20px;
  overflow: hidden;
}

.dedicatoria-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,196,212,0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201,182,220,0.12) 0%, transparent 45%);
}

.dedicatoria-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding: 50px 30px;
  background: rgba(255, 253, 254, 0.22);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}

.dedicatoria-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color:#d4af37;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dedicatoria-texto {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: black;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.familia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 12px;
  margin-bottom: 26px;
}

.familia-bloque {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 16px;
  padding: 28px 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.familia-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: red;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.familia-nombre {
  font-size: 1.05rem;
  line-height: 1.8;
  color:purple;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dedicatoria-final {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color:brown;
  margin-top: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* DETALLES: VESTIMENTA + LLUVIA DE SOBRES */
.detalles-grid {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.detalle-card {
  background: rgba(255, 253, 254, 0.62);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 46px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 24px rgba(107, 76, 122, 0.12);
}

.detalle-img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 26px;
  display: block;
  object-fit: contain;
}

.detalle-img-sobres { max-width: 500px; }

.detalle-titulo-bloque {
  font-size: 1.15rem;
  letter-spacing: 5px;
  color: #6b4c7a;
  margin-bottom: 14px;
  font-weight: 600;
  max-width: 480px;
}

.detalle-texto {
  max-width: 460px;
  margin: 0 auto;
  font-size: 1rem;
  letter-spacing: 3px;
  line-height: 1.8;
  color: #5d4a68;
  text-transform: uppercase;
}

.detalle-texto-sobres { letter-spacing: 4px; }

@media (min-width: 900px) {
  .detalles-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .detalle-card { padding: 46px 30px; }
  .familia-grid { grid-template-columns: 1fr 1fr; }
}

/* RECUERDOS */
.recuerdos-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.recuerdos-texto {
  max-width: 480px;
  font-weight: 700;
  margin: 0 auto 24px;
  font-size: 20px;
  line-height: 1.7;
  color: whitesmoke;
}

.qr-box-recuerdos {
  width: 320px;
  margin: 0 auto 28px;
  background: #fff;
  padding: 16px;
  border: 1px solid #e6d1ee;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(107, 76, 122, 0.10);
}

.qr-img { width: 100%; height: auto; display: block; }

.btn-recuerdos { min-width: 180px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .titulo-principal { font-size: 2rem; }
  .titulo-seccion { font-size: 2.6rem; }
  .nombre { font-size: 3.2rem; }
  .hero-nombre { font-size: 2.8rem; }
  .hero-xv { font-size: 3.2rem; }
  .foto-galeria { height: 430px; }
  .pregunta { font-size: 2rem; }
}

@media (max-width: 480px) {
  .contador { gap: 4px; padding: 15px 6px; }
  .contador-box span { font-size: 1.6rem; }
  .contador-box small { font-size: 10px; }
  .titulo-principal { font-size: 1.7rem; }
  .titulo-seccion { font-size: 2.2rem; }
  .hero-xv { font-size: 2.7rem; }
  .nombre { font-size: 2.8rem; }
  .hero-nombre { font-size: 2.4rem; }
  .script-title { font-size: 2.5rem; }
  .pregunta { font-size: 1.8rem; }
  .foto-galeria { height: 360px; }
  .flecha { width: 46px; height: 46px; font-size: 20px; }
  .carta-borde { padding: 36px 18px; }
  .monograma { width: 72px; height: 72px; font-size: 2.5rem; }
  .recuerdos-texto { font-size: 16px; }
  .qr-box-recuerdos { width: 240px; }
  .detalle-script { font-size: 3.2rem; }
  .detalle-img { max-width: 400px; }
  .detalle-img-sobres { max-width: 360px; }
  .detalle-titulo-bloque { font-size: 1rem; letter-spacing: 6px; }
  .detalle-texto { font-size: 0.95rem; letter-spacing: 3px; line-height: 1.7; }
  .dedicatoria-seccion { padding: 70px 16px; }
  .dedicatoria-texto { font-size: 1rem; line-height: 1.8; }
  .familia-titulo { font-size: 1.7rem; }
  .dedicatoria-final { font-size: 2rem; }
  .cierre-xoxo { font-size: 2.6rem; }
}

/* AJUSTES PARA COMPUTADORA */
@media (min-width: 1024px) {
  .portada, .hero, .seccion { padding-left: 40px; padding-right: 40px; }
  .carta-principal { max-width: 560px; }
  .carta-borde { padding: 60px 40px; }
  .hero-xv { font-size: 5rem; }
  .hero-nombre { font-size: 4rem; }
  .fecha-evento { font-size: 16px; }
  .contador { max-width: 620px; margin: 0 auto; padding: 22px 18px; gap: 16px; }
  .contador-box span { font-size: 2.4rem; }
  .titulo-seccion { font-size: 3.5rem; }
  .card { max-width: 680px; padding: 45px 35px; }
  .script-title { font-size: 3.6rem; }
  .galeria { max-width: 760px; }
  .foto-galeria { height: 720px; }
  .trivia-box { max-width: 760px; }
  .pregunta { font-size: 2.8rem; }
  .opcion { max-width: 520px; font-size: 19px; }
  .qr-box { width: 260px; }
}

.portada {
  background-image: url("img/picture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.dedicatoria-seccion {
  background-image: url("img/picture1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  background-image: url("img/picture3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fondo-detalles {
  background-image: url("img/besos2.png");
  /* La imagen conserva su proporción al ancho de la pantalla
     y se repite hacia abajo (el contenedor es muy alto para cover) */
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
}

/* ==========================================================
   FONDOS EN CELULAR (picture, picture2, picture3)
   La imagen llena toda la sección (cover). En pantalla vertical
   se recortan los costados: es lo esperado con imágenes
   horizontales, y se ve limpio y profesional.
   Si quieres CERO recorte en celular, crea versiones verticales
   de tus imágenes (ej. picture-movil.jpg de 1080x1920) y
   descomenta las líneas de abajo con tus nombres de archivo.
   ========================================================== */
@media (max-width: 768px) {
  .portada,
  .hero,
  .dedicatoria-seccion {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .portada { background-image: url("img/fotocel3.jpeg"); }
  .hero { background-image: url("img/fotocel.jpeg"); }
  .dedicatoria-seccion { background-image: url("img/fotocel4.jpeg"); }
  
}

/* ==========================================================
   PROGRAMA DEL EVENTO — línea de tiempo con corazones
   Los horarios van apareciendo al hacer scroll (clase reveal)
   ========================================================== */
.programa-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 54px 26px 48px;
  border-radius: 18px;
  border: 1px solid #e3d2ec;
  box-shadow: 0 18px 40px rgba(74, 47, 90, 0.16);
  /* Papel con textura sutil */
  background:
    repeating-linear-gradient(0deg, rgba(107, 76, 122, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(107, 76, 122, 0.02) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, #fdfaff 0%, #f6eefa 100%);
}
 
.titulo-programa {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 8vw, 3.8rem);
  font-weight: 400;
  color: #8a5fa0;
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: 2px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
 
.programa-timeline {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
 
/* Línea vertical central fina */
.programa-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  background: linear-gradient(180deg, #d9bfe6 0%, #a37bb5 50%, #d9bfe6 100%);
}
 
.programa-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  margin-bottom: 52px;
}
 
.programa-item:last-child { margin-bottom: 0; }
 
/* Nodo corazón pequeño sobre la línea */
.programa-nodo {
  grid-column: 2;
  grid-row: 1;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  border-radius: 50%;
  background: #8a5fa0;
  border: 2.5px solid #f6eefa;
  outline: 1.5px solid #c9a8d8;
  color: #fdfaff;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 3px 8px rgba(74, 47, 90, 0.25);
}
 
/* Íconos de trazo fino */
.programa-icono {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  color: #8a5fa0;               /* color del trazo (currentColor) */
}
 
.icono-svg {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 2px 4px rgba(74, 47, 90, 0.18));
}
 
.programa-info {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
  padding-left: 8px;
}
 
/* Alternar lados */
.programa-item.invertido .programa-icono { grid-column: 3; }
.programa-item.invertido .programa-info {
  grid-column: 1;
  text-align: right;
  padding-left: 0;
  padding-right: 8px;
}
 
.programa-hora {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #4a2f5a;
  line-height: 1.25;
}
 
.programa-actividad {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem;
  color: #7a5a8a;
  line-height: 1.35;
}
 
/* Aparición al hacer scroll: cada lado entra desde su costado */
.programa-item.reveal { transform: translateX(-36px); }
.programa-item.invertido.reveal { transform: translateX(36px); }
.programa-item.reveal.visible { transform: none; }
 
@media (max-width: 480px) {
  .programa-card { padding: 40px 14px 36px; }
  .programa-item { grid-template-columns: 1fr 40px 1fr; margin-bottom: 40px; }
  .icono-svg { width: 58px; height: 58px; }
  .programa-hora { font-size: 1.22rem; }
  .programa-actividad { font-size: 1.02rem; }
  .programa-nodo { width: 22px; height: 22px; font-size: 9px; }
}
 