/* Sistema común: cada propuesta define sus colores y tipografías en :root. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; background: var(--night); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 60; background: var(--light); color: var(--on-light); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; border-radius: 6px; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-webgl #gl { display: none; }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5)); }

.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
:root { --gutter: clamp(20px, 4vw, 56px); --r: 18px; }

/* Cabecera */
.nav { position: fixed; z-index: 40; inset: 14px 0 auto; pointer-events: none; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 10px 9px 18px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 2px; font-family: var(--brandfont); font-weight: 800; font-size: 21px; letter-spacing: -.03em; min-height: 44px; }
.brand b { color: var(--light); font-weight: 800; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.btn) { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--soft); transition: color .18s, background .18s; }
.nav nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .07); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: transform .16s ease, background .18s, border-color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 17px; height: 17px; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }
.btn.main { background: var(--light); color: var(--on-light); box-shadow: 0 0 0 0 var(--glow); }
.btn.main:hover { box-shadow: 0 8px 34px -6px var(--glow); }
.btn.alt { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
.btn.alt:hover { background: rgba(255, 255, 255, .12); border-color: var(--soft); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Secciones: el fondo es la escena; el velo protege la lectura */
main { position: relative; z-index: 2; }
section { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 64px; }
section.veil-l::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--veil) 0%, var(--veil-2) 40%, transparent 72%); }
section.veil-c::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--veil-c); }
section > .wrap { position: relative; }
.col { max-width: 600px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--light); }
h1, h2 { font-family: var(--display); font-weight: var(--display-w); letter-spacing: var(--display-ls); line-height: var(--display-lh); text-wrap: balance; }
h1 { font-size: var(--h1); margin-top: 16px; }
h2 { font-size: var(--h2); margin-top: 14px; }
.lead { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Entrada única de la portada */
.in { opacity: 0; transform: translateY(18px); animation: in .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes in { to { opacity: 1; transform: none; } }

/* Cuenta atrás */
.cd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-variant-numeric: tabular-nums; }
.cd-l { font-size: 14px; color: var(--soft); width: 100%; }
.cd-n { font-family: var(--display); font-weight: var(--display-w); font-size: 34px; line-height: 1; }
.cd-n i { font: 500 14px/1 var(--body); color: var(--soft); margin-left: 3px; }

/* Tarjetas */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s ease, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--soft); }
.price { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(46px, 7vw, 92px); line-height: 1; letter-spacing: var(--display-ls); font-variant-numeric: tabular-nums; }
.was { color: var(--soft); text-decoration: line-through; font-size: 20px; font-variant-numeric: tabular-nums; }
.ticks li { position: relative; padding-left: 26px; margin-top: 9px; font-size: 16px; color: var(--soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--light); border-bottom: 2px solid var(--light); transform: rotate(-45deg); }

/* Campo */
.field { display: flex; gap: 10px; margin-top: 26px; max-width: 520px; }
.field input { flex: 1; min-width: 0; min-height: 54px; padding: 0 18px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 18px; transition: border-color .18s, background .18s; }
.field input:focus { outline: none; border-color: var(--light); background: rgba(255, 255, 255, .11); }
.field input::placeholder { color: var(--soft); }
label.lbl { display: block; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--soft); }
label.lbl + .field { margin-top: 8px; }

/* Pie */
footer { position: relative; z-index: 2; padding: 26px 0 34px; border-top: 1px solid var(--line); background: var(--veil); color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
footer a { display: inline-block; padding: 11px 0; background: linear-gradient(currentColor, currentColor) 0 80% / 0 1px no-repeat; transition: background-size .22s, color .18s; }
footer a:hover { background-size: 100% 1px; color: var(--text); }

.pause { position: fixed; z-index: 41; right: 16px; bottom: 16px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); color: var(--soft); font-size: 14px; cursor: pointer; backdrop-filter: blur(14px); transition: color .18s, transform .16s; }
.pause:hover { color: var(--text); transform: translateY(-2px); }

@media (max-width: 820px) {
  body { font-size: 16.5px; }
  .nav nav a:not(.btn) { display: none; }
  section { align-items: flex-end; padding: 100px 0 40px; }
  section.veil-l::before, section.veil-c::before { background: linear-gradient(180deg, transparent 0%, var(--veil-2) 42%, var(--veil) 72%); }
  .actions .btn { width: 100%; }
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
  .pause { display: none; }
}
@media (max-width: 400px) {
  .nav .wrap { padding: 7px 8px 7px 12px; gap: 8px; }
  .brand img { height: 30px !important; }
  .nav .btn { padding: 0 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { animation: none; opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; }
}
