/* ================================================================
   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:  'Great Vibes', 'Cormorant Garamond', cursive;
  --font-cuerpo:  'Montserrat', system-ui, sans-serif;

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

/* ================================================================
   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: 0;
  overflow: hidden;
}
.sobre-overlay.cerrado {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sobre {
  position: relative;
  /* Mobile-first: ocupa todo el viewport, la imagen se contiene adentro */
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 498.18px;
  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: 4px;
  text-transform: uppercase;
  font-size: .8rem;
  margin: 0 0 8px;
}

.seccion__titulo {
  font-family: var(--font-titulos);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: var(--c-texto);
  margin: 0 0 12px;
  letter-spacing: 2px;
}

.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: 40px 24px;
  background:
    url("../img/marco-flores.png") center / 118% 118% 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%;
  animation: heroFadeIn 1.4s ease-out both;
}
@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;
}

/* ================================================================
   3) FAMILIA
   ================================================================ */
.familia {
  padding: var(--pad-section);
  background: var(--c-fondo);
}
.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);
}
.conteo__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 30px auto 0;
}
.conteo__bloque {
  background: var(--c-fondo-soft);
  border: 1px solid var(--c-borde);
  border-radius: 4px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(181, 145, 106, .08);
}
.conteo__numero {
  font-family: var(--font-titulos);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--c-dorado);
  line-height: 1;
}
.conteo__label {
  margin-top: 6px;
  font-size: .7rem;
  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: italic;
  color: var(--c-dorado);
  font-size: 1.3rem;
  margin: 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);
}
.itinerario__lista {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.itinerario__item {
  display: grid;
  grid-template-columns: 60px 100px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--c-fondo-soft);
  border: 1px solid var(--c-borde);
  border-radius: 4px;
  text-align: left;
}
.itinerario__icono {
  color: var(--c-dorado);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.itinerario__hora {
  font-family: var(--font-titulos);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-dorado);
  letter-spacing: 1px;
}
.itinerario__desc {
  font-family: var(--font-cuerpo);
  font-size: .92rem;
  color: var(--c-texto);
  letter-spacing: 1px;
}

/* ================================================================
   8) RSVP
   ================================================================ */
.rsvp {
  padding: var(--pad-section);
  background: var(--c-fondo);
}
.rsvp__texto {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--c-texto-suave);
  font-size: .95rem;
}
.rsvp__texto strong { color: var(--c-texto); }
.rsvp__nota {
  margin-top: 18px;
  font-size: .75rem;
  color: var(--c-texto-suave);
  font-style: italic;
}
.rsvp__nota code {
  background: var(--c-fondo-alt);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .78rem;
}

/* ================================================================
   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); }

/* ================================================================
   10) HASHTAG
   ================================================================ */
.hashtag {
  padding: var(--pad-section);
  background: var(--c-fondo-alt);
}
.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;
}

/* ================================================================
   11) CIERRE
   ================================================================ */
.cierre {
  position: relative;
  width: 100%;
  max-width: 498.18px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 24px;
  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;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
  :root { --pad-section: 50px 18px; }
  .hero__marco { width: 180px; height: 180px; }
  .cierre__marco { width: 160px; height: 160px; }
  .itinerario__item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
  }
  .itinerario__icono { grid-row: 1 / 3; }
  .itinerario__hora { grid-column: 2; }
  .itinerario__desc { grid-column: 2; }
  .conteo__grid { gap: 8px; }
  .conteo__bloque { padding: 14px 4px; }
}

@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; }
}
