/**
 * 🎨 TirePress - Tokens de diseño (única fuente de verdad)
 * Mundo: app deportiva oscura con un solo acento, el naranja del logo.
 * Se carga antes que cualquier otra hoja en todas las páginas.
 */

:root {
    color-scheme: dark;

    /* Superficies: se separan por tono, no por bordes. Matiz marino tomado del logo (#193F64) */
    --bg: #0c0f14;
    --surface-1: #141920;
    --surface-2: #1c222b;
    --surface-3: #252c37;
    --line: #2a323e;

    /* Texto */
    --text: #f2f4f7;
    --text-2: #a7b0bd;      /* ≈8:1 sobre --surface-1 */
    --text-3: #8a94a5;      /* ≥4.8:1 sobre --surface-2; metadatos y placeholders */

    /* Acento único: naranja del logo (#EE7127) */
    --accent: #ee7127;
    --accent-hover: #f5843e;
    --accent-on-soft: #f7934f;            /* naranja legible sobre --accent-soft (≥4.8:1) */
    --accent-ink: #1a0b02;                 /* texto sobre naranja ≈7:1 */
    --accent-soft: rgba(238, 113, 39, 0.14);
    --brand-navy: #193f64;

    /* Estados (solo para avisos, nunca decorativos) */
    --warning: #f5b83d;
    --warning-soft: rgba(245, 184, 61, 0.12);
    --danger: #f2545b;
    --danger-soft: rgba(242, 84, 91, 0.12);
    --success: #3dd68c;

    /* Tipografía */
    --font-ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-metric: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

    /* Escala tipográfica (razón ≈1.25) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: clamp(2.25rem, 5vw, 3.5rem);
    --metric-size: clamp(4.5rem, 16vw, 7rem);

    /* Espaciado (base 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 72px;

    /* Forma y elevación */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-elevated: 0 12px 32px rgba(0, 0, 0, 0.45);
    --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

    /* Movimiento */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 140ms;
    --duration-base: 240ms;

    /* Layout */
    --dock-height: 64px;
    --content-max: 1080px;

    /* Alias heredados (páginas o estilos que aún usan los nombres anteriores) */
    --bg-dark: var(--bg);
    --bg-card: var(--surface-1);
    --bg-input: var(--surface-2);
    --bg-elevated: var(--surface-2);
    --border-color: var(--line);
    --text-main: var(--text);
    --text-muted: var(--text-2);
    --accent-blue: var(--text);
    --font-family: var(--font-ui);
}
