*{box-sizing:border-box}
body{margin:0;font:15px/1.5 Inter,system-ui,sans-serif;color:#eef4ff;background:radial-gradient(ellipse at 50% -10%,#173a5e,transparent 55%),#080e1c;min-height:100vh}
header,main,footer,.aviso{max-width:1040px;margin-inline:auto;padding-inline:14px}
header{display:flex;align-items:center;gap:16px;padding-top:24px}
h1{margin:0;font-size:clamp(1.6rem,6vw,2.4rem);font-weight:800;letter-spacing:-.02em}
header p{margin:0;color:#a9b9d6}
.radar{flex:none;width:72px;height:72px;fill:none;stroke:#3987e5;stroke-width:1.5}
.radar .barrido{transform-origin:50px 50px;animation:girar 4s linear infinite}
.radar .barrido path{fill:#3987e555;stroke:none}
.radar .eco{fill:#9ec5ff;stroke:none}
@keyframes girar{to{transform:rotate(360deg)}}
.aviso{margin-block:10px;color:#ffd479;font-size:.82rem}
main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-bottom:30px}
.filtros,#totales,.ancho{grid-column:1/-1}
.filtros,.par{display:flex;gap:10px}
label{flex:1;font-size:.75rem;color:#a9b9d6}
select{display:block;width:100%;margin-top:3px;min-height:42px;padding:8px;border-radius:10px;border:1px solid #2a3b5c;background:#111c31;color:#eef4ff;font:inherit}
#totales{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
article,section{background:#111c31;border:1px solid #223253;border-radius:16px;padding:16px;min-width:0}
article span,article small{display:block;color:#a9b9d6;font-size:.8rem}
article strong{display:block;font-size:2rem;font-weight:800;line-height:1.25}
h2{margin:0 0 10px;font-size:1rem}
.leyenda{display:flex;gap:16px;font-size:.8rem;color:#c6d3ea;margin:6px 0}
.leyenda span::before{content:"";display:inline-block;width:14px;height:3px;margin-right:6px;vertical-align:middle;background:#3987e5}
.leyenda .l1::before{background:#d95926}
svg text.eje{fill:#8ea0c2;font-size:11px}
.grilla{stroke:#223253;stroke-width:1}
.linea{fill:none;stroke-width:2;stroke-linejoin:round}
.linea.s0{stroke:#3987e5}.linea.s1{stroke:#d95926}
.punto{stroke:#111c31;stroke-width:2}
.punto.s0{fill:#3987e5}.punto.s1{fill:#d95926}
.fila{display:grid;grid-template-columns:76px 1fr 52px;gap:8px;align-items:center;min-height:28px;font-size:.82rem;color:#c6d3ea}
.fila b{text-align:right;color:#eef4ff;font-variant-numeric:tabular-nums}
.pista{height:12px;border-left:1px solid #3a4d75}
.pista i{display:block;height:100%;background:#3987e5;border-radius:0 4px 4px 0;transition:width .4s}
#globo{position:fixed;z-index:9;max-width:260px;padding:8px 11px;border-radius:10px;background:#eef4ff;color:#0b1426;font-size:.8rem;pointer-events:none}
#globo[hidden]{display:none}
summary{cursor:pointer;font-weight:600}
#tabla{overflow-x:auto}
table{width:100%;border-collapse:collapse;margin-top:10px;font-variant-numeric:tabular-nums;font-size:.82rem}
th,td{text-align:right;padding:7px;border-bottom:1px solid #223253;white-space:nowrap}
th:first-child,td:first-child{text-align:left}
.boton,button{display:inline-block;flex:none;margin:0 8px 8px 0;padding:11px 18px;border-radius:99px;border:1px solid #3987e5;background:none;color:#eef4ff;font:600 .9rem Inter,sans-serif;cursor:pointer}
.boton{position:relative;background:#2a6fd0}
.boton input{position:absolute;width:1px;height:1px;opacity:0}
.boton:focus-within,:focus-visible{outline:3px solid #fff;outline-offset:2px}
#error{color:#ffb4a8;margin:0}
footer{text-align:center;padding-bottom:24px;font-size:.78rem;color:#8ea0c2}
@media(max-width:720px){main{grid-template-columns:minmax(0,1fr)}#totales{grid-template-columns:1fr 1fr}article strong{font-size:1.6rem}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.ia{border-color:#3987e5;box-shadow:0 0 30px #3987e533}
textarea,#preguntar input{width:100%;font:inherit;color:#eef4ff;background:#080e1c;border:1px solid #2a3b5c;border-radius:10px;padding:10px}
#sugeridas{margin:12px 0 4px}
#sugeridas button{text-align:left}
#preguntar{display:flex;gap:8px}
#preguntar input{flex:1;min-width:0;border-radius:99px;padding-inline:16px}
#preguntar button{margin:0;background:#2a6fd0}
#respuesta{margin-top:14px;padding:14px;border-radius:12px;background:#0a1428;border-left:3px solid #3987e5}
#respuesta p{white-space:pre-line;margin:8px 0}
#respuesta small,.nota{color:#a9b9d6;font-size:.78rem}
@media(max-width:480px){#preguntar{flex-direction:column}}
