/* =====================================================
   VARIABLES GLOBALES - VICTORIAOS
   Colores de marca + Tipografías + Estilos base
   Premium Design System - Classified Intelligence × NYT × Old Money Jazz
   Inspirado en The Dossier, 90s Grain, Editorial Elegance
   ===================================================== */

:root {
    /* ===== THE DOSSIER PALETTE - Colores Principales ===== */
    
    /* Negros y Grises - Power & Authority */
    --black-power: #0D0D0D;         /* Negro absoluto - texto principal y poder */
    --nyt-dark: #212529;            /* Gris oscuro NYT - fondos oscuros */
    --gray-body: #737373;           /* Gris medio - texto secundario */
    --gray-elegant: #F2F2F2;        /* Gris claro - fondos elegantes */
    
    /* Beiges y Cremas - Old Money Aesthetic */
    --cream-classic: #F0EBD8;       /* Crema principal - elegancia clásica */
    --paper-aged: #E8E2D3;          /* Beige cálido - papel envejecido */
    --paper-torn: #FAF8F3;          /* Crema claro - documentos */
    --beige-warm: #D9C5B2;          /* Beige cálido - bordes y acentos */
    
    /* Burgundy - Power Color */
    --burgundy-power: #540B0E;      /* Rojo oscuro elegante - poder y autoridad */
    --burgundy-dark: #6B0F12;       /* Variación más oscura para hovers */
    --red-stamp: #8B0000;           /* Rojo para sellos y clasificación */
    
    /* Oro y Metálicos */
    --gold-subtle: #8B7355;         /* Dorado sutil - acentos premium */
    
    /* ===== Colores Primarios y Secundarios (Compatibilidad) ===== */
    --primary-color: #540B0E;       /* Burgundy power */
    --primary-dark: #6B0F12;
    --primary-light: #8B0000;
    --primary-50: #FAF8F3;
    --primary-100: #F0EBD8;
    --primary-200: #E8E2D3;

    --secondary-color: #8B7355;     /* Gold subtle */
    --secondary-dark: #6B5940;
    --secondary-light: #A38968;
    --secondary-50: #FAF8F3;

    /* ===== Colores de estado - Elegantes y suaves ===== */
    --success-color: #10b981;       /* Verde esmeralda */
    --success-light: #d1fae5;
    --warning-color: #f59e0b;       /* Ámbar */
    --warning-light: #fef3c7;
    --error-color: #540B0E;         /* Burgundy para errores - más elegante */
    --error-light: #F0EBD8;
    --info-color: #8B7355;          /* Gold subtle */
    --info-light: #FAF8F3;

    /* ===== Colores de texto - Editorial ===== */
    --text-primary: #0D0D0D;        /* Black power - texto principal */
    --text-secondary: #737373;      /* Gray body - texto secundario */
    --text-muted: #D9C5B2;          /* Beige warm - texto desactivado */
    --text-disabled: #F2F2F2;

    /* ===== Colores de fondo - Old Money ===== */
    --background-primary: #F0EBD8;  /* Cream classic - fondo principal */
    --background-secondary: #FAF8F3; /* Paper torn - fondo secundario */
    --background-tertiary: #E8E2D3; /* Paper aged - fondo terciario */
    --background-elevated: #ffffff;
    --background-dark: #0D0D0D;     /* Black power - fondos oscuros */

    /* ===== Sombras y bordes - Premium ===== */
    --shadow-color: rgba(13, 13, 13, 0.15);
    --border-color: #D9C5B2;        /* Beige warm */
    --border-subtle: #E8E2D3;       /* Paper aged */

    /* =====================================================
       TIPOGRAFÍAS PREMIUM - THE DOSSIER
       ===================================================== */

    /* Display - Títulos Impactantes (Bebas Neue) */
    --font-display: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    
    /* Editorial - Headlines Elegantes (Playfair Display) */
    --font-editorial: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    
    /* Body - Texto Legible (Libre Baskerville) */
    --font-body: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    
    /* Mono - Etiquetas y Códigos (JetBrains Mono) */
    --font-mono: 'JetBrains Mono', 'Courier New', 'Consolas', monospace;
    
    /* Compatibilidad con código existente */
    --font-primary: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    --font-secondary: 'JetBrains Mono', 'Courier New', monospace;

    /* Escala Tipográfica - The Dossier */
    --text-xs: 0.65rem;       /* 10.4px - Kickers, etiquetas */
    --text-sm: 0.8rem;        /* 12.8px - Texto pequeño */
    --text-base: 1rem;        /* 16px - Body text */
    --text-lg: 1.15rem;       /* 18.4px - Texto destacado */
    --text-xl: 1.35rem;       /* 21.6px - Subtítulos */
    --text-2xl: 1.75rem;      /* 28px - Títulos medianos */
    --text-3xl: 2.5rem;       /* 40px - Títulos grandes */
    --text-4xl: 3.5rem;       /* 56px - Headlines */
    --text-5xl: 5rem;         /* 80px - Números decorativos */
    --text-6xl: 7rem;         /* 112px - Números hero */
    --text-7xl: 10rem;        /* 160px - Tipografía masiva */
    
    /* Compatibilidad (mantener nombres antiguos) */
    --font-size-xs: 0.75rem;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-medium: 1.125rem;
    --font-size-large: 1.5rem;
    --font-size-xlarge: 2rem;
    --font-size-2xl: 2.5rem;
    --font-size-3xl: 3rem;

    /* Pesos de fuente */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* =====================================================
       ESPACIADO SISTEMA (8px grid)
       ===================================================== */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-7: 2.5rem;    /* 40px */
    --space-8: 3rem;      /* 48px */
    
    /* =====================================================
       RADIOS DE BORDE - Modernos y suaves
       ===================================================== */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* =====================================================
       SOMBRAS PREMIUM - The Dossier Style
       ===================================================== */
    /* Brutal Shadow - Brutalista controlado */
    --shadow-brutal: 8px 8px 0px var(--black-power);
    
    /* Soft Shadow - Profundidad suave */
    --shadow-xs: 0 1px 2px rgba(13, 13, 13, 0.03);
    --shadow-sm: 0 4px 30px rgba(13, 13, 13, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(13, 13, 13, 0.1), 0 2px 4px -1px rgba(13, 13, 13, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(13, 13, 13, 0.15), 0 4px 6px -2px rgba(13, 13, 13, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(13, 13, 13, 0.2), 0 10px 10px -5px rgba(13, 13, 13, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(13, 13, 13, 0.25);
    
    /* Paper Shadow - Relieve tipo documento */
    --shadow-paper: 2px 2px 8px rgba(13, 13, 13, 0.1), -1px -1px 4px rgba(255, 255, 255, 0.5);
    
    /* Float Shadow - Elevación dramática */
    --shadow-float: 0 20px 60px rgba(13, 13, 13, 0.2);
    
    /* Sombras con color (elementos con acento) */
    --shadow-primary: 0 4px 14px rgba(84, 11, 14, 0.25);
    --shadow-secondary: 0 4px 14px rgba(139, 115, 85, 0.25);
    --shadow-success: 0 4px 14px rgba(16, 185, 129, 0.25);
    --shadow-error: 0 4px 14px rgba(84, 11, 14, 0.3);
    
    /* =====================================================
       TRANSICIONES PREMIUM - The Dossier
       ===================================================== */
    /* Easing Functions */
    --ease-power: cubic-bezier(0.16, 1, 0.3, 1);      /* Movimiento poderoso, suave */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);      /* Transición estándar suave */
    
    /* Transiciones */
    --transition-fast: 150ms var(--ease-smooth);
    --transition-normal: 250ms var(--ease-smooth);
    --transition-smooth: 350ms var(--ease-smooth);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-power: 800ms var(--ease-power);
    
    /* =====================================================
       GLASSMORPHISM VARIABLES - Moderno
       ===================================================== */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
    
    /* Dark glass (for dark backgrounds) */
    --glass-dark-bg: rgba(15, 23, 42, 0.85);
    --glass-dark-border: rgba(255, 255, 255, 0.08);
    --glass-dark-blur: blur(40px);
    
    /* =====================================================
       Z-INDEX SCALE
       ===================================================== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* =====================================================
       GRADIENTES PREMIUM - The Dossier Style
       ===================================================== */
    --gradient-primary: linear-gradient(135deg, var(--burgundy-power) 0%, var(--burgundy-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--gold-subtle) 0%, var(--beige-warm) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warm: linear-gradient(135deg, var(--cream-classic) 0%, var(--paper-aged) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--paper-torn) 0%, var(--cream-classic) 100%);
    --gradient-text-number: linear-gradient(135deg, var(--cream-classic) 0%, var(--beige-warm) 100%);
    --gradient-dark-bg: linear-gradient(180deg, var(--black-power) 0%, var(--nyt-dark) 100%);
    --gradient-sidebar: linear-gradient(180deg, var(--nyt-dark) 0%, var(--black-power) 100%);
    
    /* =====================================================
       EFECTOS ESPECIALES - Grain & Textures
       ===================================================== */
    /* Grain Texture Opacity */
    --grain-opacity: 0.04;
    --grain-opacity-intense: 0.15;
    
    /* Backdrop Blur */
    --glass-blur: blur(20px);
    --glass-dark-blur: blur(40px);
}

/* =====================================================
   IMPORTACIÓN DE FUENTES PREMIUM - THE DOSSIER
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* =====================================================
   UTILIDADES GLOBALES
   ===================================================== */
   
/* Glassmorphism utility classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-dark {
    background: var(--glass-dark-bg);
    backdrop-filter: var(--glass-dark-blur);
    -webkit-backdrop-filter: var(--glass-dark-blur);
    border: 1px solid var(--glass-dark-border);
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =====================================================
   CLASES DE COLOR UTILITARIAS - THE DOSSIER
   ===================================================== */
.text-primary { color: var(--burgundy-power) !important; }
.text-secondary { color: var(--gold-subtle) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-error { color: var(--burgundy-power) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-black-power { color: var(--black-power) !important; }
.text-cream { color: var(--cream-classic) !important; }

.bg-primary { background-color: var(--burgundy-power) !important; }
.bg-primary-light { background-color: var(--paper-torn) !important; }
.bg-secondary { background-color: var(--gold-subtle) !important; }
.bg-secondary-light { background-color: var(--cream-classic) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-success-light { background-color: var(--success-light) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-warning-light { background-color: var(--warning-light) !important; }
.bg-error { background-color: var(--burgundy-power) !important; }
.bg-error-light { background-color: var(--paper-torn) !important; }
.bg-cream { background-color: var(--cream-classic) !important; }
.bg-paper { background-color: var(--paper-torn) !important; }
.bg-dark { background-color: var(--black-power) !important; }

/* =====================================================
   CLASES DE TIPOGRAFÍA UTILITARIAS
   ===================================================== */
.font-display { font-family: var(--font-display) !important; }
.font-editorial { font-family: var(--font-editorial) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-mono { font-family: var(--font-mono) !important; }
