/* ===== CSS VARIABLES - ELIO BRANDING ===== */

:root {
    /* Core Colors */
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #663399;
    --primary-2: #7a3fe0;
    --surface: #f6f3fb;
    --border: rgba(15, 23, 42, 0.10);
    
    /* Legacy color support */
    --color-primary: var(--primary);
    --color-primary-2: var(--primary-2);
    --color-bg-primary: var(--bg);
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-dark: #0f172a;
    --color-text-primary: var(--text);
    --color-text-secondary: var(--muted);
    --color-text-light: #94a3b8;
    --color-text-white: #ffffff;
    
    /* Typography - Inter (loaded in index.html), fallbacks for compatibility */
    --font-family-primary: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-family-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-2xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 10px 15px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px rgba(15, 23, 42, 0.15);
    
    /* Transitions */
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Container */
    --container-width: 1240px;
    --container-padding: 1.5rem;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Premium tokens */
    --surface-2: rgba(255, 255, 255, 0.72);
    --surface-3: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(102, 51, 153, 0.14);
    --bg-gradient: radial-gradient(900px 600px at 15% 10%, rgba(102,51,153,0.18), transparent 60%), 
                   radial-gradient(700px 500px at 85% 20%, rgba(157,108,255,0.16), transparent 60%), 
                   linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    --focus-ring: 0 0 0 4px rgba(157,108,255,0.30);
    --line-height-base: 1.6;
    --line-height-tight: 1.12;
    --letter-tight: -0.02em;
    --content: 1040px;
    --text-max: 58ch;
    --btn-height: 48px;
    --btn-height-lg: 54px;
    --border-strong: rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #663399 0%, #7a3fe0 100%);
    --gradient-hero: radial-gradient(900px 600px at 20% 10%, rgba(102,51,153,0.22), transparent 55%), 
                     radial-gradient(700px 500px at 85% 60%, rgba(157,108,255,0.18), transparent 60%), 
                     linear-gradient(180deg, rgba(7, 7, 11, 0.0), rgba(7, 7, 11, 1));
}

/* ===== THEME: DARK ===== */
.theme-dark {
    /* Fondo y superficies */
    --bg: #07070b;
    --surface: #0c0c12;
    --color-bg-primary: var(--bg);
    --color-bg-secondary: #0a0a10;
    --color-bg-tertiary: #0f0f17;
    --color-bg-dark: #07070b;
    
    /* Texto */
    --text: #eef0ff;
    --muted: rgba(238, 240, 255, 0.72);
    --color-text-primary: var(--text);
    --color-text-secondary: var(--muted);
    --color-text-light: rgba(238, 240, 255, 0.60);
    
    /* Bordes y sombras */
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.65);
    
    /* Gradientes (más "neón" en oscuro) */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gradient-hero: radial-gradient(900px 600px at 20% 10%, rgba(139, 92, 246, 0.22), transparent 55%), 
                     radial-gradient(700px 500px at 85% 60%, rgba(167, 139, 250, 0.18), transparent 60%), 
                     linear-gradient(180deg, rgba(7, 7, 11, 0.0), rgba(7, 7, 11, 1));
    
    /* Futurista - Aurora & Glow */
    --aurora-1: rgba(122, 63, 224, 0.15);
    --aurora-2: rgba(157, 108, 255, 0.12);
    --aurora-3: rgba(102, 51, 153, 0.10);
    --glow-purple: 0 0 40px rgba(157, 108, 255, 0.25), 0 0 80px rgba(122, 63, 224, 0.15);
    --glow-subtle: 0 0 20px rgba(157, 108, 255, 0.12);
    --grid-color: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border-gradient: linear-gradient(135deg, rgba(157, 108, 255, 0.4), rgba(122, 63, 224, 0.3), rgba(102, 51, 153, 0.2));
}

