/* Semana de Actualización · NBA Asesores
   Identidad NBA (rojo, negro y marfil; Montserrat y Manrope; esquinas rectas)
   con el color por clase de la propuesta original. Primero celular. */
:root {
  --red: #fe031c; --red-dark: #ba0013; --ink: #111111; --paper: #f5f2ed; --paper-2: #ebe6df;
  --muted: #5d5853; --line: rgba(17, 17, 17, .14); --night: #161314; --night-2: #221d1e;
  --s1: #fe031c; --s2: #d9480f; --s3: #0b7a6f; --s4: #5b3cc4; --s5: #c2185b;
  --display: Montserrat, "Arial Black", Arial, sans-serif; --body: Manrope, "Segoe UI", Arial, sans-serif;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); font-weight: 900; }
h2 span { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; padding: 10px 14px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.spectrum { display: flex; height: 5px; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--s1); } .spectrum i:nth-child(2) { background: var(--s2); }
.spectrum i:nth-child(3) { background: var(--s3); } .spectrum i:nth-child(4) { background: var(--s4); }
.spectrum i:nth-child(5) { background: var(--s5); }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter); background: rgba(245, 242, 237, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo img { width: 40px; height: 40px; }
.logo-divider { width: 1px; height: 26px; background: #b7b2ac; }
.logo-text { font: 900 11px/1.25 var(--display); letter-spacing: .04em; max-width: 118px; }
.logo-text small { display: none; font: 800 8.5px var(--body); letter-spacing: .16em; color: #777; }
.logo-divider { display: none; }
.nav { display: none; }
.header-cta { flex: none; background: var(--ink); color: #fff; text-decoration: none; padding: 10px 14px; font: 800 12px var(--body); }
.header-cta:hover { background: var(--red-dark); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; cursor: pointer; text-decoration: none;
  padding: 16px 20px; font: 800 14px var(--body); transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--ink); }
.btn.full { width: 100%; justify-content: center; }
.text-link { font: 800 13px var(--body); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-button { background: none; border: 0; padding: 0; font: 700 12px var(--body); color: var(--red-dark); text-decoration: underline; cursor: pointer; }

/* Portada */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 44px 0 52px; }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#ffffff0e 1px, transparent 1px), linear-gradient(90deg, #ffffff0e 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom left, #000 10%, transparent 80%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -260px; top: -160px; background: radial-gradient(closest-side, #fe031c38, transparent); }
.hero-layout { display: grid; gap: 36px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 800 11px var(--body); letter-spacing: .16em; color: #ff8a96; }
.eyebrow-line { width: 26px; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(3rem, 12.6vw, 5.5rem); font-weight: 900; line-height: .95; letter-spacing: -.055em; margin: 18px 0 20px; hyphens: manual; }
.dot { color: var(--red); }
.lead { color: #cfc8c4; font-size: 17px; line-height: 1.75; max-width: 34em; }
.lead strong { color: #fff; }
.topics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0; }
.topics li { display: flex; align-items: center; gap: 8px; font: 700 13px var(--body); color: #e9e4e1; }
.topics li::before { content: ""; width: 10px; height: 10px; background: var(--c); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 26px; }
.price s { color: #a39b97; font-size: 16px; }
.price span { display: inline-block; font: 900 20px var(--display); letter-spacing: -.02em; color: #fff; background: var(--red); padding: 5px 12px;
  transform: rotate(-2.5deg); box-shadow: 4px 4px 0 var(--red-dark); }
.js-motion .price span { animation: stamp .45s 1.1s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.35); } to { opacity: 1; transform: rotate(-2.5deg) scale(1); } }
.price.light span { box-shadow: 4px 4px 0 var(--ink); }
.price.light s { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

.week-card { background: var(--night-2); border: 1px solid #ffffff24; padding: 22px 18px; box-shadow: 14px 14px 0 #00000055; }
.tiny-label { font: 800 10px var(--body); letter-spacing: .16em; color: #ff8a96; margin-bottom: 12px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.countdown div { background: #00000055; border: 1px solid #ffffff14; text-align: center; padding: 10px 2px 8px; }
.countdown b { display: block; font: 900 30px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.countdown small { font: 700 9.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: #a39b97; }
.week-now { font: 800 18px/1.25 var(--display); margin-bottom: 18px; }
.week-now a { color: #fff; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 18px; }
.week li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; background: var(--c); color: #fff; }
.week li.off { background: transparent; color: #6f6866; border: 1px dashed #ffffff22; }
.week li span { font: 800 8.5px var(--body); letter-spacing: .1em; }
.week li b { font: 900 18px/1 var(--display); }
.week li em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.week li.done { opacity: .35; }
.week li.today { outline: 2px solid #fff; outline-offset: 2px; }
.facts { display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #ffffff1a; font-size: 14px; }
.facts dt { color: #a39b97; }
.facts dd { font-weight: 700; text-align: right; }

/* Secciones */
.section { padding: 72px 0; }
.section-tag { font: 800 11px var(--body); letter-spacing: .16em; color: var(--red-dark); margin-bottom: 22px; }
.section-tag.light { color: #ff8a96; }
.section-heading { display: grid; gap: 18px; margin-bottom: 40px; }
.section-heading > p { color: var(--muted); max-width: 30em; line-height: 1.8; }

/* Programa */
.agenda { border-top: 2px solid var(--ink); }
.agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.date { align-self: start; background: var(--c); color: #fff; text-align: center; padding: 8px 0 9px; }
.date small { display: block; font: 800 9.5px var(--body); letter-spacing: .14em; }
.date b { display: block; font: 900 28px/1.05 var(--display); }
.agenda-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 800 10.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.agenda h3 { font-size: clamp(1.25rem, 4.6vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.agenda li p:last-child { color: var(--muted); font-size: 15px; max-width: 40em; }
.state:empty { display: none; }
.state { font-size: 10px; letter-spacing: .1em; padding: 2px 7px; background: var(--ink); color: #fff; }
.agenda li.done { opacity: .5; }
.agenda li.today .state { background: var(--red); }

/* Regalo */
.gift { background: var(--red); color: #fff; padding: 52px 0; }
.gift-layout { display: grid; gap: 22px; justify-items: start; }
.gift-mark { width: 54px; height: 54px; color: #fff; }
.gift-kicker { font: 800 11px var(--body); letter-spacing: .16em; color: #ffd0d5; margin-bottom: 8px; }
.gift h2 { font-size: clamp(1.7rem, 5.4vw, 2.8rem); }
.gift p:last-child { color: #ffe1e4; margin-top: 10px; max-width: 34em; }

/* Para quién */
.audience { background: #fbf9f6; }
.roles { display: grid; border-top: 1px solid var(--line); }
.roles li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.roles h3 { font-size: 1.35rem; font-weight: 800; }
.roles p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.steps-title { font-size: 12px; font-family: var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark); margin: 56px 0 18px; }
.steps { display: grid; gap: 12px; }
.steps li { background: #fff; border: 1px solid var(--line); padding: 22px; }
.steps b { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: #fff; font: 900 17px var(--display); margin-bottom: 14px; }
.steps h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* NBA */
.nba { background: var(--night); color: #fff; padding: 72px 0; }
.nba-layout { display: grid; gap: 40px; }
.nba h2 span { color: var(--red); }
.nba-copy { color: #cfc8c4; line-height: 1.8; margin: 18px 0 22px; max-width: 34em; }
.services { display: flex; flex-wrap: wrap; gap: 8px; }
.services li { border: 1px solid #ffffff38; padding: 6px 12px; font: 700 13px var(--body); }
.slogan { margin-top: 26px; font: 800 1.35rem var(--display); color: #ff6b7a; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ffffff22; border: 1px solid #ffffff22; }
.stats > * { background: var(--night-2); padding: 22px 18px; }
.stats b { display: block; font: 900 clamp(2.2rem, 9vw, 3.2rem)/1 var(--display); letter-spacing: -.04em; margin-bottom: 8px; }
.stats b.small { font-size: 1.4rem; line-height: 1.15; }
.stats span { color: #a39b97; font-size: 14px; }
.stats .wide { grid-column: 1 / -1; }
.stats .blog { display: flex; justify-content: space-between; gap: 16px; align-items: center; text-decoration: none; font-weight: 800; color: #fff; }
.stats .blog:hover { background: var(--red-dark); }
.stats .blog span { color: #fff; font-size: 20px; }

/* Inscripción */
.registration { padding: 72px 0; background: var(--paper); }
.registration-layout { display: grid; gap: 36px; }
.registration-copy > p { color: var(--muted); margin: 16px 0; }
.promises { display: grid; gap: 10px; margin: 22px 0; }
.promises li { display: flex; gap: 10px; font-weight: 600; }
.promises li::before { content: "✓"; color: var(--red); font-weight: 900; }
.whatsapp-alt { font-size: 14px; }
.whatsapp-alt a { font-weight: 800; }
.form-card { background: #fff; border-top: 5px solid var(--red); padding: 24px 18px; box-shadow: 0 20px 50px #1111110f; }
#registration-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
#registration-fields:disabled { opacity: .65; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; gap: 0 12px; }
.field label { font: 800 12.5px var(--body); }
input[type="text"], input:not([type]), input[type="email"], input[type="tel"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #b9b3ad; border-radius: 0; background: #fcfbf9;
  font: 500 16px var(--body); color: var(--ink); }
input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--red-dark); background: #fff6f7; }
.optional { font-weight: 600; color: var(--muted); }
#coupon { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
#coupon.applied { border-color: #176238; background: #f1f8f3; }
.hint { font-size: 12.5px; color: var(--muted); }
.hint.ok { color: #176238; font-weight: 700; }
.hint.bad { color: var(--red-dark); font-weight: 700; }
.sessions { border: 0; padding: 0; margin: 6px 0 16px; min-width: 0; display: grid; gap: 6px; }
.sessions legend { display: flex; justify-content: space-between; width: 100%; font: 800 12.5px var(--body); margin-bottom: 8px; }
.sessions label { display: grid; grid-template-columns: 22px 62px 1fr; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border: 1px solid var(--line); border-left: 5px solid var(--c); cursor: pointer; background: #fff; }
.sessions label:has(input:checked) { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 45%, #fff); border-left-color: var(--c); }
.sessions label.closed { opacity: .45; cursor: not-allowed; }
.sessions input { width: 20px; height: 20px; accent-color: var(--c); margin: 0; }
.sessions .when { font: 800 11px var(--body); letter-spacing: .08em; color: var(--c); }
.sessions .what { font-weight: 700; font-size: 15px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.consent a { color: var(--ink); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
#turnstile-slot { min-height: 0; margin-bottom: 12px; }
#turnstile-slot:not(:empty) { min-height: 65px; }
.form-status { font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 1.4em; }
.form-status.error { color: var(--red-dark); font-weight: 700; }
.result { text-align: left; }
.result:focus { outline: none; }
.result-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--red); color: #fff; font: 900 22px var(--display); margin-bottom: 16px; }
.result h3 { font-size: 1.7rem; font-weight: 900; margin-bottom: 10px; }
.result > p { color: var(--muted); margin-bottom: 14px; }
.result-sessions { display: grid; gap: 6px; margin-bottom: 16px; }
.result-sessions li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-left: 5px solid var(--c); background: var(--paper); font-weight: 700; font-size: 14px; }
.result-sessions small { font: 800 11px var(--body); color: var(--c); letter-spacing: .08em; min-width: 52px; }
.result-note { font-size: 13px; }

/* Preguntas */
.faq-layout { display: grid; gap: 30px; }
.faq-items { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 800 1.05rem/1.35 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 0 20px; max-width: 40em; }

/* Cierre y pie */
.closing { background: var(--red); color: #fff; padding: 64px 0 72px; }
.closing-layout { display: grid; gap: 14px; justify-items: start; }
.closing h2 { font-size: clamp(2.3rem, 8vw, 4.6rem); }
.closing p:not(.gift-kicker) { color: #ffe1e4; margin-bottom: 10px; }
.footer { background: var(--ink); color: #b8b1ad; font-size: 14px; }
.footer-inner { display: grid; gap: 18px; padding: 36px 0 96px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 50%; }
.footer-brand strong, .footer-brand small { display: block; color: #fff; }
.footer-brand small { color: #ff6b7a; }
.footer a { color: #fff; }

/* Botón fijo en celular */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; transition: transform .25s, opacity .25s; box-shadow: 0 10px 30px #0004; }
.mobile-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* «Actualizando 2026 → 2027»: la barra se llena y el último dígito del año rueda. */
.update { display: inline-flex; align-items: center; gap: 12px; margin: -4px 0 22px; padding: 8px 12px; border: 1px solid #ffffff26; background: #ffffff08; }
.update-label { font: 800 10px var(--body); letter-spacing: .18em; color: #cfc8c4; }
.update-bar { position: relative; width: 96px; height: 4px; background: #ffffff1f; overflow: hidden; }
.update-bar i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--s1), var(--s2), var(--s3), var(--s4), var(--s5)); }
.update-year { display: inline-flex; font: 900 18px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.roll { display: inline-block; height: 1em; overflow: hidden; }
.roll b { display: block; height: 1em; transform: translateY(-100%); }
.roll b:last-child { color: var(--red); }
.js-motion .update-bar i { animation: fill 2.4s .5s cubic-bezier(.6, 0, .2, 1) both; }
.js-motion .roll b { animation: roll .5s 2.75s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* La semana se enciende día por día. */
.js-motion .week li:not(.off) { animation: light .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.6s + var(--i, 0) * .16s); }
@keyframes light { from { background: transparent; color: transparent; box-shadow: inset 0 0 0 1px #ffffff22; } }
.js-motion .countdown div { animation: rise .5s ease both; animation-delay: calc(.2s + var(--i, 0) * .06s); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Revelado al desplazarse (solo con JS y sin preferencia de movimiento reducido) */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0ms); }
.js-motion .reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 32px 28px; }
  .week li span { font-size: 9.5px; }
  .logo-text { max-width: none; white-space: nowrap; }
  .logo-text small { display: block; }
  .logo-divider { display: block; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .site-header { height: 76px; padding: 0 max(var(--gutter), calc((100% - 1180px) / 2)); }
  .logo img { width: 48px; height: 48px; }
  .logo-text { font-size: 12.5px; }
  .nav { display: flex; gap: 26px; font: 800 13px var(--body); }
  .nav a { text-decoration: none; }
  .nav a:hover { color: var(--red-dark); }
  .header-cta { padding: 13px 18px; }
  .hero { padding: 84px 0 96px; }
  .hero-layout { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
  .week-card { padding: 28px 26px; }
  .countdown b { font-size: 38px; }
  .section { padding: 112px 0; }
  .section-heading { grid-template-columns: 1.2fr .8fr; align-items: end; gap: 56px; margin-bottom: 56px; }
  .agenda li { grid-template-columns: 96px 1fr; gap: 32px; padding: 26px 0; transition: background .2s; }
  .agenda li:hover { background: #fff; }
  .date b { font-size: 38px; }
  .gift { padding: 64px 0; }
  .gift-layout { grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
  .gift-mark { width: 72px; height: 72px; }
  .roles { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 0; }
  .roles li { border: 0; border-top: 2px solid var(--ink); padding: 22px 24px 0 0; }
  .nba { padding: 112px 0; }
  .nba-layout { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .registration { padding: 112px 0; }
  .registration-layout { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .registration-copy { position: sticky; top: 110px; }
  .form-card { padding: 40px 38px; }
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 72px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; padding: 40px 0; }
  .footer-inner p { text-align: right; }
  .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }
