
        /* ===== SISTEMA DE DISEÑO MODERNO ===== */
        * { 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: #2c3e66;
            --navy-deep: #1a2c4a;
            --navy-light: #3d5a80;
            --gold: #d4a017;
            --gold-muted: #fef3c7;
            --muted: #f1f5f9;
            --muted-foreground: #5a6e7a;
            --border: #e2e8f0;
            --gradient-hero: linear-gradient(135deg, #1a2c4a 0%, #2c3e66 50%, #3d5a80 100%);
            --gradient-gold: linear-gradient(135deg, #e8b82b 0%, #d4a017 100%);
            --shadow-elegant: 0 25px 50px -12px rgba(26, 44, 74, 0.25);
            --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 12px 25px -8px rgba(26, 44, 74, 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, .periodo-badge span {
            font-family: var(--font-display);
            letter-spacing: -0.02em;
        }
        
        /* ===== NAVEGACIÓN ===== */
        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; }
        }
        
        /* ===== TICKER BAR ===== */
        .ticker-bar {
            background: var(--navy-deep);
            color: white;
            padding: 0.5rem 0;
            overflow: hidden;
            white-space: nowrap;
            font-size: 0.8rem;
            font-family: var(--font-mono);
        }
        .ticker-inner {
            display: inline-block;
            animation: ticker 30s linear infinite;
        }
        .ticker-inner i { margin: 0 0.5rem; color: var(--gold); }
        @keyframes ticker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        
        /* ===== PAGE HEADER ===== */
        .page-header {
            max-width: 1400px;
            margin: 1.5rem auto 0;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .header-brand { display: flex; align-items: center; gap: 1rem; }
        .header-brand img { height: 50px; }
        .header-brand h1 { font-size: 1.5rem; color: var(--navy-deep); }
        .header-brand h1 span { font-size: 0.8rem; color: var(--muted-foreground); display: block; font-weight: normal; }
        .header-date {
            background: var(--card);
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius);
            text-align: right;
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
        }
        
        /* ===== DASHBOARD ===== */
        .dashboard {
            max-width: 1400px;
            margin: 1rem auto;
            padding: 0 1.5rem 2rem;
        }
        
        .periodo-badge {
            background: var(--gradient-hero);
            border-radius: var(--radius-lg);
            padding: 1rem 2rem;
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
            color: white;
        }
        .periodo-badge i { color: var(--gold); }
        .periodo-badge span {
            background: var(--gold);
            color: var(--navy-deep);
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-weight: 700;
        }
        
        .analisis-box {
            background: linear-gradient(135deg, #fef3c7, #ffedd5);
            border-left: 5px solid #F59E0B;
            border-radius: var(--radius);
            padding: 1.25rem;
            margin: 1rem 0 2rem;
        }
        .analisis-box h3 { color: #92400e; margin-bottom: 0.5rem; }
        .analisis-box p { color: #4b5563; line-height: 1.5; }
        
        .section-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin: 2rem 0 1rem;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--muted-foreground);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .section-label i { color: var(--gold); }
        
        .kpi-section {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        .kpi-group {
            background: var(--card);
            border-radius: var(--radius-lg);
            padding: 1.25rem;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-card);
        }
        .kpi-group-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--muted);
            margin-bottom: 1rem;
            font-weight: 600;
            color: var(--navy-deep);
        }
        .kpi-cards-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        .kpi-card {
            text-align: center;
            padding: 0.75rem;
            background: var(--muted);
            border-radius: var(--radius-sm);
        }
        .kpi-year { font-size: 0.7rem; color: var(--muted-foreground); }
        .kpi-value { font-size: 1.8rem; font-weight: 800; color: var(--navy-deep); }
        
        .chart-panel {
            background: var(--card);
            border-radius: var(--radius-lg);
            margin-bottom: 1.5rem;
            border: 1px solid var(--border);
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }
        .chart-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            background: var(--muted);
            border-bottom: 1px solid var(--border);
        }
        .chart-panel-header h2 { font-size: 1rem; color: var(--navy-deep); display: flex; align-items: center; gap: 0.5rem; }
        .chart-panel-header h2 i { color: var(--gold); }
        .badge {
            background: var(--card);
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            color: var(--muted-foreground);
            border: 1px solid var(--border);
        }
        .chart-panel-body { padding: 1rem; }
        
        .tabla-datos {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.8rem;
        }
        .tabla-datos th, .tabla-datos td {
            border: 1px solid var(--border);
            padding: 0.6rem;
            text-align: center;
        }
        .tabla-datos th {
            background: var(--muted);
            font-weight: 600;
            color: var(--navy-deep);
        }
        
        .page-footer {
            background: var(--muted);
            border-radius: var(--radius);
            padding: 1rem;
            text-align: center;
            font-size: 0.7rem;
            color: var(--muted-foreground);
            margin-top: 2rem;
            border: 1px solid var(--border);
        }
        .page-footer i { margin: 0 0.25rem; color: var(--gold); }
        
        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); }
        
        @media (max-width: 992px) {
            .kpi-section { grid-template-columns: 1fr; }
        }
        @media (max-width: 768px) {
            .page-header { flex-direction: column; text-align: center; }
            .header-brand { flex-direction: column; }
            .periodo-badge { flex-direction: column; text-align: center; }
            .chart-panel-header { flex-direction: column; gap: 0.5rem; text-align: center; }
        }

