/* ==========================================================================
   VALERY · XV AÑOS
   ========================================================================== */

:root {
  --white: #FFFDFB;
  --cream: #FBF6EF;
  --ivory: #F8F1E7;
  --blush: #FCE3E3;
  --blush-2: #F8D6D5;
  --rose: #EDBFC0;
  --rose-deep: #C98C8F;
  --rose-ink: #B0767B;
  --gold: #CDB88E;
  --gold-2: #B89B6A;
  --gold-deep: #9C7F4E;
  --gold-light: #E8D9B5;
  --sage: #C4CDB5;
  --sage-2: #DDE3D3;
  --sage-deep: #8E9B7F;
  --ink: #4A3B3A;
  --ink-soft: #7C6865;
  --night: #2E2224;

  --f-script: 'Pinyon Script', cursive;
  --f-display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Jost', system-ui, sans-serif;

  --foil: linear-gradient(100deg, #9C7F4E 0%, #D8C49A 16%, #F7EED6 28%, #B89B6A 42%, #E8D9B5 58%, #A88A58 74%, #F1E5C6 88%, #B89B6A 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --hair: 1px solid rgba(184, 155, 106, .35);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
.gate { touch-action: none; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blush-2); color: var(--ink); }
svg { overflow: visible; }

/* ---------- Utilidades tipográficas ---------- */
.label {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.title-script {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 7.6rem);
  line-height: 1.15;
  color: var(--rose-ink);
  margin: .15em 0 .1em;
}
.title-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin: .25em 0 .2em;
}
.foil {
  background: var(--foil);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil 9s linear infinite;
}
@keyframes foil { to { background-position: -250% 0; } }

.section { position: relative; padding: clamp(6rem, 12vw, 11rem) var(--pad-x); }
.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(3rem, 7vw, 6rem); }
.section__sub { font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink-soft); margin: 0; }

.split-chars .char, .split-lines .line { will-change: transform; }
.mask { overflow: hidden; display: inline-block; vertical-align: top; padding: 0 .08em; margin: 0 -.08em; }

/* ---------- Grano / petalos / progreso ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 250; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .2 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 82; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--foil); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 300; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--rose-ink); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(156, 127, 78, .55);
    display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
  }
  .cursor__label {
    font-family: var(--f-sans); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
    opacity: 0; transition: opacity .25s;
  }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(252, 227, 227, .35); border-color: rgba(156, 127, 78, .3); }
  .cursor.has-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: rgba(252, 227, 227, .92); border-color: transparent; backdrop-filter: blur(4px); }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.has-label .cursor__dot { opacity: 0; }
  body, a, button, label { cursor: none; }
  input, textarea { cursor: text; }
}

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, var(--white), var(--cream) 55%, var(--blush) 140%);
}
.loader__inner { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.loader__mono { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__ring { transform-origin: center; }
.loader__letter {
  font-family: var(--f-script); font-size: 7rem; line-height: 1; padding: 0 .1em;
  background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 4s linear infinite; transform: translateY(.08em); opacity: 0;
}
.loader__meta {
  position: absolute; bottom: -3.5rem; left: 0; right: 0; text-align: center;
  font-family: var(--f-sans); font-weight: 300; font-size: .72rem; letter-spacing: .4em; color: var(--gold-deep);
}

/* ==========================================================================
   SOBRE / GATE
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 90; overflow: hidden;
  display: grid; place-items: center;
  background: var(--ivory);
}
.gate.is-gone { display: none; }
.gate__bg { position: absolute; inset: -4%; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.95); }
.gate__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(251, 246, 239, .72), rgba(251, 246, 239, .35) 60%, rgba(251, 246, 239, .05)),
    linear-gradient(to bottom, rgba(251, 246, 239, .35), rgba(252, 227, 227, .2) 60%, rgba(74, 59, 58, .18));
  backdrop-filter: blur(1.5px);
}
.gate__inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 4vh, 2.6rem);
  perspective: 1600px; padding: 1.5rem;
}
.gate__eyebrow, .gate__hint {
  font-family: var(--f-sans); font-weight: 400; font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--ink);
  margin: 0; text-align: center;
}
.gate__hint { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink-soft); }
.gate__hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(184, 155, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 155, 106, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(184, 155, 106, 0); } }

.env {
  position: relative;
  width: min(540px, 86vw);
  aspect-ratio: 1.52;
  perspective: 1400px;
}
.env__shadow {
  position: absolute; left: 4%; right: 4%; bottom: -9%; height: 22%;
  background: radial-gradient(ellipse at center, rgba(74, 45, 40, .35), transparent 70%);
  filter: blur(10px); transform: translateZ(-1px);
}
.env__back {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(160deg, #F7D5D4, #EDC0C0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.env__letter {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 2;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .9), transparent 60%),
    linear-gradient(#FFFDF8, #F8F0E4);
  box-shadow: 0 1px 2px rgba(74, 59, 58, .12), 0 10px 30px -12px rgba(74, 59, 58, .25);
  display: grid; place-items: center;
}
.env__letter::before {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(184, 155, 106, .45); border-radius: 2px; pointer-events: none;
}
.letter { display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(-4%); }
.letter__label { font-family: var(--f-sans); font-size: clamp(.5rem, 1.6vw, .66rem); letter-spacing: .5em; text-transform: uppercase; color: var(--gold-deep); }
.letter__name {
  font-family: var(--f-script); font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: 1.2; padding: 0 .2em;
  background: var(--foil); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite;
}
.letter__rule { width: 40px; height: 1px; background: var(--gold-2); margin: .1rem 0 .5rem; }
.letter__date { font-family: var(--f-display); font-size: clamp(.7rem, 2.2vw, .92rem); letter-spacing: .3em; color: var(--ink); }

.env__front {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100 L50 50 L100 100' fill='none' stroke='%23B0767B' stroke-opacity='.22' stroke-width='.35'/%3E%3C/svg%3E") no-repeat center / 100% 100%,
    linear-gradient(175deg, #FBE3E2 0%, #F6D1D0 60%, #F1C6C6 100%);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -20px 40px -30px rgba(120, 70, 70, .25);
}
.env__to {
  position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; padding: 0 12%;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
}
.env__to-label { font-family: var(--f-sans); font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; color: var(--rose-ink); }
.env__to-name { font-family: var(--f-script); font-weight: 400; font-size: clamp(1.45rem, 4.6vw, 2.2rem); line-height: 1.25; color: var(--ink); }
.env__to-passes {
  font-family: var(--f-sans); font-size: .6rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-deep);
  border-top: 1px solid rgba(156, 127, 78, .35); padding-top: .35rem; margin-top: .15rem;
}

.env__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 54%; z-index: 4;
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 5px rgba(120, 70, 70, .18));
}
.env__flap::before, .env__flap-liner {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 6px 6px 0 0;
}
.env__flap::before { background: linear-gradient(180deg, #F3CBCB, #F8DAD9 70%, #FBE4E3); }
.env__flap-liner {
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 155, 106, .45) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(180deg, #FFFBF4, #F7EEDF);
}

.seal {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  width: clamp(70px, 19%, 108px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 8px rgba(90, 60, 30, .35));
  transition: transform .6s var(--ease);
}
.seal:hover { transform: translate(-50%, -50%) scale(1.07) rotate(-6deg); }
.seal:focus-visible { outline: 2px dashed var(--gold-deep); outline-offset: 6px; border-radius: 50%; }
.seal__glow {
  position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 214, .7), transparent 62%);
  animation: sealGlow 2.6s ease-in-out infinite;
}
@keyframes sealGlow { 50% { transform: scale(1.18); opacity: .5; } }
.seal__half { position: absolute; inset: 0; }
.seal__half svg { width: 100%; height: 100%; }
.seal__half--l { clip-path: polygon(0 0, 53% 0, 47% 18%, 56% 36%, 45% 55%, 55% 74%, 48% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(53% 0, 100% 0, 100% 100%, 48% 100%, 55% 74%, 45% 55%, 56% 36%, 47% 18%); }

/* ==========================================================================
   NAV / MENU
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 88;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(.9rem, 2vw, 1.5rem) var(--pad-x);
  pointer-events: none; opacity: 0;
}
.nav > * { pointer-events: auto; }
.nav__mono {
  display: inline-flex; align-items: baseline; gap: .2rem; color: var(--ink); height: 44px; padding: 0 1.1rem 0 .9rem; border-radius: 999px;
  background: rgba(255, 253, 251, .6); border: var(--hair); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav__mono-v { font-family: var(--f-script); font-size: 2.3rem; line-height: 1; }
.nav__mono-xv { font-family: var(--f-display); font-size: .7rem; letter-spacing: .25em; color: var(--gold-deep); }
.nav__right { display: flex; gap: .6rem; }
.nav__sound, .nav__menu {
  display: inline-flex; align-items: center; gap: .7rem; height: 44px; padding: 0 1.1rem;
  border-radius: 999px; border: var(--hair);
  background: rgba(255, 253, 251, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--f-sans); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  transition: background .3s, border-color .3s;
}
.nav__sound:hover, .nav__menu:hover { background: var(--white); border-color: var(--gold-2); }
.nav__sound svg { width: 18px; height: 18px; color: var(--gold-deep); }
.nav__sound .bar { transform-origin: center; transform-box: fill-box; transform: scaleY(.35); transition: transform .4s; }
.nav__sound.is-on .bar { animation: eq 1s ease-in-out infinite alternate; }
.nav__sound.is-on .b2 { animation-delay: -.3s; } .nav__sound.is-on .b3 { animation-delay: -.6s; }
.nav__sound.is-on .b4 { animation-delay: -.15s; } .nav__sound.is-on .b5 { animation-delay: -.45s; }
@keyframes eq { 0% { transform: scaleY(.3); } 100% { transform: scaleY(1); } }
.nav__burger { position: relative; width: 20px; height: 8px; }
.nav__burger i { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 0; } .nav__burger i:last-child { top: 7px; }
.nav__menu[aria-expanded="true"] .nav__burger i:first-child { top: 4px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger i:last-child { top: 4px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 86; visibility: hidden; display: grid; place-items: center; }
.menu.is-open { visibility: visible; }
.menu__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 255, 255, .7), transparent 50%),
    linear-gradient(160deg, var(--blush), #F6D6D4 60%, var(--ivory));
  clip-path: circle(0% at calc(100% - 4rem) 2.6rem);
}
.menu__list { position: relative; list-style: none; margin: 0; padding: 0; text-align: center; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: inline-flex; align-items: flex-start; gap: 1rem; padding: .1em .3em;
  font-family: var(--f-display); font-style: italic; font-size: clamp(2.2rem, 6.4vh, 4.6rem); line-height: 1.12; color: var(--ink);
  transition: color .4s, letter-spacing .6s var(--ease);
}
.menu__list a em { font-family: var(--f-sans); font-style: normal; font-size: .72rem; letter-spacing: .2em; color: var(--gold-deep); margin-top: 1.1em; }
.menu__list a:hover { color: var(--rose-ink); letter-spacing: .02em; }
.menu__list a:hover span { font-family: var(--f-script); font-style: normal; }
.menu__foot { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; font-family: var(--f-sans); font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ink-soft); }
.menu__preview {
  position: fixed; top: 0; left: 0; width: 220px; height: 300px; pointer-events: none; z-index: 1;
  border-radius: 999px 999px 16px 16px; overflow: hidden; opacity: 0; transform: scale(.8);
  box-shadow: 0 30px 60px -20px rgba(74, 59, 58, .35);
}
.menu__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .menu__preview { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100svh; }
.hero__pin {
  position: relative; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, var(--white), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(252, 227, 227, .9), transparent 70%),
    var(--cream);
}
.hero__xv {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 2vw;
  font-family: var(--f-display); font-weight: 400; font-size: min(52vw, 78svh); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(184, 155, 106, .38);
  user-select: none; pointer-events: none;
}
.hero__xv span { display: inline-block; }
.hero__frame {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: min(34vw, 470px); height: min(76svh, 780px);
  visibility: hidden; pointer-events: none;
}
.hero__arch {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(12svh 33vw 12svh 33vw round 17vw 17vw 0 0);
  will-change: clip-path;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.18); will-change: transform; }
.hero__veil {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to bottom, rgba(46, 34, 36, .15), rgba(46, 34, 36, .35) 50%, rgba(46, 34, 36, .6));
}
.hero__quote { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--pad-x); pointer-events: none; }
.hero__quote-text {
  margin: 0; max-width: 18ch; text-align: center;
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.6rem); line-height: 1.12; color: var(--white);
  text-shadow: 0 2px 30px rgba(46, 34, 36, .35);
}
.hero__quote-text .word { opacity: 0; }

.hero__type {
  position: absolute; left: 0; right: 0; bottom: max(5svh, 2rem); z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none;
}
.hero__eyebrow {
  margin: 0 0 -.2em; font-family: var(--f-sans); font-size: .74rem; letter-spacing: .55em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: .9em;
  padding: .55em .9em .55em 1.45em; border-radius: 999px;
  background: rgba(255, 253, 251, .72); border: 1px solid rgba(184, 155, 106, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__eyebrow b { font-family: var(--f-display); font-weight: 500; font-size: 1.35em; letter-spacing: .15em; color: var(--gold-deep); }
.hero__name {
  margin: 0; font-family: var(--f-script); font-weight: 400;
  font-size: clamp(6rem, 17vw, 16rem); line-height: 1.12;
  filter: drop-shadow(0 2px 1px rgba(255, 253, 250, .95)) drop-shadow(0 10px 30px rgba(255, 245, 240, .9));
}
.hero__name .foil { padding: 0 .18em; display: inline-block; }
.hero__date {
  margin: -.3em 0 0; display: inline-flex; align-items: center; gap: 1.1rem;
  font-family: var(--f-display); font-size: clamp(.78rem, 1.2vw, .95rem); letter-spacing: .38em; text-transform: uppercase; color: var(--ink);
}
.hero__date i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); }
.hero__scroll {
  position: absolute; left: var(--pad-x); bottom: 2.4rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-family: var(--f-sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 56px; background: rgba(156, 127, 78, .25); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-deep); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { position: relative; padding: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; background: var(--cream); }
.marquee__row { white-space: nowrap; display: flex; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); padding-right: clamp(1.4rem, 3vw, 3rem); will-change: transform; }
.marquee__row span { font-family: var(--f-script); font-size: clamp(3.4rem, 9vw, 8rem); line-height: 1.3; color: var(--rose-ink); }
.marquee__row em { font-family: var(--f-display); font-style: italic; font-size: clamp(2.2rem, 6vw, 5.4rem); color: var(--ink); }
.marquee__row b { font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--gold-2); }
.marquee__row--alt { margin-top: -.4rem; }
.marquee__row--alt span, .marquee__row--alt em {
  font-family: var(--f-display); font-style: normal; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(2rem, 5vw, 4.4rem); color: transparent; -webkit-text-stroke: 1px var(--gold-2);
}
.marquee__row--alt em { font-style: italic; -webkit-text-stroke: 0; color: var(--sage-deep); text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   MENSAJE
   ========================================================================== */
.message__grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 7rem); align-items: center;
}
.message__photos { position: relative; height: clamp(520px, 62vw, 780px); }
.ph { position: absolute; margin: 0; }
.ph__in { width: 100%; height: 100%; overflow: hidden; }
.ph img { width: 100%; height: 118%; object-fit: cover; }
.ph--a { left: 0; top: 0; width: 60%; aspect-ratio: 3/4.1; }
.ph--a .ph__in { border-radius: 999px 999px 10px 10px; box-shadow: 0 40px 80px -40px rgba(120, 70, 70, .45); }
.ph--b { right: 0; bottom: 0; width: 50%; aspect-ratio: 3/4; }
.ph--b .ph__in { border-radius: 6px; border: 10px solid var(--white); box-shadow: 0 30px 60px -25px rgba(120, 70, 70, .4); transform: rotate(3.5deg); }
.ph__stamp {
  position: absolute; left: 43%; top: 50%; width: clamp(120px, 12vw, 160px); aspect-ratio: 1; z-index: 2;
  border-radius: 50%; background: var(--blush); display: grid; place-items: center;
  box-shadow: 0 20px 40px -20px rgba(120, 70, 70, .5); transform: translate(-50%, -50%);
}
.ph__stamp span { font-family: var(--f-display); font-size: 1.7rem; letter-spacing: .1em; color: var(--gold-deep); }
.spin-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.spin-text text { font-family: var(--f-sans); font-size: 13px; letter-spacing: 4.2px; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.sprig { width: 120px; height: 220px; color: var(--sage-deep); }
.sprig--msg { position: absolute; left: -2%; bottom: -6%; transform: rotate(-18deg); }

.message__text { max-width: 620px; }
.message__text .title-script { margin-top: .05em; }
.words-scrub {
  font-family: var(--f-serif); font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.38; margin: 0 0 2rem; color: var(--ink);
}
.words-scrub .word { opacity: .16; }
.message__sign { font-family: var(--f-sans); font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; gap: 1rem; margin: 0; }
.message__sign span { font-family: var(--f-script); font-size: 2.8rem; letter-spacing: 0; text-transform: none; color: var(--rose-ink); }

/* ==========================================================================
   CUENTA REGRESIVA
   ========================================================================== */
.countdown {
  overflow: hidden; text-align: center; min-height: 100svh; display: grid; place-items: center;
  background:
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(ellipse at 50% 50%, var(--blush), #F5D2D0 90%);
}
.orbit { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; pointer-events: none; }
.orbit__sys { position: relative; width: min(115vw, 1100px); aspect-ratio: 1; transform-style: preserve-3d; }
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(184, 155, 106, .45); transform-style: preserve-3d;
}
.orbit__ring i {
  position: absolute; top: -7px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #F4E9DC 45%, #D8C4A6 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, .9), 0 2px 6px rgba(120, 90, 50, .3);
}
.orbit__ring.r1 { animation: orb1 26s linear infinite; }
.orbit__ring.r2 { inset: 7%; animation: orb2 34s linear infinite; border-style: dashed; border-color: rgba(184, 155, 106, .35); }
.orbit__ring.r3 { inset: 14%; animation: orb3 22s linear infinite; }
.orbit__ring.r4 { inset: 24%; animation: orb4 40s linear infinite; border-color: rgba(142, 155, 127, .35); }
@keyframes orb1 { from { transform: rotateX(74deg) rotateY(8deg) rotateZ(0); } to { transform: rotateX(74deg) rotateY(8deg) rotateZ(360deg); } }
@keyframes orb2 { from { transform: rotateX(68deg) rotateY(-28deg) rotateZ(360deg); } to { transform: rotateX(68deg) rotateY(-28deg) rotateZ(0); } }
@keyframes orb3 { from { transform: rotateX(78deg) rotateY(34deg) rotateZ(0); } to { transform: rotateX(78deg) rotateY(34deg) rotateZ(360deg); } }
@keyframes orb4 { from { transform: rotateX(60deg) rotateY(-6deg) rotateZ(360deg); } to { transform: rotateX(60deg) rotateY(-6deg) rotateZ(0); } }

.countdown__in { position: relative; z-index: 2; }
.cd { display: flex; justify-content: center; align-items: flex-start; gap: clamp(.6rem, 2.6vw, 2.4rem); margin: 1rem 0 2rem; }
.cd__unit { display: flex; flex-direction: column; align-items: center; gap: .6rem; min-width: 2ch; }
.cd__num { display: flex; font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 10vw, 8.6rem); line-height: 1; color: var(--ink); }
.cd__unit > span { font-family: var(--f-sans); font-size: .66rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-deep); padding-left: .38em; }
.digit { position: relative; display: inline-block; width: .66em; height: 1.08em; overflow: hidden; }
.digit__strip { display: flex; flex-direction: column; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.digit__strip b { display: block; height: 1.08em; line-height: 1.08em; font-weight: 400; text-align: center; }
.cd__sep { font-family: var(--f-display); font-size: clamp(2rem, 6vw, 5rem); line-height: 1.3; color: var(--gold-2); opacity: .6; }
.countdown__date { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-soft); margin: 0 0 2rem; }

/* ---------- Botones ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.countdown .btn-row, .btn-row--center { justify-content: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .95rem 1.7rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-family: var(--f-sans); font-weight: 400; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .5s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .flip { transform: scaleX(-1); }
.btn--gold {
  color: #3B2E22; background: linear-gradient(115deg, #C3A877, #EFE2C2 38%, #CDB88E 55%, #A88A58 100%); background-size: 200% 100%;
  box-shadow: 0 10px 30px -12px rgba(156, 127, 78, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: background-position .8s var(--ease), box-shadow .5s var(--ease);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(156, 127, 78, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid rgba(156, 127, 78, .5); background: rgba(255, 253, 251, .45); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); border-color: var(--gold-deep); }
.btn--icon { width: 52px; padding: 0; border: 1px solid rgba(156, 127, 78, .5); background: rgba(255, 253, 251, .45); }
.btn--icon:hover { background: var(--white); }
.btn--text { min-height: 44px; padding: .6rem .4rem; color: var(--ink-soft); }
.btn--text span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.btn--text:hover span { background-size: 100% 1px; }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .4); }
.btn--light:hover { background: var(--blush); }
.btn--lg { min-height: 58px; padding: 1.1rem 2.1rem; }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ==========================================================================
   FAMILIA
   ========================================================================== */
.family { text-align: center; background: linear-gradient(var(--cream), var(--ivory)); }
.family__intro { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.25; max-width: 900px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.family__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 2.4rem); max-width: 880px; margin: 0 auto; perspective: 1200px; align-items: center; }
.fcard { position: relative; transform-style: preserve-3d; will-change: transform; }
.fcard__in {
  position: relative; transform-style: preserve-3d;
  padding: clamp(3.2rem, 5vw, 4.4rem) clamp(1.4rem, 2.5vw, 2.4rem) clamp(2.6rem, 4vw, 3.4rem);
  border-radius: 999px 999px 22px 22px;
  background: linear-gradient(180deg, var(--white), #FBF0EB);
  border: var(--hair);
  box-shadow: 0 40px 70px -40px rgba(120, 70, 70, .35);
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
}
.fcard__in::before { content: ''; position: absolute; inset: 10px; border-radius: 999px 999px 16px 16px; border: 1px solid rgba(184, 155, 106, .28); pointer-events: none; }
.fcard--center .fcard__in { min-height: 500px; background: linear-gradient(180deg, #FDEDEC, var(--blush) 60%, #F8D8D6); }
.fcard__in > * { transform: translateZ(40px); }
.fcard__sprig { width: 60px; height: 110px; color: var(--sage-deep); margin-bottom: .2rem; }
.fcard__sprig--flip { transform: translateZ(40px) scaleX(-1); }
.fcard__names { font-family: var(--f-display); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.3; margin: 0; display: flex; flex-direction: column; }
.fcard__amp { font-family: var(--f-script); font-style: normal; font-size: 2.6em; line-height: 1.1; color: var(--gold-2); }
.fcard__names--script { font-family: var(--f-script); font-style: normal; font-size: clamp(3.6rem, 6vw, 5rem); line-height: 1.2; color: var(--rose-ink); }
.fcard__note { margin: 0; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-deep); }
.fcard__rose { width: 110px; height: 110px; }
.fcard__rose svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.fcard__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: none !important;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .75), transparent 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s;
}
.fcard:hover .fcard__glare { opacity: 1; }

/* ==========================================================================
   ITINERARIO
   ========================================================================== */
.timeline { background: linear-gradient(var(--ivory), var(--cream) 30%, var(--cream)); overflow: hidden; }
.tl { position: relative; max-width: 1100px; margin: 0 auto; }
.tl__vine { position: absolute; top: 0; bottom: 0; left: 50%; width: 110px; height: 100%; transform: translateX(-50%); }
.tl__vine path { fill: none; vector-effect: non-scaling-stroke; }
.tl__vine-bg { stroke: rgba(184, 155, 106, .25); stroke-width: 1; stroke-dasharray: 2 6; }
.tl__vine-fg { stroke: url(#g-vine); stroke-width: 2; stroke-linecap: round; }
.tl__vine--fg { clip-path: inset(0 0 100% 0); }
.tl__tip {
  position: absolute; left: 0; top: 0; z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff, #F1E4C8 45%, #B89B6A);
  box-shadow: 0 0 0 6px rgba(205, 184, 142, .18), 0 0 24px 6px rgba(255, 240, 210, .9);
  opacity: 0;
}
.tl__list { list-style: none; margin: 0; padding: 2rem 0; display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5.5rem); }
.tl__item { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.tl__node {
  grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 2;
  width: 70px; height: 70px; border-radius: 50%; padding: 8px;
  background: var(--white); border: var(--hair);
  box-shadow: 0 0 0 8px var(--cream), 0 14px 30px -12px rgba(120, 70, 70, .35);
}
.tl__node svg { width: 100%; height: 100%; }
.tl__node .bloom-l1, .tl__node .bloom-l2, .tl__node .bloom-l3 { transform-origin: 50px 50px; }
.tl__card {
  grid-row: 1; position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 26px;
  background: rgba(255, 253, 251, .75); border: var(--hair); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -40px rgba(120, 70, 70, .35);
}
.tl__item:nth-child(odd) .tl__card { grid-column: 1; text-align: right; margin-right: 1.5rem; }
.tl__item:nth-child(even) .tl__card { grid-column: 3; margin-left: 1.5rem; }
.tl__icon { width: 44px; height: 44px; color: var(--gold-2); margin-bottom: .4rem; }
.tl__item:nth-child(odd) .tl__icon { margin-left: auto; display: block; }
.tl__card time { display: block; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; color: var(--gold-deep); }
.tl__card time small { font-size: .38em; letter-spacing: .2em; font-family: var(--f-sans); }
.tl__card h3 { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.3rem, 3.8vw, 3.1rem); line-height: 1.3; margin: .2rem 0 .2rem; color: var(--rose-ink); }
.tl__card p { margin: 0; font-size: 1.15rem; color: var(--ink-soft); }

/* ==========================================================================
   LUGAR
   ========================================================================== */
.venue { background: var(--cream); }
.venue__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.venue__media { position: relative; }
.venue__img { aspect-ratio: 1 / 1.08; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(90, 50, 50, .55); }
.venue__img img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 50%; }
.venue__badge {
  position: absolute; right: -2.5rem; bottom: 12%; width: clamp(120px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blush); display: grid; place-items: center; box-shadow: 0 20px 40px -20px rgba(120, 70, 70, .5);
}
.venue__badge-pin { width: 30px; height: 30px; color: var(--gold-deep); }
.venue__info .title-display { font-style: normal; font-size: clamp(2.8rem, 6vw, 5.8rem); }
.title-display .word { white-space: nowrap; }
.venue__hotel { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0 0 .4rem; color: var(--ink); }
.venue__address { font-style: normal; font-family: var(--f-sans); font-size: .84rem; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 2rem; }
.venue__facts { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; gap: 1.1rem; }
.venue__facts li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: var(--hair); }
.venue__facts svg { width: 26px; height: 26px; flex: none; color: var(--gold-2); margin-top: .15rem; }
.venue__facts b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; }
.venue__facts div > span { font-size: 1.08rem; color: var(--ink-soft); }
.venue__map { max-width: 1320px; margin: clamp(3.5rem, 7vw, 6rem) auto 0; }
.venue__map-frame { position: relative; height: clamp(320px, 42vw, 460px); border-radius: 30px; overflow: hidden; border: var(--hair); box-shadow: 0 40px 80px -50px rgba(90, 50, 50, .5); background: var(--blush); }
.venue__map-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 10px rgba(255, 253, 251, .6); border-radius: inherit; }
.venue__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.32) hue-rotate(-28deg) saturate(1.7) brightness(1.06) contrast(.92); transition: filter .8s; }
.venue__map-frame:hover iframe { filter: none; }

/* ==========================================================================
   DETALLES — stacking cards
   ========================================================================== */
.details { background: linear-gradient(var(--cream), var(--ivory)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.stack { max-width: 1180px; margin: 0 auto; }
.scard {
  position: sticky; top: calc(11svh + var(--i, 0) * 26px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  min-height: min(76svh, 640px); margin-bottom: 14svh; padding: clamp(2rem, 5vw, 4.4rem);
  border-radius: 38px; border: var(--hair); overflow: hidden;
  box-shadow: 0 -10px 40px -20px rgba(120, 70, 70, .15), 0 40px 80px -40px rgba(120, 70, 70, .35);
  transform-origin: 50% 0; will-change: transform;
}
.scard:last-child { margin-bottom: 0; }
.scard--dress { --i: 0; background: radial-gradient(ellipse at 90% 10%, #fff, transparent 60%), linear-gradient(160deg, var(--white), var(--ivory)); }
.scard--gift { --i: 1; background: radial-gradient(ellipse at 90% 10%, #fff6f5, transparent 60%), linear-gradient(160deg, #FDEBEA, var(--blush-2)); }
.scard--hash { --i: 2; background: radial-gradient(ellipse at 90% 10%, #fbfcf8, transparent 60%), linear-gradient(160deg, #EEF1E8, var(--sage-2)); }
.scard__num { position: absolute; top: 1.4rem; right: 2rem; font-family: var(--f-display); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(156, 127, 78, .35); }
.scard__title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.05; margin: .6rem 0 1rem; }
.scard__body p { font-size: clamp(1.12rem, 1.5vw, 1.32rem); margin: 0 0 1.2rem; max-width: 34ch; }
.scard__note { display: flex; align-items: center; gap: .6rem; font-family: var(--f-sans); font-size: .82rem !important; letter-spacing: .06em; color: var(--rose-ink); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--blush { background: var(--blush-2); box-shadow: inset 0 0 0 1px rgba(176, 118, 123, .4); }
.attire { display: flex; gap: 2.4rem; margin-top: 1.8rem; }
.attire__item { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; }
.attire__item svg { width: 54px; height: 54px; color: var(--gold-deep); margin-bottom: .3rem; }
.attire__item span { font-family: var(--f-display); font-size: 1.1rem; }
.attire__item small { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .08em; color: var(--ink-soft); }
.scard__visual { position: relative; height: 100%; min-height: 340px; display: grid; place-items: center; }

.swatches { position: relative; width: 100%; height: 380px; }
.swatch {
  position: absolute; left: 50%; bottom: 0; width: 118px; height: 300px; margin-left: -59px; border-radius: 14px;
  transform-origin: 50% 110%; box-shadow: 0 20px 40px -18px rgba(90, 60, 50, .4);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1rem;
}
.swatch span { font-family: var(--f-sans); font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(74, 59, 58, .75); }
.swatch--gold { background: url('../img/oro-textura.jpg') center / cover, var(--gold); }
.swatch--ivory { background: linear-gradient(170deg, #FFFCF6, #F5ECDD); }
.swatch--sage { background: linear-gradient(170deg, #CCD4BE, #B8C3A7); }
.swatch--blush { background: linear-gradient(170deg, #FEEAEA, #F8D2D2); border: 1px dashed rgba(176, 118, 123, .6); }
.swatch--blush span { color: var(--rose-ink); }

.mailbox { position: relative; width: 240px; height: 300px; }
.mailbox__main { position: absolute; left: 50%; bottom: 0; width: 180px; height: 180px; margin-left: -90px; color: var(--gold-deep); }
.mini-env {
  position: absolute; top: -10%; left: 50%; width: 46px; height: 32px; border-radius: 3px;
  background: linear-gradient(160deg, var(--white), var(--ivory)); box-shadow: 0 6px 14px -6px rgba(120, 70, 70, .45);
  animation: envRain 4.2s cubic-bezier(.45, 0, .55, 1) infinite; opacity: 0;
}
.mini-env::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49%, rgba(184, 155, 106, .5) 50%, transparent 51%), linear-gradient(to bottom left, transparent 49%, rgba(184, 155, 106, .5) 50%, transparent 51%); background-size: 100% 70%; background-repeat: no-repeat; }
.mini-env::after { content: ''; position: absolute; left: 50%; top: 42%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--rose-deep); }
.mini-env:nth-child(2) { --x: -80px; --r: -30deg; animation-delay: 0s; }
.mini-env:nth-child(3) { --x: 40px; --r: 25deg; animation-delay: .85s; }
.mini-env:nth-child(4) { --x: -20px; --r: -12deg; animation-delay: 1.7s; }
.mini-env:nth-child(5) { --x: 80px; --r: 40deg; animation-delay: 2.55s; }
.mini-env:nth-child(6) { --x: -60px; --r: 18deg; animation-delay: 3.4s; }
@keyframes envRain {
  0% { opacity: 0; transform: translate(calc(-50% + var(--x)), -40px) rotate(var(--r)); }
  15% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, 190px) rotate(0) scale(.9); }
  85%, 100% { opacity: 0; transform: translate(-50%, 205px) rotate(0) scale(.5); }
}

.polaroids { position: relative; width: 280px; height: 340px; }
.polaroid {
  position: absolute; inset: 0; margin: 0; padding: 12px 12px 48px; background: var(--white); border-radius: 4px;
  box-shadow: 0 24px 50px -24px rgba(60, 60, 40, .45); transition: transform .8s var(--ease);
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--f-script); font-size: 1.6rem; color: var(--ink); }
.polaroid:nth-child(1) { transform: rotate(-9deg) translateX(-30px); }
.polaroid:nth-child(2) { transform: rotate(6deg) translateX(30px); }
.polaroid:nth-child(3) { transform: rotate(-1deg); }
.polaroids:hover .polaroid:nth-child(1), .polaroids.is-fanned .polaroid:nth-child(1) { transform: rotate(-16deg) translate(-90px, 10px); }
.polaroids:hover .polaroid:nth-child(2), .polaroids.is-fanned .polaroid:nth-child(2) { transform: rotate(14deg) translate(90px, 10px); }
.polaroids:hover .polaroid:nth-child(3), .polaroids.is-fanned .polaroid:nth-child(3) { transform: rotate(0) translateY(-16px) scale(1.03); }
@media (max-width: 700px) {
  .polaroids.is-fanned .polaroid:nth-child(1) { transform: rotate(-14deg) translate(-56px, 8px); }
  .polaroids.is-fanned .polaroid:nth-child(2) { transform: rotate(12deg) translate(56px, 8px); }
}

/* ==========================================================================
   GALERÍA 3D
   ========================================================================== */
.gallery { position: relative; }
.gallery__pin {
  position: relative; height: 100svh; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 255, 255, .95), transparent 70%),
    linear-gradient(180deg, var(--ivory), var(--blush) 100%);
}
.gallery__head { position: absolute; top: clamp(4.5rem, 11svh, 7rem); left: 0; right: 0; text-align: center; z-index: 3; pointer-events: none; }
.gallery__head .title-script { margin: 0; font-size: clamp(3rem, 7vw, 5.6rem); }
.ring { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 40%; display: grid; place-items: center; touch-action: pan-y; }
.ring__track { --w: 230px; position: relative; width: var(--w); height: calc(var(--w) * 1.36); transform-style: preserve-3d; margin-top: 8svh; }
.ring__item {
  position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 50px -30px rgba(90, 50, 50, .6);
  background: var(--blush); cursor: pointer; transition: filter .3s;
}
.ring__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.ring__item::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 12px; z-index: 1; pointer-events: none; }
.ring__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem 1rem; text-align: center;
  font-family: var(--f-script); font-size: 1.9rem; line-height: 1; color: var(--white);
  background: linear-gradient(transparent, rgba(46, 34, 36, .55));
}
.ring__floor {
  position: absolute; left: 50%; top: 78%; width: min(900px, 110vw); height: 120px; margin-left: min(-450px, -55vw);
  background: radial-gradient(ellipse at center, rgba(176, 118, 123, .28), transparent 65%); filter: blur(8px); pointer-events: none;
}
.gallery__hint {
  position: absolute; bottom: 6.6rem; left: 0; right: 0; margin: 0; text-align: center; z-index: 3;
  font-family: var(--f-sans); font-size: .66rem; letter-spacing: .36em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; justify-content: center; align-items: center; gap: .8rem;
}
.gallery__hint i { width: 36px; height: 1px; background: var(--gold-2); }

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, .8), transparent 70%),
    linear-gradient(180deg, var(--blush) 0%, #FBEAE8 40%, var(--ivory) 100%);
}
.rsvp__deco .sprig { position: absolute; width: 180px; height: 330px; opacity: .8; }
.sprig--l { left: -30px; top: 12%; transform: rotate(20deg); }
.sprig--r { right: -30px; bottom: 8%; transform: rotate(200deg); }
.rsvp__intro b { font-weight: 600; color: var(--ink); font-style: normal; }
.rsvp__card {
  position: relative; max-width: 780px; margin: 0 auto; padding: clamp(1.6rem, 5vw, 3.6rem);
  border-radius: 38px; border: var(--hair);
  background: rgba(255, 253, 251, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 60px 120px -60px rgba(150, 80, 80, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.rsvp__card::before { content: ''; position: absolute; inset: 10px; border-radius: 30px; border: 1px solid rgba(184, 155, 106, .2); pointer-events: none; }

.rsvp__progress { position: relative; margin: 0 auto 2.6rem; max-width: 520px; }
.rsvp__thread { position: absolute; left: 7px; right: 7px; top: 7px; height: 1px; background: rgba(184, 155, 106, .3); }
.rsvp__thread-fill { display: block; height: 100%; width: 0; background: var(--foil); transition: width .9s var(--ease); }
.rsvp__pearls { position: relative; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.rsvp__pearls li { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 14px; }
.rsvp__pearls i {
  width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1px solid rgba(184, 155, 106, .6);
  transition: background .6s, box-shadow .6s, transform .6s var(--ease);
}
.rsvp__pearls span { font-family: var(--f-sans); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; transition: color .4s; }
.rsvp__pearls li.is-on i { background: radial-gradient(circle at 35% 30%, #fff, #EBDDC0 45%, #B89B6A); border-color: transparent; box-shadow: 0 0 0 5px rgba(205, 184, 142, .22), 0 4px 10px rgba(156, 127, 78, .4); transform: scale(1.15); }
.rsvp__pearls li.is-on span { color: var(--gold-deep); }

.rsvp__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: none; }
.step.is-active { display: block; }
.step__title { display: block; width: 100%; text-align: center; font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 2rem; padding: 0; }
.step__error { text-align: center; margin: 1rem 0 0; font-family: var(--f-sans); font-size: .78rem; letter-spacing: .06em; color: #B35F66; opacity: 0; transform: translateY(-4px); transition: .4s var(--ease); height: 0; }
.step__error.show { opacity: 1; transform: none; height: auto; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 2vw, 1.4rem); perspective: 900px; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: clamp(1.6rem, 4vw, 2.4rem) 1rem; border-radius: 26px; border: 1px solid rgba(184, 155, 106, .35);
  background: var(--white); cursor: pointer; transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .4s, background .5s, box-shadow .6s var(--ease);
}
.choice__card:hover { transform: translateY(-4px) rotateX(6deg); box-shadow: 0 24px 40px -26px rgba(150, 80, 80, .45); }
.choice__rose { width: 76px; height: 76px; margin-bottom: .4rem; transition: transform .8s var(--ease); }
.choice__rose svg { width: 100%; height: 100%; }
.choice__rose--env { color: var(--gold-deep); padding: 8px; }
.choice__txt { display: flex; flex-direction: column; gap: .3rem; }
.choice__title { font-family: var(--f-display); font-size: clamp(1.1rem, 2.4vw, 1.4rem); }
.choice__sub { font-style: italic; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.3; }
.choice__check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(184, 155, 106, .5); transition: .4s var(--ease); }
.choice__check::after { content: ''; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--ease) .1s; }
.choice__opt input:checked + .choice__card { border-color: var(--gold-2); background: linear-gradient(170deg, #FFF8F6, var(--blush)); box-shadow: 0 30px 50px -30px rgba(150, 80, 80, .55), inset 0 0 0 1px rgba(184, 155, 106, .4); transform: translateY(-6px); }
.choice__opt input:checked + .choice__card .choice__rose { transform: rotate(72deg) scale(1.1); }
.choice__opt input:checked + .choice__card .choice__check { background: var(--gold-2); border-color: var(--gold-2); }
.choice__opt input:checked + .choice__card .choice__check::after { transform: rotate(45deg) scale(1); }
.choice__opt input:focus-visible + .choice__card { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.field { position: relative; margin: 0 0 1.6rem; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(156, 127, 78, .35); background: transparent; border-radius: 0;
  padding: 1.5rem 0 .6rem; font-family: var(--f-serif); font-size: 1.35rem; color: var(--ink); outline: none; resize: none;
}
.field label {
  position: absolute; left: 0; top: 1.4rem; pointer-events: none; transform-origin: 0 0;
  font-family: var(--f-serif); font-style: italic; font-size: 1.22rem; color: var(--ink-soft);
  transition: transform .45s var(--ease), color .3s, letter-spacing .45s;
}
.field label small { font-size: .8em; opacity: .7; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-1.3rem) scale(.72); color: var(--gold-deep); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--foil); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input { border-bottom-color: #C97A80; }
.field__count { position: absolute; right: 0; bottom: -1.4rem; font-family: var(--f-sans); font-size: .66rem; letter-spacing: .1em; color: var(--ink-soft); }
.field--area { margin-bottom: 2.4rem; }

.guests { margin-top: 2rem; }
.guests__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: linear-gradient(160deg, #FFF9F7, var(--blush)); border: var(--hair); }
.guests__label { display: block; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-bottom: .2rem; }
.guests__hint { font-style: italic; color: var(--ink-soft); font-size: 1.02rem; }
.stepper { display: inline-flex; align-items: center; gap: .3rem; background: var(--white); border-radius: 999px; padding: .3rem; border: var(--hair); }
.stepper__btn { width: 40px; height: 40px; border-radius: 50%; font-family: var(--f-display); font-size: 1.3rem; line-height: 1; transition: background .3s; }
.stepper__btn:hover:not(:disabled) { background: var(--blush); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__val { min-width: 2ch; text-align: center; font-family: var(--f-display); font-size: 1.5rem; }
.guests__list { margin-top: 1.4rem; }
.guests__list .field { margin-bottom: 1rem; }

.chips-group { margin-bottom: 2.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid rgba(156, 127, 78, .4);
  font-family: var(--f-sans); font-size: .78rem; letter-spacing: .08em; cursor: pointer; transition: .35s var(--ease); background: var(--white);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.summary { display: grid; gap: 0; border-radius: 22px; padding: .6rem 1.6rem; background: linear-gradient(160deg, #FFFBF8, #FDF0EE); border: var(--hair); }
.summary__row { display: flex; gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px dashed rgba(184, 155, 106, .4); }
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { font-family: var(--f-sans); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); flex: 0 0 34%; }
.summary__row dd { margin: 0; font-size: 1.18rem; line-height: 1.35; }

.rsvp__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2.4rem; gap: 1rem; }
.rsvp__nav #nextBtn, .rsvp__nav #submitBtn { margin-left: auto; }
.btn__spinner { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.btn__spinner i { position: absolute; width: 7px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #3B2E22; transform-origin: 50% 170%; opacity: .8; }
.btn__spinner i:nth-child(1) { transform: rotate(0) translateY(-6px); } .btn__spinner i:nth-child(2) { transform: rotate(72deg) translateY(-6px); }
.btn__spinner i:nth-child(3) { transform: rotate(144deg) translateY(-6px); } .btn__spinner i:nth-child(4) { transform: rotate(216deg) translateY(-6px); }
.btn__spinner i:nth-child(5) { transform: rotate(288deg) translateY(-6px); }
.is-sending .btn__label { opacity: 0; }
.is-sending .btn__spinner { opacity: 1; animation: spin 1.2s linear infinite; }

/* Resultado / ticket */
.done { text-align: center; }
.done__kicker { font-family: var(--f-sans); font-size: .74rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }
.done__title { font-family: var(--f-script); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.25; color: var(--rose-ink); margin: .2rem 0 1.8rem; }
.done__text { max-width: 440px; margin: 0 auto 2rem; font-size: 1.2rem; color: var(--ink-soft); }
.done__heart { font-size: 4rem; line-height: 1; color: var(--rose-deep); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.done__edit { margin-top: 1.6rem; }

.ticket {
  display: flex; max-width: 620px; margin: 0 auto 2rem; text-align: left; perspective: 800px;
  filter: drop-shadow(0 30px 40px rgba(120, 70, 70, .28));
}
.ticket__main, .ticket__stub { position: relative; background: var(--white); }
.ticket__main {
  flex: 1; padding: 1.8rem 1.8rem 1.6rem; border-radius: 22px 0 0 22px;
  background: radial-gradient(ellipse at 0% 0%, #FFF4F2, transparent 60%), linear-gradient(160deg, var(--white), var(--ivory));
  -webkit-mask: radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
}
.ticket__main::before { content: ''; position: absolute; inset: 9px 16px 9px 9px; border: 1px solid rgba(184, 155, 106, .4); border-radius: 15px 0 0 15px; border-right: 0; pointer-events: none; }
.ticket__stub {
  width: 190px; flex: none; padding: 1.4rem 1.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  border-radius: 0 22px 22px 0; background: linear-gradient(170deg, #FDEDEC, var(--blush-2));
  border-left: 2px dashed rgba(184, 155, 106, .55);
  -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) top / 100% 51% no-repeat, radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) bottom / 100% 51% no-repeat;
}
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.ticket__brand { font-family: var(--f-script); font-size: 2rem; line-height: 1; color: var(--rose-ink); }
.ticket__brand b { font-family: var(--f-display); font-weight: 400; font-size: .5em; letter-spacing: .2em; color: var(--gold-deep); }
.ticket__type { font-family: var(--f-sans); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); }
.ticket__guest { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.15; margin: .4rem 0 1.2rem; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.2rem; }
.ticket__grid small { display: block; font-family: var(--f-sans); font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__grid b { font-family: var(--f-display); font-weight: 400; font-size: 1.02rem; }
.ticket__qr { width: 132px; height: 132px; border-radius: 10px; background: var(--white); padding: 8px; }
.ticket__code { font-family: var(--f-sans); font-size: .66rem; letter-spacing: .3em; color: var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--white); text-align: center; }
.footer__bg { position: absolute; inset: 0; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.footer__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(46, 34, 36, .62), rgba(46, 34, 36, .38) 70%, rgba(46, 34, 36, .7)), linear-gradient(transparent 60%, rgba(46, 34, 36, .6)); }
.footer__pre, .footer__meta { text-shadow: 0 2px 16px rgba(30, 20, 20, .6); }
.footer__in { position: relative; z-index: 2; padding: 6rem var(--pad-x); display: flex; flex-direction: column; align-items: center; }
.footer__pre { font-family: var(--f-sans); font-size: .78rem; letter-spacing: .5em; text-transform: uppercase; margin: 0; }
.footer__name { font-family: var(--f-script); font-weight: 400; font-size: clamp(6rem, 19vw, 17rem); line-height: 1.15; margin: 0; filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .35)); }
.footer__name .foil { padding: 0 .18em; display: inline-block; }
.footer__meta { display: flex; align-items: center; gap: 1rem; font-family: var(--f-display); font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; margin: -.5rem 0 2.6rem; flex-wrap: wrap; justify-content: center; }
.footer__meta i { width: 5px; height: 5px; background: var(--gold-light); transform: rotate(45deg); }
.footer__top { margin-top: 2.4rem; font-family: var(--f-sans); font-size: .66rem; letter-spacing: .36em; text-transform: uppercase; opacity: .8; }
.footer__top:hover { opacity: 1; }

/* ==========================================================================
   FAB / LIGHTBOX / TOAST
   ========================================================================== */
.fab {
  position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); z-index: 84;
  display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1.5rem .55rem .6rem; border-radius: 999px; overflow: hidden;
  background: rgba(255, 253, 251, .78); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(184, 155, 106, .55);
  box-shadow: 0 20px 40px -18px rgba(120, 70, 70, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: translate(-50%, 180%); opacity: 0;
  transition: transform .8s var(--ease), opacity .6s, box-shadow .4s;
}
.fab.is-visible { transform: translate(-50%, 0); opacity: 1; }
.fab:hover { box-shadow: 0 26px 50px -18px rgba(120, 70, 70, .6), inset 0 1px 0 rgba(255, 255, 255, .8); }
.fab__rose { width: 38px; height: 38px; animation: spin 16s linear infinite; }
.fab__label { font-family: var(--f-sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.fab__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%); transform: translateX(-120%); animation: shine 4.5s var(--ease-io) infinite 2s; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 4vw; background: rgba(46, 34, 36, .82); backdrop-filter: blur(12px); visibility: hidden; opacity: 0; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; transform: scale(.92); transition: transform .7s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-width: 88vw; max-height: 78svh; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.lightbox figcaption { font-family: var(--f-script); font-size: 2.4rem; color: var(--white); }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.6rem; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); color: var(--white); font-size: 1.8rem; line-height: 1; }

.toast {
  position: fixed; left: 50%; bottom: 6.5rem; z-index: 160; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: .85rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--white);
  font-family: var(--f-sans); font-size: .74rem; letter-spacing: .14em; transition: .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-only.is-hidden { display: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .message__grid, .venue__grid { grid-template-columns: 1fr; }
  .message__photos { height: min(118vw, 640px); max-width: 560px; width: 100%; margin: 0 auto; }
  .message__text { margin: 0 auto; text-align: center; }
  .message__sign { justify-content: center; }
  .family__cards { grid-template-columns: 1fr; max-width: 420px; }
  .fcard--center { order: -1; }
  .fcard__in, .fcard--center .fcard__in { min-height: 0; }
  .scard { grid-template-columns: 1fr; top: calc(9svh + var(--i, 0) * 18px); min-height: 0; gap: 1rem; }
  .scard__visual { min-height: 300px; order: -1; }
  .venue__badge { right: 1rem; bottom: -2rem; }
  .venue__media { max-width: 560px; width: 100%; margin: 0 auto; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .nav__sound-label, .nav__menu-label { display: none; }
  .nav__sound, .nav__menu { width: 44px; padding: 0; justify-content: center; }
  .env { aspect-ratio: 1.28; }
  .seal { width: 66px; }
  .env__to { bottom: 7%; }
  .hero__frame { width: 78vw; height: 58svh; top: 40%; }
  .hero__type { bottom: max(4svh, 1.5rem); }
  .hero__name { font-size: clamp(5.2rem, 27vw, 8rem); }
  .hero__eyebrow { font-size: .66rem; letter-spacing: .45em; }
  .hero__date { gap: .7rem; letter-spacing: .28em; font-size: .72rem; }
  .hero__scroll { display: none; }
  .hero__xv { font-size: 70vw; flex-direction: column; gap: 0; line-height: .82; top: -8svh; }

  .cd__sep { display: none; }
  .cd { gap: .9rem; }
  .cd__num { font-size: clamp(2.6rem, 13vw, 4rem); }
  .cd__unit > span { font-size: .56rem; letter-spacing: .26em; }

  .tl__vine { left: 30px; width: 60px; }
  .tl__item { grid-template-columns: 60px 1fr; }
  .tl__node { grid-column: 1; width: 52px; height: 52px; padding: 6px; box-shadow: 0 0 0 6px var(--cream), 0 10px 20px -10px rgba(120, 70, 70, .35); }
  .tl__item:nth-child(odd) .tl__card, .tl__item:nth-child(even) .tl__card { grid-column: 2; text-align: left; margin: 0 0 0 .6rem; }
  .tl__item:nth-child(odd) .tl__icon { margin-left: 0; }

  .venue__img { aspect-ratio: 1 / 1.15; }
  .attire { gap: 1.6rem; }
  .swatches { height: 300px; }
  .swatch { width: 96px; height: 240px; margin-left: -48px; }
  .scard { padding: 1.6rem 1.4rem 2rem; border-radius: 30px; }
  .scard__num { font-size: 3.6rem; top: 1rem; right: 1.2rem; }
  .polaroids { width: 210px; height: 260px; }

  .ring__track { --w: 150px; margin-top: 6svh; }
  .ring__item figcaption { font-size: 1.4rem; padding: 1.6rem .6rem .7rem; }

  .choice { grid-template-columns: 1fr; }
  .choice__card { flex-direction: row; text-align: left; gap: 1rem; padding: 1.2rem 3rem 1.2rem 1.2rem; }
  .choice__rose { width: 56px; height: 56px; margin: 0; flex: none; }
  .choice__txt { gap: .1rem; }
  .guests__row { flex-direction: column; align-items: flex-start; }
  .summary { padding: .4rem 1.1rem; }
  .summary__row { flex-direction: column; gap: .2rem; }
  .ticket { flex-direction: column; }
  .ticket__main { border-radius: 22px 22px 0 0;
    -webkit-mask: radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 100%, transparent 13.5px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 100%, transparent 13.5px, #000 14px) right / 51% 100% no-repeat; }
  .ticket__main::before { inset: 9px 9px 16px 9px; border-radius: 15px 15px 0 0; border: 1px solid rgba(184, 155, 106, .4); border-bottom: 0; }
  .ticket__stub { width: auto; flex-direction: row; justify-content: center; gap: 1.2rem; border-radius: 0 0 22px 22px; border-left: 0; border-top: 2px dashed rgba(184, 155, 106, .55);
    -webkit-mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 14px at 0 0, transparent 13.5px, #000 14px) left / 51% 100% no-repeat, radial-gradient(circle 14px at 100% 0, transparent 13.5px, #000 14px) right / 51% 100% no-repeat; }
  .ticket__qr { width: 110px; height: 110px; }
  .rsvp__pearls span { font-size: .5rem; letter-spacing: .12em; }
  .fab__label { font-size: .66rem; letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .words-scrub .word, .hero__quote-text .word { opacity: 1; }
}
