:root {
  font: 100%/1.5 "Segoe UI", system-ui, sans-serif;
  color: #192735;
  background: #eef2f5;
  --verde: #d6f682;
  --oscuro: #142432;
  --borde: #dbe3ea;
  --discreto: #526577;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #087680; outline-offset: 3px; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 15.75rem;
  background: var(--oscuro);
  color: #fff;
  padding: 2rem 1.25rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 10.5rem;
  max-width: 100%;
  padding: .28rem .55rem;
  border-radius: .5rem;
  background: #fff;
}
.marca img { display: block; width: 100%; height: auto; }
.sidebar .marca { width: 11rem; }
@media (max-width: 420px) {
  .marca { width: 8.5rem; }
}
.sidebar nav { display: grid; gap: .35rem; margin-top: 2.75rem; }
.sidebar nav a { padding: .55rem .7rem; border-radius: .45rem; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #2a4052; }
.local { margin-top: auto; color: #bdd0df; font-size: .875rem; }
main { max-width: 105rem; padding: 2.5rem clamp(1rem, 4vw, 3.5rem); margin-left: 15.75rem; }
.cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.13; letter-spacing: -.035em; }
h2 { font-size: 1.18rem; line-height: 1.3; margin-bottom: 1rem; }
.cabecera p { color: var(--discreto); margin-top: .5rem; }
.insignia { display: inline-block; border-radius: 1rem; padding: .28rem .7rem; background: #e4efce; color: #375015; font-size: .875rem; white-space: nowrap; }
.indicadores, .operacion { display: grid; gap: 1rem; margin-bottom: 1rem; }
.indicadores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.operacion { grid-template-columns: 1.3fr 1fr; }
.tarjeta { padding: 1.25rem; background: white; border: 1px solid var(--borde); border-radius: .85rem; }
main > .tarjeta + .tarjeta { margin-top: 1rem; }
.indicador { display: grid; gap: .25rem; align-content: start; }
.indicador strong { font-size: 2.4rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.destacado { background: var(--verde); border-color: var(--verde); }
label { display: block; margin-bottom: .35rem; font-weight: 650; }
input, button { font: inherit; }
input { border: 1px solid #a6b4c0; border-radius: .45rem; color: inherit; padding: .65rem .8rem; width: 100%; text-transform: uppercase; }
.acciones { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
button { background: var(--oscuro); color: white; cursor: pointer; border: 1px solid var(--oscuro); border-radius: .45rem; padding: .55rem .8rem; font-weight: 650; }
button:hover { background: #2a4052; }
button.secundario { background: white; color: var(--oscuro); }
button.secundario:hover { background: #edf3f7; }
button:disabled { opacity: .62; cursor: wait; }
.mensaje:not(:empty) { margin-top: .65rem; color: #236134; font-weight: 600; }
.mensaje.error { color: #a1262b; }
.modelo { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-weight: 650; }
.puertas { margin: .65rem 0 .55rem; }
.puertas div { display: flex; justify-content: space-between; gap: .5rem; padding: .34rem 0; border-bottom: 1px solid var(--borde); }
dd { margin: 0; color: var(--discreto); }
.nota { color: var(--discreto); font-size: .875rem; }
.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .55rem .75rem; white-space: nowrap; }
th { background: #edf2f6; font-weight: 650; }
td { border-bottom: 1px solid var(--borde); }
tr:last-child td { border-bottom: 0; }
.movil main { max-width: 31rem; margin: auto; }
.movil .cabecera { align-items: center; }
.movil h1 { margin: .55rem 0 1rem; }
.movil .acciones > button { flex: 1 1 10rem; min-height: 2.85rem; }
@media (max-width: 850px) {
  .sidebar { position: static; width: auto; padding: .9rem 1rem; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: .65rem; }
  .local { display: none; }
  main { margin-left: 0; padding-top: 1.5rem; }
}
@media (max-width: 550px) {
  .cabecera { flex-wrap: wrap; margin-bottom: 1.15rem; }
  .indicadores { gap: .4rem; }
  .indicadores .tarjeta { padding: .6rem; font-size: .875rem; }
  .indicadores strong { font-size: 1.65rem; }
  .operacion { grid-template-columns: minmax(0, 1fr); }
}
