
        /* ===== SISTEMA DE DISEÑO MODERNO ===== */
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --radius: 1rem;
            --radius-sm: 0.75rem;
            --radius-lg: 1.25rem;
            --background: #f0f4f8;
            --foreground: #1e293b;
            --card: #ffffff;
            --navy: #1e3a5f;
            --navy-deep: #0f2b47;
            --navy-light: #2c5282;
            --gold: #d4a017;
            --gold-muted: #fef3c7;
            --muted: #f1f5f9;
            --muted-foreground: #64748b;
            --border: #e2e8f0;
            --gradient-hero: linear-gradient(135deg, #0f2b47 0%, #1e3a5f 50%, #2c5282 100%);
            --gradient-gold: linear-gradient(135deg, #e8b82b 0%, #d4a017 100%);
            --shadow-elegant: 0 25px 50px -12px rgba(15, 43, 71, 0.25);
            --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 12px 25px -8px rgba(15, 43, 71, 0.15);
            --font-display: 'Space Grotesk', system-ui, sans-serif;
            --font-sans: 'Inter', system-ui, sans-serif;
            --font-mono: 'DM Mono', monospace;
        }
        
        body {
            font-family: var(--font-sans);
            background: var(--background);
            min-height: 100vh;
            padding-top: 72px;
        }
        
        h1, h2, h3, .kpi-value, .stat-value {
            font-family: var(--font-display);
            letter-spacing: -0.02em;
        }
        
        /* ===== NAVEGACIÓN UNIFICADA ===== */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0 2rem;
            height: 72px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .nav-logo { height: 48px; width: auto; cursor: pointer; }
        .menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--foreground); }
        
        #menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
        #menu li a {
            display: block;
            padding: 0.5rem 1rem;
            color: #4a5568;
            font-weight: 500;
            text-decoration: none;
            border-radius: 9999px;
            font-size: 0.875rem;
            transition: all 0.2s;
        }
        #menu li a i { margin-right: 0.5rem; }
        #menu li a:hover { background: var(--muted); color: var(--foreground); }
        
        @media (max-width: 768px) {
            .menu-toggle { display: block; }
            nav { padding: 0 1rem; }
            #menu {
                position: fixed;
                top: 72px;
                right: -100%;
                width: 280px;
                height: calc(100vh - 72px);
                background: white;
                flex-direction: column;
                padding: 1rem 0;
                transition: right 0.3s ease;
                box-shadow: -5px 0 20px rgba(0,0,0,0.1);
            }
            #menu.active { right: 0; }
            #menu li a { padding: 1rem 1.5rem; border-radius: 0; }
        }
        
        /* ===== MAIN CONTAINER ===== */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem;
        }
        
        /* ===== DASHBOARD HEADER ===== */
        .dashboard-header {
            background: var(--gradient-hero);
            border-radius: var(--radius-lg);
            padding: 1.75rem 2rem;
            margin-bottom: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            box-shadow: var(--shadow-elegant);
        }
        
        .header-title h1 {
            font-size: 1.8rem;
            color: white;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .header-title h1 i {
            color: var(--gold);
        }
        
        .header-title p {
            color: #cbd5e1;
            font-size: 0.85rem;
            margin-top: 0.25rem;
        }
        
        .header-date {
            background: rgba(255,255,255,0.12);
            padding: 0.6rem 1.2rem;
            border-radius: 2rem;
            color: white;
            font-size: 0.85rem;
            backdrop-filter: blur(4px);
        }
        
        .header-date i {
            margin-right: 0.5rem;
            color: var(--gold);
        }
        
        /* ===== KPI GRID ===== */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .kpi-card {
            background: var(--card);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            transition: all 0.2s;
        }
        
        .kpi-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
            border-color: var(--gold);
        }
        
        .kpi-icon {
            font-size: 2rem;
            margin-bottom: 0.75rem;
        }
        
        .kpi-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            color: var(--muted-foreground);
            margin-bottom: 0.5rem;
        }
        
        .kpi-value {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--navy-deep);
            margin-bottom: 0.5rem;
        }
        
        .kpi-trend {
            font-size: 0.7rem;
            color: var(--muted-foreground);
        }
        
        .trend-up { color: #10b981; }
        .trend-down { color: #ef4444; }
        
        /* ===== CHARTS GRID ===== */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .chart-card {
            background: var(--card);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            transition: all 0.2s;
        }
        
        .chart-card:hover {
            box-shadow: var(--shadow-hover);
        }
        
        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--muted);
        }
        
        .chart-header h3 {
            font-size: 1rem;
            color: var(--navy-deep);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .chart-header h3 i {
            color: var(--gold);
        }
        
        .chart-header span {
            font-size: 0.7rem;
            color: var(--muted-foreground);
            background: var(--muted);
            padding: 0.2rem 0.6rem;
            border-radius: 1rem;
        }
        
        .chart-container {
            min-height: 350px;
            background: var(--card);
            border-radius: var(--radius-sm);
        }
        
        /* ===== STATS ROW ===== */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .stat-item {
            background: var(--card);
            border-radius: var(--radius);
            padding: 1rem;
            text-align: center;
            border: 1px solid var(--border);
            transition: all 0.2s;
        }
        
        .stat-item:hover {
            transform: translateY(-2px);
            border-color: var(--gold);
        }
        
        .stat-value {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--navy-deep);
        }
        
        .stat-label {
            font-size: 0.7rem;
            color: var(--muted-foreground);
            margin-top: 0.25rem;
        }
        
        /* ===== QUICK ACTIONS ===== */
        .quick-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .action-btn {
            background: var(--gradient-gold);
            color: var(--navy-deep);
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 2rem;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .action-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }
        
        /* ===== FOOTER ===== */
        footer {
            background: var(--gradient-hero);
            color: white;
            text-align: center;
            padding: 1.5rem;
            margin-top: 2rem;
        }
        
        footer a {
            color: rgba(255,255,255,0.7);
            margin: 0 0.5rem;
            font-size: 1.2rem;
            transition: all 0.2s;
            display: inline-block;
        }
        
        footer a:hover { color: white; transform: translateY(-2px); }
        
        /* ===== AUTO-REFRESH STATUS ===== */
        .auto-refresh-status {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: var(--navy-deep);
            color: white;
            padding: 0.6rem 1.2rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-family: var(--font-mono);
            z-index: 1000;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: var(--shadow-card);
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        .auto-refresh-status:hover {
            background: var(--gold);
            color: var(--navy-deep);
            transform: scale(1.02);
        }
        
        .refreshing {
            animation: pulse 0.5s ease-in-out;
            background: var(--gold);
            color: var(--navy-deep);
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        
        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .kpi-grid, .stats-row { grid-template-columns: repeat(2, 1fr); }
            .charts-grid { grid-template-columns: 1fr; }
        }
        
        @media (max-width: 768px) {
            .dashboard-header { flex-direction: column; text-align: center; }
            .header-title h1 { font-size: 1.4rem; justify-content: center; }
            .kpi-grid, .stats-row { grid-template-columns: 1fr; }
            .container { padding: 1rem; }
        }
        
        @media (max-width: 480px) {
            .kpi-value { font-size: 1.4rem; }
        }
