/* Design tokens: colores, tipografía, espaciado.
   Cambiar aquí la identidad visual sin tocar el resto. */

:root {
  /* Tema oscuro por defecto (estilo GitHub dark / terminal) */
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #1c2230;
  --border: #2a3242;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3ddc84;        /* verde Android */
  --accent-2: #58a6ff;      /* azul secundario */
  --accent-contrast: #0d1117;
  --shadow: 0 10px 30px rgb(0 0 0 / 0.35);

  /* Tipografía: fuentes del sistema (sin Google Fonts → sin problemas RGPD) */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", Menlo, Consolas, monospace;

  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 4vw, 3.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --radius: 12px;
  --radius-sm: 6px;
  --container: 1100px;
  --header-h: 64px;
}

/* Tema claro (toggle manual) */
:root[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --border: #d0d7de;
  --text: #1f2328;
  --text-muted: #59636e;
  --accent: #1a8f4f;
  --accent-2: #0969da;
  --accent-contrast: #ffffff;
  --shadow: 0 10px 30px rgb(31 35 40 / 0.08);
}

/* Tema claro si el sistema lo pide y no hay elección manual */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8fa;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --border: #d0d7de;
    --text: #1f2328;
    --text-muted: #59636e;
    --accent: #1a8f4f;
    --accent-2: #0969da;
    --accent-contrast: #ffffff;
    --shadow: 0 10px 30px rgb(31 35 40 / 0.08);
  }
}
