
        /* --- SECCIÓN DE ESTILOS (CSS DARK THEME) --- */
        :root {
            --bg-color: #0b0e14;
            --card-bg: #151c27;
            --card-border: #222b3a;
            --accent-blue: #00a8ff;
            --accent-green: #00d2ad;
            --text-main: #e1e7ef;
            --text-muted: #7f8ea3;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            padding: 20px;
        }

        .dashboard-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .card-iot {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 20px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .card-header-iot {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-muted);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Hero Card (Panel Principal) */
        .hero-card {
            background: linear-gradient(135deg, #151c27 0%, #1a2a40 100%);
            position: relative;
            overflow: hidden;
        }

        .hero-card::after {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
            opacity: 0.05;
            pointer-events: none;
        }

        .digital-display {
            font-family: 'JetBrains Mono', monospace;
            font-size: 3.5rem;
            line-height: 1;
            color: var(--text-main);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .unit {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-left: 10px;
            align-self: flex-end;
            margin-bottom: 8px;
        }

        /* Controles de Ajuste (Setpoints) */
        .setpoint-controls {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .btn-adjust {
            background: transparent;
            border: 1px solid var(--card-border);
            color: var(--accent-blue);
            border-radius: 6px;
            padding: 5px 15px;
            transition: all 0.2s;
        }

        .btn-adjust:hover {
            background: rgba(0, 168, 255, 0.1);
            border-color: var(--accent-blue);
        }

        /* Interruptores (Toggles) */
        .iot-switch {
            width: 70px;
            height: 35px;
        }

        .form-check-input {
            width: 60px !important;
            height: 30px !important;
            background-color: #2c3e50;
            border: none;
            cursor: pointer;
        }

        .form-check-input:checked {
            background-color: var(--accent-green);
        }

        /* Indicador de Calidad de Aire */
        .gauge-container {
            height: 10px;
            background: #222b3a;
            border-radius: 5px;
            margin-top: 15px;
            position: relative;
        }

        .gauge-bar {
            height: 100%;
            border-radius: 5px;
            background: linear-gradient(to right, #00d2ad, #f1c40f, #e74c3c);
            width: 65%;
        }

        .icon-box {
            background: rgba(255,255,255,0.05);
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 10px;
            width: fit-content;
        }

        .status-on { color: var(--accent-green); font-size: 0.7rem; font-weight: bold; }
        .status-off { color: var(--text-muted); font-size: 0.7rem; font-weight: bold; }

    