/* ========================================================================== */
/*  VARIABLES CSS BASE - SISTEMA DE DISEÑO UNIFICADO                          */
/*  Colores mantenidos de resultados (#667eea/#764ba2) y horarios (#4361ee)   */
/* ========================================================================== */

:root {
    /* ===== GRADIENTES PRINCIPALES ===== */
    /* Gradiente principal - usado en resultados, headers, módulos */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Gradiente secundario - usado en horarios, sidebar */
    --gradient-secondary: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);

    /* Gradiente alternativo - usado en welcome, enroll */
    --gradient-alt: linear-gradient(135deg, #2a14b8 0%, #6366f1 100%);

    /* ===== COLORES PRINCIPALES ===== */
    --primary: #667eea;
    --primary-dark: #764ba2;
    --primary-light: #4361ee;
    --primary-purple: #7209b7;

    /* Color principal legacy (site.css) */
    --main: #2d15b6;
    --main-hover: #251198;

    /* ===== COLORES DE ESTADO ===== */
    --success: #10b981;
    --success-dark: #059669;
    --success-light: #28a745;

    --danger: #ef4444;
    --danger-dark: #dc3545;
    --danger-light: #f87171;

    --warning: #f59e0b;
    --warning-dark: #f39c12;
    --warning-light: #ffc107;

    --info: #3996ff;
    --info-dark: #2563eb;
    --info-light: #17a2b8;

    /* ===== COLORES DE ESPECIALIDADES (Horarios) ===== */
    --esp-matematicas: #dc3545;
    --esp-comunicacion: #28a745;
    --esp-ciencias: #ffc107;
    --esp-historia: #17a2b8;
    --esp-ingles: #6f42c1;
    --esp-fisica: #fd7e14;

    /* ===== COLORES DE ASISTENCIA ===== */
    --attendance-present: #34d399;
    --attendance-late: #fbbf24;
    --attendance-absent: #f87171;
    --attendance-justified: #60a5fa;

    /* ===== FONDOS ===== */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-dark: #343a40;

    --bg-light-gray: #f7fafc;
    --bg-ranking: #fef5e7;
    --bg-success-light: #d4edda;

    /* ===== TEXTOS ===== */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #868e96;
    --text-dark: #1f2937;
    --text-gray: #6b7280;

    /* ===== BORDES ===== */
    --border-color: #dee2e6;
    --border-color-light: #e5e7eb;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;

    /* ===== SOMBRAS ===== */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(102, 126, 234, 0.25);
    --shadow-primary: 0 8px 24px rgba(102, 126, 234, 0.25);

    /* ===== TRANSICIONES ===== */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* ===== ESPACIADO ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* ===== LAYOUT ===== */
    --sidebar-width: 225px;
    --sidebar-collapsed-width: 75px;
    --header-height: 60px;
}

/* ===== DARK MODE — DELIBERADAMENTE NO IMPLEMENTADO =====
   NO volver a añadir un bloque `@media (prefers-color-scheme: dark)` que
   voltee --bg-*, --text-* o --border-color.

   Why (incidente real, 2026-08-03, vista Reproductor de videos): existía un
   bloque así, pero solo 3 hojas consumen esos tokens. El resto de Ted.Student
   tiene los colores fijos en el CSS (sidebar #ffffff en site.css, paneles #fff
   en modules.css, heroes con degradado fijo). Con el SO en modo oscuro la
   página salía a medias: paneles oscuros con textos y bordes pensados para
   fondo claro — "Volver a cursos", el título del video activo y los botones
   Anterior/Siguiente quedaban ilegibles (texto oscuro sobre fondo oscuro).

   Si algún día se quiere modo oscuro de verdad, hay que hacerlo en TODO el
   proyecto a la vez, no reintroduciendo este bloque. */
