/* ==========================================================
   Boda Julissa & Rodrich — mezcla:
   J&P (B&N editorial, Bodoni, portada de ingreso)
   + Momenta premium-5 (blush, salvia, dorado, caligrafía)
   ========================================================== */

:root {
  --ivory: #f5f5f3;
  --ivory-2: #e9e9e6;
  --paper: #ffffff;
  --ink: #1f1f1c;
  --sage: #7d7d76;        /* gris piedra: etiquetas y pies */
  --olive: #23231f;       /* negro cálido: titulares, botones, bordes */
  --olive-deep: #141412;  /* negro profundo: itinerario, hovers */
  --gold: #c6a15b;
  --gold-soft: #dcc494;
  --muted: #6f6f68;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --script: "Pinyon Script", "Great Vibes", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500; /* Cormorant delgada: peso medio para leer mejor */
  line-height: 1.62;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.gate-locked { overflow: hidden; height: 100dvh; }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.bw img, .bw video { filter: grayscale(1) contrast(1.05) brightness(1.02); }

/* ---------- utilidades ---------- */
.sec {
  padding: clamp(4rem, 10vw, 6.5rem) clamp(1.4rem, 6vw, 3rem);
  text-align: center;
  max-width: 1060px;
  margin: 0 auto;
}
.sec.soft { max-width: none; background: var(--ivory-2); }
.sec.soft > * { max-width: 1060px; margin-left: auto; margin-right: auto; }

.kicker {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.gold-caps {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.script-xl, .script-lg, .script-md {
  font-family: var(--script);
  font-weight: 400;
  color: var(--ink);
  -webkit-text-stroke: 0.55px currentColor; /* engrosa la pluma */
  text-shadow: 0 1px 0 rgba(31, 31, 28, 0.12);
}
.script-xl { font-size: clamp(3.9rem, 14vw, 6.6rem); line-height: 1.12; margin: 0.4rem 0 1.4rem; }
.script-lg { font-size: clamp(3rem, 10vw, 4.6rem); line-height: 1.16; margin-bottom: 1.2rem; }
.script-md { font-size: clamp(2.3rem, 7.5vw, 3.2rem); margin-bottom: 1rem; }
.script-lg.gold, .script-md.gold { color: var(--gold-soft); text-shadow: none; }
.script-xl .amp { color: var(--gold); }

.title-serif {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}
.lead { max-width: 34rem; margin: 0 auto 1.6rem; font-size: 1.2rem; color: var(--ink); }

.btn-pill {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 2.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-pill:hover { background: var(--olive); transform: translateY(-2px); }
.btn-pill.gold { background: var(--olive); }
.btn-pill.gold:hover { background: var(--olive-deep); }
.btn-pill.small { padding: 0.5rem 1.3rem; font-size: 0.82rem; }
.btn-pill:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn-line {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--olive);
  border: 1.5px solid var(--olive);
  border-radius: 999px;
  padding: 0.55rem 1.9rem;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-line:hover { background: var(--olive); color: var(--ivory); }

.gold-card {
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 14px 40px rgba(60, 55, 40, 0.08);
  padding: clamp(1.8rem, 5vw, 2.8rem);
}

/* ---------- portada / gate ---------- */
#gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--ivory);
  text-align: center;
}
.gate-bg { position: absolute; inset: 0; overflow: hidden; }
.gate-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) brightness(1.12);
  opacity: 0.3;
}
.gate-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,245,243,0.55) 0%, rgba(245,245,243,0.25) 45%, rgba(245,245,243,0.7) 100%);
}
.gate-inner { position: relative; padding: 1.5rem; max-width: 34rem; }
.g-kicker {
  font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 2rem;
}
.g-names { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.14; }
.g-name { display: block; font-size: clamp(2.6rem, 12vw, 4.2rem); letter-spacing: 0.14em; text-transform: uppercase; }
.g-amp {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--ink);
  margin: 0.6rem 0;
}
.g-amp i { display: block; width: clamp(70px, 22vw, 130px); height: 1px; background: var(--ink); opacity: 0.7; }
.g-date { margin-top: 1.6rem; font-size: 1.12rem; letter-spacing: 0.08em; color: var(--ink); }
.g-chevrons { margin: 2.2rem 0 1.4rem; color: var(--gold); }
.g-chevrons svg { width: 26px; height: 15px; display: block; margin: 0 auto; }
.g-chevrons svg:last-child { margin-top: -4px; opacity: 0.6; }
.g-chevrons { animation: chev 2s ease-in-out infinite; }
@keyframes chev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
#gateBtn {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.06em;
  color: #fff; background: #161812;
  border: 0; border-radius: 999px;
  padding: 1rem 2.6rem; cursor: pointer;
  box-shadow: 0 12px 30px rgba(22, 24, 18, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
#gateBtn:hover { transform: translateY(-2px); background: var(--olive-deep); }

/* ---------- topbar ---------- */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(245, 245, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 161, 91, 0.25);
  transform: translateY(-110%);
  transition: transform 0.5s ease;
}
#topbar.show { transform: translateY(0); }
#topbar .brand {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.1em;
  color: var(--ink); text-decoration: none;
}
#topbar .brand span { color: var(--gold); }
#topbar nav { display: flex; gap: clamp(0.8rem, 3vw, 1.6rem); }
#topbar nav a {
  font-size: 0.98rem; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
}
#topbar nav a:hover { color: var(--olive); }

/* ---------- foto principal full ---------- */
#hero-full { position: relative; height: 100dvh; overflow: hidden; }
#hero-full img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
#hero-full::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 18, 0) 52%, rgba(20, 20, 18, 0.36) 100%);
}
.hf-mono {
  position: absolute; z-index: 2;
  left: 50%; bottom: -0.16em;
  transform: translateX(-50%);
  font-family: var(--display); font-weight: 500;
  font-size: clamp(7rem, 36vw, 15rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.hf-mono span {
  font-size: 0.4em;
  font-style: italic;
  color: var(--gold-soft);
  vertical-align: 0.36em;
  margin: 0 0.03em;
}

/* ---------- intro ---------- */
#intro { padding-top: clamp(4.5rem, 12vw, 7rem); }
.date-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 2.4rem; max-width: 40rem; }
.date-rule span { flex: 1; height: 1px; background: var(--gold); opacity: 0.55; }
.date-rule p { font-size: 1.05rem; letter-spacing: 0.06em; white-space: nowrap; }
.date-rule strong { font-family: var(--display); font-weight: 600; }

.photo-card {
  display: inline-block;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.55);
  padding: 10px;
  box-shadow: 0 18px 50px rgba(60, 55, 40, 0.14);
  max-width: min(30rem, 88vw);
  margin: 0 auto;
}
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-card.tall { max-width: min(26rem, 84vw); }
.photo-card.video-card { max-width: min(23rem, 82vw); }
.photo-card video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
#historia .photo-card.tall img { aspect-ratio: 4 / 3; }

/* ---------- countdown ---------- */
.countdown { display: flex; align-items: baseline; justify-content: center; gap: clamp(0.6rem, 3vw, 1.4rem); }
.cd-cell { min-width: 3.6rem; }
.cd-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  color: var(--ink); line-height: 1;
}
.cd-lab { margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sage); }
.cd-sep { font-family: var(--display); font-size: 1.6rem; color: var(--gold); transform: translateY(-0.6rem); }
.cd-note { margin-top: 1.4rem; font-style: italic; color: var(--muted); }

/* ---------- verso ---------- */
#verso .verse {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  max-width: 36rem; margin: 0 auto 1rem; color: var(--olive);
}
#verso .verse-ref { font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* ---------- familia ---------- */
.fam-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; max-width: 46rem; margin: 2.2rem auto 0;
}
.fam-col p, .fam-padrinos p { font-size: 1.18rem; line-height: 1.75; }
.fam-padrinos { margin-top: 2.6rem; }

/* ---------- banda (foto de fondo) ---------- */
#banda {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: clamp(4.5rem, 13vw, 7.5rem) clamp(1.4rem, 8vw, 3rem);
}
.banda-bg { position: absolute; inset: 0; z-index: 0; }
.banda-bg img {
  width: 100%; height: 130%;
  object-fit: cover; object-position: 50% 28%;
  filter: grayscale(1) contrast(1.05);
  will-change: transform;
}
#banda::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 16, 14, 0.62), rgba(16, 16, 14, 0.5));
}
#banda p {
  position: relative; z-index: 2;
  max-width: 42rem; margin: 0 auto;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.8;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

/* ---------- calendario ---------- */
.month-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 2rem;
}
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0.85rem 0.4rem;
  max-width: 24rem; margin: 0 auto;
}
.cal-h { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.cal-d { font-family: var(--serif); font-size: 1.08rem; color: var(--ink); position: relative; line-height: 2.1; }
.cal-d.is-day { color: #fff; font-weight: 700; }
.cal-heart {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem; height: 2.3rem; z-index: -1;
  animation: beat 1.8s ease-in-out infinite;
}
.cal-heart svg { width: 100%; height: 100%; fill: var(--gold); }
.cal-d.is-day b { position: relative; font-weight: 600; }
@keyframes beat { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.12); } }
.cal-cta { margin-top: 2.4rem; }

/* ---------- galería ---------- */
.gal { position: relative; max-width: 1000px; margin: 0 auto; }
.gal-track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.4rem 8vw 1.2rem;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-item {
  flex: 0 0 min(74%, 330px);
  scroll-snap-align: center;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.5);
  padding: 8px;
  box-shadow: 0 12px 34px rgba(60, 55, 40, 0.12);
}
.gal-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, 0.6);
  background: rgba(255, 255, 255, 0.92);
  color: var(--olive);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.gal-arrow:hover { background: var(--olive); color: #fff; }
.gal-arrow svg { width: 18px; height: 18px; }
.gal-arrow.prev { left: 6px; }
.gal-arrow.next { right: 6px; }

/* ---------- gran día ---------- */
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
  max-width: 62rem;
  margin: 2.4rem auto 0;
}
.ev { text-align: center; }
.ev-time { font-family: var(--display); font-size: 2.1rem; font-weight: 500; color: var(--gold); line-height: 1; margin-bottom: 0.7rem; }
.ev h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; }
.ev-place { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.55; }
.notes { max-width: 44rem; margin: 2.6rem auto 0; color: var(--muted); font-size: 1.05rem; display: grid; gap: 0.5rem; }
.notes strong { color: var(--olive); font-weight: 600; }

/* ---------- itinerario ---------- */
#itinerario {
  background: var(--olive-deep);
  color: var(--ivory);
  text-align: center;
  padding: clamp(4rem, 10vw, 6rem) 1.4rem clamp(4.5rem, 11vw, 7rem);
}
.it-wrap { position: relative; max-width: 30rem; margin: 2.5rem auto 0; }
.it-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: linear-gradient(180deg, transparent, rgba(220, 196, 148, 0.55) 6%, rgba(220, 196, 148, 0.55) 94%, transparent);
}
.it-item { position: relative; width: 50%; padding: 1.6rem 2rem 1.6rem 0; }
.it-item.left { left: 0; text-align: right; }
.it-item.right { left: 50%; text-align: left; padding: 1.6rem 0 1.6rem 2rem; }
.it-dot {
  position: absolute; top: 2.1rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold-soft);
}
.it-item.left .it-dot { right: -7px; }
.it-item.right .it-dot { left: -6px; }
.it-icon { width: 44px; height: 44px; color: var(--gold-soft); display: inline-block; margin-bottom: 0.5rem; }
.it-time { font-family: var(--display); font-size: 1.3rem; color: var(--gold-soft); line-height: 1.2; }
.it-name { font-size: 1.16rem; letter-spacing: 0.04em; }

/* ---------- dress code ---------- */
.dc-main { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--olive); margin-bottom: 0.6rem; }
.dc-note { color: var(--muted); max-width: 30rem; margin: 0 auto 2rem; }
.dc-tonos { margin-top: 1.4rem; }
.dc-dots { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.dc-dots span {
  width: 46px; height: 46px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65), 0 6px 16px rgba(60, 55, 40, 0.22);
}

/* ---------- historia ---------- */
#historia .letter { max-width: 36rem; margin: 0 auto 2.6rem; }
.letter-caps { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink); margin: -0.7rem 0 1.8rem; }
.letter-p { text-align: center; color: var(--ink); margin-bottom: 1.3rem; font-size: 1.16rem; }
.letter-p em { color: var(--olive); }
.letter-sign { font-family: var(--script); font-size: 2.2rem; color: var(--gold); margin-top: 1.6rem; }

/* ---------- regalos ---------- */
.gift-card { max-width: 30rem; margin: 1.4rem auto 0; }
.gift-qr { margin-bottom: 1.6rem; }
.gift-qr img { width: min(220px, 60vw); margin: 0 auto; border: 1px solid rgba(198, 161, 91, 0.4); padding: 6px; background: #fff; }
.gift-qr p { margin-top: 0.6rem; font-size: 0.92rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }
.gift-data { display: grid; gap: 0.7rem; text-align: left; }
.gift-row { display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid rgba(198, 161, 91, 0.25); padding-bottom: 0.55rem; }
.g-lab { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); min-width: 4.6rem; }
.g-val { flex: 1; font-weight: 600; font-size: 1.1rem; overflow-wrap: anywhere; }
.copy {
  font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--olive); background: none;
  border: 1px solid var(--olive); border-radius: 999px;
  padding: 0.25rem 0.9rem; cursor: pointer;
  transition: all 0.2s ease;
}
.copy:hover, .copy.done { background: var(--olive); color: #fff; }
.gift-pending { color: var(--muted); font-style: italic; margin-top: 1.4rem; }

/* ---------- rsvp ---------- */
#rsvp {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 12%, var(--ivory-2) 100%);
  text-align: center;
  padding: clamp(4rem, 10vw, 6.5rem) clamp(1.4rem, 6vw, 3rem);
}
#rsvp h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 0.8rem; }
#rsvp .script-lg.gold { color: var(--gold); margin-bottom: 0.4rem; }
.rsvp-lead { color: var(--muted); margin-bottom: 2.2rem; }
.rsvp-card {
  max-width: 30rem; margin: 0 auto; text-align: left;
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 18px 50px rgba(60, 55, 40, 0.12);
  padding: clamp(1.6rem, 5vw, 2.4rem);
}
.field { display: block; margin-bottom: 1.3rem; }
.field > span { display: block; font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(124, 138, 95, 0.4);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); }
.chips { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip i {
  display: inline-block; font-style: normal;
  border: 1.5px solid var(--olive); border-radius: 999px;
  color: var(--olive);
  padding: 0.5rem 1.2rem; cursor: pointer;
  transition: all 0.2s ease;
}
.chip input:checked + i { background: var(--olive); color: #fff; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-error { color: #a04434; min-height: 1.4rem; margin-bottom: 0.6rem; font-size: 1rem; }
#rsvpBtn { width: 100%; }
.rsvp-ok { text-align: center; padding: 1.6rem 0.6rem; }
.ok-seal {
  width: 74px; height: 74px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--display); font-size: 1.35rem;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(198, 161, 91, 0.5);
}
.rsvp-ok h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-bottom: 0.6rem; }
.rsvp-ok p { color: var(--muted); }

/* ---------- cierre ---------- */
#cierre { position: relative; min-height: 92vh; display: grid; }
.cierre-media { position: absolute; inset: 0; overflow: hidden; }
.cierre-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.cierre-overlay {
  position: relative; z-index: 2;
  place-self: center; text-align: center;
  color: #fff;
  padding: 2rem;
}
#cierre::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(24, 26, 18, 0.18) 0%, rgba(24, 26, 18, 0.45) 70%, rgba(24, 26, 18, 0.72) 100%);
}
.c-mono { font-family: var(--script); font-size: clamp(4rem, 16vw, 6.5rem); line-height: 1; text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45); }
.c-mono span { color: var(--gold-soft); }
.cierre-overlay h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 6vw, 2.2rem); letter-spacing: 0.1em; margin: 1rem 0 0.6rem; }
.c-date { letter-spacing: 0.4em; font-size: 1rem; color: var(--gold-soft); }
#cierre footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: rgba(57, 64, 44, 0.9);
  color: var(--ivory);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.95rem; letter-spacing: 0.06em;
}

/* ---------- música ---------- */
#musicBtn {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(198, 161, 91, 0.6);
  background: rgba(255, 255, 255, 0.94);
  color: var(--olive);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(60, 55, 40, 0.25);
}
#musicBtn.playing { background: var(--olive); color: #fff; animation: spinPulse 2.6s ease-in-out infinite; }
@keyframes spinPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- canvas pétalos ---------- */
#petals { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

/* ---------- reveals ---------- */
[data-reveal] { will-change: transform, opacity; }
body.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (max-width: 560px) {
  #topbar nav { display: none; }
  .date-rule p { white-space: normal; }
  .it-item { padding-right: 1.3rem; }
  .it-item.right { padding-left: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .g-chevrons, .cal-heart, #musicBtn.playing { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   v2 — feedback de Rodrich
   ========================================================== */

/* ---------- efecto escritura (SplitText) ---------- */
.st-word, .st-char { display: inline-block; }
[data-write] { visibility: visible; }

/* ---------- dress code: siluetas ---------- */
.attire {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(2.2rem, 9vw, 4.5rem);
  margin: 1.8rem auto 0.6rem;
}
.attire figure { display: grid; justify-items: center; gap: 0.7rem; }
.attire svg { height: clamp(120px, 26vw, 168px); width: auto; color: var(--ink); }
.attire figcaption { font-size: 0.86rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- mapa: modal con vista previa ---------- */
.map-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 1.2rem;
  background: rgba(18, 18, 16, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.map-modal.open { opacity: 1; pointer-events: auto; }
.map-card {
  width: min(560px, 94vw);
  background: var(--paper);
  border: 1px solid rgba(198, 161, 91, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  padding: 1rem;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
}
.map-modal.open .map-card { transform: none; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.2rem 0.3rem 0.8rem; }
.map-head h4 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.06em; }
.map-close {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(31, 31, 28, 0.3);
  background: none; color: var(--ink);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: all 0.2s ease;
}
.map-close:hover { background: var(--ink); color: #fff; }
.map-frame { position: relative; aspect-ratio: 4 / 3.4; background: var(--ivory-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-foot { display: flex; justify-content: center; padding: 0.9rem 0 0.2rem; }

/* ---------- itinerario: fotos + iluminación ---------- */
.it-photo {
  width: clamp(72px, 17vw, 92px); height: clamp(72px, 17vw, 92px);
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  border: 2px solid rgba(220, 196, 148, 0.75);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.6rem;
}
.it-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.9);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.it-item {
  opacity: 0.3;
  filter: saturate(0.6);
  transition: opacity 0.55s ease, filter 0.55s ease;
}
.it-item.lit { opacity: 1; filter: none; }
.it-item.lit .it-photo img { filter: grayscale(1) brightness(1.05); transform: scale(1.05); }
.it-item.lit .it-dot { box-shadow: 0 0 0 5px rgba(220, 196, 148, 0.25), 0 0 22px rgba(220, 196, 148, 0.8); }
.it-dot { transition: box-shadow 0.55s ease; }

/* ---------- historia: video fijado ---------- */
.video-stage { display: grid; place-items: center; }
body:not(.no-anim) .video-stage { min-height: 100svh; padding: 2rem 0; }
.video-stage .video-card { margin: 0 auto; will-change: transform; }

@media (max-width: 560px) {
  .map-card { padding: 0.7rem; }
  .attire { gap: 1.6rem; }
}
