:root {
            /* Palette */
            --bg-color: #F8FAFC;
            --white: #FFFFFF;
            --pearl-gray: #F1F5F9;
            --graphite: #334155;
            --deep-blue: #0A192F;
            --electric-blue: #2563EB;
            --turquoise: #06B6D4;
            --black: #0F172A;
            --green: #10B981;
            --red: #EF4444;
            
            /* Glassmorphism */
            --glass-bg: rgba(255, 255, 255, 0.75);
            --glass-border: rgba(255, 255, 255, 0.5);
            --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.04);
            
            --glass-dark-bg: rgba(10, 25, 47, 0.85);
            --glass-dark-border: rgba(255, 255, 255, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

        body {
            background-color: var(--bg-color);
            background-image: 
                radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.05) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%);
            background-attachment: fixed;
            color: var(--black);
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            padding-bottom: 40px;
        }

        /* Glass Card Base */
        .glass {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            border-radius: 24px;
            padding: 24px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .glass:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
        }

        .glass-dark {
            background: var(--glass-dark-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-dark-border);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
            color: var(--white);
            border-radius: 24px;
            padding: 32px;
            position: relative;
            overflow: hidden;
        }

        /* Layout */
        .container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 24px;
        }

        /* Header */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 32px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px);
            border-radius: 100px;
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-shadow);
            margin-bottom: 32px;
            position: sticky;
            top: 24px;
            z-index: 100;
        }

        .logo {
            display: flex;
            flex-direction: column;
        }

        .logo h1 {
            font-size: 1.2rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            color: var(--deep-blue);
        }

        .logo span {
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--graphite);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .header-center {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .datetime {
            display: flex;
            gap: 16px;
            font-size: 0.9rem;
            color: var(--graphite);
            font-weight: 500;
            background: var(--pearl-gray);
            padding: 8px 16px;
            border-radius: 20px;
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--green);
            background: rgba(16, 185, 129, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--green);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--green);
            animation: pulse 2s infinite;
        }

        .search-bar {
            position: relative;
            width: 250px;
        }
        .search-bar input {
            width: 100%;
            padding: 10px 16px 10px 40px;
            border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.05);
            background: var(--pearl-gray);
            outline: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        .search-bar input:focus {
            background: var(--white);
            border-color: var(--electric-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        .search-bar i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--graphite);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        
        .icon-btn {
            position: relative;
            background: none;
            border: none;
            font-size: 1.2rem;
            color: var(--graphite);
            cursor: pointer;
            transition: color 0.3s ease;
        }
        .icon-btn:hover { color: var(--electric-blue); }
        .notification-dot {
            position: absolute;
            top: -2px;
            right: -2px;
            width: 8px;
            height: 8px;
            background: var(--electric-blue);
            border-radius: 50%;
        }

        .profile {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--deep-blue), var(--electric-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
        }

        /* Grids */
        .grid-hero {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }

        .grid-kpis {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        .grid-main {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 24px;
            margin-bottom: 24px;
        }
        
        .grid-depts {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-bottom: 24px;
        }

        .grid-bottom {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 24px;
        }

        /* Hero Card */
        .hero-card {
            display: flex;
            align-items: center;
            padding: 0;
            overflow: hidden;
            background: var(--white);
        }

        .hero-content {
            flex: 1;
            padding: 40px;
        }

        .ai-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(90deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
            color: var(--electric-blue);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 24px;
        }

        .hero-content h2 {
            font-size: 1.8rem;
            font-weight: 300;
            color: var(--black);
            line-height: 1.4;
            margin-bottom: 24px;
        }
        .hero-content h2 strong { font-weight: 600; }

        .hero-text {
            font-size: 1.05rem;
            color: var(--graphite);
            line-height: 1.6;
            margin-bottom: 32px;
        }

        .btn-premium {
            background: var(--black);
            color: var(--white);
            border: none;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 0.95rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .btn-premium:hover {
            background: var(--deep-blue);
            transform: translateY(-2px);
            box-shadow: 0 15px 25px rgba(0,0,0,0.15);
        }

        .hero-image {
            width: 400px;
            height: 100%;
            background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .hero-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
        }

        /* Simian Sage AI Protagonist */
        .ai-protagonist {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        
        .ai-protagonist::before {
            content: '';
            position: absolute;
            top: -50%; right: -50%; width: 100%; height: 100%;
            background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
            animation: breathe 8s infinite alternate;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 24px;
            position: relative;
            z-index: 2;
        }

        .ai-icon-large {
            width: 48px; height: 48px;
            background: linear-gradient(135deg, var(--electric-blue), var(--turquoise));
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 0 20px rgba(37,99,235,0.4);
        }

        .ai-title {
            font-size: 1.2rem;
            font-weight: 700;
            letter-spacing: 1px;
        }
        .ai-subtitle {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.6);
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .ai-insight {
            font-size: 1.4rem;
            font-weight: 300;
            line-height: 1.5;
            color: var(--white);
            position: relative;
            z-index: 2;
            min-height: 120px;
            display: flex;
            align-items: center;
            transition: opacity 0.5s ease;
        }

        /* KPI Cards */
        .kpi-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px;
            border-radius: 20px;
        }
        .kpi-title {
            font-size: 0.8rem;
            color: var(--graphite);
            font-weight: 500;
            margin-bottom: 8px;
        }
        .kpi-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--black);
            margin-bottom: 4px;
        }
        .kpi-trend {
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .trend-up { color: var(--green); }
        .trend-down { color: var(--red); }
        
        /* Different styling for the Business Score KPI */
        .kpi-protagonist {
            background: linear-gradient(135deg, var(--white), var(--pearl-gray));
            border: 2px solid var(--white);
            grid-column: span 2;
        }

        /* Business Health Circle */
        .health-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .circular-chart {
            display: block;
            margin: 10px auto;
            max-width: 80%;
            max-height: 250px;
        }
        .circle-bg {
            fill: none;
            stroke: #eee;
            stroke-width: 2.5;
        }
        .circle {
            fill: none;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke: var(--electric-blue);
            animation: progress 2s ease-out forwards;
        }
        @keyframes progress {
            0% { stroke-dasharray: 0 100; }
        }
        .percentage {
            fill: var(--black);
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            font-size: 0.5rem;
            text-anchor: middle;
        }
        .health-text {
            font-size: 0.85rem;
            color: var(--graphite);
            margin-top: 16px;
            line-height: 1.5;
        }

        /* Section Titles */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .section-title {
            font-size: 1rem;
            font-weight: 600;
            color: var(--deep-blue);
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .section-title i { color: var(--electric-blue); }

        /* Departments */
        .dept-card {
            position: relative;
            overflow: hidden;
        }
        .dept-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .dept-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--black);
        }
        .dept-score {
            font-size: 1.2rem;
            font-weight: 700;
        }
        .dept-ai {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            background: rgba(37,99,235,0.05);
            padding: 6px 10px;
            border-radius: 6px;
            color: var(--electric-blue);
            font-weight: 500;
            margin-top: 16px;
        }
        .bar-bg {
            width: 100%;
            height: 6px;
            background: #eee;
            border-radius: 4px;
            margin-top: 12px;
            overflow: hidden;
        }
        .bar-fill {
            height: 100%;
            border-radius: 4px;
        }
        
        /* Differentiators & Lists */
        .list-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        .list-item:last-child { border-bottom: none; }
        
        .obj-name { font-size: 0.9rem; font-weight: 500; }
        .obj-bar-container { width: 100px; height: 6px; background: #eee; border-radius: 3px;}
        .obj-bar { height: 100%; background: var(--electric-blue); border-radius: 3px;}

        .decision-badge {
            font-size: 0.7rem;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .priority-alta { background: rgba(239, 68, 68, 0.1); color: var(--red); }
        .priority-media { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
        .priority-baja { background: rgba(16, 185, 129, 0.1); color: var(--green); }

        .alert-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: rgba(239, 68, 68, 0.05);
            border-left: 3px solid var(--red);
            border-radius: 0 8px 8px 0;
            margin-bottom: 12px;
        }
        .alert-item i { color: var(--red); margin-top: 2px;}
        .alert-text { font-size: 0.85rem; font-weight: 500; color: var(--black); }

        /* Realtime Dots */
        .realtime-list { display: flex; flex-direction: column; gap: 16px; }
        .rt-item { display: flex; align-items: center; justify-content: space-between; }
        .rt-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500;}
        .rt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.5s infinite;}
        .rt-value { font-weight: 600; font-family: monospace; font-size: 1rem; }

        @keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
        @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
        @keyframes breathe { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 0.8; } }

        /* Responsive */
        @media (max-width: 1400px) {
            .grid-kpis { grid-template-columns: repeat(4, 1fr); }
            .kpi-protagonist { grid-column: span 1; }
            .grid-main { grid-template-columns: 1fr 1.5fr; }
            .ai-protagonist { grid-column: span 2; }
            .grid-depts { grid-template-columns: repeat(2, 1fr); }
            .grid-bottom { grid-template-columns: 1fr 1fr; }
        }

        @media (max-width: 1024px) {
            .grid-hero { grid-template-columns: 1fr; }
            .hero-image { display: none; }
            .grid-main { grid-template-columns: 1fr; }
            .ai-protagonist { grid-column: span 1; }
            .grid-bottom { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            header { flex-direction: column; gap: 16px; border-radius: 20px; padding: 20px; }
            .header-center { flex-direction: column; width: 100%; }
            .search-bar { width: 100%; }
            .grid-kpis { grid-template-columns: repeat(2, 1fr); }
            .grid-depts { grid-template-columns: 1fr; }
            .hero-content { padding: 24px; }
            .ai-insight { font-size: 1.1rem; }
            
            /* Order for mobile */
            .grid-hero { order: -2; }
            .grid-main { display: flex; flex-direction: column; }
            .ai-protagonist { order: -1; margin-bottom: 24px; }
        }