/* ============================================================================
   ANA & ESTEF · INVITATION v3 — "Globetrotters" Theme World
   Bespoke editorial · terracotta + cream + sage + copper
   ============================================================================ */

:root {
  /* Paleta */
  --ink:          #1F1812;
  --ink-soft:     #3A2A1E;
  --terracotta:   #9F5639;
  --terracotta-d: #7A3F26;
  --terracotta-l: #C68A5D;
  --copper:       #B86D43;
  --cream:        #F5EBD7;
  --cream-light:  #FAF3E3;
  --cream-warm:   #ECDDC0;
  --sage:         #6F7B5C;
  --sage-light:   #A6AE93;
  --line:         rgba(31,24,18,.14);
  --line-light:   rgba(31,24,18,.08);
  --line-on-dark: rgba(245,235,215,.18);

  --serif:    "Cormorant Garamond", "Times New Roman", serif;
  --serif-i:  "Cormorant Infant", "Cormorant Garamond", serif;
  --script:   "Pinyon Script", "Italianno", cursive;
  --script-c: "Italianno", cursive;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-back: cubic-bezier(.65,-.05,.3,1.15);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
/* hero-lock REMOVIDO · causaba scroll trabado en iOS Safari */
img, svg, iframe, picture { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { background: transparent; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }

/* ── Tokens de helpers ──────────────────────────────────────────────────── */
.kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: block;
}
.kicker--small { font-size: 9px; margin-bottom: 14px; }
.kicker--light { color: rgba(245,235,215,.85); }

.muted { color: var(--ink-soft); opacity: .7; font-size: 14px; font-family: var(--serif-i); font-style: italic; }

.serif-title {
  font-family: var(--serif-i);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 7vw, 48px);
  color: var(--ink);
  margin-bottom: 14px;
}
.serif-title--light { color: var(--cream); }

.ornament-line {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--terracotta);
  margin: 18px auto 24px;
  font-size: 13px;
  font-family: var(--serif-i);
}
.ornament-line span {
  display: inline-block;
  width: 48px; height: 1px;
  background: var(--terracotta);
}
.ornament-line.light { color: rgba(245,235,215,.6); }
.ornament-line.light span { background: rgba(245,235,215,.4); }
.ornament-line.center { justify-content: center; }

/* ============================================================================
   TOPBAR (idioma + audio)
   ============================================================================ */
.topbar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 16px; right: 16px;
  z-index: 80;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
body:not(.is-loading) .topbar { opacity: 1; }
.topbar > * { pointer-events: auto; }

.lang-switch, .audio-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(245,235,215,.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  color: var(--ink);
  transition: all .25s var(--ease);
}
.lang-switch:hover, .audio-toggle:hover {
  background: var(--cream);
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.audio-toggle { width: 38px; height: 38px; padding: 0; justify-content: center; }
.audio-toggle[aria-pressed="true"] { color: var(--terracotta); border-color: var(--terracotta); }
.audio-toggle[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -3px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  opacity: .4;
  animation: audioPulse 2s ease-out infinite;
}
@keyframes audioPulse {
  0%   { transform: scale(.95); opacity: .6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================================================
   SPLASH LOADER
   ============================================================================ */
.splash {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(159,86,57,.08), transparent 70%),
    var(--cream);
  transition: opacity .9s var(--ease), visibility .9s;
}
body:not(.is-loading) .splash { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__inner { text-align: center; padding: 24px; animation: splashFade 1.8s var(--ease) both; }
.splash__eyebrow {
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--terracotta);
  opacity: 0;
  animation: splashSlide .9s var(--ease) .15s both;
}
.splash__names {
  font-family: var(--script);
  font-size: clamp(64px, 16vw, 110px);
  color: var(--ink);
  margin: 18px 0;
  font-weight: 400;
  line-height: 1;
}
.splash__names span {
  display: inline-block;
  opacity: 0;
  animation: splashName .9s var(--ease) both;
}
.splash__names span:nth-child(1) { animation-delay: .4s; }
.splash__names em {
  font-style: normal;
  color: var(--terracotta);
  margin: 0 .15em;
  font-size: .8em;
  opacity: 0;
  animation: splashAmp .6s var(--ease-back) .9s both;
  display: inline-block;
}
.splash__names span:nth-child(3) { animation-delay: 1.1s; }

.splash__line {
  width: 0; height: 1px;
  background: var(--terracotta);
  margin: 24px auto;
  animation: splashLine .8s var(--ease) 1.7s both;
}
.splash__hint {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: .15em;
  opacity: 0;
  animation: splashSlide .8s var(--ease) 2.1s both;
}

@keyframes splashFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes splashSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splashName { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes splashAmp { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes splashLine { to { width: 80px; } }

/* ============================================================================
   SCENE SYSTEM
   ============================================================================ */
.scene {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.scene-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  padding: 100px 28px 90px;
  text-align: center;
}
.scene-content--wide { max-width: 720px; }
.scene-content--form { max-width: 480px; }

.scene--cream         { background: var(--cream); }
.scene--paper-soft    { background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%); }
.scene--paper         { background: var(--cream); position: relative; }
.scene--paper::before {
  content: ""; position: absolute; inset: 0;
  background-image: url(../assets/img/toile-pattern.webp);
  background-size: 260px;
  background-repeat: repeat;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================================
   WATERCOLOR ILLUSTRATIONS · Section dividers + accent motifs
   Inspirado por Heritage theme thedigitalyes pero superior
   (4 ilustraciones hand-painted con motivos custom Ana&Estef)
   ============================================================================ */
.illust {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.illust.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.illust--monogram { max-width: 420px; margin: 8px auto 0; }
.illust--doves    { max-width: 480px; margin: 24px auto -8px; opacity: .92; }
.illust--temple   { max-width: 280px; margin: 32px auto; filter: drop-shadow(0 8px 24px rgba(31,24,18,.06)); }
.illust--fountain { max-width: 560px; margin: 24px auto 8px; opacity: .9; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .illust { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   SCENE 1 — COVER PAGE (estilo Heritage)
   Toile pattern bg + sello centrado + "tocá para abrir"
   Apertura = SLIDE UP REVEAL (no flap, no fold, no cartoon)
   ============================================================================ */
/* ── Video cinema del sello (Higgsfield Seedance) ─────────────────────── */
.seal-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.seal-video.is-ready { opacity: 1; }
.seal-video.is-playing { opacity: 1; }
/* Cuando el video aparece, ocultamos el toile estático (queda más limpio) */
.seal-video.is-ready ~ .scene__toile,
.seal-video.is-ready ~ .scene__toile-veil { opacity: 0; transition: opacity .8s; }

/* Sello PNG queda como surface invisible para captar el tap encima del video */
.wax-seal--ghost {
  opacity: 0;
  position: relative;
  z-index: 4;
}
.wax-seal--ghost .wax-seal__pulse {
  opacity: 0;
}
/* Pero hacemos el área tap-friendly */
.wax-seal--ghost {
  cursor: pointer;
  pointer-events: auto;
}

/* Cover overlay: greet + invite + cta encima del video con sombra fuerte */
.scene--envelope .cover-stage {
  z-index: 3;
}
.scene--envelope .cover-greet,
.scene--envelope .cover-invite,
.scene--envelope .cover-cta,
.scene--envelope .cover-ornament {
  text-shadow: 0 2px 12px rgba(0,0,0,.5), 0 0 30px rgba(0,0,0,.3);
}
.scene--envelope.has-video .cover-greet em,
.scene--envelope.has-video .cover-invite {
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
}
.scene--envelope.has-video .cover-greet span,
.scene--envelope.has-video .cover-cta {
  color: rgba(245,235,215,.8);
}

/* ── ENVELOPE FIXED OVERLAY ─────────────────────────────────────────────
   El sobre es un overlay full-screen FIXED encima del hero (que ya está
   renderizado debajo). Al abrir: fade-out + el hero aparece debajo sin
   salto ni scroll automático. iOS Safari friendly.
*/
.scene--envelope {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 50;
  background: var(--cream);
  text-align: center;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: opacity 1.1s cubic-bezier(.4,.0,.2,1),
              transform 1.1s cubic-bezier(.4,.0,.2,1),
              filter   1.1s cubic-bezier(.4,.0,.2,1);
  will-change: opacity, transform, filter;
}

/* Cuando abre: dissolve + leve zoom + blur sutil — cinematográfico */
.scene--envelope.is-opening {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(4px);
  pointer-events: none;
}
.scene--envelope.is-gone { display: none; }

/* Hero arranca normal (opacity 1). El cover está fixed encima hasta abrir.
   Cuando el cover sale, el hero ya está renderizado debajo. */
.scene--hero {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1),
              transform 1.4s cubic-bezier(.4,0,.2,1);
}
/* Sutil "settle in" cuando cover-opened se activa */
body.cover-opened .scene--hero { opacity: 1; transform: scale(1); }
.scene__toile {
  position: absolute; inset: 0;
  z-index: 0;
  background-image: url(../assets/img/toile-pattern.webp);
  background-size: 320px;
  background-repeat: repeat;
  animation: toileFade 1.6s var(--ease) .4s both;
}
@keyframes toileFade { from { opacity: 0; } to { opacity: 1; } }
.scene__toile-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(60% 60% at 50% 45%, rgba(245,235,215,.55), rgba(245,235,215,.85) 80%);
}

/* Cover stage (contenedor del contenido) */
.cover-stage {
  position: relative;
  z-index: 3;
  padding: 0 28px;
  text-align: center;
  animation: envelopeIn 1.4s var(--ease) 1.8s both;
  transition: opacity .5s var(--ease);
}
/* Stage (legacy compatibility, unused) */
.envelope-stage {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  animation: envelopeIn 1.4s var(--ease) 1.8s both;
}
@keyframes envelopeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* ── Cover content (Heritage style) ─────────────────────────────────────── */
.cover-greet {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 56px;
  letter-spacing: .04em;
  transition: opacity .5s var(--ease);
}
.cover-greet em {
  display: block;
  margin-top: 6px;
  font-family: var(--script);
  font-style: normal;
  color: var(--terracotta);
  font-size: 42px;
  line-height: 1;
}

/* Sello CENTRADO, sin 3D, solo flota sobre el toile */
.wax-seal {
  position: relative;
  display: block;
  margin: 0 auto;
  width: clamp(150px, 42vw, 200px);
  height: auto;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .5s var(--ease-back), opacity .8s var(--ease);
  filter: drop-shadow(0 14px 28px rgba(159,86,57,.4));
}
.wax-seal picture, .wax-seal img {
  width: 100%; height: auto;
  display: block;
  pointer-events: none;
}
.wax-seal:hover { transform: rotate(-8deg) scale(1.04); }
.wax-seal:active { transform: rotate(-3deg) scale(.97); }
.wax-seal__pulse {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(159,86,57,.5);
  animation: sealPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes sealPulse {
  0%   { box-shadow: 0 0 0 0 rgba(159,86,57,.5); }
  70%  { box-shadow: 0 0 0 28px rgba(159,86,57,0); }
  100% { box-shadow: 0 0 0 0 rgba(159,86,57,0); }
}

/* APERTURA — sello desvanece + flash dorado breve (efecto "magia") */
.wax-seal.is-fading {
  animation: sealFade 1.2s cubic-bezier(.4,.0,.3,1) forwards;
  pointer-events: none;
}
.wax-seal.is-fading .wax-seal__pulse { display: none; }
@keyframes sealFade {
  0%   { transform: scale(1) rotate(0);       opacity: 1; filter: drop-shadow(0 14px 28px rgba(159,86,57,.4)) blur(0); }
  25%  { transform: scale(1.18) rotate(-2deg); opacity: 1; filter: drop-shadow(0 0 50px rgba(232,184,130,.85)) brightness(1.2) blur(0); }
  60%  { transform: scale(1.35) rotate(3deg);  opacity: .55; filter: drop-shadow(0 0 60px rgba(232,184,130,.5)) brightness(1.1) blur(4px); }
  100% { transform: scale(1.6) rotate(6deg);   opacity: 0; filter: drop-shadow(0 0 0 rgba(232,184,130,0)) blur(12px); }
}

/* Flash dorado breve detrás del sello al abrir */
.wax-seal.is-fading::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(232,184,130,.8) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  animation: goldFlash 1s cubic-bezier(.4,.0,.3,1) forwards;
  pointer-events: none;
}
@keyframes goldFlash {
  0%   { opacity: 0; transform: scale(.4); }
  30%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2); }
}

.cover-invite {
  margin-top: 48px;
  font-family: var(--script);
  font-size: clamp(34px, 8vw, 48px);
  color: var(--ink);
  line-height: 1;
  transition: opacity .5s var(--ease);
}

.cover-ornament {
  width: 80px; height: 16px;
  margin: 28px auto 18px;
  color: var(--terracotta);
  opacity: .5;
  transition: opacity .5s var(--ease);
}

.cover-cta {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--ink-soft);
  text-transform: uppercase;
  animation: ctaBreathe 2.6s ease-in-out 2.6s infinite;
  transition: opacity .5s var(--ease);
}
@keyframes ctaBreathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* Cuando el cover se desvanece: todo el contenido fade out excepto el sello */
.cover-stage.is-fading .cover-greet,
.cover-stage.is-fading .cover-invite,
.cover-stage.is-fading .cover-ornament,
.cover-stage.is-fading .cover-cta {
  opacity: 0;
  pointer-events: none;
}

/* SLIDE UP REVEAL: toda la escena envelope se va hacia arriba */
.scene--envelope.is-opening {
  transform: translateY(-100%);
}
/* Al final del slide-up, eliminamos del flujo */
.scene--envelope.is-gone {
  display: none;
}

/* ============================================================================
   SCENE 2 — HERO (foto íntima full-bleed)
   ============================================================================ */
.scene__photo {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.scene__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.kenburns { animation: kenBurns 22s ease-in-out infinite alternate; }
@keyframes kenBurns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-2%); }
}
/* Hero video — patrón iOS-safe (mismo que Abercuyo/AndesFly) */
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #1f1812;  /* fallback color mientras carga */
}
.scene__photo-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(31,24,18,.15) 0%, rgba(31,24,18,.45) 50%, rgba(31,24,18,.75) 100%);
}
.scene__photo-veil--strong {
  background:
    linear-gradient(180deg, rgba(31,24,18,.55) 0%, rgba(31,24,18,.55) 50%, rgba(31,24,18,.85) 100%);
}

.hero-card {
  position: relative; z-index: 2;
  text-align: center;
  padding: 80px 24px;
  color: var(--cream);
}
.hero-script {
  font-family: var(--script);
  font-size: clamp(20px, 5.5vw, 28px);
  color: var(--cream);
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) .5s both;
}
.hero-names {
  font-family: var(--script);
  font-size: clamp(80px, 22vw, 180px);
  line-height: .82;
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
  display: grid; place-items: center; gap: 0;
}
.hero-names > span {
  display: block;
  background: linear-gradient(180deg, #FFF6E5 30%, var(--terracotta-l) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
}
.hero-names__a { animation: heroNameIn 1.4s var(--ease) .8s both; }
.hero-names__b { animation: heroNameIn 1.4s var(--ease) 1.4s both; }
.hero-names__amp {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: .3em !important;
  -webkit-text-fill-color: var(--terracotta-l) !important;
  color: var(--terracotta-l);
  background: none !important;
  margin: -.1em 0 !important;
  opacity: 0;
  animation: heroAmpIn .8s var(--ease-back) 1.3s both;
}
@keyframes heroNameIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes heroAmpIn {
  from { opacity: 0; transform: scale(.2) rotate(-20deg); }
  to   { opacity: 1; transform: none; }
}
.hero-invite {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: clamp(16px, 4vw, 20px);
  color: var(--cream);
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 2s both;
}
.hero-date {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: clamp(18px, 4.5vw, 24px);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 8px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 2.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.scroll-cue {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.scroll-cue span {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--cream));
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================================
   SCENE 3 — SAVE THE DATE
   ============================================================================ */
.watercolor-divider {
  width: 100%;
  height: 120px;
  background: url(../assets/img/watercolor-bouquet.webp) center/contain no-repeat;
  position: absolute;
  z-index: 1;
}
.watercolor-divider.top { top: 0; }
.watercolor-divider.bottom { bottom: 0; transform: scaleY(-1); }

.date-card {
  margin: 24px 0;
  text-align: center;
  color: var(--ink);
}
.date-card__weekday {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 20px;
  letter-spacing: .2em;
  text-transform: lowercase;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.date-card__day {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(96px, 28vw, 180px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding: 0 32px;
}
.date-card__day::before, .date-card__day::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 24px; height: 1px;
  background: var(--terracotta);
}
.date-card__day::before { left: 0; }
.date-card__day::after  { right: 0; }
.date-card__monthyear {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 32px auto 28px;
}
.countdown > div {
  background: rgba(159,86,57,.04);
  border: 1px solid rgba(159,86,57,.18);
  border-radius: 10px;
  padding: 14px 4px 10px;
}
.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: clamp(22px, 6vw, 30px);
  color: var(--ink);
  line-height: 1;
}
.countdown em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.calendar-buttons {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

/* ── Wallet prompt (destacado vs add-to-calendar regular) ──────────────── */
.wallet-prompt {
  margin-top: 32px;
  padding: 20px;
  background: linear-gradient(180deg, var(--ink) 0%, #2E1F15 100%);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wallet-prompt::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(201,169,97,.15), transparent 70%);
  pointer-events: none;
}
.wallet-prompt .kicker { color: var(--gold); }
.wallet-prompt__text {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 15px;
  color: var(--cream);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.btn-wallet {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  position: relative;
  z-index: 1;
}
.btn-wallet:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201,169,97,.25);
}

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.btn-pill:hover { background: var(--ink); color: var(--cream); }

.btn-fill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 100px;
  background: var(--terracotta);
  color: var(--cream);
  border: 1px solid var(--terracotta);
  transition: all .25s var(--ease);
}
.btn-fill:hover { background: var(--terracotta-d); border-color: var(--terracotta-d); transform: translateY(-1px); }
.btn-fill--full { width: 100%; justify-content: center; }

/* ============================================================================
   SCENE 4 — HISTORIA
   ============================================================================ */
.timeline {
  list-style: none;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(159,86,57,.5), transparent);
}
.timeline li {
  position: relative;
  padding: 26px 0;
  text-align: center;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 50%; top: 30px;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px rgba(159,86,57,.4);
}
.timeline .yr {
  display: block;
  font-family: var(--script);
  font-size: 30px;
  color: var(--terracotta);
  margin-top: 28px;
}
.timeline h3 {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: clamp(22px, 5vw, 28px);
  color: var(--ink);
  margin: 4px 0 8px;
}
.timeline p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================================
   SCENE 5 — MAPA (ilustrado)
   ============================================================================ */
.scene--map {
  background: var(--cream);
  position: relative;
}
.scene--map::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url(../assets/img/toile-pattern.webp);
  background-size: 260px;
  opacity: .04;
  pointer-events: none;
}
.map-illustrated {
  position: relative;
  margin-top: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(31,24,18,.18),
    inset 0 0 0 1px rgba(159,86,57,.2);
}
.map-illustrated img {
  width: 100%; height: auto;
  display: block;
}
.map-pins {
  position: absolute; inset: 0;
  list-style: none;
  pointer-events: none;
}

/* ============================================================================
   SCENE 6 — DAY (schedule)
   ============================================================================ */
.scene--day .scene-content { color: var(--cream); }

.schedule {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.schedule__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(245,235,215,.08);
  border: 1px solid rgba(245,235,215,.15);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all .3s var(--ease);
}
.schedule__item:hover {
  background: rgba(245,235,215,.14);
  border-color: rgba(201,138,93,.4);
}
.schedule__chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px;
  padding: 7px 12px;
  background: var(--terracotta);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  border-radius: 100px;
}
.schedule__body {}
.schedule__title {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 20px;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}
.schedule__subtitle {
  font-size: 12px;
  color: rgba(245,235,215,.65);
  margin-top: 2px;
}
.schedule__icon {
  width: 16px; height: 16px;
  margin-right: 6px;
  display: inline-block;
  color: var(--terracotta-l);
  vertical-align: middle;
}

/* ============================================================================
   SCENE 7 — VENUE
   ============================================================================ */
.venue-addr {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 15px;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.venue-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0 22px;
  box-shadow: 0 14px 32px rgba(31,24,18,.12);
  border: 1px solid rgba(159,86,57,.2);
}
.venue-map iframe {
  width: 100%; height: 100%;
  border: 0;
  /* Sepia warm treatment */
  filter: sepia(.4) saturate(.85) brightness(1.02) contrast(.95);
}
.venue-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}

/* ============================================================================
   SCENE 8 — DRESS CODE
   ============================================================================ */
.dress-desc {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.palette {
  display: flex; justify-content: center; gap: 14px;
  margin-bottom: 24px;
}
.palette span {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(31,24,18,.15);
  transition: transform .3s var(--ease);
}
.palette span:hover { transform: scale(1.08); }
.palette span::after {
  content: attr(data-hex);
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  opacity: .5;
  white-space: nowrap;
}

/* ============================================================================
   SCENE 9 — GALERÍA
   ============================================================================ */
.scene--gallery {
  background: var(--ink);
  color: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform .4s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 998;
  display: grid; place-items: center;
  background: rgba(10,9,7,.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: rgba(245,235,215,.1);
  color: var(--cream);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
}

/* ============================================================================
   SCENE 10 — REGALOS
   ============================================================================ */
.gifts-msg {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.gift-card {
  background: var(--cream-warm);
  padding: 28px 24px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid rgba(159,86,57,.2);
  box-shadow: 0 14px 30px rgba(31,24,18,.08);
}
.gift-card__label {
  font-size: 10px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.gift-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}
.gift-card dt {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding-top: 4px;
}
.gift-card dd {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  word-break: break-all;
}

.gift-link {
  display: block;
  margin-top: 16px;
  padding: 18px;
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 17px;
  color: var(--terracotta);
  border: 1px dashed rgba(159,86,57,.4);
  border-radius: 12px;
  transition: all .25s var(--ease);
  text-align: center;
}
.gift-link:hover {
  background: rgba(159,86,57,.06);
  border-style: solid;
}

/* ============================================================================
   SCENE 11 — SPOTIFY
   ============================================================================ */
.spotify-wrap {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(31,24,18,.1);
}
#spotifyEmbed {
  width: 100%;
  height: 152px;
  border: 0;
}

/* ============================================================================
   SCENE 12 — RSVP
   ============================================================================ */
.rsvp-form {
  display: grid;
  gap: 18px;
  text-align: left;
  margin-top: 36px;
}
.field { display: grid; gap: 8px; }
.field label, .field legend {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream-light);
  border: 1px solid rgba(159,86,57,.2);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  transition: all .2s;
}
.field input:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--terracotta);
  background: #FFF;
}
.field textarea { resize: vertical; min-height: 80px; font-family: var(--sans); }

.field--radio, .field--checks {
  border: 0; padding: 0; margin: 0;
}
.field--radio legend, .field--checks legend { margin-bottom: 10px; }

.radio {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(159,86,57,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px;
  background: var(--cream-light);
}
.radio:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(159,86,57,.06);
}
.radio input {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(159,86,57,.3);
  border-radius: 50%;
  position: relative;
}
.radio input:checked { border-color: var(--terracotta); }
.radio input:checked::after {
  content: "";
  position: absolute; inset: 3px;
  background: var(--terracotta);
  border-radius: 50%;
}
.radio span { font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }

/* Checks (allergies) */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--cream-light);
  border: 1px solid rgba(159,86,57,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}
.check:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(159,86,57,.06);
}
.check input {
  appearance: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(159,86,57,.3);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.check input:checked { background: var(--terracotta); border-color: var(--terracotta); }
.check input:checked::after {
  content: "";
  position: absolute;
  left: 3px; top: 0;
  width: 4px; height: 8px;
  border: 2px solid var(--cream);
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
}

[data-show-if] { display: none; }
[data-show-if].is-shown { display: grid; animation: fadeUp .5s var(--ease) both; }

.cta-terracotta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 18px 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  border-radius: 100px;
  background: linear-gradient(180deg, var(--terracotta-l) 0%, var(--terracotta) 100%);
  color: var(--cream);
  box-shadow: 0 14px 30px rgba(159,86,57,.25);
  transition: all .3s var(--ease);
}
.cta-terracotta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(159,86,57,.4);
}
.cta-terracotta:active { transform: translateY(0); }
.cta-terracotta__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(245,235,215,.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  display: none;
  animation: spin .8s linear infinite;
}
.cta-terracotta.is-loading .cta-terracotta__label { opacity: .4; }
.cta-terracotta.is-loading .cta-terracotta__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  color: #B8412E;
  font-size: 13px;
  text-align: center;
  background: rgba(184,65,46,.08);
  padding: 12px;
  border-radius: 10px;
  margin-top: 8px;
}

/* RSVP Success */
.rsvp-success {
  text-align: center;
  padding: 24px 0;
  animation: fadeUp .8s var(--ease) both;
}
.rsvp-success__seal {
  width: 110px; height: auto;
  margin: 0 auto 24px;
  animation: sealLand .8s var(--ease-back) both;
}
.rsvp-success__seal img { width: 100%; height: auto; }
@keyframes sealLand {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(-6deg); opacity: 1; }
}
.rsvp-success h3 {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: clamp(26px, 6vw, 36px);
  margin-bottom: 12px;
  color: var(--ink);
}
.rsvp-success p {
  font-family: var(--serif-i);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.rsvp-success__actions {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}

/* ============================================================================
   SCENE 13 — CLOSING
   ============================================================================ */
.scene--closing .scene-content { color: var(--cream); }
.closing-script {
  font-family: var(--script);
  font-size: clamp(28px, 7vw, 40px);
  color: rgba(245,235,215,.85);
  margin-bottom: 12px;
}
.closing-names {
  font-family: var(--script);
  font-size: clamp(64px, 16vw, 110px);
  background: linear-gradient(180deg, var(--cream) 30%, var(--terracotta-l) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 32px;
}
.closing-hashtag {
  font-family: var(--serif-i);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .15em;
  color: var(--terracotta-l);
  padding: 12px 24px;
  border: 1px solid rgba(201,138,93,.4);
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 32px;
}

.btn-share {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 100px;
  background: #25D366;
  color: white;
  transition: all .25s var(--ease);
}
.btn-share:hover { background: #1DA851; transform: translateY(-1px); }

.closing-agency {
  margin-top: 60px;
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(245,235,215,.4);
}
.closing-agency a { color: var(--terracotta-l); }

/* ============================================================================
   CANVAS PARTICLES (dust)
   ============================================================================ */
#dustCanvas {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .55;
  mix-blend-mode: screen;
}

/* ============================================================================
   REVEAL ON SCROLL — SIMPLIFICADO: todas las escenas siempre visibles.
   No más has-reveal gating (causaba bug donde IO no triggereaba en algunos casos).
   Las watercolor illustrations adentro siguen teniendo fade-in propio.
   ============================================================================ */
.scene { opacity: 1; }
.envelope-wrap { opacity: 1; }
.scene__toile  { opacity: 1; }

/* ============================================================================
   MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #dustCanvas { display: none; }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .checks-grid  { grid-template-columns: repeat(3, 1fr); }
  .rsvp-success__actions { flex-direction: row; }
}
