﻿/* ============================================================
   Cloudy — Design Tokens
   Única fuente de verdad para color, tipografía, espaciado, radios.
   ============================================================ */

:root {
    /* Brand */
    --cl-brand-50: #eff6ff;
    --cl-brand-100: #dbeafe;
    --cl-brand-200: #bfdbfe;
    --cl-brand-500: #0d6efd;
    --cl-brand-600: #0a58ca;
    --cl-brand-700: #0b2b5c;
    --cl-brand-800: #081f42;
    /* Semánticos */
    --cl-success: #198754;
    --cl-warning: #f59e0b;
    --cl-danger: #dc3545;
    --cl-info: #0dcaf0;
    /* Superficies */
    --cl-bg: #f5f7fb;
    --cl-surface: #ffffff;
    --cl-surface-2: #f8fafc;
    --cl-border: #e2e8f0;
    --cl-border-2: #f1f5f9;
    /* Texto */
    --cl-text: #0f172a;
    --cl-text-muted: #64748b;
    --cl-text-subtle: #94a3b8;
    --cl-text-inverse: #ffffff;
    /* Sidebar / Topbar */
    --cl-sidebar-bg: #0f172a;
    --cl-sidebar-hover: #1e293b;
    --cl-sidebar-text: #cbd5e1;
    --cl-sidebar-muted: #64748b;
    --cl-sidebar-active: #0d6efd;
    --cl-sidebar-width: 260px;
    --cl-sidebar-collapsed: 68px;
    --cl-topbar-height: 56px;
    /* Radios */
    --cl-radius-xs: 0.375rem;
    --cl-radius-sm: 0.5rem;
    --cl-radius: 0.75rem;
    --cl-radius-lg: 1rem;
    --cl-radius-xl: 1.25rem;
    --cl-radius-pill: 9999px;
    /* Sombras */
    --cl-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --cl-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --cl-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --cl-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --cl-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    /* Gradientes identidad */
    --cl-gradient-brand: linear-gradient(135deg, #0b2b5c 0%, #1e4a7a 100%);
    --cl-gradient-accent: linear-gradient(135deg, #0d6efd 0%, #6366f1 100%);
    --cl-gradient-danger: linear-gradient(135deg, #dc3545 0%, #7f1d1d 100%);
    /* Tipografía */
    --cl-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --cl-font-mono: 'Consolas', 'Monaco', monospace;
    --cl-fs-xs: 0.72rem;
    --cl-fs-sm: 0.8rem;
    --cl-fs: 0.875rem;
    --cl-fs-md: 0.95rem;
    --cl-fs-lg: 1.1rem;
    --cl-fs-xl: 1.35rem;
    /* Espaciado */
    --cl-gap-1: 0.25rem;
    --cl-gap-2: 0.5rem;
    --cl-gap-3: 0.75rem;
    --cl-gap-4: 1rem;
    --cl-gap-5: 1.5rem;
    --cl-gap-6: 2rem;
    /* Contenedor (contenido principal) */
    --cl-content-pad: 12px; /* móvil */
    --cl-content-max: 1440px;
    /* Transiciones */
    --cl-t-fast: 0.12s ease;
    --cl-t: 0.2s ease;
    --cl-t-slow: 0.35s ease;
    /* Touch target */
    --cl-touch: 40px;
}

@media (min-width: 768px) {
    :root {
        --cl-content-pad: 24px;
    }
}
