/* ==========================================================================
   SPORTMETRIC 2.0 — DESIGN TOKENS
   --------------------------------------------------------------------------
   Fuente única de verdad del rediseño. Estos tokens se portan 1:1 a:
   - MUI v5/v6:  palette / shape / shadows / typography de createTheme()
   - Tailwind:   theme.extend.colors / borderRadius / boxShadow
   - Chakra:     theme.extend.colors / radii / shadows
   La paleta de marca (indigo + verde) no cambia; se agregan tintes y
   utilitarios neutros para dar profundidad sin perder identidad.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------ */
  /* Marca (invariante)                                                 */
  /* ------------------------------------------------------------------ */
  --sm-primary: #0600ad;        /* indigo corporativo */
  --sm-primary-light: #5c35e0;  /* violeta (hover / acentos) */
  --sm-primary-dark: #00007c;
  --sm-accent: #29ff59;         /* verde Sportmetric */
  --sm-accent-dark: #00ca22;
  --sm-accent-ink: #00942a;     /* verde legible sobre fondos claros */
  --sm-green-tint: #e6ffea;     /* tinte verde ya usado hoy en cards */

  /* ------------------------------------------------------------------ */
  /* Escala indigo (derivada)                                           */
  /* ------------------------------------------------------------------ */
  --sm-indigo-50: #f2f3fd;
  --sm-indigo-100: #e4e6fb;
  --sm-indigo-200: #c5c8f5;
  --sm-indigo-300: #9ba0ef;
  --sm-indigo-400: #5c35e0;
  --sm-indigo-500: #2b16c9;
  --sm-indigo-600: #0600ad;     /* = --sm-primary */
  --sm-indigo-700: #00007c;     /* = --sm-primary-dark */
  --sm-indigo-800: #000059;
  --sm-indigo-900: #000036;

  /* ------------------------------------------------------------------ */
  /* Neutros (fondo del app: gris con tinte indigo, más "fresco" que #f0f0f0) */
  /* ------------------------------------------------------------------ */
  --sm-bg: #f4f5fa;
  --sm-surface: #ffffff;
  --sm-surface-2: #fafbfe;
  --sm-border: #e3e6f1;
  --sm-border-strong: #cdd2e6;
  --sm-text: #141838;
  --sm-text-secondary: #5b6280;
  --sm-text-muted: #8b91ae;
  --sm-on-primary: #ffffff;
  --sm-on-accent: #04290d;      /* texto sobre verde */

  /* ------------------------------------------------------------------ */
  /* Semánticos                                                         */
  /* ------------------------------------------------------------------ */
  --sm-live: #e83946;           /* EN VIVO (ya existe en el app) */
  --sm-warning: #ff9d29;        /* suspendido (paleta actual) */
  --sm-danger: #cb1a21;         /* cancelado (paleta actual) */
  --sm-success: #00ca22;

  /* ------------------------------------------------------------------ */
  /* Tipografía — Montserrat se mantiene                                */
  /* ------------------------------------------------------------------ */
  --sm-font-sans: "Montserrat", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sm-text-xs: 0.75rem;   /* 12 */
  --sm-text-sm: 0.875rem;  /* 14 */
  --sm-text-md: 1rem;      /* 16 */
  --sm-text-lg: 1.125rem;  /* 18 */
  --sm-text-xl: 1.375rem;  /* 22 */
  --sm-text-2xl: 1.75rem;  /* 28 */
  --sm-text-3xl: 2.25rem;  /* 36 */
  --sm-text-4xl: 3rem;     /* 48 hero desktop */
  --sm-leading-tight: 1.15;
  --sm-leading-normal: 1.5;
  --sm-weight-regular: 400;
  --sm-weight-medium: 500;
  --sm-weight-semibold: 600;
  --sm-weight-bold: 700;
  --sm-weight-black: 900;
  --sm-tracking-wide: 0.08em;  /* eyebrows / kickers en mayúsculas */

  /* ------------------------------------------------------------------ */
  /* Esquinas (hoy = 0; el rediseño introduce radio progresivo)         */
  /* ------------------------------------------------------------------ */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ------------------------------------------------------------------ */
  /* Sombras (tinte indigo, no negro: cohesión con la marca)            */
  /* ------------------------------------------------------------------ */
  --shadow-xs: 0 1px 2px rgba(6, 0, 173, 0.06);
  --shadow-sm: 0 1px 2px rgba(6, 0, 173, 0.05), 0 4px 12px rgba(6, 0, 173, 0.07);
  --shadow-md: 0 2px 6px rgba(6, 0, 173, 0.07), 0 10px 24px rgba(6, 0, 173, 0.10);
  --shadow-lg: 0 16px 40px rgba(6, 0, 173, 0.16);
  --shadow-focus: 0 0 0 4px rgba(6, 0, 173, 0.14);

  /* ------------------------------------------------------------------ */
  /* Espaciado (base 4px)                                               */
  /* ------------------------------------------------------------------ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ------------------------------------------------------------------ */
  /* Layout                                                             */
  /* ------------------------------------------------------------------ */
  --container-max: 1240px;
  --container-narrow: 880px;
  --nav-height: 68px;

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