/* ═══════════════════════════════════════════════
   Noche de Belén — tokens
   ═══════════════════════════════════════════════ */
:root {
  --noche: #0E1C36;
  --noche-2: #183456;
  --pino: #1E4A3D;
  --pino-2: #2A6352;
  --vela: #E9B867;
  --vela-claro: #F6DFAE;
  --arandano: #9E3446;
  --escarcha: #EEF2F6;
  --papel: #FFFFFF;
  --tinta: #14213A;
  --tinta-2: #4A5670;
  --linea: #D5DDE7;

  --display: 'Marcellus', 'Times New Roman', serif;
  --body: 'Figtree', system-ui, sans-serif;
  --num: 'Figtree', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--escarcha);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vela); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--vela); color: var(--noche); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ─────────── botones ─────────── */
.btn {
  --bg: transparent; --fg: inherit; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { --bg: var(--vela); --fg: var(--noche); box-shadow: 0 6px 22px -8px rgba(233, 184, 103, .7); }
.btn-gold:hover { --bg: #F0C67E; }
.btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn-ghost:hover { --bd: rgba(255, 255, 255, .7); --bg: rgba(255, 255, 255, .06); }
.btn-outline { --fg: var(--noche); --bd: var(--noche); }
.btn-outline:hover { --bg: var(--noche); --fg: #fff; }
.btn-text { --fg: var(--tinta-2); padding: 0 .8em; }
.btn-text:hover { --fg: var(--tinta); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: rgba(255, 255, 255, .85); cursor: pointer; font-weight: 500; }
.link-btn:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.link { color: var(--pino-2); font-weight: 600; text-underline-offset: 3px; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(246, 223, 174, .16), transparent 70%),
    linear-gradient(180deg, #0A1630 0%, var(--noche) 45%, #17335A 100%);
  overflow: hidden;
  isolation: isolate;
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* (la navegación fija está al final del archivo) */

.logos { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: .78rem; color: rgba(255, 255, 255, .7); letter-spacing: .02em; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.45rem; letter-spacing: .01em; }
.brand .logo-ja { height: 42px; }
.logo-slot { display: inline-flex; align-items: center; height: 44px; }
.logo-slot img { height: 100%; width: auto; max-width: 120px; object-fit: contain; filter: brightness(0) invert(1); }
.logo-fallback {
  display: inline-grid; place-items: center; height: 40px; min-width: 40px; padding: 0 10px;
  border: 1.5px solid currentColor; border-radius: 999px;
  font-family: var(--display); font-size: .95rem; letter-spacing: .04em; opacity: .9;
}
.logo-divider { width: 1px; height: 30px; background: currentColor; opacity: .3; }

.hero-inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 116px var(--gutter) 200px;
  max-width: 820px; margin: 0 auto;
}

.star { width: 120px; height: 192px; margin: 4px 0 -36px; overflow: visible; }
.star-glow { transform-origin: 100px 110px; animation: glow 5s ease-in-out infinite; }
.star-body { animation: twinkle 6s ease-in-out infinite; transform-origin: 0 0; }
.star-beam { transform-origin: 100px 110px; }

.hero-date { font-size: 1.05rem; color: var(--vela-claro); font-weight: 500; letter-spacing: .02em; }
.hero-title {
  font-size: clamp(3rem, 10vw, 6.6rem);
  margin: 10px 0 18px;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 30%, var(--vela-claro) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 34em; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, 2.2vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.countdown { display: flex; gap: clamp(14px, 4vw, 36px); margin-top: 40px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.countdown span { font-family: var(--num); font-weight: 300; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .8rem; color: rgba(255, 255, 255, .6); margin-top: 6px; }

.town { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(140px, 22vw, 220px); z-index: -1; }
.windows rect { animation: windowGlow 4s ease-in-out infinite; }
.windows rect:nth-child(2n) { animation-delay: -1.3s; }
.windows rect:nth-child(3n) { animation-delay: -2.6s; }

/* orquestación de entrada */
.hero .star, .hero-date, .hero-title, .hero-lead, .hero-cta, .countdown { opacity: 0; }
.is-ready .hero .star { animation: starIn 1.6s var(--ease) forwards; }
.is-ready .hero-date { animation: rise .9s var(--ease) .7s forwards; }
.is-ready .hero-title { animation: rise 1.1s var(--ease) .85s forwards; }
.is-ready .hero-lead { animation: rise .9s var(--ease) 1.05s forwards; }
.is-ready .hero-cta { animation: rise .9s var(--ease) 1.2s forwards; }
.is-ready .countdown { animation: rise .9s var(--ease) 1.35s forwards; }

@keyframes starIn { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glow { 50% { opacity: .65; transform: scale(.92); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(.92) rotate(4deg); } }
@keyframes windowGlow { 50% { opacity: .55; } }

/* ═══════════════ SECCIONES ═══════════════ */
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--noche); }
.section-head p { margin-top: 14px; color: var(--tinta-2); font-size: 1.1rem; }

/* ─────────── programa / línea de tiempo ─────────── */
.programa { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 18px; bottom: 18px;
  left: calc(var(--time-w) + 13px);
  border-left: 2px dotted #B8C4D3;
}
.timeline { --time-w: 120px; }
.moment { display: grid; grid-template-columns: var(--time-w) 28px 1fr; gap: 0 22px; align-items: start; }
.moment + .moment { margin-top: 28px; }
.moment-time { font-family: var(--num); font-weight: 300; font-size: 1.5rem; color: var(--noche); text-align: right; padding-top: 22px; white-space: nowrap; }
.moment-light {
  width: 16px; height: 16px; margin: 30px auto 0; border-radius: 50%;
  background: var(--vela); position: relative; z-index: 1;
  box-shadow: 0 0 0 5px var(--escarcha), 0 0 18px 4px rgba(233, 184, 103, .7);
  animation: bulb 3.2s ease-in-out infinite;
}
.moment + .moment .moment-light { background: var(--arandano); box-shadow: 0 0 0 5px var(--escarcha), 0 0 18px 4px rgba(158, 52, 70, .55); animation-delay: -1.6s; }
@keyframes bulb { 50% { filter: brightness(.8); } }

.moment-body {
  background: var(--papel);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid var(--linea);
}
.moment-body h3 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); color: var(--noche); }
.moment-body > p { margin: 10px 0 18px; color: var(--tinta-2); max-width: 56ch; }
.moment-meta { margin-bottom: 20px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .875rem; font-weight: 600; }
.tag-free { background: #E1EEE9; color: var(--pino); }

.moment-featured .moment-body {
  background: var(--noche);
  color: #fff;
  border-color: var(--noche);
  background-image: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(233, 184, 103, .18), transparent 60%);
}
.moment-featured .moment-body { position: relative; }
.moment-featured .moment-body::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(233, 184, 103, .45); border-radius: calc(var(--r-lg) - 6px);
}
.moment-featured .moment-body > * { position: relative; z-index: 1; }
.moment-featured .moment-body h3 { color: #fff; }
.moment-featured .moment-body > p { color: rgba(255, 255, 255, .78); }

.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 24px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price span { font-size: 1.2rem; color: var(--vela-claro); }
.price strong { font-family: var(--num); font-weight: 300; font-size: 3.6rem; line-height: 1; color: var(--vela); }
.price em { font-style: normal; color: rgba(255, 255, 255, .7); margin-left: 4px; }
.seats { flex: 1; min-width: 200px; max-width: 320px; }
.seats-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.seats-bar i { display: block; height: 100%; width: 0; background: var(--vela); border-radius: inherit; transition: width 1.2s var(--ease); }
.seats p { font-size: .9rem; margin-top: 8px; color: rgba(255, 255, 255, .78); }

.lugar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 40px; margin-left: calc(var(--time-w) + 50px);
  color: var(--tinta-2);
}
.lugar svg { width: 26px; height: 26px; color: var(--arandano); flex: none; }
.lugar strong { color: var(--tinta); }

/* ─────────── intercambio ─────────── */
.intercambio {
  background: var(--pino);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.intercambio::before {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.intercambio-grid { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; position: relative; }
.intercambio h2 { font-size: clamp(2rem, 5vw, 3rem); }
.intercambio-theme { font-size: 1.25rem; margin: 14px 0 12px; color: var(--vela-claro); }
.intercambio-theme strong { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: #fff; }
.intercambio p { max-width: 54ch; color: rgba(255, 255, 255, .85); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 28px 0 0; }
.facts dt { font-size: .875rem; color: rgba(255, 255, 255, .65); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.1rem; }
.gift-art svg { width: 100%; max-width: 280px; }
.gift { transform-box: fill-box; transform-origin: 50% 100%; }
.gift-a { animation: sway 5s ease-in-out infinite; }
.gift-b { animation: sway 5s ease-in-out -2.5s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ═══════════════ FORMULARIO ═══════════════ */
.reservar { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 10vw, 120px); }
.form-card {
  background: var(--papel);
  border-radius: var(--r-lg);
  border: 1px solid var(--linea);
  padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 30px 60px -40px rgba(14, 28, 54, .35);
  max-width: 860px;
}

.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 32px; padding: 0; counter-reset: s; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 3px solid var(--linea);
  color: var(--tinta-2); font-weight: 500; font-size: .95rem;
  transition: border-color .4s, color .4s;
}
.steps li span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--escarcha); font-weight: 700; font-size: .85rem; flex: none;
  transition: background-color .4s, color .4s;
}
.steps li.is-current { border-color: var(--vela); color: var(--tinta); }
.steps li.is-current span { background: var(--vela); color: var(--noche); }
.steps li.is-done { border-color: var(--pino-2); color: var(--tinta); }
.steps li.is-done span { background: var(--pino-2); color: #fff; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--tinta-2); }
.field input, .gift-opt {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--linea); border-radius: var(--r-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .gift-opt:focus { outline: none; border-color: var(--noche-2); box-shadow: 0 0 0 4px rgba(24, 52, 86, .12); }
.field input::placeholder, .gift-opt::placeholder { color: #98A3B5; }
.is-invalid, .field input.is-invalid { border-color: var(--arandano) !important; box-shadow: 0 0 0 4px rgba(158, 52, 70, .1) !important; }

.qty {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px; margin-top: 8px;
  background: var(--escarcha); border-radius: var(--r-md);
}
.qty-label { font-weight: 600; font-size: 1.05rem; }
.qty-hint { color: var(--tinta-2); font-size: .9rem; }
.stepper { display: flex; align-items: center; background: #fff; border-radius: 999px; border: 1.5px solid var(--linea); }
.stepper button {
  width: 48px; height: 48px; border: 0; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--noche); border-radius: 50%;
}
.stepper button:hover:not(:disabled) { background: var(--escarcha); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-family: var(--num); font-weight: 500; font-size: 1.5rem; }
.subtotal { margin-top: 16px; text-align: right; color: var(--tinta-2); }
.subtotal strong { color: var(--noche); font-size: 1.2rem; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linea); }

.step-intro { color: var(--tinta-2); margin-bottom: 22px; max-width: 62ch; }
.people { display: grid; gap: 14px; }
.person { border: 1.5px solid var(--linea); border-radius: var(--r-md); padding: 18px; transition: border-color .3s, background-color .3s; }
.person.has-gift { border-color: var(--vela); background: #FFFBF3; }
.person-head { display: flex; align-items: center; gap: 14px; }
.person-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--noche); color: #fff; font-weight: 600; font-size: .95rem;
}
.field-inline { flex: 1; margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; font-weight: 500; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 46px; height: 26px; border-radius: 99px; background: #C9D2DE; position: relative; transition: background-color .25s; flex: none; }
.switch-track span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch input:checked + .switch-track { background: var(--arandano); }
.switch input:checked + .switch-track span { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--vela); outline-offset: 2px; }
.gifts { display: grid; gap: 10px; margin-top: 14px; padding-left: 50px; }
.gifts:not([hidden]) { animation: rise .35s var(--ease); }
.gifts p { font-size: .9rem; font-weight: 600; color: var(--arandano); }

/* pago */
.pay { display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; }
.qr-frame {
  background: linear-gradient(160deg, #6B2D8C, #4A1F6B);
  padding: 16px; border-radius: var(--r-md);
}
.qr-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.qr-missing { color: #fff; font-size: .9rem; padding: 24px 8px; text-align: center; }
.pay-amount { font-size: 1.15rem; }
.pay-amount strong { font-family: var(--num); font-weight: 300; font-size: 2.4rem; color: var(--noche); display: block; line-height: 1.1; }
.pay-detail { color: var(--tinta-2); font-size: .95rem; margin-bottom: 18px; }
.yape-number {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--escarcha); margin-bottom: 18px;
}
.yape-number small { display: block; color: var(--tinta-2); font-size: .85rem; }
.yape-number strong { display: block; font-size: 1.35rem; letter-spacing: .03em; }

.upload {
  display: block; position: relative; cursor: pointer; margin-bottom: 18px;
  border: 2px dashed #B8C4D3; border-radius: var(--r-md);
  transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.is-drag { border-color: var(--noche-2); background: #F7F9FC; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--vela); outline-offset: 3px; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; }
.upload-empty svg { width: 32px; height: 32px; color: var(--noche-2); margin-bottom: 4px; }
.upload-empty small, .upload-filled small { color: var(--tinta-2); font-size: .875rem; }
.upload-filled { display: flex; align-items: center; gap: 14px; padding: 12px; }
.upload-filled img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.upload-filled strong { display: block; word-break: break-all; font-size: .95rem; }
.upload.has-file { border-style: solid; border-color: var(--pino-2); background: #F3F8F6; }

.form-error {
  margin-top: 6px; padding: 12px 16px; border-radius: var(--r-sm);
  background: #FBEDEF; color: #7E2234; font-weight: 500; font-size: .95rem;
}

/* éxito */
.success { text-align: center; padding: 20px 0 8px; outline: none; }
.success-star { width: 72px; height: 72px; margin: 0 auto 18px; animation: starIn 1s var(--ease), spinSlow 18s linear 1s infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.success h3 { font-size: 2rem; color: var(--noche); }
.success > p { max-width: 46ch; margin: 12px auto 0; color: var(--tinta-2); }
.success .success-code {
  display: inline-block; margin-top: 22px; padding: 12px 26px;
  font-family: var(--num); font-weight: 600; font-size: 1.8rem; letter-spacing: .1em; color: var(--noche);
  border: 2px dashed var(--vela); border-radius: var(--r-md); background: #FFFBF3;
}
.success .success-detail { margin-top: 14px; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.closed-msg { text-align: center; padding: 28px 0; }
.closed-msg h3 { font-size: 1.8rem; color: var(--noche); }
.closed-msg p { color: var(--tinta-2); margin-top: 8px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--noche); color: rgba(255, 255, 255, .78); padding: 56px 0 64px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logos-footer { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: #fff; }
.footer-brand > span { font-size: .95rem; }
.footer-brand > span + span { color: var(--vela-claro); }
.footer-verse { font-family: var(--display); font-size: 1.2rem; color: var(--vela-claro); max-width: 30em; }
.footer .link { color: var(--vela); }

/* ═══════════════ DIÁLOGOS ═══════════════ */
.dlg {
  width: min(520px, calc(100vw - 32px));
  border: 0; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px);
  color: var(--tinta); background: var(--papel);
  box-shadow: 0 40px 80px -30px rgba(10, 22, 48, .55);
}
.dlg::backdrop { background: rgba(10, 22, 48, .6); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlgIn .35s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg h3 { font-size: 1.7rem; color: var(--noche); padding-right: 40px; }
.dlg > p { color: var(--tinta-2); margin: 8px 0 22px; }
.dlg-close-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.dlg-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--escarcha); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dlg-done { padding: 18px; border-radius: var(--r-md); background: #E1EEE9; color: var(--pino); }
.dlg .form-error { margin-bottom: 14px; }

.consulta-result { margin-top: 20px; padding: 20px; border-radius: var(--r-md); background: var(--escarcha); }
.consulta-result h4 { margin: 0 0 6px; font-size: 1.05rem; }
.consulta-result ul { margin: 10px 0 0; padding-left: 18px; color: var(--tinta-2); }
.estado { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: .875rem; font-weight: 600; }
.estado-pendiente { background: #FDF1D8; color: #7A5410; }
.estado-aprobado { background: #DDEFE7; color: #1B5A44; }
.estado-rechazado { background: #FBE3E7; color: #82243A; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--noche); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 760px) {
  .logo-slot { height: 32px; }
  .brand { gap: 10px; }
  .brand .logo-divider, .brand .logo-ja { display: none; }
  .brand-text strong { font-size: 1.25rem; }
  .star { width: 96px; height: 154px; margin-bottom: -28px; }
  .hero-inner { padding-top: 92px; padding-bottom: 150px; }

  .timeline { --time-w: 0px; }
  .timeline::before { left: 13px; }
  .moment { grid-template-columns: 28px 1fr; gap: 0 14px; }
  .moment-time { grid-column: 2; text-align: left; padding: 0 0 8px; font-size: 1.25rem; }
  .moment-light { grid-column: 1; grid-row: 1; margin-top: 6px; }
  .moment-body { grid-column: 2; }
  .lugar { margin-left: 42px; }

  .intercambio-grid { grid-template-columns: 1fr; }
  .gift-art svg { max-width: 180px; margin: 0 auto; }

  .grid-2 { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .pay-qr { max-width: 260px; margin: 0 auto; width: 100%; }
  .gifts { padding-left: 0; }
  .steps li { font-size: .82rem; gap: 6px; flex-direction: column; text-align: center; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-actions > span:empty { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero .star, .hero-date, .hero-title, .hero-lead, .hero-cta, .countdown { opacity: 1; }
}


/* ═══════════════════════════════════════════════
   NAVEGACIÓN FIJA + GUIRNALDA DE PROGRESO
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding: 14px var(--gutter) 0;
  transition: padding .35s var(--ease);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  transition: background-color .35s, border-color .35s, box-shadow .35s, backdrop-filter .35s, max-width .45s var(--ease);
}
.nav.is-scrolled { padding-top: 10px; }
.nav.is-scrolled .nav-inner {
  max-width: 1080px;
  background: rgba(14, 28, 54, .82);
  border-color: rgba(246, 223, 174, .16);
  box-shadow: 0 18px 40px -22px rgba(5, 12, 28, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0 auto; padding: 0; }
.nav-links a {
  position: relative; display: block;
  padding: 9px 16px; border-radius: 999px;
  color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a.is-active { color: var(--noche); background: var(--vela-claro); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .link-btn { font-size: .95rem; }

/* foquitos: se encienden con el progreso del scroll */
.garland {
  pointer-events: none;
  position: relative; max-width: 1080px; height: 22px; margin: -2px auto 0;
  display: flex; justify-content: space-between; padding: 0 28px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s, transform .35s var(--ease);
}
.nav.is-scrolled .garland { opacity: 1; transform: none; }
.garland::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -6px; height: 14px;
  border-bottom: 1.5px solid rgba(30, 74, 61, .9);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.garland i {
  --c: #E9B867;
  position: relative; width: 7px; height: 11px; margin-top: 4px;
  border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  background: #3A4A63;
  transition: background-color .3s, box-shadow .3s;
}
.garland i::before { content: ""; position: absolute; left: 1.5px; top: -3px; width: 4px; height: 4px; border-radius: 1px; background: #1E4A3D; }
.garland i:nth-child(4n+2) { --c: #E05A6B; }
.garland i:nth-child(4n+3) { --c: #7FD3A8; }
.garland i:nth-child(4n) { --c: #F6EFD8; }
.garland i:nth-child(odd) { margin-top: 6px; }
.garland i.is-on { background: var(--c); box-shadow: 0 0 6px 1px var(--c), 0 0 14px 2px color-mix(in srgb, var(--c) 45%, transparent); animation: bulbTwinkle 2.4s ease-in-out infinite; }
.garland i.is-on:nth-child(3n) { animation-delay: -.8s; }
.garland i.is-on:nth-child(3n+1) { animation-delay: -1.6s; }
@keyframes bulbTwinkle { 50% { filter: brightness(.75); } }

/* dock inferior móvil */
.dock { display: none; }

/* ═══════════════ HERO interactivo ═══════════════ */
.hero { cursor: default; }
[data-parallax] { will-change: transform; }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(70px, 12vw, 120px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .8rem; letter-spacing: .04em;
  opacity: 0; transition: opacity .4s;
}
.is-ready .scroll-cue { animation: rise .9s var(--ease) 1.8s forwards; }
.scroll-cue:hover { color: #fff; }
.scroll-cue-mouse { width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-cue-mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--vela); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: clamp(70px, 12vw, 120px);
  font-size: .8rem; color: rgba(246, 223, 174, .55); pointer-events: none;
  opacity: 0;
}
.is-ready .hero-hint { animation: rise .9s var(--ease) 2.4s forwards; }
.hero.was-touched .hero-hint { opacity: 0 !important; animation: none; transition: opacity .4s; }

/* cuenta regresiva: los dígitos ruedan */
.countdown span { display: inline-block; }
.countdown span.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }

/* ═══════════════ revelados con scroll ═══════════════ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .moment.reveal { transform: translateX(-24px); }
.js .moment.reveal.is-in { transform: none; }
.js .moment.reveal + .moment.reveal { transition-delay: .1s; }

/* línea de tiempo: se llena de luz */
.timeline-fill {
  position: absolute; top: 18px; left: calc(var(--time-w) + 12px);
  width: 4px; height: calc(100% - 36px); border-radius: 4px;
  background: linear-gradient(180deg, var(--vela), var(--arandano));
  box-shadow: 0 0 12px rgba(233, 184, 103, .6);
  transform-origin: top; transform: scaleY(var(--fill, 0));
}
.js .timeline .moment .moment-light { background: #C9D2DE; box-shadow: 0 0 0 5px var(--escarcha); animation: none; transition: background-color .4s, box-shadow .4s, transform .4s var(--ease); }
.js .timeline .moment.is-lit .moment-light { background: var(--vela); box-shadow: 0 0 0 5px var(--escarcha), 0 0 18px 4px rgba(233, 184, 103, .7); transform: scale(1.15); animation: bulb 3.2s ease-in-out infinite; }
.js .timeline .moment.is-lit + .moment.is-lit .moment-light { background: var(--arandano); box-shadow: 0 0 0 5px var(--escarcha), 0 0 18px 4px rgba(158, 52, 70, .55); }

/* tarjetas */
.moment-body { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.moment-body:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(14, 28, 54, .45); border-color: #C3CEDC; }
.moment-featured .moment-body:hover { border-color: var(--noche); }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx, 80%) var(--my, 0%), rgba(246, 214, 150, .22), transparent 60%);
  opacity: .8; transition: opacity .3s;
}

/* ═══════════════ intercambio: regalo interactivo ═══════════════ */
.ribbon {
  position: relative; display: inline-block; margin-top: 10px;
  padding: .1em .7em .18em; font-size: .62em; color: #fff; white-space: nowrap;
  background: var(--arandano);
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  transform: rotate(-2deg);
}
.gift-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gift-box {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 1;
  border: 0; padding: 0; background: none; cursor: pointer; color: inherit;
  border-radius: 24px;
}
.gift-box svg { width: 100%; height: 100%; overflow: visible; }
.gift-body, .gift-lid { transform-box: fill-box; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.gift-body { transform-origin: 50% 100%; }
.gift-lid { transform-origin: 50% 100%; }
.gift-box:not([aria-expanded="true"]) { animation: giftWiggle 4s ease-in-out infinite; }
.gift-box:not([aria-expanded="true"]):hover .gift-lid { transform: translateY(-8px) rotate(-3deg); }
.gift-box:not([aria-expanded="true"]):hover .gift-body { transform: scaleY(.97); }
.gift-box[aria-expanded="true"] .gift-lid { transform: translate(-30px, -96px) rotate(-24deg); }
@keyframes giftWiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-4deg); } 90% { transform: rotate(4deg); } 94% { transform: rotate(-2deg); } }
.gift-card {
  position: absolute; left: 50%; top: 44%;
  display: flex; flex-direction: column; align-items: center;
  min-width: 170px; padding: 12px 18px; border-radius: 14px;
  background: #fff; color: var(--noche); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .45);
  transform: translate(-50%, 30px) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .15s, opacity .3s .15s;
}
.gift-card small { font-size: .8rem; color: var(--tinta-2); }
.gift-card strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; text-align: center; }
.gift-box[aria-expanded="true"] .gift-card { transform: translate(-50%, -70px) scale(1); opacity: 1; }
.gift-hint { font-size: .9rem; color: rgba(255, 255, 255, .7); transition: opacity .3s; }
.gift-stage.is-open .gift-hint { opacity: 0; }

/* confeti */
.fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* stepper con rebote */
.stepper output.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); color: var(--arandano); } }

/* ═══════════════ responsive nav ═══════════════ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .nav { padding-top: 10px; }
  .nav-actions .link-btn { display: none; }
  .nav-inner { gap: 10px; padding: 6px 6px 6px 12px; }
  .garland { padding: 0 18px; }
  .garland::before { left: 18px; right: 18px; }
  .hero-hint { display: none; }
  .scroll-cue { bottom: 92px; }

  .dock {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 6px; border-radius: 22px;
    background: rgba(14, 28, 54, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(246, 223, 174, .16);
    box-shadow: 0 18px 40px -16px rgba(5, 12, 28, .7);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .dock a, .dock button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; border-radius: 16px; border: 0; background: none; cursor: pointer;
    color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .72rem; font-weight: 500;
    transition: color .2s, background-color .2s;
  }
  .dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .dock a.is-active { color: var(--vela-claro); background: rgba(255, 255, 255, .08); }
  .dock .dock-main { color: var(--noche); background: var(--vela); }
  .dock .dock-main.is-active { color: var(--noche); background: var(--vela-claro); }
  .footer { padding-bottom: 120px; }
  .toast { bottom: 96px; }

  .timeline-fill { left: 12px; }
  .ribbon { font-size: .55em; }
  .gift-box { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
  .scroll-cue, .hero-hint { opacity: 1; }
}

/* Reserva centrada */
.reservar .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.reservar .form-card { margin-left: auto; margin-right: auto; }

/* secciones que reciben foco al navegar: sin contorno */
section[tabindex="-1"]:focus, header[tabindex="-1"]:focus { outline: none; }
