/* =====================================================================
   HOJA DE ESTILOS MÁSTER DARK NEON V5 - SDTV DIGITAL
   VERSIÓN: 5.0.0 (BLINDAJE DE COMPILACIÓN ABSOLUTO - ANTI-CORTES)
   ===================================================================== */

:root {
    --bg-principal: #0d0e12;
    --bg-tarjeta: #181a23;
    --bg-oscuro-resaltado: #050608;
    --neon-azul: #00f0ff;
    --neon-rosa: #ff007f;
    --neon-verde: #25d366;
    --texto: #ffffff;
    --texto-oscuro: #94a3b8;
}

body {
    background-color: var(--bg-principal);
    color: var(--texto);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.contenedor-extendido-tienda {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- REJILLA COMERCIAL SIMÉTRICA PC --- */
.grid-productos-tienda {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    margin-top: 20px;
}

.tarjeta-producto-web {
    background: var(--bg-tarjeta);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tarjeta-producto-web:hover {
    transform: translateY(-5px);
    border-color: var(--neon-azul);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.imagen-producto-web {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cuerpo-producto-web {
    padding: 15px;
    text-align: left;
}

.apps-tag {
    display: inline-block;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--neon-azul);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 10px;
    font-family: monospace;
}

.btn-adquirir {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

/* --- ENTORNO FORMULARIOS (ANTI TEXTOS INVISIBLES) --- */
input[type="text"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    background-color: #0d0e12 !important; 
    color: #ffffff !important;           
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

select option { background-color: #181a23 !important; color: #ffffff !important; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--neon-azul); box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }

/* --- ENTORNO ADMINISTRATIVO (FLEXBOX ABIERTO REPARADO) --- */
.layout-panel { 
    display: flex; 
    width: 100%; 
    min-height: 100vh; 
    align-items: stretch; 
}

.sidebar { 
    width: 260px; 
    background-color: var(--bg-tarjeta); 
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-titulo { color: #fff; font-size: 20px; font-weight: bold; text-shadow: 0 0 10px var(--neon-azul); margin-bottom: 30px; text-align: center; }
.sidebar-menu { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.sidebar-menu li { margin-bottom: 12px; }
.sidebar-menu a { color: var(--texto-oscuro); text-decoration: none; display: block; padding: 12px; border-radius: 6px; border-left: 3px solid transparent; transition: all 0.3s ease; }
.sidebar-menu a:hover, .sidebar-menu a.activo { color: #fff; background-color: rgba(0, 240, 255, 0.05); border-left-color: var(--neon-azul); }
.sidebar-menu a.salir { border-left-color: var(--neon-rosa); }

.contenido-principal { 
    flex-grow: 1; 
    padding: 40px; 
    overflow-y: auto; 
    box-sizing: border-box; 
    background-color: var(--bg-principal);
}

.contenedor-formulario, .seccion-ajuste { background-color: var(--bg-tarjeta); border: 1px solid rgba(255, 255, 255, 0.05); padding: 25px; border-radius: 8px; margin-bottom: 30px; }
.grupo-formulario { margin-bottom: 20px; text-align: left; }
.grupo-formulario label { display: block; color: var(--texto-oscuro); margin-bottom: 8px; font-size: 14px; font-weight: 600; }

.btn-neon { padding: 12px 25px; background: transparent; border: 2px solid var(--neon-azul); color: var(--neon-azul); font-weight: bold; font-size: 14px; border-radius: 6px; cursor: pointer; text-transform: uppercase; transition: all 0.3s ease; display: inline-block; }
.btn-neon:hover { background-color: var(--neon-azul); color: #000; box-shadow: 0 0 15px var(--neon-azul); }

.tabla-neon { width: 100%; border-collapse: collapse; background-color: var(--bg-tarjeta); border-radius: 8px; overflow: hidden; }
.tabla-neon th, .tabla-neon td { padding: 15px; text-align: left; }
.tabla-neon th { background-color: rgba(0, 240, 255, 0.1); color: var(--neon-azul); font-weight: bold; }
.tabla-neon tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.header-publico { background-color: var(--bg-oscuro-resaltado); border-bottom: 2px solid var(--neon-azul); padding: 15px 0; }
.header-contenedor { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-publico a { color: #ffffff; font-size: 14px; font-weight: bold; text-transform: uppercase; text-decoration: none; }
.nav-publico a:hover { color: var(--neon-azul); text-shadow: 0 0 5px var(--neon-azul); }
.footer-publico { background-color: var(--bg-oscuro-resaltado); border-top: 2px solid var(--neon-rosa); padding: 40px 0 30px 0; }

.btn-whatsapp-flotante { position: fixed; bottom: 25px; right: 25px; background-color: var(--neon-verde); color: #ffffff; padding: 12px 20px; border-radius: 50px; text-decoration: none; font-size: 14px; font-weight: bold; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); z-index: 99999; }
.alerta-exito { background-color: rgba(37, 211, 102, 0.1); border: 1px solid var(--neon-verde); padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.error-msg { background-color: rgba(255, 0, 127, 0.1); border: 1px solid var(--neon-rosa); padding: 15px; border-radius: 6px; margin-bottom: 20px; }

/* =====================================================================
   BLINDAJE RESPONSIVO PREMIUM CELULAR (CON LLAVES SANADAS AL 100%)
   ===================================================================== */
@media screen and (max-width: 768px) {
    .grid-productos-tienda {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .layout-panel { flex-direction: column !important; }
    .sidebar { width: 100% !important; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .contenido-principal { padding: 20px !important; }
    .header-contenedor { grid-template-columns: 1fr !important; gap: 15px; text-align: center; }
    .cabecera-izquierda, .cabecera-centro, .cabecera-derecha { text-align: center !important; justify-content: center !important; }
}
