@font-face {
  font-family: Roboto; src: url("roboto-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Roboto; src: url("roboto-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --azul: #2e3192; --azul-oscuro: #20225e; --naranja: #f15a25;
  --tinta: #20253b; --suave: #535d75; --borde: #d8dcea;
  --fondo: #f4f5fa; --claro: #f0f1fc;
}
* { box-sizing: border-box; }
[hidden], dialog:not([open]) { display: none !important; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 15px/1.45 Roboto, Arial, sans-serif; }
.ancho { width: 92%; max-width: 1400px; margin: 0 auto; }
.barra { background: #fff; border-bottom: 1px solid var(--borde); }
.marca, .identidad, .acciones-lista, footer, .encabezado { display: flex; align-items: center; }
.marca { justify-content: space-between; min-height: 86px; }
.identidad { gap: 21px; }
.logo { width: 64px; height: 64px; object-fit: contain; }
.nombre { font-size: 21px; color: var(--azul-oscuro); border-left: 1px solid var(--borde); padding: 5px 0 5px 21px; }
.nombre strong { font-weight: 700; }
main { padding: 27px 0 48px; }
.portada {
  position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between;
  align-items: center; padding: 32px 36px; gap: 20px; background: linear-gradient(110deg,#222464 8%,#303399 80%,#2a2c80);
  color: white; border-radius: 13px;
}
.portada:before { content:""; position: absolute; left:0; top:29%; bottom:29%; width:4px; border-radius:0 3px 3px 0; background: var(--naranja); }
.bandas { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bandas:before, .bandas:after { content: ""; position: absolute; width: 300px; height: 410px; right: 12%; top: -290px;
  transform: rotate(36deg); border: 28px solid rgba(255,255,255,.075); border-radius: 0 0 100px 100px; }
.bandas:after { width: 203px; height: 355px; right: calc(12% + 22px); top: -258px;
  border-width: 5px; border-color: rgba(255,255,255,.16); border-radius: 0 0 75px 75px; }
h1,h2 { margin: 0; letter-spacing: -.036em; line-height: 1.12; }
h1 { font-size: 42px; } h2 { font-size: 26px; }
.introduccion p { margin: 7px 0 0; color: #e2e4fa; }
button, a.control, input, select { font: inherit; }
.control, .primario, .accion-clara, .cerrar {
  cursor: pointer; font-weight: 700; font-size: 14px; line-height: 1.25; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 14px; border-radius: 7px; border: 1px solid var(--borde);
  color: var(--azul-oscuro); background: white;
}
.control:hover, .cerrar:hover { background: var(--claro); border-color: #a4a8d0; }
.accion-clara { padding: 11px 16px; min-height: 44px; background: white; color: var(--azul); border-color: white; }
.accion-clara:hover { background:#eef0ff; }.signo { font-size: 22px; line-height: 16px; font-weight: 400; }
.primario { color: white; background: var(--azul); border-color: var(--azul); }
.primario:hover { background: var(--azul-oscuro); }
button:disabled { opacity: .55; cursor: default; }
.icono { display: inline-block; position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.grafica { height: 15px; background: linear-gradient(currentColor,currentColor) left bottom/3px 7px no-repeat,
  linear-gradient(currentColor,currentColor) center bottom/3px 12px no-repeat, linear-gradient(currentColor,currentColor) right bottom/3px 9px no-repeat; }
.simbolo { font-size: 21px; font-weight: 400; line-height: 14px; }
.descarga { border-bottom: 1.5px solid currentColor; line-height: 12px; font-size: 19px; text-align: center; }
.panel { margin-top: 20px; overflow: hidden; background: white; border: 1px solid var(--borde); border-radius: 12px; box-shadow: 0 3px 12px rgba(35,39,78,.035); }
.herramientas { display: flex; gap: 16px; align-items: flex-end; padding: 20px 23px; }
.herramientas label, .campos label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--tinta); font-size: 13px; font-weight: 700; }
input, select { width: 100%; min-width: 0; height: 41px; border: 1px solid #bfc7d9; border-radius: 7px; padding: 8px 11px; background: white; color: var(--tinta); }
.herramientas input, .herramientas select, .campos input { font-size: 15px; font-weight: 400; }
input::placeholder { color:#70798c; }
.busqueda { flex: 0 1 300px; }
.entrada { position: relative; display: block; }
.entrada input { padding-left: 38px; }
.lupa { position: absolute; left: 13px; top: 12px; width: 13px; height: 13px; border: 1.8px solid var(--suave); border-radius: 50%; pointer-events: none; }
.lupa:after { content: ""; position:absolute; height: 1.8px; width: 7px; background: var(--suave); transform: rotate(48deg); top: 10px; left: 8px; }
.herramientas select { min-width: 155px; }.acciones-lista { margin-left: auto; gap: 9px; }
.tabla { overflow-x: auto; max-width:100%; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th,td { padding: 11px 15px; text-align: left; white-space: nowrap; }
th { color: #495271; background: #edf0f8; font-size: 12px; letter-spacing: .016em; }
td { border-bottom: 1px solid #e6e9f1; font-size: 14px; background: #fff; }
th:first-child, td:first-child { padding-left: 23px; }
tbody tr:hover td, tbody tr:focus-within td { background: #f8f9ff; }
.placa { border: 1px solid #d3d6ef; background: #f4f4fd; color: var(--azul); padding: 4px 8px;
  font: 700 14px/1.1 Roboto,Arial,sans-serif; letter-spacing: .045em; border-radius: 5px; cursor: pointer; }
.placa:hover { color:#fff; background: var(--azul); border-color:var(--azul); }
.vacio { color:#747d91; }
.tipo-carroceria { display: inline-flex; align-items: center; gap: 8px; }
.tipo-carroceria:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7378c7; }
.tipo-carroceria.volco:before { background: var(--naranja); }
.resultado { margin:0; padding:24px; text-align:center; color:var(--suave); }
.leyenda { margin: 0; padding: 13px 23px; color: var(--suave); font-size: 12px; }
.leyenda span { margin-right: 5px; }
dialog { padding: 0; width: min(590px,94vw); max-height: 90vh; overflow-y: auto; border: 1px solid var(--borde); border-radius: 14px; background: white; color:var(--tinta); box-shadow: 0 18px 65px #19193835; }
dialog::backdrop { background: rgba(21,23,47,.53); }
.encabezado,footer { justify-content:space-between; padding:18px 24px; gap:12px; }
.encabezado { border-top: 4px solid var(--naranja); border-bottom: 1px solid var(--borde); color:var(--azul-oscuro); }
.cerrar { min-height:34px; padding: 0; width:34px; font-size:22px; }
.campos { padding: 22px 24px; display: grid; grid-template-columns: 1fr 1fr; gap:15px; }
footer { justify-content: flex-end; border-top: 1px solid var(--borde); background: #f8f9fc; }
#aviso,#error { margin: 10px 24px; background:#f2f2fc; border-left:3px solid var(--azul); padding:9px 12px; }
#error { background:#fff3ec; border-color:var(--naranja); }
.indicadores { margin:0; padding:16px 24px 24px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.indicadores div { padding:14px 17px; border-radius:8px; background:#f3f4fa; }
.indicadores .principal { grid-column: 1 / -1; background:var(--azul); color:white; }
.indicadores dt { font-size:14px; }.indicadores dd { margin:4px 0 0; font-size:32px; font-weight:700; }
:focus { outline-color: var(--azul); }
:focus-visible { outline: 3px solid #7277d5; outline-offset:2px; }
@media(max-width:850px) {
  .herramientas { flex-wrap:wrap; gap:12px; }
  .busqueda { flex:1 1 250px; }
  .acciones-lista { flex-wrap:wrap; }
  th:first-child,td:first-child { position:sticky; left:0; z-index:1; box-shadow:2px 0 3px #2528430b; }
}
@media(max-width:640px) {
  .ancho { width:94%; }.marca { min-height:72px; }.logo { width:52px; height:52px; }.identidad { gap:12px; }
  .nombre { font-size:18px; padding-left:12px; }.marca .control {padding:8px 10px;font-size:13px;}
  main {padding-top:16px;}.portada { padding:22px 20px; align-items:flex-start; flex-direction:column; gap:16px; }
  h1 {font-size:34px;} .portada p {font-size:14px;} .bandas:before, .bandas:after { right:-120px; }
  .panel {margin-top:14px;} .herramientas {padding:14px;gap:10px;}
  .busqueda {flex:1 1 140px;}.herramientas select {min-width:105px;}
  .acciones-lista {width:100%; margin-left:0;} .acciones-lista .control {font-size:13px;}
  th,td {padding:10px 12px;} th:first-child,td:first-child {padding-left:14px;}
  .leyenda {padding-left:14px;} .campos,.encabezado,footer,.indicadores {padding:16px;}
  dialog h2 {font-size:22px;}
}
@media(max-width:410px) {
  .campos {grid-template-columns:1fr;}
}
