/* =============================================================
   JOSE DAVID · 40 AÑOS — styles.css
   Paleta: Negro · Dorado/Amarillo · Blanco
   Estética: VIP nocturno · glassmorphism · neón elegante
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  --bg:        #060606;
  --bg-2:      #0c0b09;
  --panel:     rgba(255, 255, 255, 0.045);
  --panel-brd: rgba(245, 197, 66, 0.16);
  --text:      #f6f1e7;
  --text-soft: #b9b3a6;
  --gold:      #f5c542;
  --gold-2:    #d4a017;
  --gold-deep: #b8860b;
  --white:     #ffffff;

  --gold-grad: linear-gradient(135deg, #f9d976 0%, #f5c542 38%, #d4a017 100%);
  --gold-glow: 0 0 40px rgba(245, 197, 66, 0.35);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Manrope", system-ui, sans-serif;
  --mono:  "Space Grotesk", "Manrope", sans-serif;

  --gutter: clamp(1.2rem, 5vw, 5rem);
  --radius: 20px;
  --maxw:   1180px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
/* El atributo hidden siempre gana sobre display de componentes */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.01em; font-weight: 600; }
::selection { background: var(--gold); color: #1a1408; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--gold); color: #1a1408;
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}

/* Glassmorphism — fallback sólido primero (gotcha B.12) */
.glass {
  background: rgba(20, 18, 14, 0.72);
  border: 1px solid var(--panel-brd);
  border-radius: var(--radius);
}
@supports (backdrop-filter: blur(18px)) {
  .glass {
    background: var(--panel);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensa: split-text nunca queda invisible (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              background .4s var(--ease-out), color .4s var(--ease-out);
  will-change: transform;
}
.btn-gold {
  background: var(--gold-grad);
  color: #1a1408;
  box-shadow: 0 8px 30px rgba(245, 197, 66, 0.22);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(245, 197, 66, 0.42), var(--gold-glow);
}
.btn-ghost {
  border: 1px solid rgba(245, 197, 66, 0.4);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}
.btn-block { width: 100%; }

/* =============================================================
   5. SPLASH / LOADING SCREEN
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #14110a 0%, #060606 70%);
  transition: opacity .8s var(--ease-out), visibility .8s;
  /* Safety: se oculta sola a los 4.5s aunque JS falle (gotcha A.9) */
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.splash-inner { display: grid; justify-items: center; gap: .4rem; }
.splash-num {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: splashPulse 1.8s var(--ease-soft) infinite;
}
.splash-name {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding-left: 0.4em;
}
.splash-bar {
  margin-top: 1.4rem;
  width: 140px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.splash-bar i {
  display: block; height: 100%; width: 40%;
  background: var(--gold-grad);
  animation: splashLoad 1.4s var(--ease-soft) infinite;
}
@keyframes splashPulse { 50% { opacity: .55; transform: scale(.97); } }
@keyframes splashLoad {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .5s var(--ease-out), padding .5s var(--ease-out),
              border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 7, 6, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(245, 197, 66, 0.14);
  padding-block: .75rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: .02em;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-soft);
  transition: color .3s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta {
  padding: .55rem 1.3rem; border-radius: 100px;
  background: var(--gold-grad); color: #1a1408 !important;
  font-weight: 600;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--gold-glow); }

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 7rem var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-particles { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; z-index: -3;
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  top: -20%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245,197,66,0.20) 0%, rgba(245,197,66,0.06) 35%, transparent 65%);
  filter: blur(40px);
  animation: glowFloat 9s var(--ease-soft) infinite alternate;
  pointer-events: none;
}
@keyframes glowFloat { to { transform: translateX(-50%) translateY(6%) scale(1.08); } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.hero-inner { max-width: 920px; display: grid; justify-items: center; gap: 0; }
.hero-kicker {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.4em;
  font-size: 0.72rem; color: var(--gold);
  margin-bottom: 1.8rem;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.96;
  display: grid; gap: .1rem;
  margin-bottom: 1.6rem;
}
.hero-title > span:first-child {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-style: italic;
  font-weight: 500;
}
.hero-celebra {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 2.4vw, 1.3rem);
  font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-soft);
  margin: .6rem 0 .2rem;
}
.hero-40 {
  font-size: clamp(7rem, 26vw, 18rem);
  font-weight: 700; line-height: 0.8;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 50px rgba(245,197,66,0.35));
}
.hero-anos {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 0.02em; text-transform: none;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: .2rem;
}
.hero-sub {
  max-width: 30rem;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  margin: 1.8rem 0 0;
}
.hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin: 1.8rem 0 2.2rem;
  font-family: var(--mono);
  font-size: 0.92rem; letter-spacing: 0.06em;
  color: var(--text);
}
.hero-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: var(--gold-glow); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(245,197,66,0.45);
  border-radius: 100px; display: grid; place-items: start center; padding-top: 7px;
}
.hero-scroll span {
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: scrollDot 1.8s var(--ease-soft) infinite;
}
@keyframes scrollDot { 50% { transform: translateY(14px); opacity: .3; } }

/* =============================================================
   8. SECTION SHELL + HALO
   ============================================================= */
section { padding-block: clamp(3rem, 7vw, 5.5rem); padding-inline: var(--gutter); position: relative; }
.countdown, .info, .rsvp { max-width: var(--maxw); margin-inline: auto; text-align: center; }
.section-halo {
  position: absolute; inset: -40% -10% -30% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 45%, rgba(245,197,66,0.13), transparent 72%);
  filter: blur(90px);
}

/* =============================================================
   9. COUNTDOWN
   ============================================================= */
.count-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 2vw, 1.4rem);
  max-width: 720px; margin: 0 auto;
}
.count-cell {
  padding: clamp(1.2rem, 4vw, 2.4rem) .5rem;
  display: grid; gap: .4rem; align-content: center;
  position: relative; overflow: hidden;
}
.count-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,197,66,0.08), transparent 60%);
  pointer-events: none;
}
.count-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 700; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.count-lbl {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.66rem; color: var(--text-soft);
}
.count-note { margin-top: 2rem; color: var(--gold); font-family: var(--mono); letter-spacing: 0.1em; font-size: 0.85rem; }

/* =============================================================
   10. INFO GRID
   ============================================================= */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
  text-align: left;
}
.info-card {
  padding: 1.8rem;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,197,66,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(245,197,66,0.12);
}
.info-ico { font-size: 1.7rem; display: block; margin-bottom: .8rem; }
.info-card h3 {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem; color: var(--gold); font-weight: 500; margin-bottom: .5rem;
}
.info-card p { font-size: 1.06rem; color: var(--text); }
.info-card .info-soft { font-size: 0.92rem; color: var(--text-soft); margin-top: .2rem; }
.info-card-wide { grid-column: 1 / -1; }
@media (min-width: 720px) { .info-card-wide { grid-column: span 2; } }

/* =============================================================
   11. LOCATION
   ============================================================= */
.location {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 960px) { .location { grid-template-columns: 0.9fr 1.1fr; } }
.location-text { text-align: left; }
.location-venue { font-family: var(--serif); font-size: 1.7rem; color: var(--text); margin-bottom: .3rem; }
.location-addr { color: var(--text-soft); margin-bottom: 1.8rem; }
.location-map {
  padding: .5rem; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.location-map iframe {
  width: 100%; height: clamp(280px, 42vw, 440px);
  border: 0; border-radius: calc(var(--radius) - 6px);
  filter: grayscale(0.4) contrast(1.05) brightness(0.85);
  transition: filter .6s var(--ease-out);
}
.location-map:hover iframe { filter: grayscale(0) contrast(1) brightness(1); }

/* =============================================================
   12. FOTOS REPARTIDAS
   ============================================================= */
/* Placeholder visible mientras no exista la foto */
.photo-fallback {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--text-soft);
}

/* --- Foto destacada (junto a texto) --- */
.feature {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center;
}
@media (min-width: 960px) { .feature { grid-template-columns: 0.95fr 1.05fr; } }
.feature-photo {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-brd);
  background: linear-gradient(160deg, #14110a, #060606) center/cover no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.feature-photo.has-photo .photo-fallback { display: none; }
.feature-photo.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,6,6,0.5));
}
.feature-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245,197,66,0.12);
  border-radius: inherit;
}
.feature-text { text-align: left; }
.feature-title { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.feature-sub { color: var(--text-soft); max-width: 34rem; }
.feature-caption {
  margin-top: 1.6rem;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(245,197,66,0.25));
}
.feature-caption:empty { display: none; }

/* --- Retratos verticales tipo revista (alternan lado) --- */
.portrait-band {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center; justify-items: center;
}
@media (min-width: 760px) {
  .portrait-band { grid-template-columns: auto 1fr; justify-items: start; }
  .portrait-band.portrait-flip { grid-template-columns: 1fr auto; }
  .portrait-band.portrait-flip .portrait-frame { order: 2; }
  .portrait-band.portrait-flip .portrait-caption { order: 1; text-align: right; justify-self: end; }
}
.portrait-frame {
  position: relative; display: grid; place-items: center;
  width: min(84vw, 420px); aspect-ratio: 2 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--panel-brd);
  background: linear-gradient(160deg, #14110a, #060606) center top / cover no-repeat;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.portrait-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 40px rgba(245,197,66,0.14);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245,197,66,0.14);
  border-radius: inherit;
}
.portrait-frame.has-photo .photo-fallback { display: none; }
.portrait-frame.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(6,6,6,0.4));
}
.portrait-caption {
  display: grid; gap: .7rem; max-width: 30ch;
  text-align: center; justify-items: center;
}
@media (min-width: 760px) {
  .portrait-caption { text-align: left; justify-items: start; }
  .portrait-flip .portrait-caption { justify-items: end; }
}
.pc-kicker {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.26em; font-size: 0.86rem; color: var(--gold);
  display: inline-flex; align-items: center; gap: .7rem;
}
.pc-kicker::before {
  content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .7;
}
.portrait-flip .pc-kicker { flex-direction: row-reverse; }
.pc-kicker:empty { display: none; }
.pc-title {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05;
  letter-spacing: -0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(245,197,66,0.2));
}
.pc-title:empty { display: none; }
.pc-sub {
  color: var(--text-soft); font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  max-width: 32ch; line-height: 1.55;
}
.pc-sub:empty { display: none; }

/* --- Más momentos (mosaico que crece solo) --- */
.more-photos { max-width: var(--maxw); margin-inline: auto; text-align: center; }
.more-grid {
  display: grid; gap: clamp(.6rem, 1.6vw, 1rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px)  { .more-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .more-grid { grid-template-columns: repeat(4, 1fr); } }
.more-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1 / 1; border: 1px solid var(--panel-brd);
  background: linear-gradient(160deg, #14110a, #060606);
}
.more-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .6s var(--ease-out);
  filter: brightness(0.92);
}
.more-item:hover img { transform: scale(1.07); filter: brightness(1.06); }

/* =============================================================
   13. RSVP FORM
   ============================================================= */
.rsvp-lead { max-width: 34rem; margin: 0 auto 2.6rem; color: var(--text-soft); }
.rsvp-form {
  max-width: 560px; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: left; display: grid; gap: 1.3rem;
}
.field { display: grid; gap: .5rem; }
.field-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .field-row { grid-template-columns: 2fr 1fr; } }
.field label, .field-label {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--gold);
}
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,197,66,0.18);
  border-radius: 12px; color: var(--text);
  font-family: var(--sans); font-size: 1rem;
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(185,179,166,0.5); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.14);
  background: rgba(0,0,0,0.5);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e0654f; }
.field textarea { resize: vertical; min-height: 90px; }
.choice { display: flex; gap: .8rem; flex-wrap: wrap; }
.choice-opt {
  flex: 1 1 180px; display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.1rem; border-radius: 12px;
  border: 1px solid rgba(245,197,66,0.18);
  background: rgba(0,0,0,0.3); cursor: pointer;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
  font-size: 0.95rem;
}
.choice-opt:hover { border-color: rgba(245,197,66,0.5); }
.choice-opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.choice-opt:has(input:checked) {
  border-color: var(--gold); background: rgba(245,197,66,0.1);
}
.form-hint { font-size: 0.82rem; color: var(--text-soft); text-align: center; min-height: 1.2em; }
.form-hint.is-error { color: #e88a76; }

/* Success */
.rsvp-success {
  max-width: 480px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem);
  text-align: center; display: grid; gap: 1rem; justify-items: center;
  animation: popIn .6s var(--ease-bounce);
}
.success-ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 700;
  background: var(--gold-grad); color: #1a1408;
  box-shadow: var(--gold-glow);
}
.rsvp-success h3 { font-family: var(--serif); font-size: 2rem; }
.rsvp-success p { color: var(--text-soft); }
.rsvp-success .btn { margin-top: .4rem; }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(20px); } }

/* =============================================================
   14. THANK YOU / FOOTER
   ============================================================= */
.thanks {
  position: relative; text-align: center; overflow: hidden;
  padding-block: clamp(5rem, 13vw, 9rem);
  border-top: 1px solid rgba(245,197,66,0.1);
}
.thanks-glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 70vw; max-width: 800px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245,197,66,0.14), transparent 65%);
  filter: blur(60px); pointer-events: none; z-index: -1;
}
.thanks-40 {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: clamp(4rem, 14vw, 9rem); line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(245,197,66,0.3));
  margin-bottom: .5rem;
}
.thanks-title {
  font-family: var(--serif); font-size: clamp(1.7rem, 4.5vw, 3rem);
  max-width: 18ch; margin: 0 auto 1.2rem;
}
.thanks-sub { max-width: 34rem; margin: 0 auto 1.8rem; color: var(--text-soft); }
.thanks-sign { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--text); }
.thanks-sign strong { color: var(--gold); font-style: normal; }
.thanks-credit {
  margin-top: 2.4rem; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(185,179,166,0.4);
}

/* =============================================================
   15. MUSIC TOGGLE
   ============================================================= */
.music-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 700;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20,18,14,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245,197,66,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.music-toggle:hover { transform: scale(1.08); box-shadow: var(--gold-glow); }
.music-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-bars i {
  width: 3px; height: 100%; border-radius: 2px; background: var(--gold);
  transform-origin: bottom; transform: scaleY(0.35);
}
.music-toggle.is-playing .music-bars i { animation: bars .9s var(--ease-soft) infinite; }
.music-bars i:nth-child(2) { animation-delay: .2s; }
.music-bars i:nth-child(3) { animation-delay: .4s; }
.music-bars i:nth-child(4) { animation-delay: .15s; }
@keyframes bars { 50% { transform: scaleY(1); } }

/* =============================================================
   16. RESPONSIVE
   ============================================================= */
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: .8rem; }
  .count-grid { grid-template-columns: repeat(2, 1fr); }
  .location-text { text-align: center; }
  .location-text .btn { width: 100%; }
}

/* =============================================================
   17. REDUCED MOTION — solo lo intrusivo (gotcha A.2)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-particles { display: none; }
  .hero-glow, .thanks-glow { animation: none; }
  .splash-num { animation: none; }
  .hero-scroll span { animation: none; }
}
