:root {
            /* Paleta Premium Automotriz */
            --bg-deep: #050507;
            --bg-panel: rgba(20, 20, 25, 0.6);
            --bg-panel-hover: rgba(30, 30, 38, 0.8);
            --text-main: #ffffff;
            --text-muted: #8e95a0;
            --blue: #0055ff;
            --blue-glow: rgba(0, 85, 255, 0.4);
            --red: #ff2a2a;
            --orange: #ff5500;
            --cyan: #00e5ff;
            --green: #00d26a;
            --gray: #6b7280;
            --yellow: #ffcc00;
            --silver: #e2e8f0;
            
            --glass-border: rgba(255, 255, 255, 0.06);
            --metallic-gradient: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.01) 100%);
            --font-headings: 'Rajdhani', sans-serif;
            --font-body: 'Montserrat', sans-serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            user-select: none;
        }

        body {
            background-color: var(--bg-deep);
            background-image: 
                radial-gradient(circle at 15% 50%, rgba(0, 85, 255, 0.05), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(255, 42, 42, 0.03), transparent 25%);
            color: var(--text-main);
            font-family: var(--font-body);
            overflow-x: hidden;
            line-height: 1.5;
        }

        /* Utilidades Glassmorphism */
        .glass-panel {
            background: var(--bg-panel);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .glass-panel::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--metallic-gradient);
            pointer-events: none;
        }

        .glass-panel:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.15);
        }

        h1, h2, h3, h4 {
            font-family: var(--font-headings);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .section-title {
            font-size: 1.2rem;
            color: var(--silver);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i { color: var(--blue); }

        /* ----- HEADER ----- */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2.5rem;
            background: rgba(5, 5, 7, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo-area {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-text h1 {
            font-size: 1.8rem;
            letter-spacing: 3px;
            background: linear-gradient(to right, #fff, #888);
            -webkit-background-clip: text;
            color: transparent;
        }

        .logo-text span {
            font-size: 0.7rem;
            color: var(--blue);
            letter-spacing: 2px;
            text-transform: uppercase;
        }

        .header-center {
            display: flex;
            gap: 30px;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-family: var(--font-headings);
            letter-spacing: 1px;
        }

        .header-center div {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background: var(--green);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--green);
            animation: pulse 2s infinite;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .search-bar {
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--glass-border);
            padding: 8px 15px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-bar input {
            background: transparent;
            border: none;
            color: white;
            outline: none;
            font-family: var(--font-body);
        }

        .profile {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .profile img {
            width: 40px; height: 40px;
            border-radius: 50%;
            border: 2px solid var(--glass-border);
        }

        .profile-info { text-align: right; }
        .profile-info .name { font-weight: 600; font-size: 0.9rem; }
        .profile-info .role { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }

        /* ----- MAIN LAYOUT ----- */
        main {
            padding: 2rem;
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 1.5rem;
            max-width: 1920px;
            margin: 0 auto;
        }

        /* ----- HERO ----- */
        .hero {
            grid-column: span 12;
            display: grid;
            grid-template-columns: 40% 60%;
            min-height: 400px;
            border-radius: 24px;
            overflow: hidden;
            position: relative;
            background: radial-gradient(circle at right, rgba(0, 85, 255, 0.1), transparent 50%), var(--bg-panel);
            border: 1px solid var(--glass-border);
            box-shadow: 0 20px 50px rgba(0,0,0,0.6);
        }

        .hero-content {
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            z-index: 2;
        }

        .ai-greeting {
            font-size: 1.1rem;
            color: var(--silver);
            line-height: 1.8;
            margin-bottom: 2rem;
            border-left: 3px solid var(--blue);
            padding-left: 1.5rem;
            background: linear-gradient(90deg, rgba(0, 85, 255, 0.05), transparent);
        }

        .ai-greeting strong { color: white; }

        .btn-premium {
            align-self: flex-start;
            background: linear-gradient(135deg, var(--blue), #0033aa);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            font-family: var(--font-headings);
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 1px;
            cursor: pointer;
            box-shadow: 0 5px 20px var(--blue-glow);
            transition: all 0.3s;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-premium:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 85, 255, 0.6);
        }

        .hero-image {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .hero-image img {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -45%) scale(1.2);
            width: 120%;
            height: auto;
            object-fit: contain;
            filter: drop-shadow(0 30px 30px rgba(0,0,0,0.8));
        }

        /* ----- KPIS ----- */
        .kpis {
            grid-column: span 12;
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            gap: 1rem;
        }

        .kpi-card {
            padding: 1.5rem 1rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .kpi-value {
            font-family: var(--font-headings);
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1;
            margin: 10px 0;
            text-shadow: 0 0 20px rgba(255,255,255,0.2);
        }

        .kpi-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .kpi-card::after {
            content: '';
            position: absolute;
            bottom: 0; left: 20%; right: 20%;
            height: 3px;
            border-radius: 3px 3px 0 0;
            opacity: 0.7;
        }

        .kpi-blue::after { background: var(--blue); box-shadow: 0 -5px 15px var(--blue); }
        .kpi-red::after { background: var(--red); box-shadow: 0 -5px 15px var(--red); }
        .kpi-orange::after { background: var(--orange); box-shadow: 0 -5px 15px var(--orange); }
        .kpi-cyan::after { background: var(--cyan); box-shadow: 0 -5px 15px var(--cyan); }
        .kpi-green::after { background: var(--green); box-shadow: 0 -5px 15px var(--green); }
        .kpi-gray::after { background: var(--gray); box-shadow: 0 -5px 15px var(--gray); }
        .kpi-yellow::after { background: var(--yellow); box-shadow: 0 -5px 15px var(--yellow); }

        .kpi-protagonist {
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: 0 0 30px rgba(255,255,255,0.1);
        }
        .kpi-protagonist .kpi-value {
            font-size: 3rem;
            background: linear-gradient(to right, #fff, #aaa);
            -webkit-background-clip: text;
            color: transparent;
        }
        .kpi-protagonist::after { display: none; }

        /* ----- SHOWROOM ----- */
        .showroom-wrapper {
            grid-column: span 12;
        }
        
        .showroom-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .vehicle-card {
            height: 380px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.5rem;
            position: relative;
            background: #111;
        }

        .vehicle-card img {
            position: absolute;
            top: 10%;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            object-fit: contain;
            transition: transform 0.5s ease;
            filter: drop-shadow(0 15px 10px rgba(0,0,0,0.5));
        }

        .vehicle-card:hover img {
            transform: translateX(-50%) scale(1.08);
        }

        .vehicle-info {
            position: relative;
            z-index: 2;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
            padding-top: 40px;
        }

        .v-model { font-family: var(--font-headings); font-size: 1.5rem; font-weight: 700; margin-bottom: 5px; }
        .v-price { font-size: 1.1rem; color: var(--silver); margin-bottom: 10px; }
        
        .v-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
        }

        .status-badge {
            padding: 4px 10px;
            border-radius: 12px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.7rem;
            letter-spacing: 1px;
        }

        .status-disp { background: rgba(0, 210, 106, 0.1); color: var(--green); border: 1px solid rgba(0, 210, 106, 0.3); }
        .status-resv { background: rgba(255, 85, 0, 0.1); color: var(--orange); border: 1px solid rgba(255, 85, 0, 0.3); }
        .status-vend { background: rgba(255, 42, 42, 0.1); color: var(--red); border: 1px solid rgba(255, 42, 42, 0.3); }

        /* ----- SIMIAN SAGE AI PANEL ----- */
        .ai-panel {
            grid-column: span 4;
            background: linear-gradient(135deg, rgba(0, 20, 50, 0.8), rgba(0, 0, 0, 0.9));
            border: 1px solid rgba(0, 85, 255, 0.3);
            box-shadow: 0 0 30px rgba(0, 85, 255, 0.1);
            display: flex;
            flex-direction: column;
            padding: 2rem;
        }

        .ai-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 2rem;
        }

        .ai-icon {
            width: 50px; height: 50px;
            border-radius: 50%;
            background: rgba(0, 85, 255, 0.1);
            border: 2px solid var(--blue);
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.5rem;
            color: var(--cyan);
            box-shadow: 0 0 20px var(--blue-glow);
            animation: pulse-border 2s infinite;
        }

        .ai-title h3 { color: var(--text-main); font-size: 1.4rem; }
        .ai-title p { color: var(--cyan); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;}

        .ai-message-container {
            flex-grow: 1;
            display: flex;
            align-items: center;
        }

        .ai-message {
            font-size: 1.2rem;
            line-height: 1.6;
            color: var(--silver);
            font-style: italic;
            transition: opacity 0.5s ease;
        }

        /* ----- SERVICE & AGENDA ----- */
        .service-panel { grid-column: span 5; padding: 1.5rem; }
        .agenda-panel { grid-column: span 3; padding: 1.5rem; }

        .service-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .service-item {
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--glass-border);
            padding: 15px;
            border-radius: 12px;
        }

        .service-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }
        
        .service-header strong { font-size: 1.1rem; }
        .service-placa { color: var(--orange); font-family: monospace; font-size: 1rem; background: rgba(255,85,0,0.1); padding: 2px 8px; border-radius: 4px;}
        
        .service-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--blue), var(--cyan));
            border-radius: 3px;
            box-shadow: 0 0 10px var(--blue-glow);
        }

        /* Timeline Agenda */
        .timeline {
            position: relative;
            padding-left: 20px;
            margin-top: 10px;
        }
        .timeline::before {
            content: '';
            position: absolute;
            left: 4px; top: 0; bottom: 0;
            width: 2px;
            background: rgba(255,255,255,0.1);
        }
        .time-event {
            position: relative;
            margin-bottom: 25px;
        }
        .time-event::before {
            content: '';
            position: absolute;
            left: -21px; top: 5px;
            width: 10px; height: 10px;
            border-radius: 50%;
            background: var(--bg-deep);
            border: 2px solid var(--blue);
            box-shadow: 0 0 8px var(--blue);
        }
        .time-time { font-family: var(--font-headings); font-weight: 700; color: var(--silver); font-size: 1.1rem; }
        .time-desc { color: var(--text-muted); font-size: 0.85rem; }

        /* ----- INVENTORY, SALES, CLIENTS, PARTS, ALERTS ----- */
        .inventory-panel { grid-column: span 3; padding: 1.5rem; }
        .sales-panel { grid-column: span 5; padding: 1.5rem; }
        .clients-panel { grid-column: span 4; padding: 1.5rem; }
        .parts-panel { grid-column: span 8; padding: 1.5rem; }
        .alerts-panel { grid-column: span 4; padding: 1.5rem; }

        /* Mini circles for inventory */
        .inv-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        .inv-item { display: flex; align-items: center; gap: 10px; }
        .circle-chart {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: conic-gradient(var(--blue) 75%, rgba(255,255,255,0.1) 0);
            display: flex; align-items: center; justify-content: center;
        }
        .circle-chart::after {
            content: ''; width: 30px; height: 30px; background: var(--bg-deep); border-radius: 50%;
        }
        .inv-info h4 { font-size: 0.9rem; }
        .inv-info span { font-size: 0.75rem; color: var(--text-muted); }

        /* Visual Bar Chart for Sales */
        .sales-chart {
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            height: 200px;
            padding-top: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 40px;}
        .bar {
            width: 100%;
            background: linear-gradient(to top, rgba(255,255,255,0.1), var(--silver));
            border-radius: 4px 4px 0 0;
            position: relative;
        }
        .bar-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
        .bar-val { font-family: var(--font-headings); font-weight: 700; position: absolute; top: -25px; }
        
        .bar.b1 { height: 140px; background: linear-gradient(to top, rgba(0,85,255,0.1), var(--blue)); }
        .bar.b2 { height: 90px; }
        .bar.b3 { height: 110px; background: linear-gradient(to top, rgba(255,85,0,0.1), var(--orange)); }
        .bar.b4 { height: 160px; background: linear-gradient(to top, rgba(0,210,106,0.1), var(--green)); }

        /* Clients */
        .client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .client-card {
            background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px;
            display: flex; align-items: center; gap: 15px;
        }
        .c-icon {
            width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
            display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
        }
        .c-info h4 { font-size: 1.1rem; margin-bottom: 2px; }
        .c-info p { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

        /* Parts */
        .parts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .part-item { margin-bottom: 5px; }
        .part-header { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px;}
        .part-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
        .part-fill { height: 100%; background: var(--silver); border-radius: 4px; }
        .fill-red { background: var(--red); box-shadow: 0 0 10px var(--red); }
        .fill-yellow { background: var(--yellow); }

        /* Alerts */
        .alerts-list { display: flex; flex-direction: column; gap: 12px; }
        .alert-item {
            display: flex; gap: 15px; align-items: center;
            padding: 12px 15px;
            background: rgba(255, 42, 42, 0.05);
            border-left: 3px solid var(--red);
            border-radius: 4px 8px 8px 4px;
        }
        .alert-item.orange { border-color: var(--orange); background: rgba(255, 85, 0, 0.05); }
        .alert-icon { font-size: 1.2rem; color: var(--red); }
        .alert-item.orange .alert-icon { color: var(--orange); }
        .alert-text { font-size: 0.85rem; font-weight: 500; }

        /* Animations */
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(0, 210, 106, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
        }
        @keyframes pulse-border {
            0% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.4); }
            70% { box-shadow: 0 0 0 15px rgba(0, 85, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 85, 255, 0); }
        }

        /* RESPONSIVE */
        @media (max-width: 1400px) {
            .hero { grid-template-columns: 50% 50%; }
            .kpis { grid-template-columns: repeat(4, 1fr); }
            .showroom-grid { grid-template-columns: repeat(2, 1fr); }
            .ai-panel, .service-panel, .agenda-panel, .inventory-panel, .sales-panel, .clients-panel, .parts-panel, .alerts-panel { grid-column: span 6; }
        }

        @media (max-width: 900px) {
            main { display: flex; flex-direction: column; padding: 1rem; }
            .header-center { display: none; }
            .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 2rem;}
            .hero-image { height: 250px; }
            .hero-image img { position: relative; top: 0; left: 0; transform: none; width: 100%; height: 100%; object-fit: cover;}
            .showroom-wrapper { order: -1; margin-bottom: 1rem; } /* Showroom primero en móvil */
            .showroom-grid { grid-template-columns: 1fr; }
            .kpis { grid-template-columns: repeat(2, 1fr); }
            .client-grid, .parts-list { grid-template-columns: 1fr; }
        }