/* ==========================================================================
   Invitación de boda — Elsa & Jhon
   Paleta: verde olivo · marfil · follaje salvia · dorado
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --olive-950: #232a17;
  --olive-900: #2d3520;
  --olive-800: #3b4529;
  --olive-700: #4a5634;
  --olive-600: #5c6b40;
  --sage: #9aa88a;
  --sage-200: #d5dccb;
  --sage-100: #e8ecdf;
  --ivory: #faf6ee;
  --ivory-200: #f3ecdf;
  --white: #fffdf9;
  --gold: #b8955a;
  --gold-300: #d9bf86;
  --gold-100: #f1e3c2;
  --ink: #2c3122;
  --ink-soft: #5a604c;
  --gold-grad: linear-gradient(135deg, #a78345 0%, #e6cd92 45%, #b8955a 70%, #8f6c34 100%);

  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-caps: "Cinzel", "Cormorant Garamond", Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(45, 53, 32, .07);
  --shadow: 0 14px 40px -12px rgba(45, 53, 32, .22);
  --shadow-lg: 0 30px 70px -20px rgba(35, 42, 23, .45);
  --ease: cubic-bezier(.22, .7, .25, 1);
  --dock-h: 64px;

  /* Textura de papel (ruido SVG muy sutil) */
  --paper: 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 .42 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
main:focus { outline: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory) var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--olive-700); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  background: var(--olive-800); color: var(--ivory); padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.script { font-family: var(--font-script); font-weight: 400; line-height: 1.1; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .85rem; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 2; }
.container.narrow { width: min(760px, 100% - 2.5rem); }

/* ---------- 3. Secciones ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  text-align: center;
  overflow: hidden;
}
.section--ivory { background: var(--ivory-200) var(--paper); }
.section--paper { background: var(--ivory) var(--paper); }
.section--white { background: var(--white); }
.section--olive {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(180deg, var(--olive-700), var(--olive-800));
  color: var(--ivory);
}
.section--olive::before {
  /* Marco dorado fino, como en invitaciones impresas */
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(217, 191, 134, .45);
  border-radius: 4px;
  box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px rgba(217, 191, 134, .18);
}

.section__head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.eyebrow {
  font-family: var(--font-caps);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.eyebrow--light { color: var(--gold-300); }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  font-weight: 500;
  color: var(--olive-800);
  letter-spacing: .01em;
}
.section__title--light { color: var(--ivory); }
.section__title--quote {
  font-style: italic;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem);
  line-height: 1.35;
}
.section__intro { max-width: 580px; margin-inline: auto; color: var(--ink-soft); font-size: 1.12em; }
.lead-text { font-size: 1.15em; color: var(--ink-soft); max-width: 640px; margin-inline: auto; }
.lead-text--light { color: rgba(250, 246, 238, .86); }

.ornament { display: inline-block; color: var(--gold); font-size: 1.6rem; margin-bottom: 1rem; }

/* ---------- 4. Flores decorativas ---------- */
.flora {
  position: absolute;
  width: clamp(150px, 40vw, 360px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.flora--tl { top: -4%; left: -6%; }
.flora--tr { top: -4%; right: -6%; transform: scaleX(-1); }
.flora--bl { bottom: -4%; left: -6%; transform: scaleY(-1); }
.flora--br { bottom: -4%; right: -6%; transform: rotate(180deg); }
.flora--dark { opacity: .85; width: clamp(140px, 34vw, 320px); }
.flora--sm { width: clamp(120px, 26vw, 240px); }

/* ---------- 5. Botones ---------- */
.btn {
  --bg: var(--olive-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-caps);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s, border-color .35s;
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--olive { background: var(--olive-700); color: var(--ivory); box-shadow: 0 10px 24px -10px rgba(45, 53, 32, .6); }
.btn--olive:hover { background: var(--olive-800); box-shadow: 0 16px 30px -12px rgba(45, 53, 32, .7); }
.btn--outline { background: transparent; color: var(--olive-800); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold-100); }
.btn--gold {
  background: var(--gold-grad); background-size: 180% 180%; background-position: 0% 50%;
  color: var(--olive-950);
  box-shadow: 0 10px 26px -10px rgba(143, 108, 52, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--gold:hover { background-position: 100% 50%; box-shadow: 0 16px 32px -12px rgba(143, 108, 52, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--ghost-light { color: var(--gold-300); border-color: rgba(217, 191, 134, .55); background: transparent; }
.btn--ghost-light:hover { background: rgba(217, 191, 134, .12); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin: 1.5rem 0 1rem; }

/* ---------- 6. Tarjetas ---------- */
.card {
  position: relative;
  background: rgba(255, 253, 249, .92);
  border: 1px solid rgba(184, 149, 90, .35);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--shadow);
}
.card::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(184, 149, 90, .18); border-radius: calc(var(--radius) - 6px);
}
.icon-badge {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.45rem;
  margin-bottom: 1rem;
  background: radial-gradient(circle, var(--white) 55%, var(--ivory-200));
  box-shadow: 0 0 0 5px rgba(184, 149, 90, .08);
}

/* ==========================================================================
   7. INTRO — Sobre animado
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, var(--white) 0%, var(--ivory) 55%, var(--ivory-200) 100%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro::before { content: ""; position: absolute; inset: 0; background: var(--paper); pointer-events: none; }
.intro .flora { position: fixed; width: clamp(160px, 46vw, 420px); }
.intro__inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 4.5rem 1.25rem 2.5rem;
  width: 100%;
  max-width: 520px;
}
.intro__guest {
  font-style: italic; color: var(--olive-700); font-size: 1.15rem; margin-bottom: .4rem;
}
.intro__lead { max-width: 340px; line-height: 1.9; margin-bottom: 2rem; color: var(--olive-700); }
.intro__names { font-size: clamp(3rem, 12vw, 4.4rem); color: var(--olive-800); margin: 1.6rem 0 .2rem; }
.intro__date {
  font-family: var(--font-caps); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.intro__skip {
  margin-top: 1rem; background: none; border: 0; padding: .5rem .75rem; cursor: pointer;
  color: var(--ink-soft); font-size: .95rem; text-decoration: underline; text-underline-offset: 4px;
}
.intro__skip:hover { color: var(--olive-800); }

.envelope {
  --w: min(78vw, 340px);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * .66);
  perspective: 1200px;
  cursor: pointer;
  filter: drop-shadow(0 22px 30px rgba(35, 42, 23, .28));
  transition: transform .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
  animation: floaty 5s ease-in-out infinite;
}
.envelope:hover { transform: translateY(-4px) rotate(-.6deg); }
.envelope:focus-visible { outline-offset: 10px; border-radius: 10px; }
.envelope__back {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(180deg, var(--olive-900), var(--olive-800));
}
.envelope__letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 88%;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  background: var(--white) var(--paper);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: transform 1.1s var(--ease) .55s;
}
.envelope__letter::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(184, 149, 90, .55); border-radius: 2px;
}
.envelope__letter-eyebrow { font-family: var(--font-caps); font-size: .58rem; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.envelope__letter-names { font-family: var(--font-script); font-size: clamp(1.7rem, 7vw, 2.3rem); color: var(--olive-800); line-height: 1.2; }
.envelope__letter-date { font-family: var(--font-caps); font-size: .62rem; letter-spacing: .25em; color: var(--ink-soft); }
.envelope__front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; border-radius: 6px; }
.envelope__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 60%;
  z-index: 4;
  transform-origin: top center;
  transition: transform .9s var(--ease), z-index 0s linear .45s;
  transform-style: preserve-3d;
}
.envelope__flap svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .2)); }

.seal {
  position: absolute; left: 50%; top: 60%;
  z-index: 5;
  width: clamp(62px, 18vw, 78px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 35% 30%, #f4e2b0 0%, #d4b06b 28%, #b08840 60%, #7d5d26 100%);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, .35),
    inset 0 -3px 6px rgba(90, 62, 20, .55),
    inset 0 3px 5px rgba(255, 240, 200, .55);
  transition: transform .6s var(--ease), opacity .5s;
}
.seal::before {
  content: ""; position: absolute; inset: 14%;
  border-radius: 50%;
  border: 1.5px solid rgba(110, 80, 30, .55);
  box-shadow: inset 0 1px 2px rgba(255, 240, 200, .5), 0 1px 0 rgba(255, 240, 200, .35);
}
.seal__text {
  position: relative;
  font-family: var(--font-script); font-size: clamp(1.25rem, 5vw, 1.55rem);
  color: #6e5020;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6), 0 -1px 0 rgba(70, 48, 15, .35);
  white-space: nowrap;
}
.envelope:hover .seal { transform: translate(-50%, -50%) scale(1.06) rotate(-4deg); }

/* Estado: abriendo */
.intro.is-opening .envelope { animation: none; transform: translateY(14%); transition: transform 1.2s var(--ease) .4s; }
.intro.is-opening .seal { transform: translate(-50%, -50%) scale(.4) rotate(25deg); opacity: 0; }
.intro.is-opening .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.intro.is-opening .envelope__letter { transform: translateY(-62%); }
.intro.is-opening .intro__open,
.intro.is-opening .intro__skip,
.intro.is-opening .intro__lead,
.intro.is-opening .intro__date,
.intro.is-opening .intro__names,
.intro.is-opening .intro__guest { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .intro { display: none; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ==========================================================================
   8. PORTADA
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 5rem 1.25rem;
  overflow: hidden;
  text-align: center;
}
.hero .flora { width: clamp(170px, 48vw, 440px); }
.hero__frame {
  position: relative; z-index: 2;
  width: min(560px, 100%);
  padding: clamp(3rem, 9vw, 4.5rem) clamp(1.25rem, 6vw, 3.5rem);
  border: 1px solid rgba(184, 149, 90, .6);
  border-radius: 220px 220px 12px 12px;
  background: rgba(255, 253, 249, .55);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 0 8px rgba(255, 253, 249, .5), 0 0 0 9px rgba(184, 149, 90, .28), var(--shadow);
}
.hero__names {
  font-size: clamp(3.6rem, 16vw, 6.4rem);
  color: var(--olive-800);
  display: flex; flex-direction: column; align-items: center;
  margin: .3rem 0 1.4rem;
  line-height: .95;
}
.hero__amp { font-size: .55em; color: var(--gold); margin: .1em 0; }
.date-strip {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .9rem;
  font-family: var(--font-caps); font-size: clamp(.72rem, 2.6vw, .9rem); letter-spacing: .18em; text-transform: uppercase;
  color: var(--olive-800);
  margin: 0 auto 1.6rem; max-width: 420px;
}
.date-strip > span:first-child { text-align: right; }
.date-strip > span:last-child { text-align: left; }
.date-strip__main {
  padding: .55rem .9rem;
  border-block: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 500;
}
.hero__venue { font-size: 1.1rem; color: var(--olive-800); margin-bottom: 1.8rem; }
.scroll-hint {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--gold); border: 1px solid rgba(184, 149, 90, .5); text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- Bienvenida ---------- */
.welcome__couple {
  display: flex;
  justify-content: center;
  margin: 1.8rem auto 2.2rem;
}
.welcome__couple-frame {
  position: relative;
  width: min(320px, 78vw);
  border-radius: 190px 190px 22px 22px;
  padding: 8px;
  background: linear-gradient(145deg, #d9bf86 0%, #8f6c34 50%, #e6cd92 100%);
  box-shadow:
    0 22px 50px -15px rgba(35, 42, 23, .35),
    0 0 0 5px var(--ivory-200),
    0 0 0 6px rgba(184, 149, 90, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.welcome__couple-frame:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    0 30px 60px -18px rgba(35, 42, 23, .45),
    0 0 0 5px var(--ivory-200),
    0 0 0 7px rgba(184, 149, 90, .65);
}
.welcome__couple-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(217, 191, 134, .7);
  border-radius: 182px 182px 16px 16px;
  pointer-events: none;
  z-index: 2;
}
.welcome__couple-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 182px 182px 14px 14px;
  background-color: #0d0f0a;
  display: block;
}
.welcome__couple-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-grad);
  border: 2px solid var(--ivory-200);
  box-shadow: 0 4px 14px rgba(35, 42, 23, .3);
  display: grid;
  place-items: center;
  color: var(--olive-950);
  font-size: 1.15rem;
  z-index: 3;
}

.welcome__names { font-size: clamp(3rem, 11vw, 4.6rem); color: var(--olive-700); margin: 1.5rem 0 .5rem; }
.welcome__tagline { font-style: italic; color: var(--gold); font-size: 1.2em; }
.divider { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 2rem; color: var(--gold); }
.divider__line { height: 1px; width: min(110px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider__line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider__sprig { width: 120px; height: 32px; }

/* ---------- Bendición de padres y testigos ---------- */
.blessing-card {
  margin-top: 2.8rem;
  padding: clamp(1.8rem, 5vw, 2.8rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, .4);
  box-shadow: var(--shadow);
}
.ornament--sm {
  font-size: 1.25rem;
  margin-bottom: .6rem;
  color: var(--gold);
}
.blessing-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem);
  color: var(--olive-800);
  margin-bottom: 2rem;
  line-height: 1.35;
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.family-col {
  padding: .3rem .5rem;
}
.family-role {
  font-family: var(--font-caps);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
  font-weight: 500;
}
.family-names {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, .96rem + .4vw, 1.28rem);
  color: var(--olive-900);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}
.family-sep {
  display: flex;
  align-items: center;
  justify-content: center;
}
.family-sep__amp {
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.witnesses-box {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(184, 149, 90, .25);
  max-width: 540px;
  margin: 0 auto;
}
.witnesses-names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, .95rem + .35vw, 1.22rem);
  color: var(--olive-900);
  margin: 0;
  font-weight: 500;
}
.witnesses-sep {
  color: var(--gold);
  font-size: .8rem;
}

@media (max-width: 600px) {
  .family-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .family-sep {
    display: none;
  }
  .family-names {
    margin-bottom: .5rem;
  }
}

/* ==========================================================================
   9. GALERÍA (Encuadrada / Uniforme)
   ========================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.45rem, 1.8vw, 1rem);
  max-width: 820px;
  margin: 0 auto;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(184, 149, 90, .35);
  box-shadow: var(--shadow-sm);
  padding: clamp(3px, 1vw, 6px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.gallery__item--principal {
  grid-column: span 2;
}
.gallery__item--principal .gallery__btn {
  aspect-ratio: 4 / 3;
}
.gallery__item--cuadrada {
  grid-column: span 1;
}
.gallery__btn {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sage-100);
}
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease);
}
.gallery__btn::after {
  content: "\F52A"; /* bi-zoom-in */
  font-family: "bootstrap-icons";
  position: absolute; right: clamp(6px, 1.5vw, 12px); bottom: clamp(6px, 1.5vw, 12px);
  width: clamp(26px, 5.5vw, 36px); height: clamp(26px, 5.5vw, 36px);
  display: grid; place-items: center;
  font-size: clamp(.7rem, 2vw, .95rem);
  border-radius: 50%; background: rgba(255, 253, 249, .88); color: var(--olive-800);
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.06); }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; transform: none; }
.gallery__notice { margin-top: 1.4rem; font-size: .9rem; font-style: italic; color: var(--ink-soft); }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(24, 29, 16, .94);
  color: var(--ivory);
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .35s var(--ease); }
.lightbox::backdrop { background: rgba(24, 29, 16, .6); }
.lightbox__figure { margin: 0; padding: 4rem 1rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; }
.lightbox__figure img {
  max-width: min(92vw, 1100px); max-height: 78svh; width: auto; height: auto;
  border-radius: 8px; box-shadow: var(--shadow-lg);
  animation: zoomIn .45s var(--ease);
}
.lightbox__figure figcaption { font-style: italic; font-size: 1rem; color: rgba(250, 246, 238, .78); text-align: center; max-width: 640px; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 249, .1); border: 1px solid rgba(217, 191, 134, .45);
  color: var(--ivory); font-size: 1.2rem; cursor: pointer;
  transition: background .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(217, 191, 134, .25); }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }

/* ==========================================================================
   10. FECHA / CUENTA REGRESIVA
   ========================================================================== */
.save-date__date { font-size: clamp(1.35rem, 1rem + 1.6vw, 1.9rem); color: var(--gold-300); margin-bottom: .2rem; }
.save-date__date strong { font-weight: 500; }
.save-date__time { font-style: italic; color: rgba(250, 246, 238, .75); margin-bottom: 2.2rem; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.45rem, 2vw, 1rem);
  max-width: 560px; margin: 0 auto 2.4rem;
}
.countdown__item {
  padding: clamp(.9rem, 3vw, 1.4rem) .3rem;
  border: 1px solid rgba(217, 191, 134, .45);
  border-radius: 12px;
  background: rgba(255, 253, 249, .06);
  backdrop-filter: blur(3px);
}
.countdown__num {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.8rem, 7vw, 3rem); line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block; margin-top: .45rem;
  font-family: var(--font-caps); font-size: clamp(.55rem, 1.9vw, .72rem); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-300);
}
.countdown__message {
  font-family: var(--font-script); font-size: clamp(2.2rem, 8vw, 3.2rem); color: var(--gold-300);
  margin: 0 0 2rem;
}

.cal-menu { position: relative; display: inline-block; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu__panel {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  min-width: 270px; padding: .5rem;
  background: var(--white); color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  z-index: 5; text-align: left;
  animation: fadeIn .25s var(--ease);
}
.cal-menu__opt {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .8rem 1rem; border: 0; border-radius: 10px; background: transparent;
  text-decoration: none; color: var(--olive-800); font-size: 1.02rem; cursor: pointer;
}
.cal-menu__opt:hover, .cal-menu__opt:focus-visible { background: var(--sage-100); }
.cal-menu__opt i { color: var(--gold); }

/* ==========================================================================
   11. PROGRAMA — línea de tiempo
   ========================================================================== */
.timeline { position: relative; text-align: left; max-width: 620px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 28px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}
.timeline__item { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.1rem; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__icon {
  position: relative; z-index: 1;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory-200); border: 1px solid var(--gold); color: var(--gold); font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--ivory-200);
}
.timeline__time {
  font-family: var(--font-caps); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin: .3rem 0 .25rem;
}
.timeline__time.is-pending { font-family: var(--font-serif); font-style: italic; letter-spacing: .02em; text-transform: none; font-size: .98rem; color: var(--ink-soft); }
.timeline__title { font-size: 1.55rem; color: var(--olive-800); margin-bottom: .2rem; }
.timeline__desc { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   12. UBICACIÓN
   ========================================================================== */
.location__grid { display: grid; gap: 1.5rem; align-items: stretch; }
.location__name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--olive-800); margin-bottom: .2rem; }
.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(184, 149, 90, .45);
  box-shadow: var(--shadow);
  background: var(--sage-100);
  aspect-ratio: 4 / 3.4;
  min-height: 300px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   13. VESTIMENTA
   ========================================================================== */
.dress__art { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin-bottom: 1.6rem; }
.dress__icon { width: 64px; height: 80px; }
.dress__amp { font-size: 2.4rem; color: var(--olive-600); }
.dress__details { display: grid; gap: 1.1rem; margin: 0 0 1.4rem; }
.dress__details dt { font-family: var(--font-caps); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.dress__details dd { margin: .2rem 0 0; font-size: 1.25rem; color: var(--olive-800); }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.2rem; margin-bottom: 1.4rem; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-soft); width: 70px; }
.swatch__dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(184, 149, 90, .55), var(--shadow-sm);
  transition: transform .35s var(--ease);
}
.swatch:hover .swatch__dot { transform: scale(1.1); }
.dress__note { font-style: italic; color: var(--olive-700); margin: 0; }
.dress__note i { color: var(--gold); }

/* ==========================================================================
   14. REGALOS
   ========================================================================== */
.gifts__icon {
  display: inline-grid; place-items: center;
  width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid rgba(217, 191, 134, .6);
  color: var(--gold-300); font-size: 2rem;
  margin-bottom: 1.4rem;
  box-shadow: 0 0 0 7px rgba(217, 191, 134, .08);
}
.gifts__box {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  max-width: 520px; margin: 2rem auto 0;
  padding: 1.1rem 1.4rem;
  border: 1px dashed rgba(217, 191, 134, .6);
  border-radius: 12px;
  background: rgba(255, 253, 249, .05);
  text-align: left;
}
.gifts__box i { font-size: 1.8rem; color: var(--gold-300); flex-shrink: 0; }
.gifts__box p { margin: 0; color: var(--ivory); }
.gifts__accounts { display: grid; gap: 1rem; margin-top: 1.6rem; }
.account {
  padding: 1.2rem; border-radius: 12px; border: 1px solid rgba(217, 191, 134, .4);
  background: rgba(255, 253, 249, .06); text-align: left;
}
.account h3 { font-size: 1.25rem; color: var(--gold-300); margin-bottom: .4rem; }
.account p { margin: 0 0 .3rem; color: var(--ivory); }
.account__copy { margin-top: .6rem; min-height: 40px; padding: .5rem 1.1rem; font-size: .72rem; }

/* ==========================================================================
   15. RECOMENDACIONES
   ========================================================================== */
.tips__grid { display: grid; gap: 1.2rem; }
.tip {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 149, 90, .25);
  background: var(--ivory) var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip h3 { font-size: 1.4rem; color: var(--olive-800); margin-bottom: .4rem; }
.tip p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   16. RSVP
   ========================================================================== */
.rsvp .flora { opacity: .9; }
.rsvp__card { text-align: center; }
.form { text-align: left; margin-top: 1.8rem; display: grid; gap: 1.25rem; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: .45rem; padding: 0;
  font-family: var(--font-caps); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-700);
}
.field label .muted { text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-size: .95rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: .75rem 1rem;
  border: 1px solid rgba(92, 107, 64, .3);
  border-radius: 10px;
  background: var(--white);
  font-size: 1.08rem;
  transition: border-color .3s, box-shadow .3s;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b8955a' stroke-width='1.6' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 149, 90, .18);
}
.field.has-error input, .field.has-error .choice span { border-color: #a5523f; }
.field__error { color: #9a4733; font-size: .92rem; margin: .35rem 0 0; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { font-size: .9rem; color: var(--ink-soft); margin: .35rem 0 0; font-style: italic; }
.field__hint:empty { display: none; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  min-height: 54px; padding: .6rem .8rem;
  border: 1px solid rgba(92, 107, 64, .3); border-radius: 10px; background: var(--white);
  font-size: 1.05rem; line-height: 1.25;
  transition: all .3s var(--ease);
}
.choice span i { color: var(--gold); }
.choice input:checked + span { background: var(--olive-700); border-color: var(--olive-700); color: var(--ivory); box-shadow: 0 8px 18px -10px rgba(45, 53, 32, .7); }
.choice input:checked + span i { color: var(--gold-300); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
#guests-field[hidden] { display: none; }

.msg-preview {
  padding: 1rem 1.1rem; border-radius: 12px;
  background: var(--sage-100); border-left: 3px solid var(--gold);
}
.msg-preview__label { font-family: var(--font-caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive-700); margin-bottom: .4rem; }
.msg-preview__text { margin: 0; font-style: italic; color: var(--ink); font-size: 1rem; white-space: pre-line; }
.form__status {
  padding: 1rem 1.1rem; border-radius: 12px; font-size: 1rem; line-height: 1.5;
  background: var(--gold-100); border: 1px solid rgba(184, 149, 90, .5); color: var(--olive-900);
}
.form__status.is-success { background: #e9efdf; border-color: var(--sage); }
.form__status .btn { margin-top: .8rem; min-height: 42px; padding: .55rem 1.2rem; font-size: .74rem; }

/* ==========================================================================
   17. CIERRE
   ========================================================================== */
.closing {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(5rem, 12vw, 8rem) 0 calc(clamp(5rem, 12vw, 8rem) + var(--dock-h));
}
.closing__title { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); color: var(--ivory); }
.closing__sign { margin: 2rem 0 0; font-style: italic; color: var(--gold-300); font-size: 1.2rem; }
.closing__names { font-size: clamp(3.4rem, 13vw, 5.4rem); color: var(--gold-300); margin: .1rem 0 .4rem; }
.closing__date { font-family: var(--font-caps); letter-spacing: .3em; font-size: .85rem; color: rgba(250, 246, 238, .8); margin-bottom: 2.2rem; }

/* ==========================================================================
   18. NAVEGACIÓN INFERIOR (dock)
   ========================================================================== */
.dock {
  position: fixed; z-index: 500;
  left: 50%; bottom: max(10px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  display: flex; gap: .1rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(45, 53, 32, .82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(217, 191, 134, .35);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .7s var(--ease);
}
body.is-open .dock { transform: translate(-50%, 0); }
.dock__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem;
  min-width: 56px; height: 52px; padding: 0 .4rem;
  border-radius: 999px;
  color: rgba(250, 246, 238, .75); text-decoration: none;
  font-size: .64rem; letter-spacing: .04em;
  transition: background .3s, color .3s;
}
.dock__link i { font-size: 1.12rem; }
.dock__link:hover { color: var(--ivory); }
.dock__link.is-active { background: rgba(217, 191, 134, .2); color: var(--gold-300); }

/* ==========================================================================
   19. REPRODUCTOR
   ========================================================================== */
.player {
  position: fixed; z-index: 510;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--dock-h) + 12px);
  display: flex; align-items: flex-end; flex-direction: column; gap: .5rem;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
body.is-open .player { opacity: 1; pointer-events: auto; transform: none; }
.player__btn {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(217, 191, 134, .7);
  background: var(--olive-800); color: var(--gold-300);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.player__btn:hover { transform: scale(1.06); }
.player__btn::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(217, 191, 134, .5); opacity: 0;
}
.player__icon { font-size: 1.2rem; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 16px; }
.eq span { width: 3px; height: 100%; background: var(--gold-300); border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.3s; }
.eq span:nth-child(3) { animation-delay: -.6s; }
.eq span:nth-child(4) { animation-delay: -.15s; }
.player.is-playing .eq { display: flex; }
.player.is-playing .player__icon { display: none; }
.player.is-playing .player__btn::before { animation: pulse 2.2s ease-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.35); } }
.player__more {
  order: -1;
  width: 32px; height: 32px; border-radius: 50%; margin-right: 10px;
  display: grid; place-items: center;
  border: 1px solid rgba(184, 149, 90, .45); background: rgba(255, 253, 249, .9); color: var(--olive-700);
  cursor: pointer; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.player__panel {
  order: -2;
  width: min(250px, 78vw);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 253, 249, .97);
  border: 1px solid rgba(184, 149, 90, .4);
  box-shadow: var(--shadow-lg);
  animation: fadeIn .3s var(--ease);
}
.player__msg { font-style: italic; color: var(--olive-800); font-size: 1rem; margin-bottom: .7rem; line-height: 1.35; }
.player__vol { display: flex; align-items: center; gap: .6rem; color: var(--gold); }
.player__vol input { flex: 1; accent-color: var(--olive-700); }
.player__error { margin: .7rem 0 0; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 950; left: 50%; top: 18px;
  transform: translate(-50%, -150%);
  max-width: min(92vw, 420px);
  padding: .8rem 1.2rem; border-radius: 12px;
  background: var(--olive-900); color: var(--ivory); font-size: 1rem; text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ==========================================================================
   20. Animaciones de aparición
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   21. Responsive
   ========================================================================== */
@media (min-width: 600px) {
  .tips__grid { grid-template-columns: repeat(2, 1fr); }
  .gifts__accounts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .timeline::before { left: 50%; }
  .timeline__item { grid-template-columns: 1fr 58px 1fr; gap: 1.8rem; }
  .timeline__icon { grid-column: 2; grid-row: 1; }
  .timeline__body { grid-row: 1; }
  .timeline__item:nth-child(odd) .timeline__body { grid-column: 1; text-align: right; }
  .timeline__item:nth-child(even) .timeline__body { grid-column: 3; }
}
@media (min-width: 960px) {
  .location__grid { grid-template-columns: 5fr 6fr; }
  .location__info { display: flex; flex-direction: column; justify-content: center; }
  .map-frame { aspect-ratio: auto; min-height: 440px; }
  .tips__grid { grid-template-columns: repeat(4, 1fr); }
  .dock__link { min-width: 72px; font-size: .7rem; }
  .player { right: 24px; bottom: 24px; }
}
@media (max-width: 380px) {
  .dock__link { min-width: 50px; padding: 0 .2rem; font-size: .58rem; }
  .choice-group { grid-template-columns: 1fr; }
  .date-strip { gap: .5rem; letter-spacing: .1em; }
  .btn { padding: .7rem 1.2rem; letter-spacing: .1em; }
}
@media (max-height: 640px) {
  .intro__inner { padding-top: 2.5rem; }
  .intro__lead { margin-bottom: 1.2rem; }
  .intro__names { margin-top: 1rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .envelope, .scroll-hint { animation: none; }
}
