/* Tokens de marca PCG — fuente: Plan del Nuevo Progressa v0.6 (docs/CONTEXTO.md §13).
   No añadir colores de marca. Modo oscuro automático por preferencia del sistema,
   forzable con <html data-theme="light|dark">. */

:root {
  --bg: #ffffff;
  --band: #f5f7fa;
  --surface-2: #eef2f7;
  --band-dark: #333640;
  --band-dark-2: #2a2d36;

  --ink: #333640;
  --ink-2: #5a5f6e;
  --ink-3: #646a79;

  --rule: #e1e7f0;
  --rule-strong: #cfd7e4;
  --field: #808a9c;

  --accent: #1155a1;
  --accent-press: #0b3d77;
  --accent-wash: #eaf1fa;
  --on-accent: #ffffff;
  --deep: #0b3d77;
  --light: #5faed0;

  --on-dark: #ffffff;
  --on-dark-2: #c9ced8;
  --on-dark-accent: #8cc8e2;

  --ok: #0f7a52;
  --bad: #b3261e;

  --e2: 0 1px 2px rgba(51,54,64,.05), 0 10px 28px -14px rgba(17,85,161,.22);
  --e3: 0 2px 6px rgba(51,54,64,.06), 0 24px 48px -20px rgba(17,85,161,.28);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --dur-1: 120ms;
  --dur-2: 180ms;
  --dur-3: 240ms;
  --dur-4: 420ms;
  --dur-5: 700ms;
  --dur-6: 1100ms;
  --ease-std: cubic-bezier(.2,0,0,1);
  --ease-in: cubic-bezier(.2,.7,.3,1);

  --max: 1180px;
  --prose: 66ch;

  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161c;
    --band: #181b22;
    --surface-2: #232733;
    --band-dark: #0e1015;
    --band-dark-2: #1b1e26;

    --ink: #e9ecf2;
    --ink-2: #aeb5c4;
    --ink-3: #8d95a6;

    --rule: #2b3040;
    --rule-strong: #3b4254;
    --field: #646c80;

    --accent: #5faed0;
    --accent-press: #8cc8e2;
    --accent-wash: #1a2532;
    --on-accent: #0f1218;
    --deep: #8cc8e2;
    --light: #8cc8e2;

    --on-dark: #e9ecf2;
    --on-dark-2: #aeb5c4;
    --on-dark-accent: #5faed0;

    --ok: #4cc38a;
    --bad: #f2837c;

    --e2: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.75);
    --e3: 0 2px 6px rgba(0,0,0,.45), 0 24px 48px -18px rgba(0,0,0,.8);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14161c;
  --band: #181b22;
  --surface-2: #232733;
  --band-dark: #0e1015;
  --band-dark-2: #1b1e26;

  --ink: #e9ecf2;
  --ink-2: #aeb5c4;
  --ink-3: #8d95a6;

  --rule: #2b3040;
  --rule-strong: #3b4254;
  --field: #646c80;

  --accent: #5faed0;
  --accent-press: #8cc8e2;
  --accent-wash: #1a2532;
  --on-accent: #0f1218;
  --deep: #8cc8e2;
  --light: #8cc8e2;

  --on-dark: #e9ecf2;
  --on-dark-2: #aeb5c4;
  --on-dark-accent: #5faed0;

  --ok: #4cc38a;
  --bad: #f2837c;

  --e2: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px -14px rgba(0,0,0,.75);
  --e3: 0 2px 6px rgba(0,0,0,.45), 0 24px 48px -18px rgba(0,0,0,.8);

  color-scheme: dark;
}

/* Escala tipográfica (docs/CONTEXTO.md §13.3) */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.14; letter-spacing: -0.025em; }
h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.lead    { font-size: 19px; line-height: 1.55; letter-spacing: -0.01em; color: var(--ink-2); }
.small   { font-size: 14px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.45; letter-spacing: 0.01em; font-weight: 500; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.num     { font-weight: 600; font-variant-numeric: tabular-nums; }
