:root {
  --lino: #f8f2e6;
  --lino-cl: #fcf9f2;
  --lino-osc: #ebe3d0;
  --bosque: #5a6b42;
  --salvia: #a9b892;
  --hoja: #7c8a5e;
  --oro: #9a8a4f;
  --oro-cl: #c2b47e;
  --oro-osc: #77693a;
  --rosa: #d98fa6;
  --rosa-hover: #c97e97;
  --tinta: #4a4b3a;
  --tinta-suave: #767662;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-script: 'MonteCarlo', cursive;
  --ff-mono: 'Carattere', cursive;
  --ff-body: 'EB Garamond', Georgia, serif;
  --ff-sans: 'Montserrat', system-ui, -apple-system, sans-serif;

  --pad-x: clamp(18px, 5.5vw, 48px);
  --sec-y: clamp(32px, 5vw, 56px);
  --h2: clamp(2.05rem, 7vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--ff-body);
  color: var(--tinta);
  line-height: 1.75;
  overflow-x: clip;
  background-color: var(--lino);
  background-image:
    radial-gradient(rgba(154, 138, 79, 0.045) 1px, transparent 0),
    radial-gradient(rgba(90, 107, 66, 0.035) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

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

/* ══════════ PANTALLA DE ENTRADA (SOBRE + SELLO DE LACRE) ══════════ */
.entrance {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.entrance.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrance-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-color: #aeb9a7;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), rgba(63, 74, 58, 0.14)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 6px);
  transition: transform 1.25s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.entrance-door-left {
  left: 0;
  box-shadow: inset -12px 0 32px rgba(45, 56, 40, 0.15);
}

.entrance-door-right {
  right: 0;
  box-shadow: inset 12px 0 32px rgba(45, 56, 40, 0.15);
}

.entrance-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(63, 74, 58, 0.28);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.22);
  transition: opacity 0.3s ease;
}

.entrance.is-opening .entrance-door-left {
  transform: translateX(-104%);
}

.entrance.is-opening .entrance-door-right {
  transform: translateX(104%);
}

.entrance.is-opening .entrance-seam {
  opacity: 0;
}

.entrance-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.entrance.is-opening .entrance-center {
  opacity: 0;
  transform: scale(0.92);
}

.wax-seal {
  position: relative;
  width: clamp(132px, 34vw, 172px);
  height: clamp(132px, 34vw, 172px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #c5cbb2 0%, #aeb297 52%, #8e9478 100%);
  box-shadow:
    0 18px 40px rgba(34, 42, 30, 0.34),
    0 4px 10px rgba(34, 42, 30, 0.22),
    inset 0 3px 6px rgba(255, 255, 255, 0.4),
    inset 0 -6px 12px rgba(55, 64, 48, 0.35);
  animation: sealFloat 3.4s ease-in-out infinite;
}

.wax-seal-rim {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(63, 74, 58, 0.22);
  box-shadow: inset 0 2px 5px rgba(55, 64, 48, 0.28), 0 1px 2px rgba(255, 255, 255, 0.35);
}

.wax-seal-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #b6ba9f 0%, #a0a58a 100%);
  box-shadow: inset 0 4px 10px rgba(48, 56, 42, 0.28);
}

.wax-seal-mono {
  font-family: var(--ff-mono);
  font-size: clamp(1.85rem, 7.2vw, 2.45rem);
  color: #3f4a3a;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34), 0 -1px 1px rgba(0, 0, 0, 0.28);
  user-select: none;
}

.entrance-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.entrance-prompt svg {
  width: 15px;
  height: 22px;
  animation: promptBounce 2.4s ease-in-out infinite;
}

@keyframes sealFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes promptBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ══════════ CANVAS HOJAS ══════════ */
#leavesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ══════════ NAVEGACIÓN ══════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

nav.scrolled {
  background: rgba(248, 242, 230, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.65rem var(--pad-x);
  box-shadow: 0 2px 18px rgba(51, 64, 47, 0.12);
}

.nav-mono {
  font-family: var(--ff-mono);
  font-size: 1.9rem;
  color: var(--bosque);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

nav.scrolled .nav-mono {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tinta);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--oro-osc);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bosque);
  font-size: 1.45rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

/* ══════════ CONTENEDOR Y SECCIONES ══════════ */
.invitation-wrap {
  position: relative;
  z-index: 1;
}

.sec {
  padding: var(--sec-y) var(--pad-x);
  position: relative;
  text-align: center;
}

.sec + .sec::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(120px, 40%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
  opacity: 0.65;
}

.container {
  width: min(540px, 100%);
  margin: 0 auto;
}

.container-wide {
  width: min(920px, 100%);
}

.tt {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: var(--h2);
  color: var(--bosque);
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.eyebrow {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--oro-osc);
  margin-bottom: 0.35rem;
}

.filete {
  display: block;
  width: min(120px, 40%);
  height: 1px;
  margin: 0.65rem auto;
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

/* ══════════ PORTADA / HERO ══════════ */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px) var(--pad-x);
  text-align: center;
}

.hero-card {
  position: relative;
  width: min(490px, calc(86svh * 1064 / 1478), 100%);
  aspect-ratio: 1064 / 1478;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--lino);
  box-shadow: 0 18px 50px rgba(74, 75, 58, 0.08);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 2.2rem;
  transform: translateY(-2%);
}

.hero-nombres {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(3.1rem, 11.5vw, 4.7rem);
  color: var(--bosque);
  line-height: 1.02;
}

.hero-nombres .hn {
  display: block;
}

.hero-nombres .hn-amp {
  display: block;
  font-size: 0.54em;
  line-height: 1.05;
  margin: 0.06em 0;
}

.hero-fecha {
  font-family: var(--ff-body);
  font-size: clamp(0.74rem, 2.5vw, 0.92rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tinta);
  margin-top: 1.05rem;
}

.hero-lugar {
  font-family: var(--ff-body);
  font-size: clamp(0.7rem, 2.2vw, 0.86rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin-top: 0.35rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bosque);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  animation: promptBounce 2.4s ease-in-out infinite;
}

/* ══════════ SALUDO ══════════ */
.floater-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.floater-orchid {
  width: clamp(54px, 12vw, 76px);
  height: auto;
  opacity: 0.95;
}

.saludo-texto {
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(1.04rem, 2.3vw, 1.16rem);
  color: var(--tinta-suave);
  line-height: 1.95;
}

.saludo-texto strong {
  color: var(--tinta);
  font-weight: 500;
}

/* ══════════ COUNTDOWN Y MARCO BOTÁNICO ══════════ */
.countdown-crown {
  position: relative;
  z-index: 2;
  margin: 0 auto -18px;
  width: clamp(64px, 16vw, 84px);
}

.crown-img {
  width: 100%;
  height: auto;
}

.botanical-card {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 6vw, 38px) clamp(18px, 5vw, 28px);
  background: rgba(252, 249, 242, 0.72);
  border: 1.5px solid var(--salvia);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 6px var(--lino-cl),
    inset 0 0 0 7.5px rgba(217, 143, 166, 0.65),
    0 10px 30px rgba(74, 75, 58, 0.06);
}

.corner-orn {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--oro);
  border-style: solid;
  opacity: 0.75;
  pointer-events: none;
}

.corner-orn.tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; border-radius: 6px 0 0 0; }
.corner-orn.tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; border-radius: 0 6px 0 0; }
.corner-orn.bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; border-radius: 0 0 0 6px; }
.corner-orn.br { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 6px 0; }

.cd-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.8rem, 4vw, 1.8rem);
  margin-top: 0.6rem;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.cd-num {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  color: var(--bosque);
  line-height: 1;
}

.cd-lbl {
  font-family: var(--ff-body);
  font-size: clamp(0.55rem, 1.9vw, 0.66rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin-top: 0.45rem;
}

.cd-frase {
  font-family: var(--ff-script);
  font-size: clamp(1.6rem, 5.8vw, 2.2rem);
  color: var(--oro-osc);
  margin-top: 0.9rem;
  line-height: 1.25;
}

/* ══════════ CEREMONIA Y CENA ══════════ */
.sec-techo {
  padding-top: 0;
}

.techo-banner {
  width: min(680px, 100%);
  margin: 0 auto 0.8rem;
}

.techo-banner img {
  width: 100%;
  height: auto;
}

.evento {
  width: min(460px, 100%);
}

.ev-lugar {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 3.8vw, 1.52rem);
  color: var(--tinta);
  margin-top: 0.4rem;
  line-height: 1.35;
}

.ev-hora {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.22rem, 4vw, 1.5rem);
  color: var(--bosque);
}

.map-frame {
  margin-top: 1.3rem;
  padding: clamp(12px, 3vw, 16px);
}

.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 196px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--tinta);
  border: 1px solid rgba(74, 75, 58, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(74, 75, 58, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.map-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.map-streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.map-pin {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 52px;
  color: var(--rosa);
  fill: currentColor;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.2));
  animation: promptBounce 2.6s ease-in-out infinite;
}

.map-lugar {
  position: relative;
  z-index: 2;
  font-style: italic;
  font-size: clamp(0.92rem, 3.5vw, 1.05rem);
  line-height: 1.35;
  max-width: 34ch;
  opacity: 0.92;
}

.map-pill {
  position: relative;
  z-index: 2;
  background: var(--rosa);
  color: #ffffff;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.map-sub {
  position: relative;
  z-index: 2;
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  opacity: 0.65;
}

/* ══════════ BOTONES ══════════ */
.btn-b {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--rosa);
  border: 1px solid var(--rosa);
  border-radius: 999px;
  padding: 0.88rem 2.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
  margin-top: 1.15rem;
}

.btn-b:hover {
  background: var(--rosa-hover);
  border-color: var(--rosa-hover);
}

.btn-b:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-ghost-sm {
  background: none;
  border: 1px solid rgba(154, 138, 79, 0.55);
  border-radius: 999px;
  color: var(--tinta-suave);
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.72rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.btn-ghost-sm:hover {
  border-color: var(--bosque);
  color: var(--bosque);
}

/* ══════════ GALERÍA ══════════ */
.gal-title {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-size: clamp(1.75rem, 6.2vw, 2.55rem);
}

.gal-stage {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.gal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0.6rem 0.5rem 0.8rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
}

.gal-scroll::-webkit-scrollbar {
  height: 5px;
}

.gal-scroll::-webkit-scrollbar-thumb {
  background: var(--salvia);
  border-radius: 999px;
}

.gal-card {
  position: relative;
  flex: 0 0 auto;
  width: min(260px, 72vw);
  aspect-ratio: 1024 / 1536;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gal-card:hover {
  transform: translateY(-3px);
}

.gal-photo-box {
  position: absolute;
  top: 4.5%;
  bottom: 4.5%;
  left: 7.5%;
  right: 7.5%;
  border-radius: 22px;
  overflow: hidden;
  background: var(--lino-osc);
}

.gal-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-frame-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.gal-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--oro-cl);
  background: rgba(252, 249, 242, 0.92);
  color: var(--bosque);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease;
}

.gal-arrow:hover {
  background: var(--bosque);
  color: #ffffff;
}

.gal-prev { left: -10px; }
.gal-next { right: -10px; }

@media (min-width: 760px) {
  .gal-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.gal-hint {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--tinta-suave);
  margin-top: 0.65rem;
}

/* ══════════ VESTIMENTA ══════════ */
.dc-wrap {
  max-width: 480px;
}

.dc-art {
  width: min(390px, 95%);
  margin: 0 auto 0.6rem;
}

.dc-art img {
  width: 100%;
  height: auto;
}

.dc-tt {
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  margin-bottom: 0.25rem;
}

.dc-intro {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.08rem, 3.5vw, 1.3rem);
  color: var(--bosque);
}

.dc-cols {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  margin-top: 1rem;
}

.dc-col {
  flex: 1;
  min-width: 0;
}

.dc-lbl {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin-bottom: 0.25rem;
}

.dc-col p {
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: var(--tinta);
  line-height: 1.55;
}

.dc-sep {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--oro), transparent);
}

@media (max-width: 390px) {
  .dc-cols {
    flex-direction: column;
    gap: 0.75rem;
  }
  .dc-sep {
    display: none;
  }
}

/* ══════════ EL MENÚ ══════════ */
.menu-kicker {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro-osc);
  margin-bottom: 0.25rem;
}

.menu-intro {
  max-width: 34em;
  margin: 0.35rem auto 0;
  font-size: 1.04rem;
  color: var(--tinta-suave);
}

.menu-group {
  margin-top: 1.8rem;
}

.menu-group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tinta);
  margin-bottom: 0.75rem;
}

.menu-ic {
  width: 20px;
  height: 20px;
  color: var(--bosque);
}

.menu-ic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-dish {
  position: relative;
  max-width: 32em;
  margin: 0 auto;
  padding: 0.65rem 0;
}

.menu-dish + .menu-dish::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  border-top: 1px solid var(--oro-cl);
  opacity: 0.55;
}

.dish-name {
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--tinta);
}

.dish-desc {
  font-style: italic;
  font-size: 0.96rem;
  color: var(--tinta-suave);
  margin-top: 0.15rem;
}

.menu-note {
  max-width: 34em;
  margin: 1.65rem auto 0;
  font-size: 0.96rem;
  font-style: italic;
  color: var(--tinta-suave);
}

/* ══════════ RSVP ══════════ */
.rsvp-box {
  max-width: 460px;
}

.rsvp-orchid {
  width: min(140px, 38%);
  margin: 0 auto 0.5rem;
}

.rsvp-sub {
  max-width: 420px;
  margin: 0.3rem auto 1.6rem;
  font-style: italic;
  color: var(--tinta-suave);
  font-size: 0.98rem;
}

.fg {
  margin-bottom: 1.35rem;
  text-align: left;
}

.fg input[type="text"],
.fg input[type="email"],
.fg textarea {
  width: 100%;
  padding: 0.8rem 0.25rem;
  border: none;
  border-bottom: 1px solid rgba(154, 138, 79, 0.65);
  background: transparent;
  font-family: var(--ff-body);
  font-size: 1.04rem;
  color: var(--tinta);
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: var(--tinta-suave);
  opacity: 0.78;
  font-style: italic;
}

.fg input:focus,
.fg textarea:focus {
  outline: none;
  border-bottom-color: var(--bosque);
}

.fg-radio {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  color: var(--tinta);
  font-style: italic;
  font-size: 1.04rem;
}

.radio-opt input {
  accent-color: var(--bosque);
  width: 17px;
  height: 17px;
}

.dish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.dish-chip {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--bosque);
  background: rgba(169, 184, 146, 0.16);
  border: 1px solid rgba(90, 107, 66, 0.35);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dish-chip:hover,
.dish-chip.active {
  background: var(--bosque);
  border-color: var(--bosque);
  color: #ffffff;
}

.rsvp-consent {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--tinta-suave);
  text-align: center;
  margin: 0.35rem auto 0.6rem;
  max-width: 36ch;
}

.form-ok {
  padding: 1.4rem 0.5rem;
}

.form-ok p {
  color: var(--tinta-suave);
  font-style: italic;
  font-size: 1.08rem;
}

.form-ok-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.field-error {
  border-bottom-color: #b44353 !important;
}

.rsvp-error {
  color: #a13545;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 0.4rem;
}

/* ══════════ FOOTER ══════════ */
.footer {
  position: relative;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) var(--pad-x) 0;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(120px, 40%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--oro), transparent);
  opacity: 0.65;
}

.footer-texto {
  font-family: var(--ff-sans);
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  font-weight: 400;
  color: var(--bosque);
  line-height: 1.5;
}

.footer-names {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tinta);
  margin: 0.6rem 0 0.35rem;
}

.footer-fecha {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--tinta-suave);
}

.footer-orn {
  width: min(620px, 100%);
  margin: 1rem auto 0;
}

.footer-orn img {
  width: 100%;
  height: auto;
  transform: scaleY(-1);
}

/* ══════════ LIGHTBOX ══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 13, 9, 0.94);
  padding: clamp(16px, 4vw, 40px);
}

.lightbox.on {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox button {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.35rem !important;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev { left: clamp(8px, 2.5vw, 28px); }
.lb-next { right: clamp(8px, 2.5vw, 28px); }

.lb-count {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

/* ══════════ REVEAL ══════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.no-anim {
  transition: none;
}

/* ══════════ MÓVIL ══════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 242, 230, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 1.3rem 0;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(51, 64, 47, 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-mono {
    opacity: 1;
  }
  .hero {
    min-height: min(100svh, 780px);
    padding: 4.1rem 0 2.8rem;
  }
  .hero-scroll {
    bottom: 0.45rem;
  }
  .hero-card {
    width: 100%;
    aspect-ratio: 1064 / 1478;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }
  .hero-art {
    object-fit: contain;
  }
}
