/* ============================================================================
   Lazo · tarjeta modelo · INVITATION v3 — "Globetrotters" Theme World
   Bespoke editorial · terracotta + cream + sage + copper
   ============================================================================ */

:root {
  /* Paleta */
  --ink:          #1d3d40;
  --ink-soft:     #3A2A1E;
  --terracotta:   #b4583c;
  --terracotta-d: #7A3F26;
  --terracotta-l: #C68A5D;
  --copper:       #B86D43;
  --cream:        #eef0ea;
  --cream-light:  #FAF3E3;
  --cream-warm:   #ECDDC0;
  --sage:         #6F7B5C;
  --sage-light:   #A6AE93;
  --line:         rgba(29,61,64,.14);
  --line-light:   rgba(29,61,64,.08);
  --line-on-dark: rgba(240,242,236,.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(240,242,236,.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(240,242,236,.6); }
.ornament-line.light span { background: rgba(240,242,236,.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(240,242,236,.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 svg[hidden] { display: none; }
.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(180,88,60,.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: none; } 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?v=2);
  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 Lazo · tarjeta modelo)
   ============================================================================ */
.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(29,61,64,.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(240,242,236,.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: none;
  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?v=2);
  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(240,242,236,.55), rgba(240,242,236,.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(180,88,60,.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(192,106,72,.5);
  animation: sealPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes sealPulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,106,72,.5); }
  70%  { box-shadow: 0 0 0 28px rgba(180,88,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(180,88,60,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(180,88,60,.4)) blur(0); }
  25%  { transform: scale(1.18) rotate(-2deg); opacity: 1; filter: drop-shadow(0 0 50px rgba(217,170,110,.85)) brightness(1.2) blur(0); }
  60%  { transform: scale(1.35) rotate(3deg);  opacity: .55; filter: drop-shadow(0 0 60px rgba(217,170,110,.5)) brightness(1.1) blur(4px); }
  100% { transform: scale(1.6) rotate(6deg);   opacity: 0; filter: drop-shadow(0 0 0 rgba(217,170,110,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(217,170,110,.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: #1d3d40;  /* fallback color mientras carga */
}
.scene__photo-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(29,61,64,.15) 0%, rgba(29,61,64,.45) 50%, rgba(29,61,64,.75) 100%);
}
.scene__photo-veil--strong {
  background:
    linear-gradient(180deg, rgba(29,61,64,.55) 0%, rgba(29,61,64,.55) 50%, rgba(29,61,64,.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: none; }
  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, 26vw, 168px);
  line-height: 1;
  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);
  margin-top: 10px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 32px auto 28px;
}
.countdown > div {
  background: rgba(180,88,60,.04);
  border: 1px solid rgba(180,88,60,.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%, #152f31 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(180,88,60,.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(180,88,60,.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?v=2);
  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(29,61,64,.18),
    inset 0 0 0 1px rgba(180,88,60,.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(240,242,236,.08);
  border: 1px solid rgba(240,242,236,.15);
  border-radius: 12px;
  backdrop-filter: none;
  transition: all .3s var(--ease);
}
.schedule__item:hover {
  background: rgba(240,242,236,.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(240,242,236,.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(29,61,64,.12);
  border: 1px solid rgba(180,88,60,.2);
}
.venue-map iframe, .venue-map img {
  width: 100%; height: 100%;
  object-fit: cover;
  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(29,61,64,.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(240,242,236,.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(180,88,60,.2);
  box-shadow: 0 14px 30px rgba(29,61,64,.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(180,88,60,.4);
  border-radius: 12px;
  transition: all .25s var(--ease);
  text-align: center;
}
.gift-link:hover {
  background: rgba(180,88,60,.06);
  border-style: solid;
}

/* ============================================================================
   SCENE 11 — SPOTIFY
   ============================================================================ */
.spotify-wrap {
  margin-top: 28px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(29,61,64,.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(180,88,60,.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(180,88,60,.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(180,88,60,.06);
}
.radio input {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(180,88,60,.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(180,88,60,.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
}
.check:has(input:checked) {
  border-color: var(--terracotta);
  background: rgba(180,88,60,.06);
}
.check input {
  appearance: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(180,88,60,.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(180,88,60,.25);
  transition: all .3s var(--ease);
}
.cta-terracotta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(180,88,60,.4);
}
.cta-terracotta:active { transform: translateY(0); }
.cta-terracotta__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(240,242,236,.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(240,242,236,.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(240,242,236,.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; }
}

/* Fix: respetar el atributo hidden sobre .scene{display:grid} (review 12 jun) */
.scene[hidden] { display: none !important; }

/* ════════════════════════════════════════════════════════════════════════
   DIFERENCIACIÓN POR TARJETA · acento + etiqueta de evento en la tapa
   ════════════════════════════════════════════════════════════════════════ */
:root { --card-accent: #B86D43; }
.cover-event-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--card-accent);
  text-align: center;
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .92;
}
.cover-event-label::before,
.cover-event-label::after {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
/* acento en kickers (salvo los claros sobre fondo oscuro) y ornamentos */
.kicker:not(.kicker--light) { color: var(--card-accent); }
.ornament-line:not(.light) span { background: var(--card-accent); opacity: .7; }

/* tinte de acento en el SOBRE · cada tarjeta su atmósfera (halo detrás del sello) */
.scene--envelope::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: radial-gradient(46% 34% at 50% 43%, rgba(192,106,72,.28), rgba(192,106,72,0) 70%);
}
.scene__toile-veil {
  background: radial-gradient(60% 60% at 50% 45%,
    rgba(192,106,72,.10), rgba(240,242,236,.86) 80%) !important;
}

/* pareja ilustrada del dress code (civil / convivencia) */
.dress-couple-illustration{
  display:block; margin:26px auto 10px;
  max-width:min(86%, 360px); height:auto;
  filter: drop-shadow(0 16px 26px rgba(29,61,64,.16));
  opacity:1; transform:none;
  animation: dcFadeIn 1s cubic-bezier(.23,1,.32,1) both;
}
#sceneDress.is-in .dress-couple-illustration,
#sceneDress.is-visible .dress-couple-illustration{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .dress-couple-illustration{ opacity:1!important; transform:none!important; transition:none; }
}

/* ── FIX 26 jun: escenas de contenido corto NO fuerzan 100vh (sacan huecos vacíos) ── */
#sceneDress, #sceneVenue, #sceneSpotify, #scenePacking, #sceneOutfits {
  min-height: auto;
  padding-top: 12vh;
  padding-bottom: 12vh;
}

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

/* FIX overlap: el bouquet (divider top) no debe pisar el texto de la escena */
#sceneDate .watercolor-divider.top,
#sceneStory .watercolor-divider.top { height: 92px; }
#sceneDate .scene-content,
#sceneStory .scene-content { padding-top: 120px; }

/* FIX nombre script cortado: line-height corto + background-clip dejaban transparentes los trazos del script */
.hero-names { line-height: 1.0; }
.hero-names > span { padding: .14em .16em; overflow: visible; }
.splash__names { line-height: 1.12; }
/* FIX alineación dress code: columna de label fija para que TODOS los valores arranquen en la misma x */
.dress-rules li { grid-template-columns: 92px 1fr; align-items: start; }
.dress-rules .dr-item { padding-top: 3px; }

/* FIX 26 jun b: doble padding (escena 12vh + .scene-content 100/90px) dejaba huecos enormes */
#sceneVenue > .scene-content, #sceneSpotify > .scene-content,
#scenePacking > .scene-content, #sceneOutfits > .scene-content { padding-top: 0; padding-bottom: 0; }
#sceneDress .watercolor-divider.top { height: 92px; }
#sceneDress > .scene-content { padding-top: 56px; padding-bottom: 0; }
#sceneDress, #sceneVenue, #sceneSpotify, #scenePacking, #sceneOutfits { padding-top: 9vh; padding-bottom: 9vh; }

/* ---- versículo Marcos 10:8-9 en azul (todas las tarjetas) ---- */
.hero-script{display:none!important;}
.hero-verse{ font-family:var(--serif-i); font-style:italic; font-size:14px; line-height:1.6; color:#cfe2f5; max-width:300px; margin:18px auto 0; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.hero-verse-ref{ font-family:var(--sans); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#cfe2f5; margin-top:9px; text-shadow:0 1px 8px rgba(0,0,0,.5); }

/* ── versículo legible sobre CUALQUIER fondo (panel sutil tipo cita) ── */
.hero-verse{ background:rgba(22,32,46,.36) !important; color:#fdfdfb !important; -webkit-text-fill-color:#fdfdfb !important; border-radius:16px 16px 2px 2px !important; padding:16px 20px 8px !important; max-width:340px !important; margin:22px auto 0 !important; text-shadow:0 1px 3px rgba(0,0,0,.45) !important; }
.hero-verse-ref{ background:rgba(22,32,46,.36) !important; color:#e8c98f !important; -webkit-text-fill-color:#e8c98f !important; border-radius:2px 2px 16px 16px !important; padding:6px 20px 14px !important; max-width:340px !important; margin:0 auto !important; text-shadow:0 1px 3px rgba(0,0,0,.45) !important; }

/* ── nombre del invitado en la portada: prominente y legible ── */
.cover-greet{ position:relative; z-index:6; }
.cover-greet em{ color:var(--ink) !important; -webkit-text-fill-color:var(--ink) !important; font-size:46px !important; text-shadow:0 1px 10px rgba(255,255,255,.7), 0 1px 2px rgba(255,255,255,.8) !important; }

/* ============================================================================
   PORTADA POSTAL · Potrerillos (reemplaza toile + sello de lacre)
   ============================================================================ */
.scene--postal {
  --lake-deep: #1d3d40;
  --lake-ink: #22403f;
  --postal-paper: #f4f2ec;
  --postal-text: #1f3a3c;
  --postal-roof: #b4583c;
  background: var(--lake-deep);
}
.postal-bg {
  position: absolute; inset: -12px; z-index: 0;
  background: url(../assets/img/postal-potrerillos.jpg) center / cover no-repeat;
  filter: saturate(.55) blur(2px);
  opacity: .28;
}
.postal-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,61,64,.35) 0%, rgba(29,61,64,.85) 70%, var(--lake-deep) 100%);
}
.scene--postal .cover-stage {
  width: 100%;
  max-width: 400px;
  padding: 0 22px;
  animation: envelopeIn 1.1s var(--ease) .5s both;
}
.scene--postal .cover-greet,
.scene--postal .cover-invite,
.scene--postal .cover-cta { text-shadow: none; }

.scene--postal .cover-greet {
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(233,239,234,.72);
  margin-bottom: 26px;
}
.scene--postal .cover-greet em {
  margin-top: 8px;
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: 30px !important;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.15;
  padding-bottom: 2px;
  color: #f4f1ea !important;
  -webkit-text-fill-color: #f4f1ea !important;
  text-shadow: none !important;
}

.postcard {
  position: relative;
  background: var(--postal-paper);
  padding: 10px 10px 20px;
  border-radius: 3px;
  transform: rotate(-1.4deg);
  box-shadow: 0 26px 50px -18px rgba(6,22,24,.7);
  text-align: left;
}
.postcard__art { margin: 0; }
.postcard__art img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 701;
  object-fit: cover;
  border-radius: 2px;
}
.postcard__body { padding: 16px 8px 0; }
.postcard__names {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.1;
  color: var(--postal-text);
  letter-spacing: -.01em;
}
.postcard__names span {
  font-style: italic;
  color: var(--postal-roof);
  padding: 0 .08em;
}
.scene--postal .cover-invite {
  margin-top: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5e5f;
  max-width: 24ch;
}

/* Estampilla = botón que abre la invitación */
.postage {
  position: absolute;
  top: -20px; right: -12px;
  width: 94px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: rotate(5deg);
  transition: transform .4s var(--ease-back);
  -webkit-tap-highlight-color: transparent;
}
.postage__stamp {
  display: block;
  padding: 7px;
  /* borde dentado: agujeros transparentes sobre papel */
  background: radial-gradient(circle at center, transparent 3px, #fbfaf6 3.4px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 6px 10px rgba(6,22,24,.28));
}
.postage__stamp img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.postage__mark {
  position: absolute;
  left: -46px; bottom: -30px;
  width: 88px; height: 88px;
  color: rgba(34,64,63,.72);
  font-family: "Inter", system-ui, sans-serif;
  transform: rotate(-14deg);
  pointer-events: none;
}



@keyframes stampNudge {
  0%, 70%, 100% { transform: rotate(5deg) translateY(0); }
  80%           { transform: rotate(1deg) translateY(-5px); }
  90%           { transform: rotate(6deg) translateY(0); }
}
/* Al tocar: la estampilla se despega */
.postage.is-fading {
  animation: stampPeel .9s cubic-bezier(.5,0,.3,1) forwards;
  pointer-events: none;
}
@keyframes stampPeel {
  0%   { transform: rotate(5deg); opacity: 1; }
  35%  { transform: rotate(-4deg) translate(-4px,-14px) scale(1.06); opacity: 1; }
  100% { transform: rotate(24deg) translate(70px,-90px) scale(.9); opacity: 0; }
}

.scene--postal .cover-cta {
  margin-top: 40px;
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(233,239,234,.8);
}

/* Íconos del parlante: uno por estado */
#audioToggle[aria-pressed="true"] #audioOff,
#audioToggle:not([aria-pressed="true"]) #audioOn { display: none !important; }
#audioToggle[aria-pressed="true"] #audioOn,
#audioToggle:not([aria-pressed="true"]) #audioOff { display: block !important; }

/* Pantalla de carga en la misma clave que la postal */
.splash {
  background: #1d3d40;
}
.splash__eyebrow {
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: .3em;
  color: rgba(233,239,234,.7);
}
.splash__names {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(44px, 12vw, 72px);
  color: #f4f1ea;
  line-height: 1.12;
}
.splash__names em {
  font-style: italic;
  color: #d9825f;
}
.splash__line { background: rgba(233,239,234,.4); }
.splash__hint {
  font-family: "Inter", system-ui, sans-serif;
  font-style: normal;
  font-size: 12px;
  color: rgba(233,239,234,.7);
}

/* Sello de lacre V&T sobre la postal: es el que abre */
.postal-seal {
  position: absolute;
  right: 16px; bottom: -38px;
  width: 98px;
  padding: 0; border: 0; background: none;
  cursor: pointer;
  transform: rotate(-8deg);
  filter: drop-shadow(0 10px 14px rgba(6,22,24,.38));
  transition: transform .4s var(--ease-back);
  -webkit-tap-highlight-color: transparent;
}
.postal-seal img { display: block; width: 100%; height: auto; pointer-events: none; }
.postal-seal:hover  { transform: rotate(-3deg) scale(1.04); }
.postal-seal:active { transform: rotate(-6deg) scale(.96); }
.postal-seal:focus-visible { outline: 2px solid #f4f1ea; outline-offset: 6px; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .postal-seal { animation: sealNudge 3.4s ease-in-out 2.4s infinite; }
}
@keyframes sealNudge {
  0%, 72%, 100% { transform: rotate(-8deg) scale(1); }
  80%           { transform: rotate(-2deg) scale(1.07); }
  90%           { transform: rotate(-9deg) scale(1); }
}
/* Al tocar: el lacre se quiebra y se va */
.postal-seal.is-fading {
  animation: sealBreak .9s cubic-bezier(.5,0,.3,1) forwards;
  pointer-events: none;
}
@keyframes sealBreak {
  0%   { transform: rotate(-8deg) scale(1);    opacity: 1; }
  30%  { transform: rotate(-14deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(10deg) scale(.6) translateY(40px); opacity: 0; }
}
.scene--postal .cover-cta { margin-top: 64px; }

/* ============================================================================
   ESTILO POSTAL EN TODA LA TARJETA (paleta lago + Bodoni)
   ============================================================================ */
:root {
  --ink:          #1d3d40;
  --ink-soft:     #3f5556;
  --terracotta:   #b4583c;
  --terracotta-d: #8e4129;
  --terracotta-l: #d9825f;
  --copper:       #c06a48;
  --cream:        #eef0ea;
  --cream-light:  #f6f6f1;
  --cream-warm:   #e1e6de;
  --sage:         #5f8a86;
  --sage-light:   #a9c2bd;
  --line:         rgba(29,61,64,.14);
  --line-light:   rgba(29,61,64,.08);
  --line-on-dark: rgba(240,242,236,.18);
  --serif:    "Bodoni Moda", Georgia, serif;
  --serif-i:  "Bodoni Moda", Georgia, serif;
  --script:   "Bodoni Moda", Georgia, serif;
  --script-c: "Bodoni Moda", Georgia, serif;
}

/* Ajustes de escala para Bodoni (más ancha que la caligráfica) */
.hero-names { line-height: 1.02 !important; }
.hero-names__a, .hero-names__b {
  font-size: clamp(54px, 15vw, 84px) !important;
  letter-spacing: -.01em;
}
.hero-names__amp { font-style: italic; }
#dayTitle {
  font-style: italic;
  font-size: clamp(26px, 7vw, 36px) !important;
  text-wrap: balance;
  padding: 0 12px;
}
.closing-names {
  font-size: clamp(40px, 11vw, 60px) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}
.closing-script { font-style: italic; }

/* Sello de antes: grande y centrado, montado sobre el borde de la postal */
.postcard__body { text-align: center; padding-bottom: 64px; }
.scene--postal .cover-invite { margin-left: auto; margin-right: auto; }
.postal-wax {
  margin: -84px auto 0;
  width: clamp(132px, 38vw, 168px);
  z-index: 4;
}
.scene--postal .cover-cta { margin-top: 26px; }

/* Portada adaptable al alto: el sello siempre visible (iPhone chico, navegador de WhatsApp) */
.scene--postal { overflow-y: auto; place-items: safe center; }
.scene--postal .cover-stage { padding-top: 56px; padding-bottom: 24px; }
.postcard__art img { max-height: 34dvh; }
@media (max-height: 720px) {
  .scene--postal .cover-greet { margin-bottom: 12px; }
  .scene--postal .cover-greet em { font-size: 25px !important; margin-top: 4px; }
  .postcard__body { padding-top: 10px; padding-bottom: 50px; }
  .postcard__names { font-size: 27px; }
  .scene--postal .cover-invite { font-size: 12px; margin-top: 4px; }
  .postal-wax { width: 112px; margin-top: -62px; }
  .scene--postal .cover-cta { margin-top: 14px; }
  .postage { width: 76px; top: -16px; }
  .postage__mark { width: 72px; height: 72px; left: -38px; bottom: -24px; }
}
@media (max-height: 600px) {
  .postcard__art img { max-height: 26dvh; }
  .scene--postal .cover-stage { padding-top: 48px; }
}

/* Sin el toile de la otra tarjeta */
.scene--paper::before, .scene--map::before, .scene__toile { background-image: none !important; }

/* Portada solo con el sello (pedido 1-oct): sin postal ni estampilla */
.scene--postal .cover-stage { padding-top: 40px; padding-bottom: 32px; }
.scene--postal .cover-greet { margin-bottom: 40px; }
.scene--postal .cover-greet em { font-size: 34px !important; }
.postal-wax {
  margin: 0 auto;
  width: clamp(170px, 50vw, 220px);
}
.scene--postal .cover-invite {
  margin: 40px auto 0;
  max-width: 15ch;
  font-family: "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.2;
  color: #f4f1ea;
  text-wrap: balance;
}
.scene--postal .cover-cta { margin-top: 34px; }
@media (max-height: 720px) {
  .scene--postal .cover-greet { margin-bottom: 24px; }
  .postal-wax { width: 150px; margin-top: 0; }
  .scene--postal .cover-invite { margin-top: 24px; font-size: 24px; }
  .scene--postal .cover-cta { margin-top: 22px; }
}
