/* =========================================
   DNC THEME ENGINE
   Tokens de Diseño y Variables Globales
========================================= */

:root {
    /* =========================================
       1. COLOR SYSTEM (ZINC + DNC RED)
       ========================================= */
    /* Backgrounds */
    --surface-base: #09090b; /* Zinc 950 - Main background */
    --surface-card: #18181b; /* Zinc 900 - Cards & containers */
    --surface-elevated: #27272a; /* Zinc 800 - Modals, Dropdowns */
    --surface-glass: rgba(24, 24, 27, 0.7); /* Navbar & Header blur */
    
    /* Brand Accent */
    --brand-primary: #ef4444; /* Red 500 - Main actions */
    --brand-primary-hover: #dc2626; /* Red 600 - Hover states */
    --brand-secondary: #fca5a5; /* Red 300 - Subtle accents */
    --brand-glow: rgba(239, 68, 68, 0.15); /* Red Glow */
    
    /* Typography */
    --text-primary: #fafafa; /* Zinc 50 - Titles & strong text */
    --text-secondary: #a1a1aa; /* Zinc 400 - Body & descriptions */
    --text-muted: #71717a; /* Zinc 500 - Hints & placeholders */
    --text-inverse: #09090b; /* Dark text for light elements */

    /* Semantic States */
    --success-base: #10b981; /* Emerald 500 */
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning-base: #f59e0b; /* Amber 500 */
    --danger-base: #f43f5e; /* Rose 500 */

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.1);
    --border-active: rgba(239, 68, 68, 0.3);

    /* =========================================
       2. TYPOGRAPHY SYSTEM
       ========================================= */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-base: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 2rem; /* 32px */

    /* =========================================
       3. SPACING & LAYOUT
       ========================================= */
    --spacing-1: 0.25rem; /* 4px */
    --spacing-2: 0.5rem;  /* 8px */
    --spacing-3: 0.75rem; /* 12px */
    --spacing-4: 1rem;    /* 16px */
    --spacing-5: 1.25rem; /* 20px */
    --spacing-6: 1.5rem;  /* 24px */
    --spacing-8: 2rem;    /* 32px */
    
    --app-padding: var(--spacing-4);
    --bottom-nav-height: 70px;

    /* =========================================
       4. BORDER RADIUS
       ========================================= */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* =========================================
       5. SHADOWS & ELEVATION
       ========================================= */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 4px 20px var(--brand-glow);
    
    --glass-blur: blur(12px);
    
    /* =========================================
       6. TRANSITIONS
       ========================================= */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   LIGHT THEME OVERRIDES
   ========================================= */
[data-theme="light"] {
    /* Backgrounds */
    --surface-base: #f4f4f5; /* Zinc 100 */
    --surface-card: #ffffff; /* White */
    --surface-elevated: #e4e4e7; /* Zinc 200 */
    --surface-glass: rgba(255, 255, 255, 0.8);
    
    /* Typography */
    --text-primary: #18181b; /* Zinc 900 */
    --text-secondary: #3f3f46; /* Zinc 700 */
    --text-muted: #71717a; /* Zinc 500 */
    --text-inverse: #ffffff;
    
    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Utilidades Comunes para evitar CSS Inline */
.hidden { display: none !important; }
.d-flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.h-screen { height: 100vh; }
.w-45 { width: 45%; }
.w-100 { width: 100%; }
.fixed-alert { position: fixed; top: 20px; left: 20px; right: 20px; z-index: 9999; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.m-0 { margin: 0; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }

.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-muted); }
.text-main { color: var(--color-text-main); }
.text-info { color: var(--color-info); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-error); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-sm { font-size: 0.85rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.4rem; }
.text-2xl { font-size: 2rem; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 1px; }
.tracking-tight { letter-spacing: -1px; }
.line-height-relaxed { line-height: 1.4; }

.text-decoration-none { text-decoration: none; }

.divider {
    height: 1px;
    background: var(--color-border);
    width: 100%;
}

.bg-danger { background: var(--color-error); }
.text-white { color: white; }
.rounded-md { border-radius: 10px; }
.d-block { display: block; }

.tracking-wide { letter-spacing: 0.5px; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-md { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }

.my-8 { margin: 2rem 0; }
.text-center { text-align: center; }
