/* Base: reset, tipografía general y componentes compartidos (botón, badge, íconos). */

/* Estado global: progreso de scroll (0 a 1), lo actualiza js/scroll.js */
:root {
  --prog: 0;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* El sitio declara que ya es oscuro (junto con <meta name="color-scheme">): algunos navegadores,
   como Samsung Internet, solo dejan de forzar su modo oscuro si ven esta consulta. */
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
/* Ojo: solo elementos, no pseudoelementos (los nodos del proceso dependen de content-box) */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
img { max-width: 100%; }

/* Scroll suave (Lenis, ver js/movimiento/scroll-suave.js). Reglas de lenis.css + scroll-behavior:
   con Lenis activo el suavizado lo hace JS; si el CSS también suaviza, se pelean. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 6px; }

/* Solo para lectores de pantalla */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sprite de íconos SVG */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cool); margin: 0 0 14px; }
.sec-title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 0.98; }
.sec-title em { font-style: normal; color: var(--glow); text-shadow: 0 0 22px var(--accent); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--glow); font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer; box-shadow: 0 0 26px -6px var(--accent); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 0 40px -4px var(--accent); }
.btn.ghost { background: rgba(10,14,26,.5); border: 1px solid rgba(255,255,255,.16); box-shadow: none; backdrop-filter: blur(8px); }
.btn.ghost:hover { border-color: var(--cool); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: .7; transform: none; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--muted); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 8px var(--cool); }

/* Marcadores [COMPLETAR: ...]: texto pendiente que se ve en pantalla a propósito */
.completar { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0; color: var(--cool); overflow-wrap: anywhere; }
