/* Colores operativos compartidos por las pantallas. */
:root {
  color-scheme: dark;
  --fondo: #080e19;
  --panel: #121d30;
  --texto: #eef4ff;
  --secundario: #b7c5dc;
  --borde: #405170;
  --acento: #1e6bff;
  --enlace: #a9c7ff;
  --rojo: #ff7785;
  --ambar: #ffc46a;
  --verde: #54e2a3;
  font: 1rem/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--texto); }
a { color: var(--enlace); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--enlace);
  outline-offset: 3px;
}
.cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: .75rem clamp(1rem, 4vw, 3rem);
  background: var(--panel);
  border-bottom: 1px solid var(--borde);
}
.marca { color: var(--texto); font-weight: 850; font-size: 1.4rem; text-decoration: none; }
.marca span { color: var(--acento); }
.menu summary { cursor: pointer; min-height: 48px; padding: .65rem; }
.menu nav, .fila { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.menu nav a, .fila a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .5rem; }
.menu a[aria-current] { background: var(--fondo); border-bottom: 3px solid var(--acento); }
@media (min-width: 75rem) {
  .menu summary { display: none; }
  .menu:not([open])::details-content { content-visibility: visible; }
  .menu:not([open]) > nav { display: flex; }
}
main { max-width: 90rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
.panel { padding: clamp(1rem, 3vw, 1.5rem); background: var(--panel); border: 1px solid var(--borde); border-radius: .8rem; margin-bottom: 1rem; }
.acceso { max-width: 28rem; margin-inline: auto; }
.campos, label { display: grid; gap: .4rem; }
.campos { gap: 1rem; }
.fila { margin-bottom: .75rem; }
input, select, button {
  font: inherit;
  border: 1px solid var(--borde);
  border-radius: .45rem;
  min-height: 48px;
  padding: .55rem .75rem;
  color: var(--texto);
  max-width: 100%;
}
input, select { background: var(--fondo); }
button { background: var(--acento); color: white; font-weight: 700; cursor: pointer; }
button.peligro { background: var(--fondo); color: var(--rojo); }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: 1rem; }
.estado { font-weight: 750; }
.rojo, .error { color: var(--rojo); }
.ambar { color: var(--ambar); }
.verde { color: var(--verde); }
.texto-grande { font-size: clamp(1.4rem, 4vw, 3rem); }
.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .75rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
@media (max-width: 45rem) {
  .menu { flex-basis: 100%; }
  .menu nav { flex-direction: column; align-items: stretch; }
  .fila > label { width: 100%; }
}
