/* ============================================================
   Angel & Estefani — Invitación · Premium Signature
   Color palette inspired by reference: olive green + cream paper
   ============================================================ */

:root {
  --olive: #5d6b3a;
  --olive-dark: #4a5630;
  --olive-deep: #3b4424;
  --cream: #ece5d8;
  --cream-soft: #f3ede0;
  --cream-warm: #e7e0d0;
  --paper: #f5f1e8;
  --ink: #2f2e25;
  --ink-soft: #4d4a3d;
  --gold: #a89968;
  --gold-soft: #c8b98a;
  --shadow: 0 18px 48px rgba(60, 60, 40, 0.18);
  --shadow-soft: 0 6px 18px rgba(60, 60, 40, 0.12);

  --f-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-cursive: 'Great Vibes', 'Cormorant Garamond', cursive;
  --f-display: 'Cinzel', 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}
html { background-color: var(--cream); }  /* fallback color en html (atrás del bg-texture) */
body { background-color: transparent; }    /* body transparente para que se vea #bg-texture */

/* Textura dorada de acuarela aplicada como capa fija que cubre toda la pantalla.
   Se usa un <div> real (#bg-texture) para garantizar que funcione en TODOS
   los navegadores (iOS Safari incluido) sin repeticiones ni costuras. */
#bg-texture {
  position: fixed;
  inset: 0;
  background-image: url("../img/textura-fondo.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -10;
  pointer-events: none;
}

img { max-width: 100%; display: block; }

/* Grano de papel sutil sobre la textura dorada */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.46  0 0 0 0 0.36  0 0 0 0.28 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* ============================================================
   INTRO · ENVELOPE
   ============================================================ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  /* Fondo de papel arrugado artesanal */
  background:
    url("../img/textura-intro.jpg") center center / cover no-repeat,
    var(--cream);
  /* Anular max-width/margin/padding heredados de la regla global de section */
  max-width: none;
  width: 100vw;
  margin: 0;
  padding: 0;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0 0.4  0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.15;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.envelope {
  position: relative;
  width: min(520px, 86vw);
  aspect-ratio: 3 / 2;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  perspective: 1400px;
  filter:
    drop-shadow(0 24px 32px rgba(60, 60, 40, 0.32))
    drop-shadow(0 8px 14px rgba(60, 60, 40, 0.22))
    drop-shadow(0 2px 3px rgba(60, 60, 40, 0.18));
  transition: transform 0.4s ease, filter 0.4s ease;
}
.envelope:hover {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 32px 40px rgba(60, 60, 40, 0.38))
    drop-shadow(0 10px 16px rgba(60, 60, 40, 0.24))
    drop-shadow(0 2px 4px rgba(60, 60, 40, 0.2));
}

/* Durante la apertura, el sobre se desliza hacia abajo para que cuando la foto
   salga hacia arriba, la composición (sobre + foto) quede centrada verticalmente */
.envelope.is-opening {
  transform: translateY(13vh);
  transition: transform 1.6s cubic-bezier(.3,.8,.3,1) 0.6s, filter 0.4s ease;
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  background: var(--olive);
  border-radius: 6px;
}

/* Body of the envelope — sage verde con textura suave */
.envelope-back {
  inset: 0;
  background:
    /* Costuras diagonales que forman las solapas traseras (V invertida) */
    linear-gradient(45deg,  transparent 49.7%, rgba(70, 90, 50, 0.28) 49.85%, rgba(70, 90, 50, 0.28) 50.15%, transparent 50.3%) 0 50% / 100% 50% no-repeat,
    linear-gradient(135deg, transparent 49.7%, rgba(70, 90, 50, 0.28) 49.85%, rgba(70, 90, 50, 0.28) 50.15%, transparent 50.3%) 0 50% / 100% 50% no-repeat,
    linear-gradient(180deg, #a8b97f 0%, #8da267 100%);
  z-index: 1;
  box-shadow: inset 0 0 30px rgba(70, 90, 50, 0.18);
}
.envelope-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.6;
  border-radius: 6px;
  pointer-events: none;
}

/* Front face creates the V-pocket — covers everything but reveals a triangle gap at top */
.envelope-front {
  inset: 0;
  /* SVG con: gradiente base + sombreado triangular por solapa + líneas de doblez */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23a8b97f'/><stop offset='1' stop-color='%238da267'/></linearGradient><linearGradient id='shL' x1='0' y1='0.5' x2='1' y2='0.5'><stop offset='0' stop-color='%23000' stop-opacity='0.12'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient><linearGradient id='shR' x1='1' y1='0.5' x2='0' y2='0.5'><stop offset='0' stop-color='%23000' stop-opacity='0.12'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient><linearGradient id='shB' x1='0.5' y1='1' x2='0.5' y2='0'><stop offset='0' stop-color='%23000' stop-opacity='0.18'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient></defs><rect width='300' height='200' fill='url(%23g)'/><polygon points='0,0 0,200 150,100' fill='url(%23shL)'/><polygon points='300,0 300,200 150,100' fill='url(%23shR)'/><polygon points='0,200 300,200 150,100' fill='url(%23shB)'/><line x1='0' y1='200' x2='150' y2='100' stroke='%23445a28' stroke-width='0.5' stroke-opacity='0.55'/><line x1='300' y1='200' x2='150' y2='100' stroke='%23445a28' stroke-width='0.5' stroke-opacity='0.55'/><line x1='0' y1='0' x2='150' y2='100' stroke='%23445a28' stroke-width='0.5' stroke-opacity='0.4'/><line x1='300' y1='0' x2='150' y2='100' stroke='%23445a28' stroke-width='0.5' stroke-opacity='0.4'/></svg>") center / 100% 100% no-repeat;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
  box-shadow:
    inset 0 4px 12px rgba(60, 80, 40, .18),
    inset 0 -2px 4px rgba(0, 0, 0, .08);
}
.envelope-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='6'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  clip-path: inherit;
}

/* Top flap — closed by default, rotates open on click */
.envelope-flap {
  inset: 0;
  /* Gradiente diagonal sutil que simula la luz cayendo sobre el doblez */
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='%23bccd91'/><stop offset='1' stop-color='%2399ad70'/></linearGradient><linearGradient id='shadow' x1='0.5' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='%23000' stop-opacity='0'/><stop offset='1' stop-color='%23000' stop-opacity='0.18'/></linearGradient></defs><rect width='300' height='200' fill='url(%23g)'/><polygon points='0,0 150,120 300,0 300,0 150,0' fill='url(%23shadow)' opacity='0.5'/><line x1='0' y1='0' x2='150' y2='120' stroke='%23445a28' stroke-width='0.6' stroke-opacity='0.4'/><line x1='300' y1='0' x2='150' y2='120' stroke='%23445a28' stroke-width='0.6' stroke-opacity='0.4'/></svg>") center / 100% 100% no-repeat;
  transform-origin: top center;
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  z-index: 7;
  transition: transform 1.4s cubic-bezier(.55,-0.05,.55,1.1) 0.4s;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, .12),
    inset 0 -2px 0 rgba(60, 80, 40, .15);
}
.envelope-flap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  clip-path: inherit;
}

/* Sombra del borde inferior de la solapa (cuando está cerrada se ve donde termina sobre el sobre) */
.envelope-flap-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    /* Línea de sombra justo bajo la solapa cerrada */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' preserveAspectRatio='none'><defs><linearGradient id='sh' x1='0.5' y1='0' x2='0.5' y2='1'><stop offset='0' stop-color='%23000' stop-opacity='0.25'/><stop offset='0.6' stop-color='%23000' stop-opacity='0.08'/><stop offset='1' stop-color='%23000' stop-opacity='0'/></linearGradient></defs><polygon points='0,0 0,8 150,63 300,8 300,0 150,55' fill='url(%23sh)'/></svg>") center / 100% 100% no-repeat;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.envelope.is-opening .envelope-flap-shadow { opacity: 0; transition-delay: 0.3s; }

/* Photo card — INSIDE the envelope (hidden behind the front face) */
.envelope-photo {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  width: 44%;
  background: #fff;
  padding: 8px 8px 22px;
  box-shadow: 0 14px 28px rgba(0,0,0,.3);
  z-index: 3;  /* DETRÁS del front (z=4) — oculta cuando el sobre está cerrado */
  transition:
    top 1.3s cubic-bezier(.34, 1.25, 0.64, 1),
    transform 1.3s cubic-bezier(.34, 1.25, 0.64, 1),
    box-shadow 0.4s ease;
}

/* Cuando la solapa termina de abrir (clase añadida vía JS):
   bajamos su z-index para que la foto la cubra cuando ambas estén arriba del sobre.
   La foto mantiene z=3 (debajo del front V) para que se vea saliendo del sobre. */
.envelope.flap-opened .envelope-flap {
  z-index: 2;  /* arriba del back (z=1) pero abajo de la foto (z=3) */
}

/* Pequeño "pop forward" visual de la foto cuando emerge completamente */
.envelope.photo-emerged .envelope-photo {
  box-shadow: 0 24px 52px rgba(0,0,0,.5), 0 10px 20px rgba(0,0,0,.32);
  animation: photo-pop-forward 0.45s cubic-bezier(.34, 1.6, 0.64, 1);
}
@keyframes photo-pop-forward {
  0%   { filter: brightness(1)    drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50%  { filter: brightness(1.06) drop-shadow(0 0 12px rgba(255,240,200,0.5)); }
  100% { filter: brightness(1)    drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

.envelope-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* Wax seal — cera color cobre/bronce con bordes orgánicos */
.envelope-seal {
  position: absolute;
  width: 90px;
  height: 90px;
  /* Bordes ligeramente irregulares como cera real */
  border-radius: 49% 51% 52% 48% / 50% 47% 53% 50%;
  background:
    radial-gradient(circle at 35% 30%,
      #b5764a 0%,
      #8e5527 30%,
      #6a3a14 65%,
      #3f2008 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: grid;
  place-items: center;
  color: #f3e2c2;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 2px;
  text-shadow:
    0 1px 1px rgba(0,0,0,0.55),
    0 0 2px rgba(0,0,0,0.6),
    -1px -1px 0 rgba(255, 230, 180, 0.2);
  box-shadow:
    0 12px 24px rgba(40, 20, 0, 0.55),
    0 4px 8px rgba(40, 20, 0, 0.4),
    inset 0 3px 6px rgba(255, 220, 170, 0.35),
    inset 0 -4px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 18px rgba(80, 40, 10, 0.45);
  transition: transform .9s ease, opacity .6s ease, border-radius .9s ease;
}
/* Anillo punteado interior */
.envelope-seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1.5px dashed rgba(243, 226, 194, 0.4);
}
/* Halo cálido sutil alrededor */
.envelope-seal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,200,140,0.3), transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(3px);
}
.envelope-seal .seal-text {
  position: relative;
  z-index: 2;
}

.envelope-cta {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--olive-dark);
  font-family: var(--f-serif);
  font-style: italic;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 15px;
  z-index: 9;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  animation: pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}
/* Flecha pequeña apuntando al sello */
.envelope-cta::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid var(--paper);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.1));
}

@keyframes pulse {
  0%,100% { transform: translateX(-50%) scale(1); }
  50%     { transform: translateX(-50%) scale(1.06); }
}

.intro-tag {
  position: relative;
  z-index: 20;  /* arriba de la sombra del sobre */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-style: italic;
  color: #A06E72;  /* Dusty rose · color marca */
  background: rgba(255, 255, 255, 0.85);  /* fondo más sólido para destacar */
  padding: 7px 10px 7px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.03em;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.08),
    0 1px 3px rgba(0,0,0,0.06);
  transition: z-index 0s 0.3s, opacity 0.6s ease, transform 0.6s ease;
}

/* Cuando el sobre se está abriendo, la marca desaparece completamente
   para no estorbar a la animación */
.envelope.is-opening ~ .intro-tag {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.45s ease, transform 0.5s ease;
}
.intro-tag-brand {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 1.15em;
  color: #FBEFE9;                        /* crema claro */
  background: linear-gradient(135deg, #B07A7E 0%, #9A6266 100%);  /* Dusty rose marca */
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  font-weight: 500;
  box-shadow:
    0 4px 10px rgba(160, 110, 114, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 1px 1px rgba(60, 30, 35, 0.25);
}

/* Envelope opening animation */
.envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
}
.envelope.is-opening .envelope-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4) rotate(15deg);
  transition: transform .9s cubic-bezier(.4,.1,.6,1) .55s, opacity .9s ease .55s;
}
/* La foto solo emerge cuando se le añade la clase photo-emerging (vía JS,
   después de que la solapa termina de abrir). Así la foto queda VISIBLE
   dentro del sobre durante la fase de apertura.
   Termina más grande y centrada sobre el sobre. */
.envelope.photo-emerging .envelope-photo {
  top: -75%;
  transform: translateX(-50%) scale(1.4) rotate(-2deg);
  box-shadow: 0 28px 60px rgba(0,0,0,.5), 0 10px 22px rgba(0,0,0,.35);
}
.envelope.is-opening .envelope-cta { opacity: 0; }

/* --- Resplandor dorado emanando del sello --- */
.seal-burst {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 230, 160, 0.95) 0%,
    rgba(255, 200, 110, 0.6) 25%,
    rgba(255, 180, 90, 0.3) 50%,
    transparent 75%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  z-index: 1;
  mix-blend-mode: screen;
}
.envelope.is-opening .seal-burst {
  animation: sealBurst 1.2s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes sealBurst {
  0%   { transform: scale(0.5); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: scale(6);   opacity: 0; }
}

/* --- Partículas (esquirlas de cera que vuelan) --- */
.seal-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  background: radial-gradient(ellipse at 30% 30%, #d9bf7f, #8a6824 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: sealParticleFly 1.3s cubic-bezier(.2,.5,.4,1) forwards;
  animation-delay: 0.5s;
}
@keyframes sealParticleFly {
  0%   { transform: translate(-50%, -50%)        rotate(0deg)        scale(1);   opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.25); opacity: 0; }
}

/* --- Pétalos / hojitas cayendo --- */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 55;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -40px;
  opacity: 0;
  will-change: transform, opacity;
  animation: petalFall linear forwards;
}
.petal-mag {
  width: 16px;
  height: 22px;
  background: linear-gradient(155deg, #fff8e8 30%, #f0e3c8 100%);
  border-radius: 60% 60% 65% 65% / 70% 70% 100% 100%;
  box-shadow: inset -2px -2px 4px rgba(180,160,120,0.25), 0 1px 3px rgba(0,0,0,0.08);
  transform-origin: 50% 30%;
}
.petal-leaf {
  width: 16px;
  height: 7px;
  background: linear-gradient(90deg, #6b7a44, #5d6b3a);
  border-radius: 100% 0 100% 0;
  opacity: 0.85;
}
@keyframes petalFall {
  0%   { transform: translate3d(0, 0, 0)             rotate(0deg);             opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate3d(var(--drift), 100vh, 0) rotate(var(--rot-end)); opacity: 0; }
}

/* Bloqueo de scroll mientras el sobre está visible */
body.is-locked { overflow: hidden; height: 100vh; }

/* ============================================================
   INVITATION
   ============================================================ */

.invitation {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s ease 0.3s;
}

.invitation.is-visible { opacity: 1; }

section {
  position: relative;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 60px);
  max-width: 1100px;
  margin: 0 auto;
}

.cursive {
  font-family: var(--f-cursive);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--olive-dark);
  margin: 0 0 0.4em;
  text-align: center;
  letter-spacing: 0.5px;
}
.cursive.on-dark { color: var(--paper); }
.cursive.sub { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 1.4em; }

/* Divisor decorativo botánico bajo títulos */
.title-orn {
  display: flex;
  justify-content: center;
  margin: -0.2em auto 1.6em;
  color: var(--olive);
  opacity: 0.85;
}
.title-orn svg {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  display: block;
}
.title-orn.on-dark { color: var(--gold-soft); opacity: 0.95; }

.section-sub {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.5em;
  color: var(--paper);
}

.lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  max-width: 720px;
  margin: 0 auto 1.6em;
}
.lede.small { font-size: 1rem; }

/* WELCOME -- saludo personalizado por invitado */
.welcome { text-align: center; padding: clamp(40px,7vw,72px) clamp(20px,5vw,60px) clamp(18px,4vw,36px); }
.welcome-pre { font-family: var(--f-cursive); font-size: clamp(1.9rem,3.8vw,2.7rem); color: var(--gold); margin: 0 0 0.05em; line-height: 1.1; }
.welcome-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem,3.4vw,2.2rem); letter-spacing: 0.04em; color: var(--olive); margin: 0.1em 0 0.5em; }
.welcome-msg { font-family: var(--f-serif); font-style: italic; font-size: clamp(1rem,1.6vw,1.12rem); color: var(--ink-soft); max-width: 600px; margin: 0 auto 1.7em; letter-spacing: 0.04em; }
.welcome-passes { display: inline-flex; align-items: center; gap: 14px; background: var(--olive); color: var(--paper); padding: 15px 30px; border-radius: 100px; box-shadow: var(--shadow-soft); }
.welcome-passes-num { font-family: var(--f-display); font-size: clamp(2rem,5vw,2.7rem); font-weight: 600; line-height: 1; color: var(--gold-soft); }
.welcome-passes-label { font-family: var(--f-display); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; line-height: 1.3; }

/* HERO */
.hero {
  text-align: center;
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 60px) clamp(60px, 10vw, 110px);
  background: radial-gradient(ellipse 90% 60% at 50% 5%, rgba(168,153,104,0.15) 0%, transparent 65%);
}

.hero-eyebrow {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin: 0 0 1.8em;
  padding: 8px 18px;
  display: inline-block;
  border-top: 1px solid var(--olive-dark);
  border-bottom: 1px solid var(--olive-dark);
  transform: translateY(18px);
  transition: transform 0.9s ease 0.1s;
}
.hero.is-revealed .hero-eyebrow { transform: none; }

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--olive-deep);
  margin: 0 0 0.55em;
  transform: translateY(30px);
  transition: transform 1s ease 0.25s;
}
.hero.is-revealed .hero-names { transform: none; }

.hero-name {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1;
  display: block;
}

.hero-amp {
  font-family: var(--f-cursive);
  font-style: normal;
  font-size: clamp(5.5rem, 14vw, 10rem);
  color: var(--olive);
  line-height: 0.75;
  display: block;
  letter-spacing: 0;
  margin: 0.04em 0;
}

/* Hero carousel */
.hero-carousel-wrap {
  position: relative;
  width: min(500px, 90vw);
  margin: 0.6em auto clamp(110px, 26vw, 160px);
  transform: translateY(32px);
  transition: transform 1.1s ease 0.55s;
}
.hero.is-revealed .hero-carousel-wrap { transform: none; }

.hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 13px var(--olive), 0 20px 55px rgba(60,60,40,0.22);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: heroKenBurns 9s ease-in-out forwards;
}
.hero-slide:nth-child(1) img { transform-origin: center center; }
.hero-slide:nth-child(2) img { transform-origin: left top; }
.hero-slide:nth-child(3) img { transform-origin: right center; }
.hero-slide:nth-child(4) img { transform-origin: center bottom; }
.hero-slide:nth-child(5) img { transform-origin: left bottom; }

@keyframes heroKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.16); }
}

/* Floral arrangement – overlaps bottom half of circle and extends below */
.hero-flores {
  position: absolute;
  width: 145%;
  max-width: 85vw;
  left: 50%;
  transform: translateX(-50%);
  bottom: -20%;
  z-index: 3;
  pointer-events: none;
  display: block;
}

.hero-date {
  font-family: var(--f-cursive);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--olive-dark);
  margin: 0 0 0;
  transform: translateY(18px);
  transition: transform 0.9s ease 0.95s;
}
.hero.is-revealed .hero-date { transform: none; }

/* INTRO MSG / PARENTS */
.intro-msg { text-align: center; }
.parents-title {
  font-family: var(--f-serif);
  font-style: italic;
  text-align: center;
  margin: 1.2em 0 0.8em;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 60px);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.parents-col p {
  margin: 0.25em 0;
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ink);
}

/* COUNTDOWN */
.countdown-band {
  background: var(--olive);
  color: var(--paper);
  text-align: center;
  max-width: none;
  margin: 0;
  padding: clamp(50px, 7vw, 80px) 20px;
}
.countdown-pre {
  font-family: var(--f-cursive);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.1em;
  font-style: italic;
}
.countdown-pre em { font-style: normal; }
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-top: 16px;
}
.countdown > div { display: flex; flex-direction: column; align-items: center; }
.countdown strong {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
}
.countdown span {
  font-family: var(--f-display);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.85;
}

/* RSVP / Cartouche */
.rsvp { display: grid; place-items: center; }

.cartouche {
  position: relative;
  width: min(520px, 92%);
  background: var(--olive);
  color: var(--paper);
  padding: clamp(36px, 6vw, 60px) clamp(28px, 5vw, 48px);
  text-align: center;
  border-radius: 200px / 70px;
  box-shadow: var(--shadow);
}
.cartouche::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 241, 232, 0.35);
  border-radius: 180px / 60px;
  pointer-events: none;
}
.cartouche::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 160px / 52px;
  pointer-events: none;
}
.cartouche.small { padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 40px); border-radius: 160px / 56px; }
.cartouche.small::before { border-radius: 140px / 48px; }
.cartouche.small::after { border-radius: 120px / 42px; }

.rsvp-pre {
  font-family: var(--f-serif);
  font-style: italic;
  margin: 0 0 0.6em;
  opacity: 0.9;
}
.rsvp-name {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: 0.4em 0 0.4em;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}
.rsvp-msg {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  margin: 0.4em 0 1.2em;
  opacity: 0.9;
}
.rsvp-passes {
  font-family: var(--f-display);
  margin: 0.6em 0 1.2em;
}
.rsvp-passes strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}
.rsvp-passes span { letter-spacing: 0.2em; font-size: 0.85rem; }

.btn {
  display: inline-block;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(245, 241, 232, 0.7);
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn:hover { background: var(--paper); color: var(--olive-dark); transform: translateY(-1px); }

.btn-mini {
  display: inline-block;
  font-family: var(--f-display);
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  background: transparent;
  color: var(--olive-dark);
  border: 1px solid var(--olive-dark);
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-mini:hover { background: var(--olive-dark); color: var(--paper); }

/* Botón de mapa con dedito */
.btn-map {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.btn-map .ico-tap {
  width: 16px; height: 16px;
  flex-shrink: 0;
  animation: tap-pulse 1.8s ease-in-out infinite;
  transform-origin: 50% 70%;
}
@keyframes tap-pulse {
  0%, 100% { transform: translateY(0)    rotate(-6deg); }
  50%      { transform: translateY(-3px) rotate(-2deg); }
}

/* PADRINOS */
.padrinos { text-align: center; }
.padrinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(28px, 4vw, 44px);
  max-width: 880px;
  margin: 0 auto;
}
.padrino { text-align: center; color: var(--ink); }
.padrino-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  color: var(--olive-dark);
}
.padrino-icon svg { width: 100%; height: 100%; }
.padrino h3 {
  font-family: var(--f-cursive);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 0.2em;
  color: var(--olive-dark);
}
.padrino p { margin: 0; font-family: var(--f-display); letter-spacing: 0.04em; font-size: 0.95rem; }

/* ITINERARY */
.itinerary {
  background: var(--olive);
  color: var(--paper);
  max-width: none;
  margin: 0;
  text-align: center;
}
.band-pre {
  font-family: var(--f-serif);
  font-style: italic;
  text-align: center;
  margin: 0 0 1.2em;
  color: var(--paper);
  opacity: 0.9;
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  max-width: 540px;
  margin-inline: auto;
}
.itinerary-list li { text-align: center; }
.itinerary-list .ico {
  width: 56px; height: 56px;
  margin: 0 auto 10px;
  color: var(--paper);
  opacity: 0.95;
}
.itinerary-list .ico svg { width: 100%; height: 100%; }
.itinerary-list .time {
  font-family: var(--f-cursive);
  font-size: 1.6rem;
  margin: 0;
}
.itinerary-list h3 {
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 500;
  margin: 0.2em 0 0.5em;
}
.itinerary-list .desc {
  font-family: var(--f-serif);
  font-style: italic;
  margin: 0 auto;
  max-width: 460px;
  opacity: 0.92;
}

/* VENUES */
.venues { text-align: center; }
.venue-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
}
.venue-card {
  background: var(--olive);
  color: var(--paper);
  padding: 28px 22px;
  text-align: center;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.venue-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(245, 241, 232, .25);
  border-radius: 14px;
  pointer-events: none;
}
.venue-kind {
  font-family: var(--f-cursive);
  font-size: 1.6rem;
  margin: 0 0 0.4em;
}
.venue-time {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin: 0 0 1em;
}
.venue-card .btn-mini { color: var(--paper); border-color: rgba(245,241,232,.6); }
.venue-card .btn-mini:hover { background: var(--paper); color: var(--olive-dark); }

.hotels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 880px;
  margin: 22px auto 0;
}
.hotel {
  background: var(--cream-soft);
  border: 1px solid rgba(60,60,40,.1);
  padding: 22px 18px;
  text-align: center;
  border-radius: 8px;
}
.hotel h4 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--olive-dark);
}

/* HISTORY / TIMELINE */
.history { text-align: center; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 80px);
  max-width: 920px;
  margin: 0 auto;
}
.story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  text-align: left;
}
.story.flip { grid-template-columns: 1fr 1.1fr; }
.story.flip .story-photo { order: 2; }
.story.flip .story-text { order: 1; text-align: right; }

.story-photo {
  background: #fff;
  padding: 14px 14px 38px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transition: transform .35s ease;
}
.story.flip .story-photo { transform: rotate(1.2deg); }
.story-photo:hover { transform: rotate(0deg) scale(1.02); }
.story-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.story-text h3 {
  font-family: var(--f-cursive);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--olive-dark);
  margin: 0 0 0.2em;
  font-weight: 400;
}
.story-text p {
  margin: 0 0 0.4em;
  font-family: var(--f-serif);
  color: var(--ink-soft);
}
.story-text .verse {
  font-family: var(--f-cursive);
  color: var(--olive);
  font-size: 1.4rem;
  margin-top: 0.4em;
}

/* DRESS CODE */
.dress-code {
  background: var(--olive);
  color: var(--paper);
  text-align: center;
  max-width: none;
  margin: 0;
}
.dc-label {
  font-family: var(--f-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 6px 0 32px;
  opacity: 0.95;
}

.dc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.dc-col {
  text-align: center;
  padding: 8px;
}

.dc-col .dc-icon {
  width: 76px; height: 114px;
  margin: 0 auto 14px;
  color: var(--paper);
  opacity: 0.95;
}
.dc-col .dc-icon svg { width: 100%; height: 100%; }

.dc-kind {
  font-family: var(--f-cursive);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.5em;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.dc-col > p {
  font-family: var(--f-serif);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 1.2em;
  max-width: 280px;
  opacity: 0.95;
}

.dc-colors-label {
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 1em 0 0.6em;
  opacity: 0.85;
}
.dc-colors {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 1.2em;
}
.dc-colors span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,232,.3);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

.btn-pinterest {
  margin-top: 8px;
  color: var(--paper);
  border-color: rgba(245,241,232,.6);
  display: inline-block;
}
.btn-pinterest:hover {
  background: var(--paper);
  color: var(--olive-dark);
}

/* Separador vertical entre columnas (desktop) */
.dc-split > .dc-col:first-child {
  border-right: 1px solid rgba(245,241,232,0.18);
  padding-right: clamp(12px, 3vw, 32px);
}
.dc-split > .dc-col:last-child {
  padding-left: clamp(12px, 3vw, 32px);
}

/* RULES — como papel destacado / pergamino */
.rules { display: grid; place-items: center; }
.rules-card {
  position: relative;
  background:
    linear-gradient(180deg, #fbf6e9 0%, #f1e9d2 100%);
  border: 1px solid rgba(168, 153, 104, 0.35);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 64px);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(60, 60, 40, 0.18),
    0 6px 18px rgba(60, 60, 40, 0.12),
    inset 0 0 0 6px rgba(255, 255, 255, 0.4),
    inset 0 0 0 7px rgba(168, 153, 104, 0.25);
}
.rules-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(168, 153, 104, 0.4);
  border-radius: 4px;
  pointer-events: none;
}
.rules-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0 0.3  0 0 0 0.2 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  opacity: 0.65;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 8px;
}
.rules-card > * { position: relative; z-index: 1; }

.rules-card h2.cursive {
  color: var(--olive-dark);
  margin-bottom: 0.8em;
}
.rules-card ol {
  text-align: left;
  margin: 0 auto;
  padding-left: 28px;
  max-width: 580px;
  color: var(--ink-soft);
  font-family: var(--f-serif);
}
.rules-card li {
  margin-bottom: 0.75em;
  padding-left: 6px;
}
.rules-card li::marker {
  color: var(--olive);
  font-family: var(--f-display);
  font-weight: 500;
}

/* GALLERY */
.gallery { text-align: center; }

/* -- uniform grid -- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 1.4em;
}
.gallery-grid figure {
  margin: 0;
  background: #fff;
  padding: 8px 8px 24px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(26px) rotate(0deg);
  transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.3s ease;
}
.gallery-grid figure:nth-child(1) { transition-delay: 0.05s; }
.gallery-grid figure:nth-child(2) { transition-delay: 0.16s; }
.gallery-grid figure:nth-child(3) { transition-delay: 0.27s; }
.gallery-grid figure:nth-child(4) { transition-delay: 0.38s; }
.gallery-grid figure:nth-child(5) { transition-delay: 0.49s; }
.gallery-grid figure:nth-child(6) { transition-delay: 0.60s; }
.gallery-grid figure:nth-child(7) { transition-delay: 0.71s; }
.gallery-grid figure:nth-child(8) { transition-delay: 0.82s; }
.gallery-grid figure:nth-child(9) { transition-delay: 0.93s; }
.gallery.is-revealed .gallery-grid figure { opacity: 1; transform: translateY(0) rotate(0deg); }
.gallery.is-revealed .gallery-grid figure:nth-child(2n) { transform: translateY(0) rotate(0.7deg); }
.gallery.is-revealed .gallery-grid figure:nth-child(3n) { transform: translateY(0) rotate(-0.7deg); }
.gallery-grid figure:hover { transform: translateY(-3px) rotate(0deg) scale(1.04) !important; z-index: 2; box-shadow: var(--shadow); }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 10, 0.92);
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lb-img-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 48px 0;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  transform: scale(0.93);
  transition: transform 0.32s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox.is-open .lb-img-wrap img { transform: scale(1); }

.lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s;
  z-index: 1;
}
.lb-close:hover { color: #fff; }

.lb-nav {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 2.8rem;
  line-height: 1;
  padding: 14px 20px;
  cursor: pointer;
  height: 100%;
  width: 64px;
  transition: background 0.2s, color 0.2s;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* CALENDAR BUTTON */
.cal-wrap {
  position: relative;
  display: inline-block;
  margin-top: 28px;
}

.btn-cal {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(245, 241, 232, 0.7);
  padding: 12px 26px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn-cal svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-cal:hover { background: var(--paper); color: var(--olive-dark); transform: translateY(-1px); }

.cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid rgba(60,60,40,.12);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  min-width: 210px;
  overflow: hidden;
  z-index: 20;
  animation: calFadeIn 0.18s ease;
}
@keyframes calFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cal-opt {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  font-family: var(--f-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--olive-dark);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
  text-align: left;
  line-height: 1;
  box-sizing: border-box;
}
.cal-opt svg { width: 16px; height: 16px; flex-shrink: 0; }
.cal-opt:hover { background: var(--cream-warm); }
.cal-opt + .cal-opt { border-top: 1px solid rgba(60,60,40,.08); }

/* SONGS */
.songs { display: grid; place-items: center; }
.songs .cartouche { background: var(--olive); color: var(--paper); }
.songs .cartouche h2 { color: var(--paper); margin-bottom: 0.4em; }
.songs .cartouche p { font-family: var(--f-serif); font-style: italic; opacity: 0.92; }
.songs .btn { margin-top: 1em; }

/* CLOSING */
.closing { text-align: center; padding-bottom: 0; }
.closing-frame {
  width: min(380px, 80vw);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  position: relative;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'><path d='M50 0 C70 0, 96 4, 96 22 L96 118 C96 136, 70 140, 50 140 C30 140, 4 136, 4 118 L4 22 C4 4, 30 0, 50 0 Z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'><path d='M50 0 C70 0, 96 4, 96 22 L96 118 C96 136, 70 140, 50 140 C30 140, 4 136, 4 118 L4 22 C4 4, 30 0, 50 0 Z'/></svg>") center / 100% 100% no-repeat;
  box-shadow: var(--shadow);
}
.closing-frame img { width: 100%; height: 100%; object-fit: cover; }
.closing-msg {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin: 1.6em auto 0.4em;
  color: var(--ink-soft);
  max-width: 560px;
}
.closing-sign {
  font-family: var(--f-cursive);
  font-size: 2rem;
  color: var(--olive-dark);
  margin: 0.4em 0 1.4em;
}

/* FOOTER */
.footer {
  background: var(--olive);
  color: var(--paper);
  text-align: center;
  padding: 22px 16px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* ============================================================
   BRAND FOOTER · Invita Kairós
   ============================================================ */
.brand-footer {
  position: relative;
  background:
    radial-gradient(ellipse at top, rgba(255, 235, 230, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #C68A8E 0%, #A06E72 50%, #7E5054 100%);
  padding: clamp(60px, 9vw, 90px) 20px clamp(90px, 12vw, 130px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* Anular max-width/margin heredados de la regla global de section */
  max-width: none;
  width: 100%;
  margin: 0;
}

/* Textura sutil sobre el fondo */
.brand-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.brand-footer-inner {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto;
}

/* Anillos decorativos detrás del logo */
.brand-orbits {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: -1;
}
.brand-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 235, 0.18);
}
.brand-orbit-1 {
  animation: brandOrbitPulse 3.5s ease-in-out infinite;
}
.brand-orbit-2 {
  inset: 18px;
  animation: brandOrbitPulse 3.5s ease-in-out infinite 0.4s;
}
@keyframes brandOrbitPulse {
  0%, 100% { transform: scale(1);   opacity: 0.55; }
  50%      { transform: scale(1.15); opacity: 0.1;  }
}

.brand-logo {
  width: clamp(140px, 26vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter:
    drop-shadow(0 4px 10px rgba(60, 25, 30, 0.25))
    brightness(1.05);
  /* Convertir el logo (rosa sobre transparente) a blanco cremoso para que se vea sobre el fondo rosa */
  filter: drop-shadow(0 4px 10px rgba(60, 25, 30, 0.3)) brightness(0) invert(1) opacity(0.95);
}

.brand-eyebrow {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 240, 235, 0.85);
  margin: 6px 0 4px;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: #FFF5EE;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(60, 25, 30, 0.3);
}

.brand-tagline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 240, 235, 0.75);
  margin: 2px 0 26px;
  letter-spacing: 0.08em;
}

/* Botón CTA con efecto pulsante */
.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF5EE;
  color: #9A6266;
  font-family: var(--f-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow:
    0 6px 20px rgba(60, 25, 30, 0.3),
    0 0 0 0 rgba(255, 245, 238, 0.6);
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease;
  animation: brandPulse 2.4s ease-in-out infinite;
  position: relative;
}
.brand-cta svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.brand-cta:hover {
  transform: translateY(-2px);
  background: #9A6266;
  color: #FFF5EE;
  animation-play-state: paused;
  box-shadow: 0 10px 24px rgba(60, 25, 30, 0.4);
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(60, 25, 30, 0.3), 0 0 0 0    rgba(255, 245, 238, 0.55); }
  50%      { box-shadow: 0 6px 20px rgba(60, 25, 30, 0.3), 0 0 0 18px rgba(255, 245, 238, 0); }
}

.brand-copy {
  margin: 36px 0 0;
  font-family: var(--f-serif);
  font-size: 0.78rem;
  color: rgba(255, 240, 235, 0.6);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ============================================================
   FLOATING CONTROLS
   ============================================================ */
.music-btn, .up-btn, .menu-btn {
  position: fixed;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  border: 1px solid rgba(245,241,232,.4);
  cursor: pointer;
  z-index: 60;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  transition: transform .25s ease, opacity .25s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
.music-btn { right: 18px; }
.menu-btn  { right: 72px; }   /* a la izquierda del de música */
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn[aria-expanded="true"] { background: var(--olive-dark); }

.up-btn {
  left: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.up-btn.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.music-btn:hover, .up-btn:hover, .menu-btn:hover { background: var(--olive-dark); transform: translateY(-2px); }
.music-btn svg, .up-btn svg { width: 20px; height: 20px; }
.music-btn.is-playing { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-btn:hover.is-playing { animation-play-state: paused; }

/* Ocultar botones flotantes mientras se muestra el sobre (body.is-locked) */
body.is-locked .music-btn,
body.is-locked .menu-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.85);
}

/* ============================================================
   NAVIGATION MENU
   ============================================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

.nav-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  width: min(420px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, #fbf6e9 0%, #f1e9d2 100%);
  border: 1px solid rgba(168, 153, 104, 0.4);
  border-radius: 10px;
  padding: clamp(32px, 5vw, 48px) clamp(28px, 5vw, 44px);
  box-shadow:
    0 24px 60px rgba(40, 40, 30, 0.4),
    0 8px 20px rgba(40, 40, 30, 0.2),
    inset 0 0 0 6px rgba(255, 255, 255, 0.4),
    inset 0 0 0 7px rgba(168, 153, 104, 0.3);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(.2,.8,.2,1.1);
  text-align: center;
}
.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.nav-close {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--olive-dark);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.2s, transform 0.2s;
}
.nav-close:hover { color: var(--olive); transform: rotate(90deg); }

.nav-eyebrow {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4em;
}
.nav-title {
  font-size: clamp(2.4rem, 6vw, 3.2rem) !important;
  margin-bottom: 1em !important;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list li {
  border-top: 1px solid rgba(168, 153, 104, 0.25);
}
.nav-list li:last-child { border-bottom: 1px solid rgba(168, 153, 104, 0.25); }
.nav-list a {
  display: block;
  padding: 14px 8px;
  font-family: var(--f-display);
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-dark);
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, letter-spacing 0.22s ease;
}
.nav-list a:hover {
  background: rgba(93, 107, 58, 0.08);
  letter-spacing: 0.2em;
  color: var(--olive);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-revealed { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* — Tablet y teléfono grande (≤760px) — */
@media (max-width: 760px) {

  /* Intro: fix iOS Safari viewport-height — sobre centrado y la foto
     se levanta de forma más sutil para terminar también centrada */
  .intro {
    height: 100svh;
    min-height: -webkit-fill-available;
    cursor: pointer;
    touch-action: manipulation;
  }
  .intro-stage {
    padding: 16px;
    width: 100%;
    max-width: 100%;
  }

  .envelope {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 1.4s cubic-bezier(.3,.8,.3,1) .55s, filter 0.4s ease;
  }
  /* Durante la apertura: el sobre se desliza hacia abajo mientras la foto sube,
     para que la foto termine centrada visualmente en pantalla */
  .envelope.is-opening {
    transform: translateY(20vh);
  }
  /* En móvil la foto también emerge — un poco más conservador para no salirse */
  .envelope.photo-emerging .envelope-photo {
    top: -65%;
    transform: translateX(-50%) scale(1.3) rotate(-2deg);
  }

  /* Sección base: menos padding lateral */
  section {
    padding: clamp(44px, 8vw, 80px) clamp(16px, 4vw, 36px);
  }

  /* Hero */
  .hero-names { letter-spacing: 0.14em; }
  .hero-name  { font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
  .hero-amp   { font-size: clamp(4.5rem, 13vw, 7rem); }
  /* Más espacio abajo del carrusel para que las flores se vean completas */
  .hero-carousel-wrap { margin-bottom: clamp(120px, 30vw, 180px); }

  /* Padres: una sola columna */
  .parents { grid-template-columns: 1fr; gap: 12px; }

  /* Padrinos: 2 columnas */
  .padrinos-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Historia: una columna, foto siempre arriba */
  .story,
  .story.flip        { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .story.flip .story-photo { order: unset; }
  .story.flip .story-text  { order: unset; text-align: center; }
  .story-photo       { max-width: 280px; margin: 0 auto; }

  /* Ubicaciones y hoteles: una columna */
  .venue-cards { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .hotels      { grid-template-columns: 1fr; max-width: 340px; }

  /* Galería: 2 columnas */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Countdown */
  .countdown { gap: 16px; }

  /* Dress code: una sola columna en móvil */
  .dc-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .dc-split > .dc-col:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(245,241,232,0.2);
    padding-right: 0;
    padding-bottom: 32px;
  }
  .dc-split > .dc-col:last-child {
    padding-left: 0;
  }
}

/* — Teléfono (≤480px) — */
@media (max-width: 480px) {
  body { font-size: 17px; }

  .cursive { font-size: clamp(2rem, 8vw, 2.6rem); }

  section { padding: 38px 14px; }
  .countdown-band { padding: 38px 14px; }

  /* Hero */
  .hero { padding: 40px 14px 38px; }
  .hero-name  { font-size: 1.8rem; }
  .hero-amp   { font-size: 3.8rem; line-height: 0.8; }
  .hero-carousel-wrap { margin-bottom: 130px; }

  /* Countdown */
  .countdown { gap: 12px; }
  .countdown strong { font-size: 2rem; }

  /* Galería */
  .gallery-grid { gap: 6px; }
  .gallery-grid figure { padding: 5px 5px 16px; }

  /* Cartouche */
  .cartouche { width: 94%; }

  /* Rules */
  .rules-card { padding: 26px 14px; }
  .rules-card ol { padding-left: 18px; }

  /* Lightbox: botones más estrechos en móvil */
  .lb-nav { width: 44px; font-size: 2rem; padding: 10px 10px; }

  /* Footer branded Invita Kairós: ajustes móvil */
  .brand-footer { padding: 50px 16px 100px; }
  .brand-logo { width: 130px; }
  .brand-name { font-size: 2rem; }
  .brand-eyebrow, .brand-tagline { font-size: 0.88rem; }
  .brand-cta {
    font-size: 0.74rem;
    padding: 13px 20px;
    letter-spacing: 0.1em;
    max-width: 100%;
  }
  .brand-cta svg { width: 16px; height: 16px; }
  .brand-copy { font-size: 0.72rem; margin-top: 22px; }
  .brand-orbits { width: 160px; height: 160px; top: -10px; }
}

/* — Teléfono pequeño (≤360px) — */
@media (max-width: 360px) {
  body { font-size: 16px; }
  .hero-name      { font-size: 1.6rem; }
  .hero-amp       { font-size: 3.4rem; }
  .countdown strong { font-size: 1.8rem; }
  .countdown        { gap: 8px; }
  .gallery-grid     { gap: 5px; }
  /* Footer branded — teléfonos muy pequeños */
  .brand-logo { width: 120px; }
  .brand-name { font-size: 1.8rem; }
  .brand-cta { font-size: 0.68rem; padding: 12px 16px; letter-spacing: 0.08em; }
  .brand-cta svg { width: 14px; height: 14px; }
}

/* ============================================================
   RSVP FORM
   ============================================================ */

.rsvp-cartouche { width: min(560px, 92%); }

.rsvp-form {
  margin-top: 1.6em;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  text-align: left;
}

.rsvp-field { display: flex; flex-direction: column; gap: 8px; }

.rsvp-allotted {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--paper);
  opacity: 0.78;
  margin: 0;
  text-align: center;
}

.rsvp-field-label {
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
  margin: 0;
}

.rsvp-optional {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.72;
  font-size: 0.9em;
}

/* Selector de pases */
.passes-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pass-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.45);
  background: transparent;
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pass-btn:hover { background: rgba(245, 241, 232, 0.14); }
.pass-btn.is-active {
  background: var(--paper);
  color: var(--olive-dark);
  border-color: var(--paper);
  font-weight: 600;
  transform: scale(1.08);
}

/* Lista de invitados dinámica */
.guests-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guest-row {
  display: grid;
  grid-template-areas: "label label" "name age";
  grid-template-columns: 1fr 80px;
  gap: 6px 10px;
  animation: guestIn 0.3s ease forwards;
}

@keyframes guestIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.guest-row-label {
  grid-area: label;
  font-family: var(--f-cursive);
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin: 0;
}
.guest-name-wrap { grid-area: name; display: flex; flex-direction: column; gap: 4px; }
.guest-age-wrap  { grid-area: age;  display: flex; flex-direction: column; gap: 4px; }

.guest-sub-label {
  font-family: var(--f-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.65;
}

/* Inputs — fondo claro para que se vea que hay que llenarlos */
.rsvp-input {
  -webkit-appearance: none;
  appearance: none;
  background: #f5f1e8;
  border: 1.5px solid rgba(245, 241, 232, 0.5);
  border-radius: 6px;
  color: #2a2a1f;
  font-family: var(--f-serif);
  font-size: 1rem;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rsvp-input::placeholder {
  color: rgba(42, 42, 31, 0.42);
  font-style: italic;
}
.rsvp-input:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(184, 152, 90, 0.18);
}

.rsvp-textarea { resize: vertical; min-height: 82px; }

/* Error */
.rsvp-error {
  font-family: var(--f-serif);
  font-style: italic;
  color: #ffb3a0;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

/* Botón submit */
.rsvp-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 0.2em;
}
.rsvp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Estado éxito */
.rsvp-success { text-align: center; padding: 0.8em 0 0.4em; }
.rsvp-success-leaf { font-size: 2.6rem; margin-bottom: 0.5em; }
.rsvp-success-title {
  font-family: var(--f-cursive);
  font-size: 2.2rem;
  color: var(--paper);
  margin: 0 0 0.4em;
}
.rsvp-success-msg {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--paper);
  opacity: 0.88;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .guest-row { grid-template-columns: 1fr 70px; }
  .pass-btn { width: 40px; height: 40px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   NUEVOS ESTILOS — Kairos Pro Max (formulario corregido)
   Junio 2026 · Activando funciones
   ============================================================ */

/* Botones Sí/No de asistencia */
.attend-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.attend-btn {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 12px 16px;
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(245, 241, 232, 0.4);
  border-radius: 999px;
  font-family: var(--f-serif);
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.attend-btn:hover {
  background: rgba(245, 241, 232, 0.08);
  border-color: rgba(245, 241, 232, 0.7);
}
.attend-btn.is-active {
  background: var(--paper);
  color: var(--green-deep, #5d6b3a);
  border-color: var(--paper);
  font-weight: 500;
}

/* Opt-in growth loop */
.rsvp-optin {
  margin-top: 0.6em;
  padding: 0.8em 0;
}
.optin-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  color: rgba(245, 241, 232, 0.78);
  font-family: var(--f-serif);
  font-size: 0.88rem;
  line-height: 1.5;
}
.optin-row input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
}
.optin-row span strong {
  color: var(--paper);
  font-weight: 500;
}

/* Aviso legal de reCAPTCHA */
.rsvp-legal {
  margin-top: 0.6em;
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(245, 241, 232, 0.5);
  letter-spacing: 0.02em;
}

/* Botón "Únete al grupo de WhatsApp" en pantalla éxito */
.success-wa {
  margin-top: 1.4em;
  padding-top: 1.4em;
  border-top: 1px dashed rgba(245, 241, 232, 0.25);
}
.success-wa-pre {
  font-family: var(--f-serif);
  font-style: italic;
  color: rgba(245, 241, 232, 0.85);
  font-size: 0.95rem;
  margin: 0 0 0.8em;
}
.success-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--f-serif);
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.success-wa-btn:hover {
  transform: transl
/* Hint sutil arriba de la lista de invitados */
.guests-list-hint {
  margin: 1em 0 0.5em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(245, 241, 232, 0.65);
  letter-spacing: 0.02em;
}
.guests-list:empty + .guests-list-hint,
#attend-yes-block .guests-list:empty { display: none; }

/* Input de cantidad de invitados — destaca como decisión importante */
.rsvp-cantidad {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: var(--f-serif);
  letter-spacing: 0.05em;
  max-width: 160px;
  margin: 0.4em auto 0;
  padding: 12px 14px;
}
/* Ocultar flechitas nativas de Chrome/Safari */
.rsvp-cantidad::-webkit-outer-spin-button,
.rsvp-cantidad::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rsvp-cantidad { -moz-appearance: textfield; }


/* ===== RSVP popup modal + barra flotante (personalizacion por invitado) ===== */
.rsvp-open-btn { margin-top: 0.4em; }
.rsvp-modal-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(40,42,30,0.6); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(14px,4vw,40px); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.rsvp-modal-backdrop.is-open { opacity: 1; visibility: visible; }
.rsvp-modal {
  position: relative; width: min(540px, 100%); margin: auto;
  background: var(--olive); color: var(--paper);
  border-radius: 28px; box-shadow: var(--shadow);
  padding: clamp(30px,5vw,48px) clamp(20px,4vw,40px);
  transform: translateY(18px); transition: transform .3s ease;
}
.rsvp-modal-backdrop.is-open .rsvp-modal { transform: translateY(0); }
.rsvp-modal-close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px;
  border: none; cursor: pointer; border-radius: 50%; line-height: 1;
  background: rgba(245,241,232,0.16); color: var(--paper); font-size: 1.5rem;
}
.rsvp-modal-head { text-align: center; margin-bottom: 1.3em; }
.rsvp-modal-pre { font-family: var(--f-serif); font-style: italic; opacity: 0.9; margin: 0 0 0.25em; }
.rsvp-modal-name { font-family: var(--f-display); font-size: clamp(1.2rem,2.6vw,1.6rem); letter-spacing: 0.04em; color: var(--gold-soft); margin: 0; }
.rsvp-modal .rsvp-form { margin-top: 0; }

.rsvp-fab {
  position: fixed; left: 50%; bottom: 18px; z-index: 1100;
  transform: translateX(-50%) translateY(160%);
  display: flex; align-items: center; gap: 14px;
  width: min(440px, calc(100% - 26px));
  background: var(--olive); color: var(--paper);
  padding: 12px 14px 12px 22px; border-radius: 100px;
  box-shadow: 0 12px 32px rgba(40,42,30,0.34);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.rsvp-fab.is-visible { transform: translateX(-50%) translateY(0); }
.rsvp-fab-text { flex: 1; font-family: var(--f-serif); font-style: italic; font-size: 0.96rem; line-height: 1.25; }
.rsvp-fab-btn {
  white-space: nowrap; border: none; cursor: pointer; font-weight: 600;
  font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold-soft); color: var(--olive-deep);
  padding: 11px 20px; border-radius: 100px;
}
@media (max-width: 480px) {
  .rsvp-fab { padding: 10px 12px 10px 18px; gap: 10px; }
  .rsvp-fab-text { font-size: 0.84rem; }
  .rsvp-fab-btn { padding: 10px 14px; font-size: 0.72rem; }
}
