/* ============================================================
   HALOINSPECTOR — DRONE OPERATOR HUD
   css/futurista.css
   Estética: Cyberpunk / Sci-Fi — Panel de control de drones
   ============================================================ */

/* ──────────────────────────────────────────────────────────
   1. VARIABLES & RESET DE PALETA
   ────────────────────────────────────────────────────────── */
:root {
  --color-bg:          #04080f;        /* negro obsidiana */
  --color-bg-card:     rgba(4, 14, 26, 0.82);
  --color-cyan:        #00f3ff;        /* cian neón primario */
  --color-cyan-dim:    rgba(0, 243, 255, 0.18);
  --color-cyan-glow:   rgba(0, 243, 255, 0.55);
  --color-amber:       #ff9500;        /* ámbar / alerta */
  --color-amber-dim:   rgba(255, 149, 0, 0.18);
  --color-amber-glow:  rgba(255, 149, 0, 0.55);
  --color-danger:      #ff3c3c;        /* rojo crítico */
  --color-success:     #00ff9d;        /* verde telemetría */
  --color-text:        #c8e8f0;
  --color-text-muted:  #557a88;
  --font-hud:          'Share Tech Mono', 'Courier New', monospace;
  --border-width:      1px;
  --transition-fast:   0.18s ease;
  --transition-med:    0.35s ease;
}

/* Importar fuente monoespaciada techy si hay red, con fallback seguro */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* ──────────────────────────────────────────────────────────
   2. BODY — FONDO ANIMADO DE RADAR / TELEMETRÍA
   ────────────────────────────────────────────────────────── */
body {
  font-family:      var(--font-hud);
  background-color: var(--color-bg);
  color:            var(--color-text);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
}

/* Capa 1 — cuadrícula de telemetría (CSS puro, sin imagen) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--color-cyan-dim) 1px,  transparent 1px),
    linear-gradient(90deg, var(--color-cyan-dim) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Capa 2 — barrido de radar circular */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%,
      rgba(0, 243, 255, 0.04) 0%,
      transparent 70%),
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(0, 243, 255, 0.10) 18deg,
      transparent 30deg
    );
  animation: radarSweep 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ──────────────────────────────────────────────────────────
   3. CONTENEDOR DE TARJETA — HUD PANEL
   ────────────────────────────────────────────────────────── */
.registro-container {
  position: relative;
  z-index: 1;
  background:    var(--color-bg-card);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  width: 100%;
  max-width: 420px;
  padding: 38px 34px 32px;
  text-align: center;
  border: var(--border-width) solid var(--color-cyan);
  box-shadow:
    0 0 0 1px rgba(0, 243, 255, 0.08),
    0 0 22px var(--color-cyan-glow),
    inset 0 0 28px rgba(0, 243, 255, 0.04);

  /* Cortes diagonales en esquinas — estética HUD */
  clip-path:
    polygon(
      16px 0%,
      100% 0%,
      100% calc(100% - 16px),
      calc(100% - 16px) 100%,
      0% 100%,
      0% 16px
    );

  /* Línea de escáner animada sobre la tarjeta */
  overflow: hidden;
}

/* Línea de escáner que desciende por la tarjeta */
.registro-container::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -4px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-cyan) 40%,
    rgba(0, 243, 255, 0.6) 60%,
    transparent 100%
  );
  animation: scanLine 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanLine {
  0%   { top: -4px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Etiqueta de esquina superior derecha — decorativa */
.registro-container::after {
  content: 'SYS://AUTH';
  position: absolute;
  top: 8px; right: 10px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-cyan);
  opacity: 0.5;
  pointer-events: none;
}

/* ──────────────────────────────────────────────────────────
   4. TIPOGRAFÍA DE CABECERA
   ────────────────────────────────────────────────────────── */
.registro-container h2 {
  font-family: var(--font-hud);
  font-size: 1.45rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin: 0 0 24px;
  text-shadow: 0 0 12px var(--color-cyan-glow);
  position: relative;
}

.registro-container h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

/* ──────────────────────────────────────────────────────────
   5. INPUTS DE FORMULARIO — ESTÉTICA HUD
   ────────────────────────────────────────────────────────── */
.registro-container input[type="text"],
.registro-container input[type="email"],
.registro-container input[type="password"],
.registro-container input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  margin: 8px 0;
  box-sizing: border-box;
  background: rgba(0, 243, 255, 0.05);
  border: none;
  border-bottom: 2px solid var(--color-cyan);
  border-left: 2px solid rgba(0, 243, 255, 0.3);
  color: var(--color-cyan);
  font-family: var(--font-hud);
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  outline: none;
  border-radius: 0;
  transition: background var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);

  /* Corte diagonal en esquina inferior derecha */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.registro-container input[type="text"]::placeholder,
.registro-container input[type="email"]::placeholder,
.registro-container input[type="password"]::placeholder,
.registro-container input[type="number"]::placeholder {
  color: var(--color-text-muted);
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.registro-container input[type="text"]:focus,
.registro-container input[type="email"]:focus,
.registro-container input[type="password"]:focus,
.registro-container input[type="number"]:focus {
  background: rgba(0, 243, 255, 0.10);
  border-bottom-color: var(--color-cyan);
  border-left-color: var(--color-cyan);
  box-shadow:
    0 0 10px var(--color-cyan-glow),
    inset 0 0 8px rgba(0, 243, 255, 0.08);
}

/* ──────────────────────────────────────────────────────────
   6. BOTÓN SUBMIT — CON EFECTO GLITCH AL HOVER
   ────────────────────────────────────────────────────────── */
.registro-container input[type="submit"],
.registro-container button[type="submit"] {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border-radius: 0;
  overflow: hidden;
  transition: color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);

  clip-path: polygon(
    10px 0%,
    100% 0%,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0% 100%,
    0% 10px
  );
}

/* Fondo barrido al hover */
.registro-container input[type="submit"]::before,
.registro-container button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 243, 255, 0.18) 50%,
    transparent 100%
  );
  transform: translateX(-110%);
  transition: transform 0.4s ease;
}

.registro-container input[type="submit"]:hover::before,
.registro-container button[type="submit"]:hover::before {
  transform: translateX(110%);
}

/* Estado hover — glow + efecto glitch */
.registro-container input[type="submit"]:hover,
.registro-container button[type="submit"]:hover {
  background: rgba(0, 243, 255, 0.12);
  box-shadow:
    0 0 16px var(--color-cyan-glow),
    0 0 40px rgba(0, 243, 255, 0.18),
    inset 0 0 12px rgba(0, 243, 255, 0.1);
  animation: glitchBtn 0.42s steps(2, end) 1;
}

@keyframes glitchBtn {
  0%   { clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); transform: translate(-3px, 0); }
  20%  { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(3px, 0); }
  40%  { clip-path: polygon(0 45%, 100% 45%, 100% 60%, 0 60%); transform: translate(-2px, 0); }
  60%  { clip-path: polygon(0 20%, 100% 20%, 100% 75%, 0 75%); transform: translate(2px, 0); }
  80%  { clip-path: none; transform: translate(-1px, 0); }
  100% { clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px); transform: translate(0); }
}

/* Estado active (click) */
.registro-container input[type="submit"]:active,
.registro-container button[type="submit"]:active {
  background: rgba(0, 243, 255, 0.22);
  transform: scale(0.98);
}

/* ──────────────────────────────────────────────────────────
   7. BOTÓN SECUNDARIO (mostrar/ocultar contraseña, etc.)
   ────────────────────────────────────────────────────────── */
.password-container {
  position: relative;
  margin-bottom: 8px;
}

.password-container input[type="password"] {
  width: 100%;
  padding-right: 72px;
  box-sizing: border-box;
}

.password-container button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 58px;
  height: 34px;
  border: 1px solid rgba(0, 243, 255, 0.5);
  background: rgba(0, 243, 255, 0.08);
  color: var(--color-cyan);
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-hud);
  font-size: 11px;
  letter-spacing: 1px;
  clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.password-container button:hover {
  background: rgba(0, 243, 255, 0.20);
  box-shadow: 0 0 8px var(--color-cyan-glow);
  animation: glitchBtn 0.3s steps(2, end) 1;
}

/* ──────────────────────────────────────────────────────────
   8. MENSAJES DE ESTADO
   ────────────────────────────────────────────────────────── */
.registro-container .message {
  margin: 12px 0 6px;
  padding: 9px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  border-left: 3px solid var(--color-amber);
  background: var(--color-amber-dim);
  color: var(--color-amber);
  text-align: left;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}

.registro-container .message.success {
  border-left-color: var(--color-success);
  background: rgba(0, 255, 157, 0.10);
  color: var(--color-success);
}

/* ──────────────────────────────────────────────────────────
   9. LINKS DE NAVEGACIÓN
   ────────────────────────────────────────────────────────── */
.login-link {
  margin-top: 16px;
  font-size: 0.80rem;
  letter-spacing: 1px;
}

.login-link a {
  color: var(--color-cyan);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast), text-shadow var(--transition-fast);
}

.login-link a:hover {
  opacity: 1;
  text-shadow: 0 0 8px var(--color-cyan-glow);
  text-decoration: none;
}

/* Texto descriptivo de párrafo dentro del contenedor */
.registro-container p[style] {
  color: var(--color-text-muted) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.5px;
}

/* ──────────────────────────────────────────────────────────
   10. INDICADORES DECORATIVOS DE ESQUINA (HUD corners)
   ────────────────────────────────────────────────────────── */

/* Marca diagonal de esquina superior izquierda */
.registro-container > *:first-child::before {
  content: '▶';
  color: var(--color-cyan);
  font-size: 9px;
  opacity: 0.4;
  margin-right: 6px;
}

/* ──────────────────────────────────────────────────────────
   11. RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 14px;
    align-items: flex-start;
    padding-top: 28px;
  }

  .registro-container {
    padding: 28px 20px 24px;
    max-width: 100%;
    clip-path: polygon(
      10px 0%, 100% 0%,
      100% calc(100% - 10px),
      calc(100% - 10px) 100%,
      0% 100%, 0% 10px
    );
  }

  .registro-container h2 {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
}

/* ──────────────────────────────────────────────────────────
   12. SOBREESCRITURA DE LA IMAGEN DE FONDO ORIGINAL
       Asegura que el fondo HUD siempre gane sobre style.css
   ────────────────────────────────────────────────────────── */
body {
  background-image: none !important;
  background-color: var(--color-bg) !important;
}


/* ══════════════════════════════════════════════════════════
   13. LOGIN PAGE — WRAPPER DE DOS PANELES (HUD LAYOUT)
   ══════════════════════════════════════════════════════════ */

.hud-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 880px;
  position: relative;
  z-index: 1;
}


/* ══════════════════════════════════════════════════════════
   14. PANEL IZQUIERDO — TERMINAL DE LOG DEL SISTEMA
   ══════════════════════════════════════════════════════════ */

.hud-log-panel {
  flex: 0 0 270px;
  display: flex;
  flex-direction: column;
  background: rgba(2, 10, 18, 0.92);
  border: 1px solid rgba(0, 243, 255, 0.28);
  border-right: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  /* Corte en esquina inferior izquierda */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

/* Barra de título del terminal */
.hud-log-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.18);
  background: rgba(0, 243, 255, 0.04);
  flex-shrink: 0;
}

.hud-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red   { background: #ff3c3c; box-shadow: 0 0 4px #ff3c3c; }
.dot-amber { background: #ff9500; box-shadow: 0 0 4px #ff9500; }
.dot-green { background: #00ff9d; box-shadow: 0 0 4px #00ff9d; }

.hud-log-title {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin-left: 4px;
  text-transform: uppercase;
}

/* Cuerpo del log */
.hud-log-body {
  padding: 12px 14px 8px;
  flex: 1;
  overflow: hidden;
}

/* ── Líneas con efecto máquina de escribir ── */
.log-line {
  margin: 0;
  padding: 1px 0;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  /* forwards mantiene el estado final (width: 100%) */
  animation: typeIn 0.55s steps(30, end) forwards;
}

/* Color helpers dentro de cada línea */
.lp   { color: rgba(0, 243, 255, 0.35); }   /* prompt > */
.lv   { color: var(--color-cyan); }          /* valores genéricos */
.lok  { color: var(--color-success); }       /* OK / ONLINE */
.lwarn{ color: var(--color-amber); }         /* REQUERIDA / WARNING */

/* Delays escalonados — simula llegada de datos en tiempo real */
.log-line.l1  { animation-delay: 0.20s; }
.log-line.l2  { animation-delay: 0.80s; }
.log-line.l3  { animation-delay: 1.40s; }
.log-line.l4  { animation-delay: 2.00s; }
.log-line.l5  { animation-delay: 2.55s; }
.log-line.l6  { animation-delay: 3.10s; }
.log-line.l7  { animation-delay: 3.65s; }
.log-line.l8  { animation-delay: 4.20s; }
.log-line.l9  { animation-delay: 4.75s; }
.log-line.l10 { animation-delay: 5.40s; }

@keyframes typeIn {
  from { width: 0; }
  to   { width: 100%; }
}

/* Cursor parpadeante en la última línea */
.log-blink {
  color: var(--color-cyan);
  animation: blinkCursor 0.85s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Bloque de telemetría numérica ── */
.hud-telemetry {
  padding: 9px 14px;
  border-top: 1px solid rgba(0, 243, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
  flex-shrink: 0;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 1px;
}

.tk     { color: var(--color-text-muted); }
.tv     { color: var(--color-cyan); }
.tv-ok  { color: var(--color-success); }

/* ── Pie del panel con reloj ── */
.hud-log-footer {
  display: flex;
  justify-content: space-between;
  padding: 7px 14px;
  border-top: 1px solid rgba(0, 243, 255, 0.12);
  background: rgba(0, 243, 255, 0.03);
  font-size: 9px;
  letter-spacing: 1.5px;
  flex-shrink: 0;
}

.lf-id   { color: var(--color-text-muted); }
.lf-time { color: var(--color-cyan); font-variant-numeric: tabular-nums; }


/* ══════════════════════════════════════════════════════════
   15. PANEL DERECHO — MÓDULO DE AUTENTICACIÓN
   ══════════════════════════════════════════════════════════ */

/* El panel auth hereda .registro-container; aquí extendemos */
.hud-auth-panel {
  flex: 1;
  max-width: none;   /* anula el max-width de .registro-container */
  /* El clip-path se hereda de .registro-container (secc. 3) */
}

/* ── Miras de cámara de dron / visor de francotirador ── */
.corner {
  position: absolute;
  width: 15px;
  height: 15px;
  z-index: 3;
  pointer-events: none;
}

/* Color base y glow compartidos */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  border-color: var(--color-cyan);
}

/* Esquina superior-izquierda — desplazada para no chocar con el clip-path diagonal */
.corner-tl {
  top: 20px; left: 20px;
  border-top:  2px solid;
  border-left: 2px solid;
  box-shadow: -2px -2px 8px var(--color-cyan-glow);
}

/* Esquina superior-derecha */
.corner-tr {
  top: 8px; right: 8px;
  border-top:   2px solid;
  border-right: 2px solid;
  box-shadow: 2px -2px 8px var(--color-cyan-glow);
}

/* Esquina inferior-izquierda */
.corner-bl {
  bottom: 8px; left: 8px;
  border-bottom: 2px solid;
  border-left:   2px solid;
  box-shadow: -2px 2px 8px var(--color-cyan-glow);
}

/* Esquina inferior-derecha — desplazada para no chocar con el clip-path diagonal */
.corner-br {
  bottom: 20px; right: 20px;
  border-bottom: 2px solid;
  border-right:  2px solid;
  box-shadow: 2px 2px 8px var(--color-cyan-glow);
}

/* Línea central horizontal en cada mira (crosshair) */
.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--color-cyan);
  opacity: 0.55;
}

/* Trazo horizontal del crosshair */
.corner::before {
  width: 5px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Trazo vertical del crosshair */
.corner::after {
  width: 1px;
  height: 5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── Badge de canal activo ── */
.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 243, 255, 0.22);
  padding: 4px 12px;
  margin-bottom: 18px;
  background: rgba(0, 243, 255, 0.04);
  text-transform: uppercase;
  /* Forma trapezoidal */
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.badge-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* ── Heading con subtítulo ── */
.hud-auth-panel h2 {
  line-height: 1.25;
}

.h2-sub {
  display: block;
  font-size: 0.68em;
  letter-spacing: 7px;
  opacity: 0.65;
  margin-top: 3px;
  color: var(--color-cyan);
}

/* ── Grupos de campo con etiqueta ── */
.field-group {
  text-align: left;
  margin: 5px 0;
}

.field-label {
  display: block;
  font-family: var(--font-hud);
  font-size: 8.5px;
  letter-spacing: 2.5px;
  color: var(--color-text-muted);
  margin-bottom: 3px;
  padding-left: 2px;
  text-transform: uppercase;
}

/* El input hereda los estilos de la sección 5 de futurista.css */
.field-group input {
  margin: 0;     /* anula el margin: 8px 0 del selector genérico */
}

/* ── Divisor decorativo ── */
.hud-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 4px;
  opacity: 0.35;
}

.hud-divider span:first-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cyan));
}

.hud-divider span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(270deg, transparent, var(--color-cyan));
}

.div-icon {
  font-size: 11px;
  color: var(--color-cyan);
  flex: 0 0 auto;
  line-height: 1;
}


/* ══════════════════════════════════════════════════════════
   16. RESPONSIVE — STACK VERTICAL EN MÓVIL
   ══════════════════════════════════════════════════════════ */

@media (max-width: 700px) {

  .hud-wrapper {
    flex-direction: column;
  }

  /* Panel log en horizontal compacto arriba */
  .hud-log-panel {
    flex: none;
    border-right: 1px solid rgba(0, 243, 255, 0.28);
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  }

  .hud-log-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    padding: 10px 14px;
  }

  .hud-telemetry {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Panel auth sin máx-ancho */
  .hud-auth-panel {
    clip-path: polygon(
      0 0%, 100% 0%,
      100% calc(100% - 12px),
      calc(100% - 12px) 100%,
      0% 100%
    );
  }
}


/* ══════════════════════════════════════════════════════════
   17. OVERLAY DE CIFRADO — animación al enviar formulario
   ══════════════════════════════════════════════════════════ */

#hud-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.97);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

#hud-overlay.ov-active {
  opacity: 1;
  pointer-events: all;
}

/* ── Anillos concéntricos giratorios ── */
.ov-rings {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ov-ring {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Anillo exterior — gira lento CW */
.ov-r1 {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(0, 243, 255, 0.12);
  animation: ovSpin 4.5s linear infinite;
}
.ov-r1::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-cyan);
  border-right-color: rgba(0, 243, 255, 0.3);
  animation: ovSpin 1.4s linear infinite;
}
/* Ticks decorativos en el anillo exterior */
.ov-r1::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 243, 255, 0.08);
  animation: ovSpin 8s linear infinite reverse;
}

/* Anillo medio — gira CCW */
.ov-r2 {
  width: 148px;
  height: 148px;
  border: 1px solid rgba(0, 243, 255, 0.10);
  animation: ovSpin 3s linear infinite reverse;
}
.ov-r2::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-left-color:   var(--color-amber);
  border-bottom-color: rgba(255, 149, 0, 0.25);
  animation: ovSpin 2s linear infinite;
}

/* Anillo interior — gira CW rápido */
.ov-r3 {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(0, 243, 255, 0.15);
  animation: ovSpin 1.1s linear infinite;
}
.ov-r3::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color:    var(--color-cyan);
  border-bottom-color: var(--color-cyan);
  animation: ovSpin 0.65s linear infinite reverse;
}

/* Núcleo central con porcentaje */
.ov-core {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.2), inset 0 0 14px rgba(0, 243, 255, 0.06);
}

.ov-percent {
  font-family: var(--font-hud);
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--color-cyan);
  text-shadow: 0 0 10px var(--color-cyan-glow);
}

@keyframes ovSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Textos del overlay ── */
.ov-title {
  font-family: var(--font-hud);
  font-size:   1rem;
  letter-spacing: 4px;
  color: var(--color-cyan);
  text-shadow: 0 0 16px var(--color-cyan-glow);
  margin: 26px 0 6px;
  text-transform: uppercase;
  animation: ovFlicker 3s ease-in-out infinite;
}

.ov-sub {
  font-family: var(--font-hud);
  font-size:   0.70rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  margin: 0 0 22px;
  min-height: 1.4em;
  transition: opacity 0.15s ease;
}

/* ── Barra de progreso ── */
.ov-bar {
  width: 260px;
  height: 3px;
  background: rgba(0, 243, 255, 0.08);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.ov-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0, 243, 255, 0.35), var(--color-cyan));
  box-shadow: 0 0 10px var(--color-cyan-glow);
  transition: width 0.08s linear;
}

/* ── Cuadrícula hexagonal decorativa de fondo del overlay ── */
.ov-hex-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 18px;
  font-size: 32px;
  color: rgba(0, 243, 255, 0.03);
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  padding: 20px;
  animation: hexDrift 20s linear infinite;
}

@keyframes hexDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-48px); }
}

@keyframes ovFlicker {
  0%, 100%  { opacity: 1; }
  91%        { opacity: 1; }
  92%        { opacity: 0.3; }
  93%        { opacity: 1; }
  95%        { opacity: 0.6; }
  96%        { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════
   18. TEMA ÁMBAR — recuperar.php (anulación de seguridad)
   ══════════════════════════════════════════════════════════ */

/* Panel log en variante ámbar */
.hud-log-amber {
  border-color: rgba(255, 149, 0, 0.35);
}

.hud-log-amber .hud-log-header {
  border-bottom-color: rgba(255, 149, 0, 0.20);
  background: rgba(255, 149, 0, 0.04);
}

.hud-log-amber .hud-telemetry {
  border-top-color: rgba(255, 149, 0, 0.15);
}

.hud-log-amber .hud-log-footer {
  border-top-color: rgba(255, 149, 0, 0.12);
  background: rgba(255, 149, 0, 0.03);
}

/* Color de peligro en los logs */
.ldanger { color: var(--color-danger); }

/* Panel auth con acento ámbar */
.hud-amber-panel {
  border-color: var(--color-amber);
  box-shadow:
    0 0 0 1px rgba(255, 149, 0, 0.08),
    0 0 24px var(--color-amber-glow),
    inset 0 0 28px rgba(255, 149, 0, 0.04);
}

/* Pseudo-elementos del panel ámbar */
.hud-amber-panel::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-amber) 40%,
    rgba(255, 149, 0, 0.6) 60%,
    transparent 100%
  );
}

.hud-amber-panel::after {
  content: 'K7://OVERRIDE';
  color: var(--color-amber);
}

/* Miras en ámbar */
.corner-amber,
.corner-amber.corner-tl,
.corner-amber.corner-tr,
.corner-amber.corner-bl,
.corner-amber.corner-br {
  border-color: var(--color-amber);
}

.corner-amber.corner-tl { box-shadow: -2px -2px 8px var(--color-amber-glow); }
.corner-amber.corner-tr { box-shadow:  2px -2px 8px var(--color-amber-glow); }
.corner-amber.corner-bl { box-shadow: -2px  2px 8px var(--color-amber-glow); }
.corner-amber.corner-br { box-shadow:  2px  2px 8px var(--color-amber-glow); }

.corner-amber::before,
.corner-amber::after { background: var(--color-amber); }

/* Banner de advertencia */
.hud-warning-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--color-amber);
  border-top: 1px solid rgba(255, 149, 0, 0.3);
  border-bottom: 1px solid rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.06);
  padding: 6px 10px;
  margin-bottom: 16px;
  text-transform: uppercase;
  animation: bannerPulse 2.5s ease-in-out infinite;
}

.warn-icon {
  font-size: 11px;
  animation: iconPulse 1.4s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { background: rgba(255, 149, 0, 0.06); }
  50%       { background: rgba(255, 149, 0, 0.12); }
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* Badge ámbar */
.hud-badge-amber {
  border-color: rgba(255, 149, 0, 0.30);
  background:   rgba(255, 149, 0, 0.05);
  color: var(--color-amber);
}

.badge-pulse-amber {
  background:  var(--color-amber);
  box-shadow: 0 0 6px var(--color-amber);
}

/* H2 en ámbar */
.h2-amber {
  color: var(--color-amber) !important;
  text-shadow: 0 0 12px var(--color-amber-glow) !important;
}

.h2-sub-amber { color: var(--color-amber) !important; }

/* Descripción del formulario de recuperación */
.override-desc {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}

.override-desc strong { color: var(--color-amber); }

/* Label ámbar */
.field-label-amber { color: var(--color-amber) !important; }

/* Input acento ámbar en el panel de recuperación */
.hud-amber-panel input[type="email"]:focus {
  border-bottom-color: var(--color-amber);
  border-left-color:   var(--color-amber);
  box-shadow: 0 0 10px var(--color-amber-glow),
              inset 0 0 8px rgba(255, 149, 0, 0.06);
}

/* Botón ámbar */
.btn-amber {
  border-color: var(--color-amber) !important;
  color:        var(--color-amber) !important;
}

.btn-amber:hover {
  background:   rgba(255, 149, 0, 0.12) !important;
  box-shadow:
    0 0 16px var(--color-amber-glow),
    0 0 40px rgba(255, 149, 0, 0.18),
    inset 0 0 12px rgba(255, 149, 0, 0.08) !important;
}

/* Divisor ámbar */
.hud-divider-amber span:first-child {
  background: linear-gradient(90deg, transparent, var(--color-amber));
}

.hud-divider-amber span:last-child {
  background: linear-gradient(270deg, transparent, var(--color-amber));
}

.hud-divider-amber .div-icon { color: var(--color-amber); }

/* Link de abortar */
.link-amber { color: var(--color-amber) !important; }
.link-amber:hover {
  text-shadow: 0 0 8px var(--color-amber-glow) !important;
}


/* ══════════════════════════════════════════════════════════
   19. INDEX.PHP — CENTRO DE COMANDO TÁCTICO
   ══════════════════════════════════════════════════════════ */

/* ── Restore Poppins + FLUJO VERTICAL NORMAL ── */
body.page-index {
  font-family:      'Poppins', sans-serif !important;
  /* Anular el display:flex / padding del body global */
  display:          block !important;
  padding:          0     !important;
  align-items:      initial !important;
  justify-content:  initial !important;
}

/* ── Stacking: contenido encima del canvas de partículas ── */
body.page-index .hero         { position: relative; z-index: 1; }
body.page-index main          { position: relative; z-index: 1; }
body.page-index footer.footer { position: relative; z-index: 1; }

/* ── Hero: 100% ancho, sin recorte diagonal, overlay oscuro ── */
body.page-index header.hero {
  width:      100% !important;
  min-height: 62vh;
  box-sizing: border-box;
  clip-path:  none !important;   /* sin cortes en el elemento raíz */
  transform:  none !important;
}

/* El ::before de estilos.css tenía clip-path diagonal — lo eliminamos */
body.page-index header.hero::before {
  clip-path:           none    !important;
  background-size:     cover   !important;
  background-position: center  !important;
  /* Reforzar el overlay oscuro para que el texto cian brille */
  background-image:
    linear-gradient(rgba(4, 14, 26, 0.65), rgba(4, 14, 26, 0.72)),
    url('../images/Fondo_Fab.jpg') !important;
}

/* ── Colores de texto para fondo oscuro ── */
body.page-index .subtitlee {
  color: var(--color-cyan) !important;
  text-shadow: 0 0 10px var(--color-cyan-glow);
}
body.page-index .about__title  { color: var(--color-cyan) !important; }
body.page-index .subtitle      { color: var(--color-text)  !important; }
body.page-index .about__paragraph,
body.page-index .questions__paragraph,
body.page-index .questions__show,
body.page-index .questions__copy { color: var(--color-text) !important; }
body.page-index .questions__title { color: var(--color-text) !important; font-size: 1rem; }
body.page-index .questions__padding {
  border-color: rgba(0, 243, 255, 0.25) !important;
  background: rgba(4, 14, 26, 0.5);
}
body.page-index .questions__arrow {
  background-color: rgba(0, 243, 255, 0.18) !important;
}
body.page-index .knowledge {
  background-image:
    linear-gradient(rgba(4, 14, 26, 0.80), rgba(4, 14, 26, 0.80)),
    url('../images/PLANOS.jpg') !important;
  background-size: cover !important;
}
body.page-index .knowledge__paragraph { color: var(--color-text) !important; }
body.page-index .knowledge__picture {
  border-color: rgba(0, 243, 255, 0.25) !important;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.15) !important;
}

/* ── Nav brand — HUD typography ── */
body.page-index .nav__title {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-cyan) !important;
  text-shadow: 0 0 14px var(--color-cyan-glow);
  font-size: 0.88rem;
  font-weight: normal;
}

/* ── CTA buttons — HUD style ── */
body.page-index .cta {
  background: transparent !important;
  border: 1px solid var(--color-cyan) !important;
  color: var(--color-cyan) !important;
  border-radius: 0 !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  letter-spacing: 2px;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 11px;
  transition: background 0.2s, box-shadow 0.2s;
}
body.page-index .cta:hover {
  background: rgba(0, 243, 255, 0.15) !important;
  box-shadow: 0 0 14px var(--color-cyan-glow);
  transform: none;
  filter: none;
}

/* ── Botón de emergencia: CORTAR ENLACE DE TELEMETRÍA ── */
.btn-cortar-enlace {
  display: inline-block;
  font-family: 'Share Tech Mono', 'Courier New', monospace !important;
  font-size: 10px !important;
  letter-spacing: 1.5px;
  color: var(--color-danger) !important;
  background: rgba(255, 60, 60, 0.10) !important;
  border: 1px solid var(--color-danger) !important;
  padding: 5px 12px !important;
  text-decoration: none !important;
  list-style: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s, box-shadow 0.2s;
  animation: cutLinkPulse 2.2s ease-in-out infinite;
  align-self: center;
}
.btn-cortar-enlace:hover {
  background: rgba(255, 60, 60, 0.28) !important;
  box-shadow: 0 0 14px rgba(255, 60, 60, 0.55) !important;
}
@keyframes cutLinkPulse {
  0%, 100% { box-shadow: 0 0 4px  rgba(255, 60, 60, 0.25); }
  50%       { box-shadow: 0 0 12px rgba(255, 60, 60, 0.65); }
}

/* ══════════════════════════════════════════════════════════
   BARRA DE ESTADO DEL SISTEMA
   ══════════════════════════════════════════════════════════ */

.cmd-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 18px;
  background: rgba(2, 8, 16, 0.92);
  border-bottom: 1px solid rgba(0, 243, 255, 0.18);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  position: relative;
  z-index: 2;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd-status-bar::-webkit-scrollbar { display: none; }

.csb-item strong { color: var(--color-cyan); font-weight: normal; }
.csb-sep { opacity: 0.25; user-select: none; }

.csb-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.csb-active {
  background: var(--color-success);
  box-shadow: 0 0 5px var(--color-success);
  animation: badgePulse 2s ease-in-out infinite;
}

.csb-clock {
  margin-left: auto;
  color: var(--color-cyan);
  font-variant-numeric: tabular-nums;
  padding-left: 16px;
}

/* ══════════════════════════════════════════════════════════
   GRILLA PRINCIPAL — CSS GRID TÁCTICO
   ══════════════════════════════════════════════════════════ */

.cmd-center {
  display:    flex;
  flex-direction: column;   /* flujo VERTICAL — scroll normal hacia abajo */
  gap:        20px;
  padding:    20px 16px;
  max-width:  1200px;
  margin:     0 auto;
  box-sizing: border-box;
}

/* ── Shell genérico de panel ── */
.cmd-panel {
  background: rgba(4, 14, 26, 0.80);
  border: 1px solid rgba(0, 243, 255, 0.20);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  overflow: hidden;
  position: relative;
}

/* Scan line decorativo en panels */
.cmd-panel::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -3px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 243, 255, 0.5) 40%,
    rgba(0, 243, 255, 0.3) 60%,
    transparent 100%
  );
  animation: scanLine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* ── Barra de título de panel ── */
.cmd-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.14);
  background: rgba(0, 243, 255, 0.04);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  flex-shrink: 0;
}
.cph-title {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: var(--color-cyan);
  text-transform: uppercase;
}
.cph-meta {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
}

/* ── Panel principal (envuelve el contenido existente) ── */
.cmd-main-panel {
  /* hereda cmd-panel */
}

/* ── Paneles laterales: fila horizontal debajo del contenido principal ── */
.cmd-side-column {
  display:    flex;
  flex-direction: row;
  flex-wrap:  wrap;
  gap:        12px;
  position:   static;   /* sin sticky — flujo normal */
  width:      100%;
}

.cmd-radar-panel,
.cmd-fleet-panel {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

/* ══════════════════════════════════════════════════════════
   RADAR DE ESPACIO AÉREO
   ══════════════════════════════════════════════════════════ */

.radar-display {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  margin: 16px auto 8px;
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 243, 255, 0.06) 0%,
    rgba(0, 6, 14, 0.96) 78%
  );
  border: 1px solid rgba(0, 243, 255, 0.32);
  box-shadow:
    0 0 22px rgba(0, 243, 255, 0.10),
    inset 0 0 30px rgba(0, 243, 255, 0.04);
  overflow: hidden;
}

/* Círculos de alcance concéntricos */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 243, 255, 0.16);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.rr1 { width: 68%;  height: 68%; }
.rr2 { width: 36%;  height: 36%; }
.rr3 { width: 13%;  height: 13%; border-color: rgba(0, 243, 255, 0.35); }

/* Líneas de retícula */
.radar-crosshair {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,243,255,0.10) 1px, transparent 1px) center / 100% 100%,
    linear-gradient(90deg, rgba(0,243,255,0.10) 1px, transparent 1px) center / 100% 100%;
}

/* Brazo de barrido rotatorio */
.radar-sweep-arm {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; right: 0;
  transform-origin: left center;
  background: linear-gradient(
    to right,
    rgba(0, 243, 255, 0.60) 0%,
    rgba(0, 243, 255, 0.22) 45%,
    transparent 100%
  );
  animation: radarArmSpin 4s linear infinite;
}

@keyframes radarArmSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Contactos (blips) en el radar */
.rblip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 7px var(--color-success), 0 0 14px rgba(0,255,157,0.3);
  transform: translate(-50%, -50%);
  animation: blipFade 2.4s ease-in-out infinite;
}
.rblip:nth-child(odd)  { animation-delay: 0.6s; }
.rblip:nth-child(even) { animation-delay: 1.4s; }

.rblip-amber {
  background: var(--color-amber);
  box-shadow: 0 0 7px var(--color-amber), 0 0 14px rgba(255,149,0,0.3);
  animation-duration: 1.6s;
}

@keyframes blipFade {
  0%   { opacity: 0.2; transform: translate(-50%, -50%) scale(0.7); }
  40%  { opacity: 1;   transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.7); }
}

/* Fila de metadatos del radar */
.radar-meta {
  display: flex;
  justify-content: space-around;
  padding: 6px 12px 10px;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(0, 243, 255, 0.12);
}
.rm-ok { color: var(--color-success); }

/* ══════════════════════════════════════════════════════════
   ESTADO DE LA FLOTA UAV
   ══════════════════════════════════════════════════════════ */

.fleet-list {
  padding: 10px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fleet-item {
  display: grid;
  grid-template-columns: 46px 1fr 54px;
  align-items: center;
  gap: 7px;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.fi-id {
  font-size: 9px;
  color: var(--color-cyan);
  letter-spacing: 1px;
}

/* Barra de batería */
.fi-bar {
  height: 4px;
  background: rgba(0, 243, 255, 0.08);
  overflow: hidden;
}
.fi-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(0,243,255,0.4), var(--color-cyan));
  box-shadow: 0 0 4px var(--color-cyan-glow);
  transition: width 1s ease;
}
.fi-fill.fi-low {
  background: linear-gradient(90deg, rgba(255,60,60,0.4), var(--color-danger));
  box-shadow: 0 0 4px rgba(255,60,60,0.4);
}

/* Badge de estado del UAV */
.fi-status {
  font-size: 7.5px;
  letter-spacing: 0.8px;
  padding: 2px 4px;
  text-align: center;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}
.fi-ok      { background: rgba(0,255,157,0.14); color: var(--color-success); }
.fi-patrol  { background: rgba(0,243,255,0.12); color: var(--color-cyan); }
.fi-warn    { background: rgba(255,60,60,0.16); color: var(--color-danger); }
.fi-standby { background: rgba(255,149,0,0.12); color: var(--color-amber); }

/* Resumen de flota al pie */
.fleet-footer {
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 243, 255, 0.12);
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 8.5px;
  letter-spacing: 1.5px;
}
.ff-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-muted);
}
.ff-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.ff-dot.ok   { background: var(--color-success); box-shadow: 0 0 4px var(--color-success); }
.ff-dot.warn { background: var(--color-danger);  box-shadow: 0 0 4px var(--color-danger); }

/* ── Cada sección: card HUD individual con respiración ── */
body.page-index .about,
body.page-index .knowledge,
body.page-index section.questions {
  width:         100%;
  box-sizing:    border-box;
  border:        1px solid rgba(0, 243, 255, 0.16);
  border-left:   3px solid rgba(0, 243, 255, 0.45);
  background:    rgba(4, 14, 26, 0.60);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  padding:       28px 24px !important;
  margin:        0   !important;    /* el gap de .cmd-center maneja el espacio */
  position:      relative;
  overflow:      hidden;
}

/* Línea de scan decorativa en cada card */
body.page-index .about::after,
body.page-index .knowledge::after,
body.page-index section.questions::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  opacity: 0.45;
  pointer-events: none;
}

/* El container interno no duplica el max-width */
body.page-index .about .container,
body.page-index .knowledge .knowledge__container,
body.page-index section.questions.container {
  max-width: 100% !important;
  padding:   0    !important;
  margin:    0    !important;
}

/* ── Footer HUD ── */
body.page-index footer.footer {
  background: rgba(2, 8, 16, 0.96) !important;
  border-top: 1px solid rgba(0, 243, 255, 0.15);
}
body.page-index .footer__copyright {
  color: var(--color-text-muted) !important;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  letter-spacing: 2px;
  font-size: 9.5px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — COLUMNA ÚNICA EN MÓVIL
   ══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .cmd-center      { padding: 12px 10px; gap: 14px; }
  .cmd-side-column { flex-direction: column; }
  .cmd-radar-panel,
  .cmd-fleet-panel { max-width: 100%; }
  .cmd-status-bar  { gap: 6px; padding: 5px 10px; }
}


/* ══════════════════════════════════════════════════════════
   20. TABLAS Y LISTAS TERMINAL — Estética de consola HUD
       Aplicado en index.php (listas) y CRUD.php (tabla real)
   ══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   FAQ ACCORDION → ENTRADAS DE LOG DEL SISTEMA
   ───────────────────────────────────────────────────────── */

body.page-index .questions__container {
  counter-reset:  log-entry;
  gap:            0 !important;
  padding-top:    16px !important;
  padding-bottom: 16px !important;
}

body.page-index .questions__padding {
  counter-increment: log-entry;
  position:  relative;
  overflow:  hidden;
  border:    none   !important;
  border-left:   2px solid rgba(0, 243, 255, 0.28) !important;
  border-bottom: 1px solid rgba(0, 243, 255, 0.07) !important;
  border-radius: 0 !important;
  background:    rgba(4, 14, 26, 0.50) !important;
  margin-bottom: 0 !important;
  transition: border-left-color 0.25s, background 0.25s;
}

/* Barra de escáner que cruza en hover */
body.page-index .questions__padding::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent          0%,
    rgba(0,243,255,0.10) 40%,
    rgba(0,243,255,0.10) 60%,
    transparent          100%
  );
  transform:      translateX(-110%);
  transition:     transform 0.55s ease;
  pointer-events: none;
  z-index:        0;
}

body.page-index .questions__padding:hover::after {
  transform: translateX(110%);
}

body.page-index .questions__padding:hover {
  border-left-color: var(--color-cyan) !important;
  background:        rgba(0, 243, 255, 0.04) !important;
}

/* Etiqueta de número de entrada */
body.page-index .questions__answer::before {
  content: '▶  LOG-' counter(log-entry, decimal-leading-zero) '  //  ENTRADA ACTIVA';
  display: block;
  font-family:  'Share Tech Mono', 'Courier New', monospace;
  font-size:    7.5px;
  letter-spacing: 2px;
  color:        var(--color-text-muted);
  padding:      8px 0 2px;
  opacity:      0.65;
  position:     relative;
  z-index:      1;
}

/* Título del acordeón como código de evento */
body.page-index .questions__title {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  font-size:      12px !important;
  letter-spacing: 0.5px !important;
  color:          var(--color-text) !important;
  position:       relative;
  z-index:        1;
}

/* Flecha → indicador de terminal */
body.page-index .questions__arrow {
  background-color: transparent !important;
  border:  1px solid rgba(0, 243, 255, 0.35) !important;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%) !important;
  border-radius: 0 !important;
  width:  22px !important;
  height: 22px !important;
}

/* Contenido desplegado */
body.page-index .questions__show {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  font-size:      10.5px !important;
  line-height:    1.85 !important;
  color:          var(--color-text-muted) !important;
  letter-spacing: 0.2px;
  position: relative;
  z-index:  1;
}

/* Párrafo introductorio de la sección */
body.page-index .questions__paragraph {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  font-size:      10.5px !important;
  line-height:    1.85 !important;
  letter-spacing: 0.2px;
  border-left:    2px solid rgba(0, 243, 255, 0.20);
  padding-left:   14px;
  margin-bottom:  18px !important;
}

/* ─────────────────────────────────────────────────────────
   ABOUT ARTICLES → FICHAS DE MÓDULO CON STATUS
   ───────────────────────────────────────────────────────── */

body.page-index .about__icons {
  position:      relative;
  overflow:      hidden;
  border:        1px solid rgba(0, 243, 255, 0.18) !important;
  background:    rgba(4, 14, 26, 0.55) !important;
  padding:       18px 16px 16px !important;
  border-radius: 0 !important;
  width:         auto !important;
  transition:    border-color 0.25s, box-shadow 0.25s;
}

/* Status badge superior */
body.page-index .about__icons::before {
  content: 'STATUS: ONLINE  ▸';
  display:        block;
  font-family:    'Share Tech Mono', 'Courier New', monospace;
  font-size:      7.5px;
  letter-spacing: 2.5px;
  color:          var(--color-success);
  margin-bottom:  10px;
  padding-bottom: 7px;
  border-bottom:  1px solid rgba(0, 243, 255, 0.12);
  text-align:     left;
  opacity:        0.85;
}

/* Barra de escáner en hover */
body.page-index .about__icons::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent         0%,
    rgba(0,243,255,0.08) 45%,
    rgba(0,243,255,0.08) 55%,
    transparent         100%
  );
  transform:      translateX(-110%);
  transition:     transform 0.55s ease;
  pointer-events: none;
  z-index:        0;
}

body.page-index .about__icons:hover::after {
  transform: translateX(110%);
}

body.page-index .about__icons:hover {
  border-color: var(--color-cyan) !important;
  box-shadow:   0 0 14px rgba(0, 243, 255, 0.12);
}

body.page-index .about__title {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  font-size:      11.5px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  position:       relative;
  z-index:        1;
  margin:         4px 0 8px !important;
}

body.page-index .about__icons .about__paragraph {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  font-size:      10px !important;
  line-height:    1.85 !important;
  color:          var(--color-text-muted) !important;
  position:       relative;
  z-index:        1;
}

body.page-index .about__icon {
  filter:   brightness(0) invert(1) drop-shadow(0 0 6px rgba(0,243,255,0.55));
  opacity:  0.75;
  width:    30px !important;
  position: relative;
  z-index:  1;
}

/* ─────────────────────────────────────────────────────────
   CTA LINKS → MICRO-BOTONES TERMINALES CON CORCHETES
   ───────────────────────────────────────────────────────── */

body.page-index .cta::before { content: '[ '; letter-spacing: 0; }
body.page-index .cta::after  { content: ' ]'; letter-spacing: 0; }

/* ─────────────────────────────────────────────────────────
   TABLA HUD — Registros de consola sin bordes tradicionales
   Aplica en CRUD.php y en cualquier .hud-table
   ───────────────────────────────────────────────────────── */

.hud-table,
body.page-crud table {
  width:            100%;
  border-collapse:  collapse;
  font-family:      'Share Tech Mono', 'Courier New', monospace;
  font-size:        11px;
  letter-spacing:   0.4px;
  color:            var(--color-text);
  margin:           14px 0;
}

/* Cabecera de columnas */
.hud-table th,
body.page-crud table th {
  color:          var(--color-cyan);
  text-transform: uppercase;
  font-size:      8.5px;
  letter-spacing: 2.5px;
  padding:        9px 16px;
  text-align:     left;
  font-weight:    normal;
  background:     rgba(0, 243, 255, 0.05);
  border-top:     1px solid rgba(0, 243, 255, 0.15);
  border-bottom:  1px solid rgba(0, 243, 255, 0.30);
  border-left:    none;
  border-right:   none;
}

/* Celdas de datos — solo línea divisora inferior en cian */
.hud-table td,
body.page-crud table td {
  padding:     9px 16px;
  border:      none;
  border-bottom: 1px solid rgba(0, 243, 255, 0.07);
  vertical-align: middle;
  transition:  background 0.15s, border-color 0.15s;
}

/* Filas pares: sutil contraste */
.hud-table tbody tr:nth-child(even) td,
body.page-crud table tbody tr:nth-child(even) td {
  background: rgba(0, 243, 255, 0.02);
}

/* Primera celda (ID) muted */
.hud-table td:first-child,
body.page-crud table td:first-child {
  color:      var(--color-text-muted);
  font-size:  9.5px;
  letter-spacing: 1px;
}

/* ── HOVER: barra de escáner de radar en filas ── */
.hud-table tr:hover td,
body.page-crud table tr:hover td {
  background:    rgba(0, 243, 255, 0.07) !important;
  border-bottom-color: rgba(0, 243, 255, 0.22) !important;
}

.hud-table tr:hover td:first-child,
body.page-crud table tr:hover td:first-child {
  color:       var(--color-cyan);
  text-shadow: 0 0 6px var(--color-cyan-glow);
}

/* ─────────────────────────────────────────────────────────
   MICRO-BOTONES TERMINALES CON CORCHETES — CRUD.php
   ───────────────────────────────────────────────────────── */

body.page-crud button,
.btn-terminal {
  position:       relative;
  background:     transparent;
  border:         1px solid rgba(0, 243, 255, 0.40);
  color:          var(--color-cyan);
  font-family:    'Share Tech Mono', 'Courier New', monospace;
  font-size:      10px;
  letter-spacing: 2px;
  padding:        7px 12px;
  cursor:         pointer;
  text-transform: uppercase;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s, box-shadow 0.2s;
  margin:        3px;
  outline:       none;
  border-radius: 0;
  overflow:      hidden;
}

/* Corchetes decorativos */
body.page-crud button::before,
.btn-terminal::before { content: '[ '; }
body.page-crud button::after,
.btn-terminal::after  { content: ' ]'; }

body.page-crud button:hover,
.btn-terminal:hover {
  background: rgba(0, 243, 255, 0.12);
  box-shadow: 0 0 10px var(--color-cyan-glow);
  animation:  glitchBtn 0.3s steps(2, end) 1;
}

/* Botón ELIMINAR → peligro/rojo */
body.page-crud button[name="delete"],
body.page-crud button[name="show_delete"] {
  border-color: rgba(255, 60, 60, 0.50);
  color:        var(--color-danger);
}

body.page-crud button[name="delete"]:hover,
body.page-crud button[name="show_delete"]:hover {
  background: rgba(255, 60, 60, 0.12);
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.45);
}

/* ─────────────────────────────────────────────────────────
   CRUD.PHP — LAYOUT HUD COMPLETO
   ───────────────────────────────────────────────────────── */

body.page-crud {
  font-family:    'Share Tech Mono', 'Courier New', monospace !important;
  color:          var(--color-text);
  padding:        0 !important;
}

/* Nav superior */
body.page-crud .crud-nav {
  display:     flex;
  justify-content: space-between;
  align-items: center;
  padding:     10px 20px;
  background:  rgba(2, 8, 16, 0.97);
  border-bottom: 1px solid rgba(0, 243, 255, 0.20);
  font-family: 'Share Tech Mono', monospace;
  font-size:   9.5px;
  letter-spacing: 1.5px;
  position:    relative;
  z-index:     2;
}

body.page-crud .crud-nav a {
  color: var(--color-cyan);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s, text-shadow 0.15s;
}
body.page-crud .crud-nav a:hover {
  opacity: 1;
  text-decoration: none;
  text-shadow: 0 0 8px var(--color-cyan-glow);
}
body.page-crud .crud-nav span { color: var(--color-text-muted); }

/* Headings */
body.page-crud h2 {
  font-family:    'Share Tech Mono', monospace;
  font-size:      0.85rem;
  letter-spacing: 4px;
  color:          var(--color-cyan);
  text-transform: uppercase;
  text-shadow:    0 0 10px var(--color-cyan-glow);
  border-bottom:  1px solid rgba(0, 243, 255, 0.18);
  border-left:    3px solid var(--color-cyan);
  padding:        8px 14px;
  margin:         22px 0 14px;
  background:     rgba(0, 243, 255, 0.03);
  text-align:     left;
}

/* Alertas */
body.page-crud .alert {
  font-family:    'Share Tech Mono', monospace;
  font-size:      11px;
  letter-spacing: 1px;
  padding:        10px 16px;
  margin:         12px 0;
  border-left:    3px solid;
  text-align:     left;
  font-weight:    normal;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
body.page-crud .alert.success {
  border-color: var(--color-success);
  background:   rgba(0, 255, 157, 0.08);
  color:        var(--color-success);
}
body.page-crud .alert.error {
  border-color: var(--color-danger);
  background:   rgba(255, 60, 60, 0.08);
  color:        var(--color-danger);
}

/* Grupo de botones de acción CRUD */
body.page-crud .button-group {
  display:   flex;
  flex-wrap: wrap;
  gap:       4px;
  padding:   14px 0 10px;
  justify-content: flex-start;
}
body.page-crud .button-group form { display: inline; margin: 0; }

/* Formularios de alta/edición/baja */
body.page-crud form input[type="text"],
body.page-crud form input[type="email"],
body.page-crud form input[type="password"],
body.page-crud form input[type="number"] {
  background:    rgba(0, 243, 255, 0.05);
  border:        none;
  border-bottom: 2px solid var(--color-cyan);
  border-left:   2px solid rgba(0, 243, 255, 0.28);
  color:         var(--color-cyan);
  font-family:   'Share Tech Mono', monospace;
  font-size:     11px;
  letter-spacing: 1px;
  padding:       9px 12px;
  margin:        6px 0;
  outline:       none;
  border-radius: 0;
  display:       block;
  width:         100%;
  max-width:     420px;
  box-sizing:    border-box;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition:    background 0.18s, box-shadow 0.18s;
}
body.page-crud form input::placeholder {
  color:       var(--color-text-muted);
  font-size:   10px;
  letter-spacing: 1px;
}
body.page-crud form input:focus {
  background:  rgba(0, 243, 255, 0.10);
  box-shadow:  0 0 8px var(--color-cyan-glow);
}

/* Contenedor de contenido (excluye nav y scripts) */
body.page-crud > h2,
body.page-crud > .alert,
body.page-crud > .button-group,
body.page-crud > form,
body.page-crud > table,
body.page-crud > div {
  padding-left:  20px;
  padding-right: 20px;
}

/* Responsive CRUD HUD */
@media (max-width: 600px) {
  body.page-crud .button-group { gap: 6px; }
  body.page-crud table { font-size: 9.5px; }
  body.page-crud table th,
  body.page-crud table td { padding: 7px 10px; }
}
