/* --- Tech Dark Red Theme --- */
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
  background: #0a0a0a;
  color: #eaeaea;
	letter-spacing: 0.05px;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --card: #141414;
  --border: #2a2a2a;
  --muted: #9e9e9e;

  --pri: #ff2c2c;
  --pri-700: #d71b1b;
  --ok: #36d399;
  --warn: #facc15;
  --bad: #f87171;

  --shadow: 0 0 20px rgba(255,0,0,0.15);
}

.container { max-width: 1080px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,0,0,0.08), transparent 60%);
  pointer-events: none;
}

h1,h2,h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
h1 { color: #fff; border-left: 4px solid var(--pri); padding-left: 10px; }
h2 { color: #ff4d4d; }
h3 { color: #f87171; }
h4 { color: #f87171; }
p { line-height: 1.7; color: var(--muted); }

.btn {
  display:inline-block; padding:10px 16px; border-radius:8px;
  text-decoration:none; border:1px solid var(--pri);
  background: linear-gradient(90deg, var(--pri), #8b0000);
  color:#fff; font-weight:700;
  transition: all .2s ease;
  text-shadow: 0 0 6px rgba(255,0,0,0.5);
}
.btn:hover{
  background: #ff3b3b;
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
  transform: translateY(-1px);
}

.badge {
  display:inline-block; padding:4px 10px;
  border-radius:999px; font-size:12px; font-weight:700;
  background: rgba(255,255,255,0.08);
  border:1px solid var(--border);
}
.badge.ok { background: rgba(54,211,153,.12); color: var(--ok); border-color: rgba(54,211,153,.3); }
.badge.warn { background: rgba(250,204,21,.12); color: var(--warn); border-color: rgba(250,204,21,.3); }
.badge.bad { background: rgba(248,113,113,.12); color: var(--bad); border-color: rgba(248,113,113,.3); }

.input, select, textarea {
  width:100%; padding:10px 12px;
  border-radius:6px; border:1px solid #2a2a2a;
  background:#0f0f0f; color:#eaeaea;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--pri);
  box-shadow: 0 0 10px rgba(255,0,0,0.3);
  outline: none;
}
label { font-weight:600; font-size:14px; color:#fff; display:block; margin-bottom:6px; }

.row { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
@media (max-width:800px){ .row{grid-template-columns:1fr;} }

.table { width:100%; border-collapse: collapse; color:#eaeaea; }
.table th, .table td {
  padding:10px; border-bottom:1px solid #2a2a2a; text-align:left; font-size:14px;
}
.table th { color:#ff4d4d; text-transform: uppercase; letter-spacing:.5px; }
.table tbody tr:hover { background: rgba(255,0,0,0.05); }

.search { margin-bottom:12px; background:#111; color:#fff; }

.kpis { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin: 12px 0 20px; }
.kpi {
  background:#121212; border-radius:12px; padding:16px;
  border:1px solid #2a2a2a;
  box-shadow: 0 0 10px rgba(255,0,0,0.15);
}
.kpi h3 { color:#ff4d4d; text-transform:uppercase; }
.kpi p { color:#eaeaea; }

.small { color:#888; font-size:12px; }
.footer { margin-top:28px; color:#555; font-size:12px; border-top:1px solid #1a1a1a; padding-top:10px; text-align:center; }

/* Link hover */
a { color: #ff4d4d; text-decoration:none; }
a:hover { text-shadow: 0 0 8px rgba(255,0,0,0.6); }


/* Navbar */
.navbar {
  background: var(--pri);
  color: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.navbar img {
  height: 42px;
}
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 20px;
  transition: opacity .2s;
}
.navbar a:hover {
  opacity: 0.85;
}


/* Focus visible */
:focus-visible {
  outline: 2px solid var(--pri);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth transition for interactive elements */
button, .btn, input, select, textarea { transition: all .2s ease; }

/* --- NAVBAR GENERAL --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background-color: var(--pri, #c1121f); /* Rojo institucional */
  color: #fff;
}

.navbar .logo img {
  height: 42px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- MODO RESPONSIVE --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--pri, #c1121f);
    flex-direction: column;
    align-items: flex-start;
    width: 220px;
    padding: 16px;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-radius: 0 0 0 12px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }
}
/* Asegurá que la barra quede por encima de las cards */
.navbar {
  position: sticky;   /* o fixed si preferís que siempre quede pegada */
  top: 0;
  z-index: 1000;      /* mayor que cualquier card */
}

/* El dropdown en móvil por encima de todo */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;  /* ya lo tenés */
    z-index: 1100;       /* clave para no quedar detrás */
  }
}

/* Opcional (por si alguna card sigue superponiéndose) */
.card {
  z-index: 1;           /* explícito y por debajo del navbar */
}

/* Si usás .container con transform o overflow, evitá crear stacking context */
.container {
  /* asegurate de NO usar transform/overflow que creen nuevo contexto */
}
