/* ============================================================
   Master League — Design Tokens
   Direction: Editorial / sober. Mobile-first.
   ============================================================ */

:root {
    /* === Colour: paleta reducida === */
    --color-bg: #0a0e1a;
    --color-surface: #111827;
    --color-surface-2: #1a2030;
    --color-surface-hover: #161d2c;
    --color-border: #1f2937;
    --color-border-strong: #374151;

    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-subtle: #6b7280;
    --color-text-strong: #ffffff;

    /* Único accent */
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-accent-soft: rgba(59, 130, 246, 0.12);
    --color-accent-strong: #2563eb;

    /* Estado (sólo para indicar estado, no decoración) */
    --color-success: #10b981;
    --color-success-soft: rgba(16, 185, 129, 0.12);
    --color-warning: #f59e0b;
    --color-warning-soft: rgba(245, 158, 11, 0.12);
    --color-danger: #ef4444;
    --color-danger-soft: rgba(239, 68, 68, 0.12);

    /* === Aliases retro-compatibles (no quitar — los usan páginas legacy) === */
    --primary: var(--color-accent);
    --primary-dark: var(--color-accent-strong);
    --primary-glow: var(--color-accent-soft);
    --secondary: var(--color-success);
    --accent: var(--color-warning);
    --danger: var(--color-danger);
    --success: var(--color-success);
    --warning: var(--color-warning);
    --bg-dark: var(--color-bg);
    --bg-card: var(--color-surface);
    --bg-deep: var(--color-bg);
    --bg-header: rgba(10, 14, 26, 0.85);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --text-main: var(--color-text);
    --text-muted: var(--color-text-muted);
    --text-highlight: var(--color-text-strong);
    --border-color: var(--color-border-strong);

    /* === Spacing (4pt base, 8pt grid) === */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    --spacing-xs: var(--space-1);
    --spacing-sm: var(--space-2);
    --spacing-md: var(--space-4);
    --spacing-lg: var(--space-5);
    --spacing-xl: var(--space-8);

    /* === Typography === */
    --font-display: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --font-heading: var(--font-display);

    /* Type scale fluida (mobile-first via clamp) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: clamp(1.0625rem, 0.9rem + 0.5vw, 1.125rem);
    --text-xl: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.4rem + 2.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.5rem + 3.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    --text-display: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);

    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;

    --tracking-tight: -0.02em;
    --tracking-base: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 800;

    /* === Radii === */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* === Shadows (sin glow, sólo profundidad) === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-focus: 0 0 0 3px var(--color-accent-soft);

    /* === Transitions === */
    --transition-fast: 120ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 320ms ease;

    /* === Z-index scale === */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-drawer: 700;
    --z-overlay: 800;
    --z-modal: 900;
    --z-toast: 950;

    /* === Layout === */
    --container-max: 1200px;
    --container-narrow: 720px;
    --header-height: 64px;
    --tap-target: 44px;
}

/* Breakpoints (referencia, se usan en @media):
   sm: 640px   — phones landscape / phablets
   md: 768px   — tablets
   lg: 1024px  — desktop
   xl: 1280px  — wide desktop
*/
