/* Design tokens — Brandbook InversaLabs v1.0 (tinta/rojo señal).
   Fuente única de verdad: assets/marca/inversalabs-tokens.css.
   Cambiar un token = cambiar el tema completo. */
:root {
  --bg: #0B0B0C;             /* tinta — fondo primario */
  --bg-raise: #1E1E21;       /* elevado — hover, inputs, activos */
  --bg-card: #141416;        /* superficie — tarjetas y bloques */
  --bone: #F5F3F0;           /* texto claro sobre tinta · 17.8:1 */
  --bone-mute: #A8A5A0;      /* texto tenue sobre tinta · 8.0:1 */
  --accent: #E5342A;         /* rojo señal — escaso, nunca decorativo */
  --accent-solid: #C41E14;   /* rojo sólido — fondo de botón, texto blanco 5.9:1 */
  --accent-velo: rgba(229, 52, 42, .10);
  --accent-ink: #ffffff;     /* texto sobre fondos de acento sólido */
  --line: #2A2A2E;           /* borde 1px sólido — única forma de dividir */
  --alerta: #D98324;         /* naranja funcional — errores de formulario, ≥4.5:1 sobre tinta */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 48px; --space-5: 96px;
  --radius-0: 0px; --radius-1: 4px; --radius-2: 8px;
  --w-content: 1180px; --w-text: 68ch;
  --trans: 160ms cubic-bezier(.2,.6,.3,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--bone); font-family: var(--sans);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.wrap { position: relative; z-index: 1; max-width: var(--w-content); margin: 0 auto; padding: 0 var(--space-3); }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 20px; height: 3px; background: var(--accent);
  border-radius: 2px; flex-shrink: 0; }
h1, .display { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.015em;
  font-size: clamp(38px, 7.5vw, 92px); }  /* serif regular — nunca bold, engordarla la abarata */
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.5vw, 54px); line-height: 1.1; }
.metric { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 88px); letter-spacing: -.02em;
  color: var(--accent); -webkit-text-stroke: 0.02em currentColor; paint-order: stroke fill; }
  /* Decisión Kris 2026-08-19 (3ª iteración de chispa): TODAS las cifras en rojo señal —
     supera el mandato brandbook "una sola cifra roja por bloque". El micro-stroke
     compensa la blandura del rojo puro sobre tinta (subpíxeles). */
.metric--accent { color: var(--accent); }  /* la ÚNICA cifra roja del bloque */
/* Definición del rojo sobre tinta: el rojo puro se percibe blando en pantalla (solo
   subpíxeles rojos encendidos) — un micro-stroke del mismo color engrosa el trazo fino
   del serif y recupera el filo sin cambiar el color ni el peso (serif nunca bold). */
.metric--accent { -webkit-text-stroke: 0.02em currentColor; paint-order: stroke fill; }
.metric--hero { font-size: clamp(110px, 18vw, 210px); line-height: .9; display: block;
  margin: var(--space-1) 0 var(--space-2); }
.cifra-hero { margin-top: var(--space-4); padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line); }
.cifra-hero-copy { font-size: clamp(16px, 1.7vw, 20px); color: var(--bone); max-width: 48ch; }
.m-unit { font-size: .38em; color: var(--bone-mute); letter-spacing: 0; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-1);
  padding: clamp(24px, 3vw, 40px); }
.btn-primary { display: inline-block; background: var(--accent-solid); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; padding: 14px 28px; border-radius: var(--radius-1); border: 0;
  cursor: pointer; transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 0 0 0 rgba(229,52,42,0); }
/* Decisión Kris 2026-08-19 (pedida 2 veces): más "chispa" que la regla base del brandbook —
   glow rojo (es el propio color del sistema, no un gris genérico) + micro-lift en hover.
   Sigue siendo UN rojo dominante; no se agregan colores nuevos. */
.btn-primary:hover { background: var(--accent); box-shadow: 0 8px 32px -8px rgba(229,52,42,.55); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hl { color: var(--accent); }  /* único acento dentro del h1 — sigue siendo la ÚNICA cifra roja del bloque */
.m-arrow { color: var(--accent); }  /* flecha de la métrica "antes → después": el ojo la sigue */
.section-cifras .card:hover { border-color: rgba(229,52,42,.4);
  box-shadow: 0 0 0 1px rgba(229,52,42,.15), 0 16px 40px -20px rgba(229,52,42,.35);
  transform: translateY(-2px); }
.section-cifras .card { transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans); }
.reveal { opacity: 0; transition: opacity var(--trans); }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; } }

/* ============ Landing (index.html) — Task 7 ============ */

.topbar { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; color: var(--bone);
  text-decoration: none; }
.brand-mark:hover { color: var(--bone); }

.hero { padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 6vw, 88px); position: relative;
  background: radial-gradient(ellipse 900px 500px at 15% 0%, rgba(229,52,42,.13), transparent 60%); }
.section-cifras { position: relative;
  background: radial-gradient(ellipse 800px 480px at 85% 20%, rgba(229,52,42,.09), transparent 60%); }
.cta-final { position: relative;
  background: radial-gradient(ellipse 900px 500px at 50% 30%, rgba(229,52,42,.14), transparent 60%); }
.hero .eyebrow { margin-bottom: var(--space-2); }
.hero h1 { max-width: var(--w-text); margin-bottom: var(--space-2); }
.hero-subhead { font-size: clamp(17px, 1.6vw, 20px); color: var(--bone-mute); max-width: 62ch; margin-bottom: var(--space-3); }
.micro-line { font-family: var(--sans); font-size: 13px; letter-spacing: .01em; color: var(--bone-mute); margin-top: var(--space-2); }

.section { padding: clamp(64px, 8vw, 96px) 0; position: relative; z-index: 1; }
.section .eyebrow { margin-bottom: var(--space-2); }
.section h2 { max-width: var(--w-text); }

/* VSL */
.vsl-section .eyebrow { margin-bottom: var(--space-3); }
.vsl { position: relative; border-radius: var(--radius-2); overflow: hidden; border: 1px solid var(--line); background: #000; }
.vsl video { width: 100%; display: block; aspect-ratio: 16/9; }
.vsl-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,11,12,.55); border: 0; cursor: pointer; }
.playing .vsl-overlay { display: none; }
.vsl-btn { font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  background: var(--accent-solid); color: var(--accent-ink); padding: 14px 28px; border-radius: var(--radius-1);
  transition: background var(--trans); }
.vsl-overlay:hover .vsl-btn { background: var(--accent); }
.vsl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(245,243,240,.15); }
.vsl-progress { height: 100%; width: 0; background: var(--accent); } /* barra roja — LA señal de este bloque */
.vsl-pending .vsl-btn { opacity: .6; cursor: default; }
.vsl-pending .vsl-overlay { cursor: default; }

/* En este desglose entenderás */
.blocks-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 760px) { .blocks-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); } }
.block-num { font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--space-1); color: var(--accent); opacity: .3; }
.block h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; margin-bottom: var(--space-1); }
.block p:not(.block-num) { color: var(--bone-mute); }

/* Prueba con cifras */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
.card-name { font-family: var(--sans); font-size: .8125rem; letter-spacing: .04em; color: var(--bone-mute); margin-bottom: var(--space-2); }
.card .metric { display: block; line-height: 1; margin-bottom: var(--space-2); }
.card-copy { color: var(--bone-mute); font-size: 15px; }
.cifras-link { display: inline-block; margin-top: var(--space-4); font-family: var(--sans); font-size: .9375rem;
  color: var(--bone-mute); text-decoration: underline; text-underline-offset: 3px; transition: color var(--trans); }
.cifras-link:hover { color: var(--bone); }

/* ¿Es para ti? */
.fit-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 760px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); } }
.fit-col { border: 1px solid var(--line); border-radius: var(--radius-1); padding: var(--space-3); }
.fit-yes { background: var(--bg-card); }
.fit-title { font-family: var(--sans); font-weight: 600; font-size: .8125rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: var(--space-3); color: var(--bone); }
.fit-no .fit-title { color: var(--bone-mute); }
.fit-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.fit-col li { display: flex; gap: 10px; align-items: flex-start; }
.fit-mark { font-family: var(--sans); font-weight: 600; flex-shrink: 0; color: var(--bone); }
.fit-no { opacity: .7; }
.fit-no.in { opacity: .7; }  /* .reveal.in (opacity:1) tiene más especificidad que .fit-no solo */
.fit-no .fit-mark { color: var(--bone-mute); }

/* CTAs inline + final */
.cta-inline { text-align: center; margin-top: var(--space-4); }
.cta-final { text-align: center; }
.cta-final .display { margin-bottom: var(--space-3); }
.cta-final .accent-line { color: var(--bone); } /* la marca no dobla el rojo del botón de abajo */
.cta-final .btn-primary { margin-bottom: var(--space-2); }

/* Footer */
.footer { padding: var(--space-4) 0; border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-signature { font-family: var(--serif); font-size: 1.05rem; color: var(--bone); margin-bottom: var(--space-2); }
.footer-in { display: flex; flex-direction: column; gap: var(--space-1); font-family: var(--sans); font-size: 13px; letter-spacing: .01em; color: var(--bone-mute); }
@media (min-width: 640px) { .footer-in { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer a { color: var(--bone-mute); text-decoration: underline; }
.footer a:hover { color: var(--bone); }

/* ============ Agenda (agenda.html) — Task 8 ============ */

.btn-primary[disabled] { background: var(--bg-card); color: var(--bone-mute); cursor: not-allowed; }
.btn-primary[disabled]:hover { background: var(--bg-card); }
.btn-ghost { display: inline-flex; align-items: center; background: transparent; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--bone-mute); padding: 10px 0;
  text-decoration: none; transition: color var(--trans); }
.btn-ghost:hover { color: var(--bone); }

.agenda-main { padding: clamp(48px, 6vw, 64px) 0 clamp(64px, 8vw, 96px); position: relative; z-index: 1; }
.agenda-card { max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-1); padding: clamp(20px, 4vw, 36px); }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.stepper-lbl { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; color: var(--bone-mute); }
.stepper-bars { display: flex; gap: 6px; flex: none; }
.stepper-bars .s { width: 26px; height: 4px; border-radius: 4px; background: var(--line); }
.stepper-bars .s.done { background: var(--accent); }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-2); }
@media (max-width: 480px) { .f-row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--bone-mute); margin-bottom: 6px; }
.field input { width: 100%; height: 48px; font-family: var(--sans); font-size: 16px; color: var(--bone); background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: var(--radius-1); padding: 0 14px; transition: border-color var(--trans); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(229, 52, 42, .25); }
.field.err input { border-color: var(--alerta); }
.field textarea { width: 100%; min-height: 112px; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--bone);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius-1); padding: 12px 14px;
  transition: border-color var(--trans); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(229, 52, 42, .25); }
.field.err textarea { border-color: var(--alerta); }
.field textarea::placeholder { color: var(--bone-mute); opacity: .7; }
.field .msg { display: none; font-size: 12px; color: var(--alerta); margin-top: 5px; }
.field.err .msg { display: block; }
.field { margin-bottom: var(--space-2); }
.phone { display: flex; align-items: stretch; }
.phone .cc { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-right: none;
  border-radius: var(--radius-1) 0 0 var(--radius-1); padding: 0 12px; background: var(--bg-raise); font-size: 14px; color: var(--bone-mute);
  white-space: nowrap; }
.phone input { border-radius: 0 var(--radius-1) var(--radius-1) 0; }

.f-group { margin-bottom: var(--space-3); }
.f-group > label.q { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--bone);
  line-height: 1.3; margin-bottom: var(--space-2); }
.f-group .msg { display: none; font-size: 12px; color: var(--alerta); margin-top: 6px; }

.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 13px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-1);
  padding: 14px 16px; min-height: 44px; cursor: pointer; background: var(--bg-raise);
  transition: border-color var(--trans), background var(--trans); }
.opt:hover { border-color: rgba(229, 52, 42, .5); }
.opt.sel { border-color: var(--accent); background: var(--accent-velo); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt .rb { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bone-mute);
  margin-top: 1px; position: relative; transition: border-color var(--trans); }
.opt.sel .rb { border-color: var(--accent); }
.opt.sel .rb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.opt span:last-child { font-family: var(--sans); font-size: 14.5px; line-height: 1.45; color: var(--bone); }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--space-3);
  flex-wrap: wrap; }
@media (max-width: 480px) { .actions { flex-direction: column-reverse; align-items: stretch; } .actions .btn-primary { width: 100%; text-align: center; } }

.step2-h { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; color: var(--bone); margin-bottom: 4px; }
.step2-sub { font-family: var(--sans); font-size: 13.5px; color: var(--bone-mute); margin-bottom: var(--space-3); }
.pick { display: grid; grid-template-columns: 1.15fr .95fr; gap: var(--space-3); }
@media (max-width: 560px) { .pick { grid-template-columns: 1fr; } }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.cal-h .m { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--bone); text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 36px; height: 36px; border-radius: var(--radius-1); border: 1px solid var(--line); background: var(--bg-raise);
  cursor: pointer; color: var(--bone-mute); font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), color var(--trans); }
.cal-nav button:hover { background: var(--accent-velo); color: var(--accent); }
.cal-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-family: var(--sans); font-size: 10px;
  color: var(--bone-mute); text-align: center; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.day { aspect-ratio: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-1);
  font-family: var(--sans); font-size: 14px; color: var(--bone); border: 1px solid transparent; transition: background var(--trans), border-color var(--trans); }
.day.off { color: rgba(168, 165, 160, .35); }
.day.has { background: var(--bg-raise); color: var(--bone); cursor: pointer; }
.day.has:hover { background: var(--accent-velo); border-color: rgba(229, 52, 42, .35); }
.day.sel { background: var(--accent-velo); border-color: var(--accent); color: var(--bone); font-weight: 600; }
.slots-h { font-family: var(--sans); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bone-mute); margin-bottom: 11px; }
.slot-group { margin-bottom: 16px; }
.slot-group:last-child { margin-bottom: 0; }
.slot-group-h { font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.slot-group-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: var(--radius-1); padding: 11px 6px; min-height: 44px; text-align: center;
  font-size: 14px; font-family: var(--sans); color: var(--bone); background: var(--bg-raise); cursor: pointer;
  transition: border-color var(--trans), background var(--trans), color var(--trans); }
.slot:hover { border-color: rgba(229, 52, 42, .5); }
.slot.sel { background: var(--accent-velo); color: var(--bone); border-color: var(--accent); font-weight: 600; }
.slots .empty { font-size: 13.5px; color: var(--bone-mute); text-align: center; padding: 24px 8px; line-height: 1.6; }
.slots .empty a { color: var(--bone); text-decoration: underline; }

.note { font-family: var(--sans); font-size: 11.5px; color: var(--bone-mute); margin-top: var(--space-2); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
  margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.err-box { display: none; background: rgba(217, 131, 36, .1); border: 1px solid rgba(217, 131, 36, .35);
  color: var(--alerta); font-size: 13.5px; border-radius: var(--radius-1); padding: 12px 14px; margin-top: var(--space-2); line-height: 1.5; }
.err-box.show { display: block; }
.err-box a { color: var(--bone); text-decoration: underline; }

/* ============ Gracias (gracias.html) — Task 9 ============ */

.gracias-hero { padding: clamp(64px, 8vw, 96px) 0 clamp(20px, 4vw, 32px); text-align: center; }
.check-badge { display: flex; justify-content: center; margin-bottom: var(--space-2); }
.check-svg circle, .check-svg path { stroke: var(--accent); }
.gracias-hero h1 { max-width: var(--w-text); margin: 0 auto var(--space-2); }
.gracias-hero .hero-subhead { max-width: var(--w-text); margin: 0 auto; margin-bottom: 0; }

.steps-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-4); }
.step-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.step-num { flex: none; width: 74px; font-size: clamp(28px, 4vw, 40px); color: var(--bone-mute); }
.step-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25; margin-bottom: var(--space-1); }
.step-body p { color: var(--bone-mute); margin-bottom: var(--space-2); }
.step-body p:last-child { margin-bottom: 0; }
.step-body .cifras-link { margin-top: 0; }
.step-extra { font-style: italic; }
.step-body .btn-primary { margin-top: var(--space-1); font-size: 13px; padding: 14px 26px; }
@media (max-width: 480px) { .step-item { flex-direction: column; gap: var(--space-1); } .step-num { width: auto; } }

/* ============ Privacidad (privacidad.html) — Task 9 ============ */

.privacy-main { padding: clamp(48px, 6vw, 64px) 0 clamp(64px, 8vw, 96px); position: relative; z-index: 1; }
.privacy-wrap { position: relative; z-index: 1; max-width: var(--w-text); margin: 0 auto; padding: 0 var(--space-3); }
.privacy-wrap h1 { font-size: clamp(28px, 5vw, 44px); margin-top: var(--space-1); margin-bottom: var(--space-1); }
.privacy-updated { font-family: var(--sans); font-size: 12px; letter-spacing: .01em; color: var(--bone-mute);
  margin-bottom: var(--space-4); }
.privacy-wrap h2 { font-size: clamp(19px, 2.4vw, 23px); margin-top: var(--space-4); margin-bottom: var(--space-2); }
.privacy-wrap p { color: var(--bone-mute); margin-bottom: var(--space-2); }
.privacy-wrap ul { list-style: disc; padding-left: 22px; color: var(--bone-mute); margin-bottom: var(--space-2); }
.privacy-wrap li { margin-bottom: 8px; }
.privacy-wrap a { color: var(--bone); text-decoration: underline; }
.privacy-note { font-size: 13px; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
