        :root { 
            --neon-cyan: #00f2ff; 
            --neon-pink: #ff007f;
            --neon-green: #39ff14;
            --neon-orange: #ff7700;
            --dark-bg: #030804; 
            --panel-bg: rgba(2, 10, 5, 0.9);
            --border-glow: rgba(0, 242, 255, 0.3);
            --bg-overlay: linear-gradient(rgba(3, 8, 4, 0.2), rgba(2, 7, 3, 0.4));
        }
        
        * { box-sizing: border-box; }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }
        
        body { 
            margin: 0; 
            font-family: 'Rajdhani', sans-serif; 
            background-color: var(--dark-bg); 
            color: white; 
            display: flex;
            min-height: 100vh;
            user-select: none;
            transition: background 0.5s ease-in-out;
        }

        /* MANEJO DE FONDOS POR SECCIÓN (IMÁGENES OPTIMIZADAS .jpg 1920x1080) */
body.bg-home #main-content { background: var(--bg-overlay), url('../fondo-inicio.jpg') no-repeat center;
 background-size: 110% auto; }
body.bg-tienda #main-content { background: var(--bg-overlay), url('../fondo-tienda.jpg') no-repeat center;
 background-size: 120% auto; }
body.bg-manuales #main-content { background: var(--bg-overlay), url('../fondo-manuales.jpg') no-repeat center;
 background-size: 110% auto; }
body.bg-plataforma #main-content { background: var(--bg-overlay), url('../fondo-plataforma.jpg') no-repeat center;
 background-size: 100% auto; }        /* SIDEBAR DE NAVEGACIÓN GENERAL */
        #sidebar { 
            width: 190px; 
            background: var(--panel-bg); 
            border-right: 2px solid var(--neon-cyan); 
            padding: 20px 12px; 
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            box-shadow: 5px 0 20px rgba(0, 242, 255, 0.1);
            z-index: 10;
        }
        
        .logo-nav { 
            width: 100%; 
            margin-bottom: 25px; 
            filter: drop-shadow(0 0 8px var(--neon-cyan)); 
            border-bottom: 1px dashed rgba(0, 242, 255, 0.2);
            padding-bottom: 15px;
        }
        
        .nav-btn {
            display: block;
            width: 100%;
            padding: 12px 8px;
            margin-bottom: 18px;
            background: transparent;
            border: 1px solid var(--neon-cyan);
            color: var(--neon-cyan);
            text-align: center;
            text-transform: uppercase;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75rem;
            letter-spacing: 1px;
            clip-path: polygon(8% 0, 100% 0, 92% 100%, 0% 100%);
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            cursor: pointer;
        }
        
        .nav-btn:hover, .nav-btn.active-tab { 
            background: var(--neon-cyan); 
            color: black; 
            font-weight: bold;
            box-shadow: 0 0 15px var(--neon-cyan); 
            transform: scale(1.02);
        }

        /* CONTENEDOR CENTRAL DE VISTAS */
        #main-content { 
            flex-grow: 1; 
            padding: 30px; 
            overflow-y: auto;
            background: radial-gradient(circle at 50% 50%, #06150a 0%, #020703 100%);
        }
        
        .section { display: none; }
        .section.active { display: block; animation: scanline 0.4s ease-out; }

        @keyframes scanline {
            0% { opacity: 0; transform: translateY(5px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        header h1 { 
            text-align: center; 
            color: var(--neon-cyan); 
            letter-spacing: 6px; 
            margin: 0 0 30px 0; 
            font-family: 'Orbitron', sans-serif; 
            text-transform: uppercase; 
            text-shadow: 0 0 10px var(--neon-cyan); 
        }

        /* ================= SECCIÓN HOME ================= */
        .welcome-wrapper { position: relative; height: 60px; margin-bottom: 30px; display: flex; justify-content: center; align-items: center; }
        .animated-title { position: absolute; font-family: 'Orbitron', sans-serif; font-size: 4rem; letter-spacing: 6px; text-transform: uppercase; transition: opacity 1.5s ease, transform 1.5s ease; }
        .animated-title.welcome { color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); opacity: 1; transform: scale(1); }
        .animated-title.brand { color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); opacity: 0; transform: scale(0.95); width: 100%; text-align: center; }
        .fade-out { opacity: 0 !important; transform: scale(1.05) !important; }
        .fade-in { opacity: 1 !important; transform: scale(1) !important; }


	.home-description-box {
	    max-width: 850px;
	    margin: 120px auto;
	    background: rgba(1, 15, 5, 0.7);
	    border: 1px solid rgba(0, 242, 255, 0.2);
	    border-left: 4px solid var(--neon-cyan);
	    padding: 40px 50px;
	    text-align: justify;
	    line-height: 1.8;
	    font-size: 1.4rem;
	    box-shadow: 0 0 25px rgba(0, 242, 255, 0.05);
	}
        .highlight-text { color: var(--neon-cyan); font-weight: bold; font-family: 'Orbitron', sans-serif; }

        /* ================= AUTENTICACIÓN ================= */
        .cyber-panel {
            background: var(--panel-bg);
            border: 1px solid var(--border-glow);
            box-shadow: 0 0 20px rgba(0, 242, 255, 0.05);
            padding: 30px;
            border-radius: 4px;
            position: relative;
        }
        .cyber-panel::before {
            content: ''; position: absolute; top: 0; left: 0; width: 12px; height: 12px;
            border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan);
        }
        .cyber-panel::after {
            content: ''; position: absolute; bottom: 0; right: 0; width: 12px; height: 12px;
            border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan);
        }
        .auth-form { max-width: 450px; margin: 60px auto; }
        .form-group { margin-bottom: 20px; text-align: left; }
        .form-group label { display: block; font-family: 'Orbitron'; font-size: 0.85rem; color: var(--neon-cyan); margin-bottom: 8px; letter-spacing: 1px; }
        .form-input { width: 100%; background: rgba(0,0,0,0.6); border: 1px solid rgba(0,242,255,0.2); padding: 12px; color: white; font-family: 'Rajdhani'; font-size: 1.1rem; border-radius: 4px; }
        .form-input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,242,255,0.2); }
        .btn-cyber-submit { width: 100%; background: transparent; border: 1px solid var(--neon-pink); color: var(--neon-pink); padding: 12px; font-family: 'Orbitron'; font-size: 1rem; cursor: pointer; border-radius: 4px; letter-spacing: 1px; transition: 0.3s; margin-top: 10px; }
        .btn-cyber-submit:hover { background: var(--neon-pink); color: white; box-shadow: 0 0 15px var(--neon-pink); }
        
        .btn-cyber-register {
            background: transparent;
            border: 1px solid var(--neon-orange);
            color: var(--neon-orange);
            padding: 6px 16px;
            font-family: 'Orbitron';
            font-size: 0.8rem;
            cursor: pointer;
            transition: 0.2s;
            text-transform: uppercase;
        }
        .btn-cyber-register:hover {
            background: var(--neon-orange);
            color: #000;
            font-weight: bold;
            box-shadow: 0 0 10px var(--neon-orange);
        }

        .auth-links { margin-top: 15px; text-align: center; font-size: 0.95rem; }
        .auth-links a { color: #aaa; text-decoration: none; margin: 0 10px; cursor: pointer; }
        .auth-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 5px var(--neon-cyan); }

        .auth-container { max-width: 450px; margin: 60px auto; padding: 30px; border: 1px solid var(--neon-cyan); background: var(--panel-bg); text-align: center; box-shadow: 0 0 20px rgba(0, 242, 255, 0.15); border-radius: 4px; }

        /* ================= INTERFAZ CONTROL INDOOR REACOMODADA ================= */
        .indoor-wrapper {
            max-width: 1150px;
            margin: auto;
            background: #020704;
            border: 2px solid rgba(0, 242, 255, 0.35);
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 0 40px rgba(0, 242, 255, 0.12);
        }

        /* Cabecera Estricta de 2 Columnas */
        .indoor-header { 
            display: flex; 
            justify-content: space-between; 
            align-items: flex-start; 
            margin-bottom: 20px; 
            border-bottom: 1px dashed rgba(0, 242, 255, 0.2);
            padding-bottom: 15px;
        }
        .indoor-header-titles { text-align: left; }
        .indoor-header h2 { font-family: 'Orbitron', sans-serif; font-size: 2.3rem; color: var(--neon-cyan); margin: 0; letter-spacing: 5px; text-shadow: 0 0 15px rgba(0,242,255,0.6); }
        .status-online { color: var(--neon-green); font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: bold; text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); display: block; margin-top: 4px; }

        /* Botón de Cierre con su propio tamaño sin desbordar */
        .btn-cyber-logout {
            background: transparent;
            border: 1px solid var(--neon-pink);
            color: var(--neon-pink);
            padding: 8px 18px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.85rem;
            cursor: pointer;
            border-radius: 4px;
            letter-spacing: 1px;
            transition: 0.3s;
        }
        .btn-cyber-logout:hover {
            background: rgba(255, 0, 127, 0.2);
            color: white;
            box-shadow: 0 0 12px var(--neon-pink);
        }

        .indoor-top-tabs { display: flex; gap: 12px; margin-bottom: 25px; }
        .top-tab-btn { background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 6px 20px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; cursor: pointer; border-radius: 4px; transition: 0.2s; }
        .top-tab-btn.active-top { background: var(--neon-cyan); color: black; font-weight: bold; box-shadow: 0 0 10px var(--neon-cyan); }

        /* Distribución Espacial de Paneles */
        .indoor-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 25px; align-items: start; }
        .indoor-left-column { display: flex; flex-direction: column; gap: 25px; }

        .panel-block { border: 2px solid rgba(0, 242, 255, 0.3); border-radius: 8px; padding: 22px; background: rgba(1, 10, 5, 0.2x); position: relative; }
        .panel-block-title { position: absolute; top: -11px; left: 15px; background: #020704; padding: 0 10px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: #a5c5c5; letter-spacing: 1.5px; }

        .telemetry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(0,242,255,0.1); padding-bottom: 15px; }
        .telemetry-box { border-left: 3px solid var(--neon-cyan); padding-left: 15px; position: relative; }
        .telemetry-box label { display: block; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: #8fa0a0; letter-spacing: 1px; }
        .telemetry-value { font-family: 'Orbitron', sans-serif; font-size: 3rem; font-weight: 700; color: var(--neon-cyan); text-shadow: 0 0 12px rgba(0,242,255,0.5); margin-top: 5px; }

        .sub-metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .metric-mini-card { background: rgba(0,0,0,0.5); border: 1px solid rgba(0, 242, 255, 0.15); padding: 12px 15px; font-family: 'Orbitron', sans-serif; font-size: 0.95rem; color: #e0f0f0; display: flex; align-items: center; gap: 10px; border-radius: 4px; }

        .control-channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .channel-row { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.4); padding: 12px 15px; border: 1px solid rgba(0,242,255,0.15); border-radius: 4px; }
        .channel-row span { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 600; color: #fff; }

        .cyber-switch { position: relative; display: inline-block; width: 55px; height: 24px; }
        .cyber-switch input { display: none; }
        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #2a0015; border: 1px solid var(--neon-pink); transition: .2s; border-radius: 3px; }
        .slider:before { position: absolute; content: "OFF"; font-family: 'Orbitron', sans-serif; font-size: 0.55rem; font-weight: bold; text-align: center; line-height: 16px; height: 16px; width: 24px; left: 3px; bottom: 3px; background-color: var(--neon-pink); color: black; transition: .2s; border-radius: 2px; }
        input:checked + .slider { background-color: #002225; border-color: var(--neon-cyan); }
        input:checked + .slider:before { content: "ON"; transform: translateX(23px); background-color: var(--neon-cyan); }

        .pink-panel { border-color: var(--neon-pink); box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.05); height: 100%; }
        .pink-title { color: var(--neon-pink) !important; }
        
        .automation-tabs { display: flex; gap: 5px; margin-bottom: 15px; border-bottom: 1px solid rgba(255, 0, 127, 0.25); padding-bottom: 6px; overflow-x: auto; }
        .auto-tab-btn { background: transparent; border: 1px solid rgba(255, 0, 127, 0.3); color: #8c707c; padding: 6px 10px; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; cursor: pointer; transition: 0.2s; }
        .auto-tab-btn.active-auto { color: var(--neon-pink); background: rgba(255, 0, 127, 0.1); border-color: var(--neon-pink); text-shadow: 0 0 5px var(--neon-pink); }

        .clock-digital { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; color: white; text-align: center; margin-bottom: 15px; letter-spacing: 3px; border: 1px dashed rgba(255,255,255,0.15); padding: 6px; background: rgba(0,0,0,0.4); border-radius: 4px; text-shadow: 0 0 5px #fff; }
        
        .timer-display { display: flex; justify-content: space-around; align-items: center; margin-bottom: 15px; }
        .timer-circle { border: 2px solid var(--neon-pink); border-radius: 50%; width: 85px; height: 85px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 0 10px rgba(255,0,127,0.15); background: rgba(0,0,0,0.3); }
        .timer-circle span { font-family: 'Orbitron', sans-serif; font-size: 0.6rem; color: #aaa; text-transform: uppercase; }
        .timer-circle .time-val { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; font-weight: bold; color: var(--neon-pink); text-shadow: 0 0 5px var(--neon-pink); margin-top: 2px; }
        
        .days-row { display: flex; justify-content: center; gap: 5px; margin: 15px 0; }
        .day-tag { width: 24px; height: 24px; border: 1px solid var(--neon-orange); color: var(--neon-orange); font-family: 'Orbitron', sans-serif; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-weight: bold; background: rgba(255, 119, 0, 0.05); }
        .day-tag.active-day { background: var(--neon-orange); color: black; box-shadow: 0 0 8px var(--neon-orange); }

        .limit-config-row { display: flex; justify-content: space-between; font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; color: #ddd; padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.05); }
        .edit-link { color: var(--neon-cyan); cursor: pointer; font-size: 0.9rem; font-family: 'Orbitron', sans-serif; }
        .edit-link:hover { text-shadow: 0 0 5px var(--neon-cyan); }

        .satellites-container { display: none; margin-top: 10px; animation: scanline 0.3s ease-out; }
        .cyber-table { width: 100%; border-collapse: collapse; text-align: left; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(0, 242, 255, 0.2); }
        .cyber-table th { padding: 12px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: var(--neon-cyan); border-bottom: 2px solid var(--neon-cyan); letter-spacing: 1px; }
        .cyber-table td { padding: 14px 12px; border-bottom: 1px solid rgba(0, 242, 255, 0.1); font-size: 1.1rem; color: #e0f5f5; }
        .cyber-table tr:hover { background: rgba(0, 242, 255, 0.04); }
        
        .bat-box { display: flex; align-items: center; gap: 8px; width: 130px; }
        .bat-bar-wrap { flex-grow: 1; height: 10px; background: #152218; border: 1px solid rgba(255,255,255,0.2); padding: 1px; border-radius: 2px; }
        .bat-bar-fill { height: 100%; border-radius: 1px; }
        .bat-high { background: var(--neon-green); box-shadow: 0 0 5px var(--neon-green); }
        .bat-med { background: var(--neon-orange); box-shadow: 0 0 5px var(--neon-orange); }
        .bat-low { background: var(--neon-pink); box-shadow: 0 0 5px var(--neon-pink); }
        
        .sat-status { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: bold; }
        .sat-on { color: var(--neon-green); text-shadow: 0 0 5px var(--neon-green); }
        .sat-off { color: #557766; }

        /* ================= MANUALES ================= */
        .manual-card { background: rgba(1, 12, 4, 0.75); border: 1px dashed rgba(0, 242, 255, 0.25); padding: 20px; border-radius: 6px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
        .manual-card h3 { font-family: 'Orbitron'; color: white; margin: 0 0 5px 0; font-size: 1.1rem; }
        .manual-card p { margin: 0; color: #aaa; font-size: 0.95rem; }

        /* ================= TIENDA Y CARRITO DE COMPRAS ================= */
        .shop-layout { display: flex; gap: 20px; align-items: flex-start; }
        .shop-main { flex-grow: 1; }
        
        .products-grid { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            grid-template-rows: repeat(4, 1fr); 
            gap: 15px; 
        }
        
        .products-grid.grid-3x5 {
            grid-template-rows: repeat(5, 1fr) !important;
        }
        
        .product-card { 
            background: rgba(0, 5, 2, 0.85); 
            border: 1px solid var(--neon-cyan); 
            padding: 15px; 
            text-align: center; 
            border-radius: 4px; 
            display: flex; 
            flex-direction: column; 
            justify-content: space-between; 
            align-items: center;
            min-height: 250px; 
            height: 100%;
            transition: 0.3s; 
        }
        .product-card:hover { box-shadow: 0 0 15px rgba(0, 242, 255, 0.25); transform: translateY(-2px); border-color: #fff; }
        
        .product-img-container {
            width: 100%;
            height: 140px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-radius: 4px;
            background: rgba(0,0,0,0.3);
            margin-bottom: 10px;
        }
        .product-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .product-title { font-family: 'Orbitron', sans-serif; font-size: 1.05rem; margin: 5px 0; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
        
        .product-action-btn { 
            background: transparent; 
            border: 1px solid var(--neon-cyan); 
            color: var(--neon-cyan); 
            padding: 8px 16px; 
            font-family: 'Orbitron'; 
            font-size: 0.8rem; 
            cursor: pointer; 
            width: 100%; 
            margin-top: auto;
            transition: 0.2s;
        }
        .product-action-btn:hover { background: var(--neon-cyan); color: #000; font-weight: bold; box-shadow: 0 0 10px var(--neon-cyan); }

        .quantity-control {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin: 10px 0;
            background: rgba(0,0,0,0.5);
            border: 1px solid rgba(0, 242, 255, 0.25);
            border-radius: 4px;
            padding: 4px;
            width: 100%;
        }
        .qty-btn {
            background: transparent;
            border: none;
            color: var(--neon-cyan);
            font-family: 'Orbitron';
            font-size: 1.2rem;
            cursor: pointer;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }
        .qty-btn:hover { color: white; text-shadow: 0 0 5px var(--neon-cyan); }
        .qty-val { font-family: 'Orbitron'; font-size: 1.1rem; min-width: 30px; text-align: center; color: white; }

        .cart-item-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px dashed rgba(255, 0, 127, 0.2);
            font-size: 0.95rem;
            animation: scanline 0.2s ease-out;
        }
        .cart-item-del {
            background: transparent;
            border: none;
            color: var(--neon-pink);
            cursor: pointer;
            font-family: 'Orbitron';
            font-size: 0.85rem;
            font-weight: bold;
            transition: 0.2s;
        }
        .cart-item-del:hover { text-shadow: 0 0 5px var(--neon-pink); color: white; }
