/* ============================================================
   Lucía & Mario — Web de boda · estilo rural minimalista
   Paleta natural: lino, oliva apagado, terracota suave
   ============================================================ */

:root {
  --linen:       #f4efe6;   /* fondo principal */
  --linen-dim:   #ece4d6;   /* fondo alterno */
  --cream:       #fbf8f2;   /* tarjetas */
  --ink:         #34302a;   /* texto cálido (no negro puro) */
  --ink-soft:    #6b6457;   /* texto secundario */
  --olive:       #7d8266;   /* verde sage apagado */
  --olive-deep:  #5c6149;
  --forest:      #39402f;   /* verde oliva-bosque oscuro (secciones de contraste) */
  --terra:       #b9764f;   /* acento terracota suave */
  --blush:       #e8d3c6;   /* melocotón/blush suave */
  --line:        #d8cfbf;   /* hairlines */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Mulish", system-ui, sans-serif;

  --maxw: 1080px;
  --radius: 14px;           /* esquinas redondeadas */
  --gutter: clamp(18px, 5vw, 28px); /* aire a los bordes de pantalla */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* el atributo hidden debe ganar siempre (si no, display:flex lo anula) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- DECK full-screen estilo stories (móvil + escritorio) ---------- */
html.mode-pager, html.mode-pager body { height: 100%; overflow: hidden; }
html.mode-pager .pager { position: fixed; inset: 0; overflow: hidden; z-index: 1; }
html.mode-pager .pager__track {
  height: 100%;
  transition: transform .82s cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}
html.mode-pager .panel {
  height: 100svh;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html.mode-pager .panel::-webkit-scrollbar { display: none; }
/* cada sección llena la pantalla; centrada si cabe, scroll interno si no (safe) */
html.mode-pager .panel > * {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: safe center;
}
html.mode-pager .panel > .fotoscreen { justify-content: flex-end; }
/* marca A&A + hamburguesa FLOTANTES (sin barra de navbar), iguales en cada pantalla */
html.mode-pager .nav {
  background: none !important; box-shadow: none !important; backdrop-filter: none !important;
  padding: 20px clamp(14px, 4vw, 26px) 0; z-index: 50; pointer-events: none;
}
html.mode-pager .nav > * { pointer-events: auto; }
html.mode-pager .nav__brand { font-size: 1.25rem; }
html.mode-pager .nav__toggle { display: block; font-size: 1.3rem; line-height: 1; }
/* los enlaces SIEMPRE como cajón lateral (también en escritorio) */
html.mode-pager .nav__links {
  position: fixed; inset: 0 0 auto auto; top: 0; height: 100svh; width: min(82vw, 300px);
  flex-direction: column; justify-content: center; gap: 18px; padding: 48px 40px;
  background: var(--cream); transform: translateX(100%);
  transition: transform .4s var(--ease); box-shadow: -22px 0 60px -30px rgba(0,0,0,.4);
}
html.mode-pager .nav__links.is-open { transform: none; }
html.mode-pager .nav__links a { color: var(--ink) !important; font-size: 1rem; letter-spacing: .04em; }
html.mode-pager .nav__links a::after { display: none; }

/* barra de progreso por segmentos */
.deck-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 45; display: none; gap: 4px; padding: 9px clamp(12px,3vw,22px); }
html.mode-pager .deck-progress { display: flex; }
.deck-seg { flex: 1; height: 12px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.deck-seg i { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(90,80,60,.22); transition: background .3s; }
.deck-seg.is-done i, .deck-seg.is-active i { background: var(--terra); }
html.deck-dark .deck-seg i { background: rgba(255,255,255,.28); }
html.deck-dark .deck-seg.is-done i, html.deck-dark .deck-seg.is-active i { background: #f0d9c8; }

/* botón siguiente flotante */
.deck-next {
  position: fixed; left: 50%; bottom: clamp(16px,4vh,28px); transform: translateX(-50%); z-index: 44;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(120,108,86,.3);
  background: rgba(251,248,242,.72); backdrop-filter: blur(8px); color: var(--ink);
  font-size: 1.3rem; cursor: pointer; display: none; align-items: center; justify-content: center;
  animation: bob 2s infinite; transition: opacity .4s;
}
html.mode-pager .deck-next { display: flex; }
.deck-next.is-hidden { opacity: 0; pointer-events: none; }
html.deck-dark .deck-next { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------- pantalla: QUIZ (adivina) ---------- */
.quiz { text-align: center; }
.quiz__inner { width: 100%; max-width: 560px; margin: 0 auto; padding: clamp(24px,6vw,48px); }
.quiz__q { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem,7vw,3.2rem); line-height: 1.05; margin: 12px 0 28px; }
.quiz__options { display: flex; flex-direction: column; gap: 12px; }
.quiz__opt {
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink); text-align: left;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s, background .2s; display: flex; align-items: center; gap: 12px;
}
.quiz__opt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .2s; }
.quiz__opt:hover { transform: translateY(-2px); border-color: var(--olive); }
.quiz__opt.is-locked, .quiz__opt.is-locked:hover { cursor: default; transform: none; }
.quiz__opt.is-correct { background: #eef3e6; border-color: var(--olive); }
.quiz__opt.is-correct::before { background: var(--olive); border-color: var(--olive); box-shadow: inset 0 0 0 3px #eef3e6; }
.quiz__opt.is-wrong { background: #f6e9e2; border-color: var(--terra); }
.quiz__opt.is-wrong::before { background: var(--terra); border-color: var(--terra); box-shadow: inset 0 0 0 3px #f6e9e2; }
.quiz__reveal {
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
  transition: max-height .55s var(--ease), opacity .55s var(--ease), margin-top .55s var(--ease);
}
.quiz__reveal.is-shown { max-height: 240px; opacity: 1; margin-top: 22px; }

/* ---------- pantalla: DATO (estilo Wrapped) ---------- */
.dato { text-align: center; color: var(--cream); position: relative; overflow: hidden; max-width: none; }
.dato__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.dato__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,34,26,.55), rgba(40,34,26,.78)); }
.dato__inner { position: relative; z-index: 1; padding: clamp(24px,6vw,48px); margin: auto; }
.dato__label { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.dato__num { font-family: var(--serif); font-weight: 600; font-size: clamp(4rem,22vw,9rem); line-height: 1; margin: 6px 0; color: #f0d9c8; }
.dato__cap { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem,4vw,1.7rem); max-width: 22ch; margin: 0 auto; }

/* ---------- pantalla: FOTO a sangre ---------- */
.fotoscreen { position: relative; overflow: hidden; color: var(--cream); text-align: center; padding: 0; max-width: none; }
.fotoscreen__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transform: scale(1.04); }
.fotoscreen__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,26,20,.1) 0%, rgba(30,26,20,.6) 100%); }
.fotoscreen__cap { position: relative; z-index: 1; width: 100%; padding: clamp(28px,8vw,64px); }
.fotoscreen__cap .section__eyebrow { color: #e7c4ab; }
.fotoscreen__cap h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem,6vw,2.8rem); line-height: 1.1; }

/* foto a sangre en horizontal: se muestra ENTERA con fondo desenfocado de relleno */
.fotoscreen__fill { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(.5); transform: scale(1.2); }
.fotoscreen--fit .fotoscreen__bg { background-size: contain; background-repeat: no-repeat; background-position: center 40%; transform: none; z-index: 1; }
.fotoscreen--fit .fotoscreen__cap { z-index: 3; }

/* ---------- HISTORIA compacta en modo deck (sin imágenes grandes) ---------- */
html.mode-pager .story .section__head { margin-bottom: clamp(24px,4vh,40px); }
html.mode-pager .timeline { gap: clamp(22px,3.4vh,38px); max-width: 540px; margin: 0 auto; }
html.mode-pager .timeline__img { display: none; }
html.mode-pager .timeline__item, html.mode-pager .timeline__item--rev { grid-template-columns: 1fr; gap: 0; }
html.mode-pager .timeline__item { position: relative; padding-left: 26px; }
html.mode-pager .timeline__item::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: -28px; width: 1px; background: var(--line); }
html.mode-pager .timeline__item:last-child::before { display: none; }
html.mode-pager .timeline__item::after { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--terra); background: var(--linen); }
html.mode-pager .timeline__year { font-size: 1.1rem; margin-bottom: 2px; }
html.mode-pager .timeline__text h3 { font-size: clamp(1.4rem,5.2vw,1.9rem); margin-bottom: 6px; }
html.mode-pager .timeline__text p { font-size: .98rem; max-width: none; }

/* deja aire abajo para que el botón "siguiente" no choque con el contenido */
html.mode-pager .panel > .section { padding-bottom: clamp(84px, 12vh, 112px); }

/* ---------- EL GRAN DÍA compacto en modo deck ---------- */
html.mode-pager .day__cards { grid-template-columns: 1fr; gap: clamp(18px,3vh,26px); max-width: 420px; margin: 0 auto; }
html.mode-pager .card { padding: clamp(22px,5vw,32px) 12px; gap: 10px; }
html.mode-pager .card__label { font-size: .66rem; }
html.mode-pager .card__big { font-size: clamp(1.7rem,7vw,2.2rem); }
html.mode-pager .card__place { font-size: .84rem; }
html.mode-pager .day .map { display: none; } /* el mapa abre con "Cómo llegar" */
html.mode-pager .day__actions { margin: clamp(24px,4.5vh,38px) auto 0; }
html.mode-pager .day__head, html.mode-pager .day .section__head { margin-bottom: clamp(26px,4vh,42px); }

/* ---------- zona de seguridad inferior: el botón "siguiente" nunca pisa el texto ---------- */
html.mode-pager .quiz__inner     { padding-bottom: clamp(92px, 13vh, 116px); }
html.mode-pager .countdown       { padding-bottom: clamp(96px, 14vh, 120px); }
html.mode-pager .dato__inner     { padding-bottom: clamp(82px, 12vh, 104px); }
html.mode-pager .fotoscreen__cap { padding-bottom: clamp(100px, 15vh, 134px); }
html.mode-pager .hero__scroll    { display: none; } /* la flecha del hero sobra: ya está el botón del deck */

/* ============================ SOBRE / INTRO ============================ */
body.intro-locked { overflow: hidden; height: 100svh; }

.intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(28px, 5vh, 56px);
  background:
    radial-gradient(130% 120% at 50% 38%, #f6f0e4 0%, var(--linen) 42%, #e7ddca 100%);
  transition: opacity 1.5s var(--ease), visibility 1.5s var(--ease), transform 1.6s var(--ease);
  overflow: hidden; will-change: opacity, transform;
}
.intro.is-open { opacity: 0; visibility: hidden; transform: translateY(-9%) scale(1.04); }

/* halo de luz que crece al abrir */
.intro__glow {
  position: absolute; left: 50%; top: 44%; width: 40vmax; height: 40vmax; transform: translate(-50%, -50%) scale(.2);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,250,240,.9) 0%, rgba(255,247,233,.4) 35%, transparent 68%);
  opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease);
}
.intro.is-open .intro__glow { opacity: 1; transform: translate(-50%, -50%) scale(1.6); }

/* contenedor 3D del sobre */
.envelope {
  --w: clamp(320px, 64vw, 580px);
  --h: calc(var(--w) / 1.5);
  position: relative; width: var(--w); height: var(--h);
  cursor: pointer; perspective: 1400px;
}
.envelope:focus-visible { outline: 2px solid var(--terra); outline-offset: 20px; border-radius: 6px; }

/* respiración en reposo + empuje al abrir */
.envelope__float {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: floatBreath 5.5s ease-in-out infinite;
  transition: transform 1.1s var(--ease);
}
.envelope.is-open .envelope__float { animation: none; transform: translateY(-2%) scale(1.03); }
@keyframes floatBreath {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50%      { transform: translateY(-2.2%) rotateX(2.5deg); }
}

/* sombra proyectada */
.envelope__shadow {
  position: absolute; left: 8%; right: 8%; bottom: -9%; height: 16%; z-index: 0;
  background: radial-gradient(closest-side, rgba(60,52,40,.34), transparent 78%);
  filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.envelope.is-open .envelope__shadow { opacity: .25; transform: scale(.86); }

/* carta que emerge del sobre */
.envelope__letter {
  position: absolute; left: 7%; top: 5%; width: 86%; height: 95%; z-index: 1;
  display: flex; align-items: flex-start; justify-content: center;
  transform: translate3d(0, 0, -4px); transition: transform 1.15s var(--ease) .55s;
}
.envelope.is-open .envelope__letter { transform: translate3d(0, -52%, -4px); }
.envelope__card {
  width: 100%; padding: 12% 10% 0; text-align: center;
  background: linear-gradient(170deg, #fffdf8, #f6f0e6);
  border-radius: 4px; height: 100%;
  box-shadow: 0 10px 24px -16px rgba(52,48,42,.5), inset 0 0 0 1px rgba(190,178,150,.35);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.envelope__rule { display: block; width: 46px; height: 1px; background: var(--terra); opacity: .6; }
.envelope__eyebrow { font-size: clamp(.6rem, 1.6vw, .72rem); letter-spacing: .3em; text-transform: uppercase; color: var(--terra); }
.envelope__names { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 6.5vw, 3rem); line-height: 1; color: var(--ink); }
.envelope__names span { color: var(--terra); font-style: italic; }
.envelope__date { font-family: var(--serif); font-style: italic; font-size: clamp(.9rem, 2.6vw, 1.2rem); color: var(--ink-soft); }

/* cara frontal opaca: tapa la carta por completo */
.envelope__front {
  position: absolute; inset: 0; z-index: 3; border-radius: 5px; overflow: hidden;
  background: linear-gradient(158deg, #efe7d6 0%, #e4d9c2 60%, #ddd0b6 100%);
  box-shadow:
    0 34px 70px -34px rgba(52,48,42,.6),
    inset 0 0 0 1px rgba(120,108,86,.16),
    inset 0 -18px 30px -22px rgba(120,100,70,.35);
}
/* costuras diagonales del bolsillo (decorativas) */
.envelope__seamL, .envelope__seamR {
  position: absolute; bottom: 0; width: 50%; height: 100%; pointer-events: none;
}
.envelope__seamL { left: 0;  background: linear-gradient(to top right, rgba(120,100,70,.10) 49.6%, rgba(255,255,255,.18) 50%, transparent 50.4%); }
.envelope__seamR { right: 0; background: linear-gradient(to top left,  rgba(120,100,70,.10) 49.6%, rgba(255,255,255,.18) 50%, transparent 50.4%); }

/* solapa superior que se abre en 3D */
.envelope__flap {
  position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 5;
  border-left: calc(var(--w) / 2) solid transparent;
  border-right: calc(var(--w) / 2) solid transparent;
  border-top: calc(var(--h) * 0.6) solid #ece2cf;
  transform-origin: top center; transform: rotateX(0deg);
  transition: transform 1s cubic-bezier(.66,-0.2,.3,1.25), border-top-color 1s var(--ease), filter 1s var(--ease);
  filter: drop-shadow(0 3px 4px rgba(52,48,42,.14));
  backface-visibility: hidden;
}
.envelope.is-open .envelope__flap { transform: rotateX(165deg); border-top-color: #e1d6bf; filter: drop-shadow(0 -6px 10px rgba(52,48,42,.22)); }
/* la solapa pasa por detrás a mitad de apertura */
.envelope.is-flap-back .envelope__flap { z-index: 2; }

/* sello de lacre */
.envelope__seal {
  position: absolute; left: 50%; top: 50%; z-index: 6;
  width: clamp(76px, 16vw, 104px); aspect-ratio: 1; transform: translate(-50%, -56%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #cf9069 0%, #bb764f 44%, #9a5630 78%, #834826 100%);
  box-shadow:
    0 8px 18px -5px rgba(80,40,20,.6),
    inset 0 2px 4px rgba(255,220,190,.5),
    inset 0 -6px 12px rgba(70,32,12,.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform .55s cubic-bezier(.5,-0.4,.4,1.4), opacity .5s var(--ease), filter .5s var(--ease);
}
.envelope__seal::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1px dashed rgba(255,235,215,.4);
}
.envelope__seal-mono { font-family: var(--serif); font-weight: 600; color: #f7e7d8; font-size: clamp(1.1rem, 3vw, 1.5rem); letter-spacing: .02em; text-shadow: 0 1px 1px rgba(70,30,10,.5); }
/* pulso sutil del sello en reposo */
.envelope:not(.is-open) .envelope__seal { animation: sealPulse 3.2s ease-in-out infinite; }
@keyframes sealPulse {
  0%, 100% { box-shadow: 0 8px 18px -5px rgba(80,40,20,.6), inset 0 2px 4px rgba(255,220,190,.5), inset 0 -6px 12px rgba(70,32,12,.55), 0 0 0 0 rgba(187,118,79,.0); }
  50%      { box-shadow: 0 8px 18px -5px rgba(80,40,20,.6), inset 0 2px 4px rgba(255,220,190,.5), inset 0 -6px 12px rgba(70,32,12,.55), 0 0 0 12px rgba(187,118,79,.12); }
}
/* ruptura del sello al abrir */
.envelope.is-open .envelope__seal { transform: translate(-50%, -120%) scale(1.5) rotate(14deg); opacity: 0; filter: blur(3px); }

.intro__hint {
  font-size: clamp(.72rem, 2vw, .82rem); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft);
  animation: pulseHint 2.2s var(--ease) infinite;
}
.intro__hint.is-hidden { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
@keyframes pulseHint { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .envelope__float, .envelope__seal { animation: none; }
  .envelope__letter, .envelope__flap, .envelope__seal, .intro, .intro__glow { transition-duration: .2s !important; }
}

/* en móvil: sobre algo mayor, nombres en una línea y la carta sube más para verse ENTERA */
@media (max-width: 680px) {
  .envelope { --w: min(88vw, 360px); }
  .envelope__names { font-size: clamp(1.5rem, 7vw, 2.1rem); white-space: nowrap; }
  .envelope__card { padding: 14% 8% 0; }
  .envelope.is-open .envelope__letter { transform: translate3d(0, -82%, -4px); }
}

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(251, 248, 242, .9);
  backdrop-filter: blur(10px);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.nav__brand span { color: var(--terra); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; position: relative; padding-bottom: 3px;
}
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--terra); transition: width .3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--ink); cursor: pointer; }

/* hero state: light text over photo */
.nav:not(.is-scrolled) .nav__brand,
.nav:not(.is-scrolled) .nav__links a,
.nav:not(.is-scrolled) .nav__toggle { color: var(--cream); }
.nav:not(.is-scrolled) .nav__brand span { color: #e7c4ab; }

/* ============================ HERO ============================ */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background: url("https://d3l2hdhcn0sgsc.cloudfront.net/img/gallery/g06.jpg") center 70% / cover no-repeat;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(52,48,42,.45) 0%, rgba(52,48,42,.25) 40%, rgba(52,48,42,.55) 100%);
}
.hero__content { position: relative; color: var(--cream); padding: 0 20px; }
.hero__eyebrow {
  font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; opacity: .9; margin-bottom: 14px;
}
.hero__names {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 12vw, 7.5rem); line-height: .98; letter-spacing: .01em;
}
.hero__names span { display: inline-block; color: #e7c4ab; font-style: italic; font-weight: 400; }
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3.4vw, 1.6rem);
  margin-top: 14px; opacity: .95;
}
.hero__date {
  font-size: clamp(.9rem, 2.4vw, 1.1rem); letter-spacing: .18em; text-transform: uppercase;
  margin: 14px 0 30px;
}
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--cream); text-decoration: none; font-size: 1.4rem; animation: bob 2s infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all .3s var(--ease); font-family: var(--sans); background: none;
}
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--cream); }
.btn--solid { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.btn--solid:hover { background: var(--olive-deep); border-color: var(--olive-deep); }

/* ============================ COUNTDOWN ============================ */
.countdown {
  background: var(--forest); color: var(--cream); text-align: center;
  padding: clamp(48px, 8vw, 80px) 20px;
}
.countdown__label {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 4vw, 1.9rem); margin-bottom: 30px;
}
.countdown__grid { display: flex; justify-content: center; gap: clamp(20px, 6vw, 60px); flex-wrap: wrap; }
.countdown__unit span {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; color: #e7c4ab;
}
.countdown__unit small {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 8px; display: block;
}

/* ============================ SECTION SHELL ============================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 11vw, 120px) clamp(20px, 5vw, 40px); }
.section:nth-of-type(even) { } /* placeholder */
.section__head { text-align: center; margin-bottom: clamp(40px, 7vw, 70px); }
.section__eyebrow {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--terra); margin-bottom: 12px;
}
.section__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05;
}
.section__lead { max-width: 480px; margin: 16px auto 0; color: var(--ink-soft); }

/* ============================ TIMELINE / HISTORIA ============================ */
.story { background: var(--linen); }
.timeline { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 80px); }
.timeline__item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.timeline__item--rev .timeline__img { order: 2; }
.timeline__img {
  aspect-ratio: 4/5; background-size: cover; background-position: center;
  border-radius: 2px; box-shadow: 0 18px 40px -28px rgba(52,48,42,.6);
}
.timeline__year {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--terra); display: block; margin-bottom: 6px;
}
.timeline__text h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.timeline__text p { color: var(--ink-soft); max-width: 42ch; }

/* ============================ EL GRAN DÍA ============================ */
.day { background: var(--linen-dim); max-width: none; }
.day > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.day__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 4vw, 32px); }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 32px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.card__label { font-family: var(--sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); }
.card__big { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1; color: var(--olive-deep); }
.card__rule { width: 30px; height: 1px; background: var(--line); }
.card__place { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.day__place { display: flex; flex-direction: column; gap: 12px; }
.day__place .card { flex: 1; }
.day__place .btn { width: 100%; text-align: center; }
.day__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: clamp(24px,4vw,36px) auto 0; }
.day__actions .btn { width: 100%; max-width: 320px; text-align: center; }
.map { margin-top: 8px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.25) sepia(.12); }

/* ============================ GALERÍA — carrusel lateral ============================ */
.carousel {
  display: flex; gap: clamp(12px, 3vw, 20px);
  width: 100vw; margin-left: calc(50% - 50vw);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; touch-action: pan-x;
  padding: 14px max(18px, calc((100vw - min(74vw, 320px)) / 2)) 36px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 auto; margin: 0; scroll-snap-align: center;
  width: min(74vw, 320px); aspect-ratio: 3 / 4;
  border-radius: var(--radius); overflow: hidden; background: var(--linen-dim);
  box-shadow: 0 16px 34px -22px rgba(52,48,42,.55);
}
.carousel__item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; transition: transform .5s var(--ease); }
.carousel__item:hover img { transform: scale(1.04); }

/* placeholder del muro cuando aún no hay fotos */
.wall-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--cream); border: 1.5px dashed var(--line); box-shadow: none; text-align: center; padding: 26px;
}
.wall-empty p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.45; }
.wall-empty__mark { width: 46px; height: 34px; border: 1.5px solid var(--ink-soft); border-radius: 7px; position: relative; opacity: .55; }
.wall-empty__mark::before { content: ""; position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%); width: 15px; height: 15px; border: 1.5px solid var(--ink-soft); border-radius: 50%; }
.wall-empty__mark::after { content: ""; position: absolute; top: -6px; left: 11px; width: 14px; height: 6px; border: 1.5px solid var(--ink-soft); border-bottom: 0; border-radius: 4px 4px 0 0; }

/* botón fijo de subir foto: encima de la flecha, solo visible en la pantalla de fotos */
.share-upload {
  position: fixed; left: var(--gutter); right: var(--gutter);
  bottom: calc(clamp(16px,4vh,28px) + 58px); z-index: 46;
  display: none; cursor: pointer; text-align: center;
  max-width: 440px; margin: 0 auto;
  background: var(--olive); color: var(--cream); border: 1px solid var(--olive);
  font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 14px; white-space: nowrap;
  box-shadow: 0 16px 38px -14px rgba(52,48,42,.55);
  transition: background .25s var(--ease);
}
.share-upload.is-on { display: block; }
.share-upload:hover { background: var(--olive-deep); }

/* pantalla de fotos: placeholder/carrusel centrado verticalmente, con hueco para el botón */
html.mode-pager .panel > .share { justify-content: center; padding-top: clamp(20px,5vh,48px); padding-bottom: clamp(132px,19vh,164px); }
html.mode-pager .wall-carousel { padding-top: 14px; padding-bottom: 36px; }
html.mode-pager .wall-carousel .carousel__item { max-height: 46vh; }
/* el carrusel del muro debe ser de ancho completo (la sección .share fuerza margin:auto en sus hijos) */
.share .wall-carousel { max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }

/* ---------- MÚSICA: slideshow de canciones (carátula + título + artista) ---------- */
.song-carousel .carousel__item { background: var(--olive-deep); position: relative; cursor: default; aspect-ratio: 1 / 1; }
.song-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 3rem; }
.song-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: left;
  padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(18,15,10,.92)); color: var(--cream);
}
.song-card__title { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.15; }
.song-card__artist { display: block; font-size: .82rem; opacity: .85; margin-top: 3px; }
.song-card__link { position: absolute; inset: 0; z-index: 3; }
.song-card--empty {
  background: var(--cream); border: 1.5px dashed var(--line); box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 26px;
}
.song-card--empty .song-card__note { font-size: 2.4rem; color: var(--ink-soft); opacity: .5; }
.song-card--empty p { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.45; }

.music .song-carousel { max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
html.mode-pager .panel > .music { justify-content: center; padding-top: clamp(20px,5vh,48px); padding-bottom: clamp(132px,19vh,164px); }
html.mode-pager .song-carousel { padding-top: 14px; padding-bottom: 36px; }
html.mode-pager .song-carousel .carousel__item { max-height: 46vh; }

/* ---------- bottom sheet del buscador de Spotify ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(33,30,26,.5); opacity: 0; transition: opacity .35s var(--ease); }
.sheet-backdrop.is-open { opacity: 1; }
.music-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 10px clamp(14px,4vw,22px) max(20px, env(safe-area-inset-bottom));
  transform: translateY(112%); transition: transform .4s var(--ease);
  box-shadow: 0 -22px 56px -26px rgba(52,48,42,.55);
  max-height: 82svh; display: flex; flex-direction: column;
}
.music-sheet.is-open { transform: translateY(0); }
.music-sheet__handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 14px; flex-shrink: 0; }
.music-sheet__bar { display: flex; align-items: center; gap: 10px; background: var(--linen-dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; flex-shrink: 0; }
.music-sheet__bar:focus-within { border-color: var(--olive); }
.music-sheet__icon { width: 17px; height: 17px; color: var(--ink-soft); opacity: .6; flex-shrink: 0; }
.music-sheet__bar input { flex: 1; min-width: 0; border: 0; background: none; font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 13px 0; }
.music-sheet__bar input:focus { outline: none; }
.music-sheet__close { background: none; border: 0; font-size: 1.1rem; color: var(--ink-soft); cursor: pointer; padding: 8px 10px; flex-shrink: 0; line-height: 1; }
.music-sheet__results { margin-top: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }

/* ---------- INFO: 4 tarjetas en 2x2 para que quepa sin scroll ---------- */
html.mode-pager .panel > .info { justify-content: center; }
html.mode-pager .info .section__head { margin-bottom: clamp(20px,3vh,34px); }
html.mode-pager .info__grid { grid-template-columns: 1fr 1fr; max-width: 480px; margin-inline: auto; }
html.mode-pager .info__item { padding: clamp(15px,3.6vw,24px) clamp(13px,3vw,20px); }
html.mode-pager .info__item h3 { font-size: clamp(1.05rem,4.4vw,1.35rem); margin-bottom: 6px; }
html.mode-pager .info__item p { font-size: .82rem; line-height: 1.42; }

/* ---------- RSVP: compacto para que quepa sin scroll ---------- */
html.mode-pager .panel > .rsvp { justify-content: center; }
html.mode-pager .rsvp .section__head { margin-bottom: clamp(16px,2.4vh,26px); }
html.mode-pager .rsvp__form { gap: 14px; }
html.mode-pager .rsvp__form label { gap: 5px; }
html.mode-pager .rsvp__form input[type="text"],
html.mode-pager .rsvp__form input[type="tel"],
html.mode-pager .rsvp__form input[type="number"],
html.mode-pager .rsvp__form textarea { padding: 10px 14px; }
html.mode-pager .rsvp__form .btn { width: 100%; display: block; margin-top: 4px; }

/* ============================ GALERÍA (masonry, legacy) ============================ */
.masonry { columns: 3; column-gap: 14px; }
.masonry img {
  width: 100%; margin-bottom: 14px; border-radius: 2px; cursor: zoom-in;
  transition: transform .4s var(--ease), filter .4s var(--ease); break-inside: avoid;
}
.masonry img:hover { transform: scale(1.02); filter: brightness(1.04); }

/* ============================ COMPARTE / WALL ============================ */
.share { background: var(--linen); max-width: none; }
.share > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.uploader { max-width: 520px; margin: 0 auto clamp(40px,7vw,64px); }
.uploader form { display: flex; flex-direction: column; gap: 14px; }
.uploader__drop {
  border: 1.5px dashed var(--line); border-radius: 4px; background: var(--cream);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease);
}
.uploader__drop.is-over { border-color: var(--olive); background: #f0f2e9; }
.uploader__icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.uploader__hint { color: var(--ink-soft); font-size: .95rem; }
.uploader__hint strong { color: var(--ink); font-weight: 600; }
.uploader__name {
  font-family: var(--sans); font-size: .95rem; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 3px; background: var(--cream); color: var(--ink);
}
.uploader__name:focus { outline: none; border-color: var(--olive); }
.uploader__status { text-align: center; font-size: .9rem; color: var(--ink-soft); min-height: 1.2em; }
.uploader__status.is-ok { color: var(--olive-deep); }
.uploader__status.is-err { color: var(--terra); }

.wall { columns: 4; column-gap: 12px; }
.wall figure { break-inside: avoid; margin: 0 0 12px; position: relative; }
.wall img { width: 100%; border-radius: 2px; cursor: zoom-in; }
.wall figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px;
  font-size: .78rem; color: var(--cream);
  background: linear-gradient(transparent, rgba(52,48,42,.7)); border-radius: 0 0 2px 2px;
}
.wall__empty { text-align: center; color: var(--ink-soft); font-style: italic; padding: 30px; font-family: var(--serif); font-size: 1.2rem; }

/* ============================ MÚSICA ============================ */
.music { background: var(--linen-dim); max-width: none; }
.music > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.music__embed {
  border-radius: 12px; overflow: hidden; margin-bottom: clamp(28px, 5vw, 40px);
  box-shadow: 0 20px 44px -28px rgba(52,48,42,.5);
}
.music__embed iframe { display: block; border: 0; }
/* búsqueda Spotify */
.music__search { display: flex; flex-direction: column; gap: 12px; position: relative; }
.music__searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 18px;
  transition: border-color .3s var(--ease);
}
.music__searchbar:focus-within { border-color: var(--olive); }
.music__searchicon { opacity: .5; font-size: .95rem; }
.music__searchbar input { flex: 1; border: 0; background: none; font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 12px 0; }
.music__searchbar input:focus { outline: none; }
.music__spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--olive); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music__who-input {
  font-family: var(--sans); font-size: .95rem; padding: 11px 16px; border: 1px solid var(--line);
  border-radius: 3px; background: var(--cream); color: var(--ink);
}
.music__who-input:focus { outline: none; border-color: var(--olive); }
.music__results {
  display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto;
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 6px;
  box-shadow: 0 16px 36px -22px rgba(52,48,42,.5);
}
.music__result {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 4px;
  cursor: pointer; text-align: left; border: 0; background: none; width: 100%; font-family: var(--sans);
  transition: background .15s var(--ease);
}
.music__result:hover, .music__result:focus-visible { background: var(--linen-dim); outline: none; }
.music__result img { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.music__result-meta { min-width: 0; flex: 1; }
.music__result-song { color: var(--ink); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__result-artist { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music__result-add { flex-shrink: 0; color: var(--olive-deep); font-size: 1.3rem; line-height: 1; }
.music__noresults { padding: 16px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

.music__form { display: flex; flex-direction: column; gap: 14px; }
.music__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.music__form input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--cream); width: 100%;
}
.music__form input:focus { outline: none; border-color: var(--olive); }
.music__form .btn { white-space: nowrap; }
.music__status { text-align: center; min-height: 1.2em; font-size: .9rem; color: var(--ink-soft); }
.music__status.is-ok { color: var(--olive-deep); }
.music__status.is-err { color: var(--terra); }

.music__list { list-style: none; margin-top: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.music__item {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 3px; padding: 12px 16px;
}
.music__note { color: var(--olive); font-size: 1.1rem; flex-shrink: 0; }
.music__thumb { width: 44px; height: 44px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.music__meta { flex: 1; min-width: 0; }
.music__song { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.music__artist { font-size: .85rem; color: var(--ink-soft); }
.music__who { font-size: .78rem; color: var(--terra); white-space: nowrap; }
.music__play {
  flex-shrink: 0; text-decoration: none; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive-deep); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.music__play:hover { border-color: var(--olive); }
.music__empty { text-align: center; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.15rem; padding: 16px; }

/* ============================ INFO ============================ */
.info { background: var(--linen-dim); max-width: none; }
.info > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.info__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info__item { background: var(--cream); padding: clamp(26px, 4vw, 40px); }
.info__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-bottom: 8px; }
.info__item p { color: var(--ink-soft); font-size: .96rem; }

/* ============================ ITINERARIO ============================ */
.agenda { background: var(--linen); }
.agenda__list {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 28px);
  counter-reset: step;
}
.agenda__step {
  position: relative; text-align: center; padding: clamp(22px,3vw,30px) 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 3px;
}
.agenda__icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.agenda__time { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 1.05rem; display: block; }
.agenda__step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 4px 0 8px; }
.agenda__step p { color: var(--ink-soft); font-size: .9rem; }

/* ============================ RSVP ============================ */
.rsvp { background: var(--linen-dim); max-width: none; }
.rsvp > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.rsvp__form { display: flex; flex-direction: column; gap: 20px; }
.rsvp__row { display: flex; flex-direction: column; gap: 8px; }
.rsvp__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rsvp__form label { font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); display: flex; flex-direction: column; gap: 7px; }
#rsvpForm { width: 100%; }
.rsvp__form input[type="text"],
.rsvp__form input[type="tel"],
.rsvp__form input[type="number"],
.rsvp__form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); width: 100%;
}
.rsvp__form input:focus, .rsvp__form textarea:focus { outline: none; border-color: var(--olive); }
.rsvp__form textarea { resize: vertical; }
.rsvp__qlabel { font-size: .82rem; color: var(--ink-soft); }
.rsvp__choice { display: flex; gap: 22px; flex-wrap: wrap; }
.rsvp__choice label { flex-direction: row; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); cursor: pointer; }
.rsvp__choice input { accent-color: var(--olive); width: 18px; height: 18px; }
.rsvp__form .btn { width: 100%; margin-top: 8px; }
.rsvp__status { text-align: center; min-height: 1.2em; font-size: .92rem; color: var(--ink-soft); }
.rsvp__status.is-ok { color: var(--olive-deep); }
.rsvp__status.is-err { color: var(--terra); }

/* ============================ CONTACTO ============================ */
.contact { background: var(--linen); }
.contact__cards { display: flex; gap: clamp(16px,3vw,24px); justify-content: center; flex-wrap: wrap; }
.contact__card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  background: var(--cream); border: 1px solid var(--line); border-radius: 3px;
  padding: 26px 40px; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contact__card:hover { border-color: var(--olive); transform: translateY(-3px); }
.contact__name { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.contact__num { color: var(--terra); letter-spacing: .04em; }

/* ============================ FOOTER ============================ */
.footer { background: var(--forest); color: var(--cream); text-align: center; padding: clamp(50px,8vw,80px) 20px; }
.footer__msg { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem,3vw,1.5rem); max-width: 30ch; margin: 0 auto 22px; opacity: .92; }
.footer__names { font-family: var(--serif); font-size: clamp(2rem,6vw,3rem); }
.footer__date { letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; opacity: .8; margin: 12px 0; }
.footer__tag { color: #e7c4ab; font-size: .85rem; letter-spacing: .1em; }

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(33,30,26,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 3px; box-shadow: 0 30px 80px -30px #000; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--cream);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 860px) {
  .masonry { columns: 2; }
  .wall { columns: 3; }
  .agenda__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; inset: 0 0 auto auto; top: 0; height: 100svh; width: min(75vw, 280px);
    flex-direction: column; justify-content: center; gap: 26px; padding: 40px;
    background: var(--cream); transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--ink) !important; font-size: 1rem; }
  .nav__toggle { display: block; z-index: 60; }
  .nav:not(.is-scrolled) .nav__toggle { color: var(--cream); }

  .timeline__item { grid-template-columns: 1fr; }
  .timeline__item--rev .timeline__img { order: 0; }
  .day__cards { grid-template-columns: 1fr; }
  .info__grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .wall { columns: 2; }
  .rsvp__row--2 { grid-template-columns: 1fr; }
  .music__row { grid-template-columns: 1fr; }
}
