/* ================================================================
   VARIABLES — Paleta modelo20 florales
   ================================================================ */
:root {
  --c-fondo:        #FAF6EF;
  --c-fondo-alt:    #F3ECDF;
  --c-fondo-soft:   #FDFAF4;
  --c-texto:        #2C3A2E;
  --c-texto-suave: #5A6A5D;
  --c-dorado:       #B5916A;
  --c-dorado-claro:#C8A876;
  --c-borde:        #E5D9C2;
  --c-whatsapp:     #25D366;
  --c-whatsapp-h:   #128C7E;

  --font-titulos: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Alex Brush', 'Great Vibes', 'Cormorant Garamond', cursive;
  --font-cuerpo:  'Montserrat', system-ui, sans-serif;

  --maxw: 498px;
  --pad-section: 80px 24px;

  /* Slots temáticos de fondo (CSS). Default = tema "mariposas-dorado". main.js
     lo sobrescribe si el evento define cfg.tema.nombre distinto del default. */
  --img-hero-marco:     url("../img/temas/mariposas-dorado/hero-marco.png");
  --img-conteo-circulo: url("../img/temas/mariposas-dorado/conteo-circulo.png");
}

/* ================================================================
   SECCIONES FULL-SCREEN — cada bloque ocupa el alto del viewport
   ================================================================ */
.mensaje,
.familia,
.conteo,
.evento,
.vestimenta,
.itinerario,
.rsvp,
.regalos,
.hashtag {
  width: 100%;
  max-width: 498.18px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

/* Cada sección "engancha" cuando se acerca al borde superior del viewport */
.hero,
.mensaje,
.familia,
.conteo,
.evento,
.vestimenta,
.itinerario,
.rsvp,
.regalos,
.hashtag,
.cierre {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

body {
  margin: 0;
  font-family: var(--font-cuerpo);
  font-weight: 300;
  color: var(--c-texto);
  background: var(--c-fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; height: 100vh; }

/* ================================================================
   LÍNEAS LATERALES — enmarcan toda la página, alineadas al card
   ================================================================ */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-dorado-claro);
  opacity: .55;
  z-index: 5;
  pointer-events: none;
}
body::before { left:  calc(50% - 249.09px); }
body::after  { left:  calc(50% + 249.09px); }

@media (max-width: 498px) {
  body::before { left: 0; }
  body::after  { left: auto; right: 0; }
}

/* ================================================================
   0) SOBRE DE APERTURA (imagen)
   ================================================================ */
.sobre-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, #FFFCF5 0%, var(--c-fondo) 70%),
    var(--c-fondo);
  transition: opacity .9s ease, visibility .9s ease;
  padding: 6dvh 8vw;
  overflow: hidden;
}
.sobre-overlay.cerrado {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sobre {
  position: relative;
  /* Mobile-first: ocupa el area disponible (con padding del overlay),
     la imagen se contiene adentro para verse completa */
  width: 100%;
  height: 100%;
  max-width: 460px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(120, 90, 60, .22));
  transition: transform .35s ease;
  animation:
    sobreEntra 1.1s ease-out both,
    sobreLatir 2.6s ease-in-out 1.5s infinite;
}
.sobre__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

@keyframes sobreEntra {
  from { opacity: 0; transform: translateY(20px) scale(.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
/* Pequeño "latido" para invitar al click */
@keyframes sobreLatir {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.sobre:hover  { transform: scale(1.04); animation-play-state: paused; }
.sobre:active { transform: scale(.98); }

/* Estado abierto: zoom, leve rotación y fade */
.sobre.abierto {
  animation: sobreAbre 1s cubic-bezier(.55, 0, .35, 1) forwards;
  pointer-events: none;
}
@keyframes sobreAbre {
  0%   { transform: scale(1)    rotate(0deg);                  opacity: 1; }
  35%  { transform: scale(1.08) rotate(-1deg);                 opacity: 1; }
  100% { transform: scale(1.18) translateY(40px) rotate(2deg); opacity: 0; }
}

/* En pantallas con alto chico (paisaje) o muy angostas, evitar overflow */
@media (orientation: landscape) and (max-height: 600px) {
  .sobre { height: 95vh; height: 95dvh; }
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ================================================================
   COMPONENTES REUTILIZABLES
   ================================================================ */
.contenedor {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.seccion__epigrafe {
  font-family: var(--font-titulos);
  font-style: italic;
  color: var(--c-dorado);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 18px;
}

.seccion__titulo {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 4.4rem);
  color: var(--c-texto);
  margin: 0 0 12px;
  letter-spacing: 0;
  line-height: 1.05;
}

.seccion__subtitulo {
  font-family: var(--font-cuerpo);
  font-weight: 300;
  color: var(--c-texto-suave);
  font-size: .95rem;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.separador-floral {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px auto;
  color: var(--c-dorado);
  max-width: 280px;
}
.separador-floral__linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-dorado-claro), transparent);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  font-family: var(--font-cuerpo);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--dorado {
  background: var(--c-dorado);
  color: #fff;
  box-shadow: 0 6px 16px rgba(181, 145, 106, .3);
}
.btn--dorado:hover {
  background: var(--c-dorado-claro);
  transform: translateY(-2px);
}
.btn--whatsapp {
  background: var(--c-whatsapp);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .3);
}
.btn--whatsapp:hover {
  background: var(--c-whatsapp-h);
  transform: translateY(-2px);
}

/* Reveal on scroll — fade-in elegante con stagger interno */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(.985);
  transition:
    opacity 1.2s cubic-bezier(.22, .61, .36, 1),
    transform 1.2s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger: los hijos directos aparecen con un pequeño retraso entre cada uno */
.reveal > .contenedor > *,
.reveal > .cierre__inner > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .9s cubic-bezier(.22, .61, .36, 1),
    transform .9s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible > .contenedor > *,
.reveal.is-visible > .cierre__inner > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible > .contenedor > *:nth-child(1),
.reveal.is-visible > .cierre__inner > *:nth-child(1) { transition-delay: .15s; }
.reveal.is-visible > .contenedor > *:nth-child(2),
.reveal.is-visible > .cierre__inner > *:nth-child(2) { transition-delay: .30s; }
.reveal.is-visible > .contenedor > *:nth-child(3),
.reveal.is-visible > .cierre__inner > *:nth-child(3) { transition-delay: .45s; }
.reveal.is-visible > .contenedor > *:nth-child(4),
.reveal.is-visible > .cierre__inner > *:nth-child(4) { transition-delay: .60s; }
.reveal.is-visible > .contenedor > *:nth-child(n+5),
.reveal.is-visible > .cierre__inner > *:nth-child(n+5) { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal > .contenedor > *,
  .reveal > .cierre__inner > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================================================================
   1) HERO
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  max-width: 498.18px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14% 24px; /* deja respirar las flores arriba/abajo */
  background:
    var(--img-hero-marco) center / cover no-repeat,
    radial-gradient(ellipse at top, #FFFCF5 0%, var(--c-fondo) 60%),
    var(--c-fondo);
  background-blend-mode: multiply, normal, normal;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__contenido {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: heroFadeIn 1.4s ease-out both;
}

/* ----------------------------------------------------------------
   Destellos dorados — sparkles sutiles sobre el hero
   ---------------------------------------------------------------- */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  color: #C8A876; /* var(--c-dorado-claro) */
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 0 4px currentColor);
  animation: sparkleLife 1.9s ease-out forwards;
}
.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.sparkle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.sparkle::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
}
@keyframes sparkleLife {
  0%   { opacity: 0; transform: scale(0)    rotate(0deg); }
  40%  { opacity: 1; transform: scale(1)    rotate(45deg); }
  100% { opacity: 0; transform: scale(.35)  rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { display: none; }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tipografía hero — match referencia */
.hero__supra {
  font-family: var(--font-titulos);
  font-weight: 500;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: var(--c-texto);
  margin: 0 0 28px;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.hero__nombre-script {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.5rem, 18vw, 9rem);
  color: var(--c-texto);
  line-height: 1;
  letter-spacing: 1px;
}

.hero__fecha-simple {
  margin: 32px 0 0;
  font-family: var(--font-titulos);
  font-weight: 500;
  font-size: clamp(1rem, 3.2vw, 1.4rem);
  color: var(--c-texto);
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* Scroll hint estilo eventobonito: círculo + chevron + texto */
.hero__scroll {
  margin-top: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-texto-suave);
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-fondo-alt);
  border: 1px solid var(--c-borde);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-texto);
}
.hero__scroll-label {
  font-size: .72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .85; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* ================================================================
   2) MENSAJE
   ================================================================ */
.mensaje {
  padding: var(--pad-section);
  background: var(--c-fondo-soft);
}
.mensaje__texto {
  font-family: var(--font-titulos);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  color: var(--c-texto-suave);
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.7;
}
.mensaje__texto--enfasis {
  color: var(--c-dorado);
  font-weight: 500;
  font-style: normal;
}

/* ----------------------------------------------------------------
   Mariposas — dos imágenes flotantes en el mensaje
   ---------------------------------------------------------------- */
.mensaje { position: relative; }

.mariposa {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(120, 90, 60, .18));
  user-select: none;
  -webkit-user-drag: none;
}

/* Mariposa chica, a la izquierda arriba del "Bienvenidos" */
.mariposa--1 {
  width: clamp(70px, 18vw, 100px);
  top: 6%;
  left: 4%;
  animation: mariposaFlotarFlip 4.5s ease-in-out infinite;
}

/* Mariposa grande, abajo a la derecha bajo el énfasis */
.mariposa--2 {
  width: clamp(110px, 30vw, 170px);
  bottom: 2%;
  right: 4%;
  animation: mariposaFlotar 5.5s ease-in-out infinite 1s;
}

/* Mariposas del cierre — la inferior despeja la barra de créditos */
.mariposa--cierre-1 {
  width: clamp(95px, 26vw, 150px);
  top: 5%;
  left: 4%;
  animation: mariposaFlotarFlip 4.5s ease-in-out infinite;
}
.mariposa--cierre-2 {
  width: clamp(70px, 18vw, 100px);
  bottom: 116px; /* por encima de la barra de créditos */
  right: 4%;
  animation: mariposaFlotar 5.5s ease-in-out infinite 1s;
}

@keyframes mariposaFlotar {
  0%, 100% { transform: translateY(0)    rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}
/* Variante espejada — misma flotación pero la mariposa mira al otro lado */
@keyframes mariposaFlotarFlip {
  0%, 100% { transform: scaleX(-1) translateY(0)    rotate(-2deg); }
  50%      { transform: scaleX(-1) translateY(-8px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mariposa { animation: none; }
}

/* ================================================================
   3) FAMILIA
   ================================================================ */
.familia {
  padding: var(--pad-section);
  background: var(--c-fondo);
  position: relative;
  overflow: hidden;
}

/* Polvo dorado decorativo en esquinas de la sección familia */
.polvo-dorado {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.polvo-dorado--1 {
  width: clamp(150px, 42vw, 230px);
  top: -32px;
  left: -32px;
}
.polvo-dorado--2 {
  width: clamp(150px, 42vw, 230px);
  bottom: -32px;
  right: -32px;
}

.familia__bloque { margin: 24px auto; }
.familia__rol {
  font-family: var(--font-titulos);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--c-dorado);
  letter-spacing: 2px;
  margin: 0 0 14px;
}
.familia__nombre {
  font-family: var(--font-titulos);
  font-weight: 500;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--c-texto);
  letter-spacing: 1.5px;
  margin: 4px 0;
}
.familia__y {
  font-family: var(--font-titulos);
  font-style: italic;
  color: var(--c-dorado-claro);
  font-size: 1.4rem;
  margin: 4px 0;
}

/* ================================================================
   4) CONTEO
   ================================================================ */
.conteo {
  padding: var(--pad-section);
  background: var(--c-fondo-alt);
  overflow: hidden;
}
/* Círculo decorativo que contiene el conteo */
.conteo__circulo {
  position: relative;
  /* se extiende más allá del card; el excedente lo recorta overflow:hidden de .conteo
     así los destellos (que tienen margen transparente en el PNG) llegan al borde */
  width: calc(100% + 70px);
  max-width: none;
  /* -25px izq / -45px der → desplazado 10px hacia la derecha */
  margin: 26px -45px 0 -25px;
  aspect-ratio: 5000 / 4400; /* proporción real de conteo-circulo.png */
  background: var(--img-conteo-circulo) center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conteo__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px 6px;
  /* se mantiene dentro del cuadrado inscrito del círculo */
  width: 56%;
}
.conteo__bloque {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.conteo__numero {
  font-family: var(--font-titulos);
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  font-weight: 700;
  color: #B5916A;
  line-height: 1;
}
.conteo__label {
  margin-top: 6px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-texto-suave);
}

/* ================================================================
   5-6) EVENTOS (Ceremonia / Recepción)
   ================================================================ */
.evento {
  padding: var(--pad-section);
  background: var(--c-fondo);
}
.evento--alt { background: var(--c-fondo-soft); }

.evento__lugar {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--c-texto);
  margin: 14px 0 6px;
  letter-spacing: 1px;
}
.evento__hora {
  font-family: var(--font-titulos);
  font-style: normal;
  color: #B5916A;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 6px 0 0;
  letter-spacing: 3px;
}
.evento__direccion {
  font-size: .92rem;
  color: var(--c-texto-suave);
  margin: 12px auto 22px;
  max-width: 420px;
  line-height: 1.7;
}
.evento__mapa {
  max-width: 560px;
  margin: 0 auto 24px;
  border: 1px solid var(--c-borde);
  padding: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(181, 145, 106, .12);
}
.evento__mapa iframe { display: block; }

/* ================================================================
   6.5) CÓDIGO DE VESTIMENTA
   ================================================================ */
.vestimenta {
  padding: var(--pad-section);
  background: var(--c-fondo-soft);
}
.vestimenta__imagen {
  margin: 24px auto 18px;
  max-width: 130px;
  transform: translateX(28px);
}
.vestimenta__imagen img {
  width: 100%;
  height: auto;
  display: block;
  /* Suaviza el negro absoluto al tono cálido de la paleta */
  filter: brightness(.55) sepia(.25) saturate(.6) hue-rotate(-8deg);
  opacity: .92;
}
.vestimenta__etiqueta {
  font-family: var(--font-titulos);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--c-dorado);
  margin: 8px 0 6px;
}
.vestimenta__nota {
  font-family: var(--font-cuerpo);
  font-weight: 300;
  font-size: .9rem;
  color: var(--c-texto-suave);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================================================
   7) ITINERARIO
   ================================================================ */
.itinerario {
  padding: var(--pad-section);
  background: var(--c-fondo-alt);
  position: relative;
  overflow: hidden;
}
.itinerario__lista {
  list-style: none;
  margin: 34px auto 0;
  padding: 0;
  max-width: 420px;
  position: relative;
  text-align: left;
}
/* Línea vertical de la timeline */
.itinerario__lista::before {
  content: "";
  position: absolute;
  left: 26px;            /* centro del marcador (52px / 2) */
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--c-dorado-claro);
  opacity: .45;
  z-index: 0;
}
.itinerario__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  padding-bottom: 34px;
}
.itinerario__item:last-child {
  padding-bottom: 0;
}
/* Marcador circular con la mariposa — sin contorno.
   Oculto por defecto; aparece al hacer scroll (clase .is-active) */
.itinerario__marcador {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FBEFD9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .7s ease, transform .7s ease, box-shadow .5s ease;
}
.itinerario__mariposa {
  width: 48%;
  height: auto;
}
/* Hora y título — ocultos por defecto, aparecen al hacer scroll */
.itinerario__hora,
.itinerario__desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
/* Estado revelado — al entrar el ítem en viewport */
.itinerario__item.is-active .itinerario__marcador {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 5px rgba(181, 145, 106, .14), 0 5px 16px rgba(181, 145, 106, .3);
}
.itinerario__item.is-active .itinerario__hora {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .12s;
}
.itinerario__item.is-active .itinerario__desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .24s;
}
.itinerario__contenido {
  flex: 1; /* ocupa el ancho restante → todos los iconos quedan alineados */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2px;
}
.itinerario__hora {
  font-family: var(--font-cuerpo);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-texto);
}
.itinerario__desc {
  font-family: var(--font-script);
  font-size: 2.5rem;
  line-height: 1.05;
  color: var(--c-texto);
  margin: 0 0 8px;
}
.itinerario__icono {
  width: 116px;
  height: auto;
  align-self: center; /* centrado en la columna de contenido */
  margin-top: 4px;
}
/* El icono de recepción se ve un poco más chico que el resto */
.itinerario__icono--recepcion {
  width: 100px;
}
/* Iconos sin fondo dorado propio — se les agrega un wash dorado suave (CSS)
   que imita el fondo acuarela de los demás iconos sin bordes duros */
.itinerario__icono--fondo {
  background:
    radial-gradient(ellipse 58% 50% at 45% 47%,
      rgba(200, 168, 118, .42) 0%, transparent 68%),
    radial-gradient(ellipse 52% 58% at 57% 56%,
      rgba(176, 146, 104, .34) 0%, transparent 72%);
}
@media (prefers-reduced-motion: reduce) {
  .itinerario__marcador,
  .itinerario__hora,
  .itinerario__desc {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================================================================
   8) RSVP
   ================================================================ */
.rsvp {
  padding: var(--pad-section);
  background: var(--c-fondo);
}
.rsvp__texto {
  max-width: 460px;
  margin: 0 auto 20px;
  color: var(--c-texto-suave);
  font-size: .95rem;
}
.rsvp__texto strong { color: var(--c-texto); font-weight: 600; }

/* Panel dinámico de confirmación — ensanchado para aprovechar el espacio lateral */
.rsvp .contenedor { width: 100%; }
.rsvp-panel {
  width: calc(100% + 80px);
  margin: 0 -40px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tarjeta — marco dorado sobre fondo crema */
.rsvp-card {
  width: 100%;
  background: var(--c-fondo-soft);
  border: 1px solid var(--c-dorado-claro);
  box-shadow:
    0 0 0 1px var(--c-dorado-claro) inset,
    0 12px 30px rgba(181, 145, 106, .14);
  border-radius: 3px;
  padding: 32px 20px;
  text-align: center;
}

.rsvp-card__intro {
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--c-dorado);
  margin: 0 0 2px;
}
.rsvp-card__familia {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--c-texto);
  margin: 0 0 18px;
}

/* Selector e inputs */
.rsvp-select,
.rsvp-input {
  width: 100%;
  font-family: var(--font-cuerpo);
  font-size: .85rem;
  color: var(--c-texto);
  background: #fff;
  border: 1px solid var(--c-borde);
  border-radius: 2px;
  padding: 12px 14px;
}
.rsvp-select { cursor: pointer; margin-bottom: 12px; }
.rsvp-input  { margin-bottom: 10px; }
.rsvp-input::placeholder { color: #A89B82; }
.rsvp-select:focus,
.rsvp-input:focus {
  outline: none;
  border-color: var(--c-dorado);
  box-shadow: 0 0 0 3px rgba(181, 145, 106, .14);
}
.rsvp-nombres { margin-bottom: 4px; }

/* Botones dentro de la tarjeta — ancho completo */
.rsvp-card .btn {
  width: 100%;
  margin-top: 8px;
}
.rsvp-card .btn:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

/* Mensajes de validación */
.rsvp-msg {
  font-size: .82rem;
  margin: 6px 0 2px;
  min-height: 1.1em;
  color: var(--c-texto-suave);
}
.rsvp-msg--error { color: #B0524A; }

/* Estados: cargando */
.rsvp-estado {
  font-family: var(--font-cuerpo);
  font-size: .95rem;
  color: var(--c-texto-suave);
  text-align: center;
}
.rsvp-spinner {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 3px solid var(--c-borde);
  border-top-color: var(--c-dorado);
  border-radius: 50%;
  animation: rsvpGirar .8s linear infinite;
}
@keyframes rsvpGirar { to { transform: rotate(360deg); } }

/* Tarjeta de aviso (sin código / error de red) */
.rsvp-aviso__titulo {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--c-texto);
  margin: 0 0 10px;
}
.rsvp-aviso__texto {
  font-size: .9rem;
  color: var(--c-texto-suave);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Imagen del estado de rechazo (enlace no válido) */
.rsvp-aviso__img {
  display: block;
  width: 84px;
  height: auto;
  margin: 0 auto 16px;
}

/* Tarjeta confirmada */
.rsvp-confirm__icono {
  display: block;
  width: 76px;
  height: auto;
  margin: 0 auto 10px;
}
.rsvp-confirm__titulo {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--c-texto);
  margin: 0 0 4px;
}
.rsvp-confirm__sub {
  font-size: .88rem;
  color: var(--c-texto-suave);
  margin: 0 0 6px;
}
.rsvp-lista {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}
.rsvp-lista li {
  font-family: var(--font-titulos);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-texto);
  padding: 7px 0;
  border-bottom: 1px solid var(--c-borde);
}
.rsvp-lista li:last-child { border-bottom: none; }
.rsvp-confirm__nota {
  font-size: .8rem;
  font-style: italic;
  color: var(--c-texto-suave);
  margin: 8px 0 16px;
  line-height: 1.5;
}
.rsvp-confirm__nota strong {
  font-weight: 600;
  color: var(--c-dorado);
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-spinner { animation: none; }
}

/* ================================================================
   9) REGALOS
   ================================================================ */
.regalos {
  padding: var(--pad-section);
  background: var(--c-fondo-soft);
}
.regalos__icono {
  display: inline-block;
  color: var(--c-dorado);
  margin: 20px auto;
}
.regalos__texto {
  max-width: 460px;
  margin: 0 auto 8px;
  color: var(--c-texto-suave);
  font-size: .95rem;
}
.regalos__evento {
  font-family: var(--font-titulos);
  font-size: 1.1rem;
  color: var(--c-texto);
  letter-spacing: 1px;
  margin: 0 0 22px;
}
.regalos__evento strong { color: var(--c-dorado); }

/* Botón con el logo de Liverpool */
.regalos__liverpool {
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(181, 145, 106, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.regalos__liverpool img {
  width: 200px;
  height: auto;
  display: block;
}
.regalos__liverpool:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(181, 145, 106, .32);
}

/* ================================================================
   10) HASHTAG
   ================================================================ */
.hashtag {
  padding: var(--pad-section);
  background: var(--c-fondo-alt);
}
.hashtag .contenedor {
  width: 100%;
}
.hashtag__icono {
  color: var(--c-dorado);
  display: inline-block;
  margin-bottom: 14px;
}
.hashtag__texto {
  color: var(--c-texto-suave);
  font-size: .95rem;
  margin: 8px 0 14px;
}
.hashtag__tag {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--c-dorado);
  letter-spacing: 3px;
  margin: 0;
}
.hashtag-carousel {
  display: flex;
  gap: 14px;
  margin: 30px -28px 0;
  padding: 4px 28px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hashtag-carousel::-webkit-scrollbar {
  height: 6px;
}
.hashtag-carousel::-webkit-scrollbar-track {
  background: rgba(181, 145, 106, .14);
  border-radius: 999px;
}
.hashtag-carousel::-webkit-scrollbar-thumb {
  background: rgba(181, 145, 106, .55);
  border-radius: 999px;
}
.hashtag-carousel__item {
  flex: 0 0 min(66vw, 245px);
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(253, 250, 244, .94);
  box-shadow: 0 12px 24px rgba(87, 68, 45, .16);
  scroll-snap-align: center;
  background: var(--c-fondo-soft);
}
.hashtag-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .hashtag-carousel {
    scroll-behavior: auto;
  }
}

/* ================================================================
   11) CIERRE
   ================================================================ */
.cierre {
  position: relative;
  width: 100%;
  max-width: 498.18px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  /* el extra abajo reserva espacio para la barra de créditos */
  padding: 40px 24px 92px;
  background:
    radial-gradient(ellipse at bottom, #FFFCF5 0%, var(--c-fondo) 70%),
    var(--c-fondo);
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cierre__inner { position: relative; z-index: 2; }
.cierre__marco {
  width: 200px; height: 200px;
  margin: 0 auto 28px;
  border-radius: 50%;
  padding: 8px;
  background: var(--c-fondo);
  border: 1px solid var(--c-borde);
  box-shadow:
    0 0 0 1px var(--c-dorado-claro) inset,
    0 12px 30px rgba(181, 145, 106, .15);
}
.cierre__marco img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-fondo-alt);
}
.cierre__titulo { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.cierre__texto {
  color: var(--c-texto-suave);
  margin: 8px 0 12px;
}
.cierre__firma {
  font-family: var(--font-titulos);
  margin: 16px 0 8px;
}
.cierre__xv {
  display: block;
  font-size: 2.4rem;
  color: var(--c-dorado);
  letter-spacing: 6px;
}
.cierre__nombre {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--c-texto);
}
.cierre__credito {
  font-size: .75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-texto-suave);
  margin-top: 24px;
}

/* ================================================================
   12) CREDITOS DEV — barra inferior con firma
   ================================================================ */
.creditos {
  /* integrado al cierre: fijo al fondo de la sección */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 24px;
  background: #B5916A; /* var(--c-dorado) */
  color: #FFFFFF;
  text-align: center;
  z-index: 6; /* por encima de las lineas laterales */
  display: flex;
  align-items: center;
  justify-content: center;
}
.creditos__texto {
  margin: 0;
  font-family: var(--font-cuerpo);
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.creditos__circulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #FFFFFF;
}
.creditos__autor {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 1.2px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  :root { --pad-section: 50px 18px; }
  .hero__marco { width: 180px; height: 180px; }
  .cierre__marco { width: 160px; height: 160px; }
  .itinerario__desc { font-size: 2.1rem; }
  .conteo__grid { gap: 10px 6px; }
}

@media (max-width: 360px) {
  .hero__fecha { letter-spacing: 3px; font-size: 1.2rem; }
  .hero__fecha-mes { padding: 0 4px; }
  .hero__fecha-dia, .hero__fecha-anio { padding: 0 4px; }
}
