/* =========================================
   VARIABLES Y RESETEO TOTAL (view-port fixed)
   ========================================= */
:root {
    --neon-verde: #00ff41;
    --neon-cyan: #00d2ff;
    --fondo-oscuro: #010a12;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* PROHÍBE EL SCROLL DE LA PÁGINA */
    background-color: var(--fondo-oscuro);
    color: var(--neon-verde);
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}

/* =========================================
   ESTRUCTURA DASHBOARD (FULL PANTALLA)
   ========================================= */
.monitor-curvo-frame {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    gap: 10px;
}

/* Cabecera y Pie (simulando monitor) */
.monitor-header, .monitor-footer {
    color: var(--neon-cyan);
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--neon-cyan);
    padding-bottom: 5px;
}
.monitor-footer {
    border-top: 2px solid var(--neon-cyan);
    border-bottom: none;
    padding-top: 5px;
    margin-top: auto;
}

/* Cuerpo de 3 columnas (Mapa central más grande) */
.dashboard-body {
    display: grid;
    grid-template-columns: 1.2fr 3fr 1fr; /* Aumentamos el tamaño de la columna del medio a 3fr */
    gap: 15px;
    height: 100%; 
    overflow: hidden;
}

/* Estilo para las columnas principales */
.col-tactica {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
}

/* =========================================
   PANELES TÁCTICOS Y OUTLINES (Cyan vs Green)
   ========================================= */
.panel-tactico {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.5); /* Outline verde suave por defecto */
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Paneles que usan Cian */
.monitor-header, .panel-input, .panel-mapa, .monitor-footer {
    border-color: rgba(0, 210, 255, 0.5);
}

/* Tipografía de títulos internos */
h3 { margin: 0 0 10px 0; font-weight: 700; color: var(--neon-verde); font-size: 1.1em; text-align: center;}
.panel-input h3 { color: var(--neon-cyan); }

/* =========================================
   DETALLES DE PANELES (Voz, Mapa, Status, Input)
   ========================================= */

/* COLUMNA IZQUIERDA */
.personaje-display {
    position: relative; width: 100%; height: 180px; background: #000; border: 1px solid #333; overflow: hidden;
}
.personaje-display img { width: 100%; height: 100%; object-fit: cover; }
.scanlines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); background-size: 100% 4px, 3px 100%; }
.estado-señal { position: absolute; bottom: 5px; left: 5px; color: red; font-size: 0.8em; }

.panel-briefing p { margin: 5px 0; font-size: 0.9em;}
.operativo, .mision { font-weight: bold; }
.instrucciones { color: #fff; }

.btn-micro {
    background: rgba(0, 255, 65, 0.1); border: 2px solid var(--neon-verde); color: var(--neon-verde); padding: 15px; cursor: pointer; font-family: inherit; font-size: 1em; font-weight: bold; text-transform: uppercase;
}
.btn-micro:hover { background: var(--neon-verde); color: #000; }

/* COLUMNA MEDIA (Mapa y Keypad) */
.panel-mapa {
    flex-grow: 1; min-height: 200px;
    background-image: url('https://map.google.com/mapfiles/kml/pal2/icon30.png'); /* Placeholder visual simulado */
    position: relative;
    background: #000;
}
/* Simulación visual de detección de anomalía de tu diseño */
.detection-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(#222 1px, transparent 1px), linear-gradient(90deg, #222 1px, transparent 1px); background-size: 20px 20px; }
.anomaly-circle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; border: 3px solid rgba(255, 0, 0, 0.8); background: rgba(255, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; color: red; text-align: center; font-weight: bold; font-size: 0.9em; box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);}

.pantallas-input { display: flex; gap: 10px; margin-bottom: 10px; }
.pantallas-input input { width: 50%; background: #000; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); padding: 10px; font-family: inherit; text-align: center; font-size: 1.1em;}
.pantallas-input input.activo { border-color: #fff; background: rgba(255,255,255,0.1); }
/* Matriz del Teclado Numérico (Forzado a 3 columnas) */
.keypad-matrix { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 columnas exactas */
    gap: 5px; 
}
.tecla { background: #111; border: 1px solid #333; color: #fff; padding: 10px 0; font-family: inherit; font-size: 1em; cursor: pointer; transition: 0.2s;}
.tecla:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.tecla.action { background: rgba(0, 210, 255, 0.2); border-color: var(--neon-cyan); color: var(--neon-cyan); grid-column: span 2;}
/* Ajuste de los botones de acción para que encajen abajo */
.tecla.action.del { grid-column: span 1; } 
.tecla.action.enter { grid-column: span 2; }

/* COLUMNA DERECHA (Status y Deploy) */
.vertical-bars { display: flex; justify-content: space-around; gap: 10px; height: 150px;}
.bar-tube { position: relative; width: 40px; height: 100%; background: #111; border: 1px solid #333; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;}
.bar-fill { width: 100%; display: flex; align-items: center; justify-content: center; color: #000; font-weight: bold; font-size: 0.9em; border-radius: 10px;}
.bar-tube.fuel .bar-fill { background: var(--neon-verde); }
.bar-tube.energy .bar-fill { background: var(--neon-cyan); }
.bar-tube .label { position: absolute; top: 100%; transform: rotate(-90deg) translate(-100px, -15px); text-transform: uppercase; font-size: 0.8em; color: #888; white-space: nowrap;}

.panel-vehiculo h4 { color: #fff; margin: 10px 0 5px 0;}
.status-vehiculo { color: red; font-weight: bold; font-size: 0.9em;}
.equipment-list p { margin: 3px 0; font-size: 0.85em; color: #aaa;}

.btn-deploy { background: rgba(0, 210, 255, 0.1); border: 2px solid var(--neon-cyan) !important; color: var(--neon-cyan); padding: 20px; cursor: pointer; font-family: inherit; font-size: 1.2em; font-weight: bold; text-transform: uppercase;}
.btn-deploy:hover { background: var(--neon-cyan); color: #000;}

/* Personalización del scrollbar interno (Briefing) */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--neon-verde); }