/* Small Lab · web de presentación. Colores y tipos de replica/design/tokens.json (tema noche). Sin JavaScript. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/atkinson-hyperlegible-mono-latin-600-normal.woff2) format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #151b23;
  --surface-2: #1f2731;
  --border: #2c3642;
  --text: #f3f6f9;
  --text-muted: #a9b4c2;
  --accent: #c6f24e;
  --on-accent: #0b0f14;
  --accent-text: #d4f77a;
  --focus: #ffd23f;
  --warning: #ffc44d;
  --sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Atkinson Hyperlegible Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --max: 1100px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.mono, .num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--focus); color: var(--bg); padding: 8px 12px; border-radius: var(--r-sm); font-weight: 700; z-index: 10; }
.skip:focus { left: 8px; }

/* Cabecera */
.top { border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-md);
  font: 700 17px/1.2 var(--sans); text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #d4f77a; }
.btn-ghost { border-color: #738396; color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }

/* Secciones */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.eyebrow { font: 600 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--text-muted); max-width: 62ch; }

/* Portada */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 9vw, 60px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--accent); }
.tagline { font: 600 clamp(20px, 4.5vw, 24px)/1.3 var(--mono); color: var(--accent-text); margin-bottom: 16px; }
.hero .lead { margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 15px; color: var(--text-muted); margin-top: 16px; }

.phone {
  margin: 0 auto; width: min(300px, 78vw);
  border: 10px solid var(--surface-2); border-radius: 36px; overflow: hidden;
  background: var(--bg); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px var(--border);
}
.phone img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* Tarjetas y rejillas */
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
section.alt .card { background: var(--surface-2); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-muted); }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--text-muted); }
.card li + li { margin-top: 4px; }

.problem .grid { margin-top: 28px; }
.costs .card { display: flex; flex-direction: column; gap: 4px; }
.costs .card strong { font-size: 18px; }

/* Pasos */
.steps { counter-reset: paso; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li { counter-increment: paso; position: relative; padding: 20px 20px 20px 76px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.steps li::before {
  content: counter(paso); position: absolute; left: 20px; top: 20px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font: 600 20px/1 var(--mono);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--text-muted); }
.shots { display: grid; gap: 32px; margin-top: 40px; }

/* Módulos */
.modules { margin-top: 28px; }
.modules .card h3 { display: flex; align-items: baseline; gap: 10px; }
.tag { font: 600 13px/1 var(--mono); color: var(--accent-text); border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }

/* Cada número con su fuente */
.proof { display: grid; gap: 40px; margin-top: 28px; align-items: start; }
.result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.mt { margin-top: 28px; }
.result .label { color: var(--text-muted); margin: 0 0 4px; }
.result .source { color: var(--text-muted); margin: 0; }
.result .big { margin: 0;  font: 800 56px/1 var(--sans); letter-spacing: -.02em; }
.result .big small { font-size: 28px; font-weight: 700; }
.result .pm { color: var(--text-muted); margin: 8px 0 20px; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 16px; }
.result dt { color: var(--text-muted); }
.result dd { margin: 0; }
.formula { font: 600 18px/1.4 var(--mono); background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 12px; overflow-x: auto; }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
caption { text-align: left; padding: 16px; font-weight: 700; caption-side: top; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-weight: 700; }
td.num { font-size: 15px; }
@media (max-width: 767px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: block; border-top: 1px solid var(--border); padding: 12px 16px; }
  tbody td { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; border: 0; padding: 4px 0; }
  tbody td::before { content: attr(data-label); color: var(--text-muted); font: 400 15px/1.4 var(--sans); }
  tbody td:first-child { display: block; font-weight: 700; padding-bottom: 8px; }
  tbody td:first-child::before { content: none; }
}

/* Privacidad */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); -webkit-mask: var(--tick) center/14px no-repeat; mask: var(--tick) center/14px no-repeat; }
.checks li::after { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); }
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Instalar */
.install .grid { margin-top: 28px; }
.install ol { margin: 8px 0 0; padding-left: 22px; color: var(--text-muted); }
.install ol li + li { margin-top: 6px; }
.callout { margin-top: 20px; border-left: 4px solid var(--warning); background: var(--surface-2); padding: 16px 20px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.callout p { margin: 0; }

/* Preguntas */
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 24px/1 var(--mono); color: var(--accent-text); }
details[open] summary::after { content: '−'; }
details > div { padding: 0 20px 16px; color: var(--text-muted); }
details > div p:last-child { margin-bottom: 0; }

/* Cierre y pie */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 28px; }
.cta .actions { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 15px; color: var(--text-muted); }
footer .wrap { display: grid; gap: 16px; }
footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { display: inline-block; padding: 8px 0; }
footer p { margin: 0; }

/* Páginas legales */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 7vw, 44px); font-weight: 800; }
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal li { margin-bottom: 6px; }
.pending { background: var(--surface-2); border: 2px dashed var(--warning); color: var(--warning); padding: 0 6px; border-radius: 6px; }

/* Tableta y escritorio */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  section { padding: 88px 0; }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .grid.modules { grid-template-columns: repeat(3, 1fr); }
  .proof { grid-template-columns: 1fr 1fr; }
}
