@font-face { font-family: "Barlow"; src: url(fuentes/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Barlow"; src: url(fuentes/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Barlow SC"; src: url(fuentes/barlow-semi-condensed-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Barlow SC"; src: url(fuentes/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Barlow SC"; src: url(fuentes/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: block; }

:root {
  --papel: #f2f2ef;
  --papel-2: #e9e9e4;
  --linea: #c9c9c2;
  --linea-suave: #dcdcd5;
  --tinta: #1d2233;
  --tinta-2: #4a4f5c;
  --tinta-3: #5f6372;
  --indigo: #243060;
  --azul: #3c549c;
  --isat: #b06a00;
  --isat-txt: #8a5300;
  --foco: #3c549c;
  --panel: clamp(380px, 28vw, 560px);
  --t-cifra: clamp(3rem, 4.4vw, 5.2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --s-fal: #c8102e; --s-gra: #e8590c; --s-lev: #f2a900; --s-sin: #5b8db8; --s-nd: #8a93a3;
  --ruta: #64e0e6;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--papel); color: var(--tinta); }
body { font: 400 15px/1.4 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
::selection { background: var(--indigo); color: var(--papel); }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
output, .num { font-family: "Barlow SC", sans-serif; font-variant-numeric: tabular-nums lining-nums; }

.lamina { display: grid; grid-template-columns: 1fr var(--panel); height: 100vh; }

/* ---------- mapa ---------- */
.mapa { position: relative; border-right: 1px solid var(--linea); }
#mapa { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { display: none; }
.maplibregl-ctrl-scale {
  background: transparent; border: 1.5px solid #fff; border-top: 0; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .6);
  font: 500 12px "Barlow SC", sans-serif; letter-spacing: .02em; padding: 0 4px; height: 9px; line-height: 0;
}
.maplibregl-ctrl-bottom-left { left: 24px; bottom: 70px; }
.maplibregl-popup-content {
  background: var(--papel); border: 1px solid var(--tinta); border-radius: 0; padding: 8px 10px;
  box-shadow: 0 4px 10px -6px rgb(29 34 51 / .35); font: 400 13px/1.3 "Barlow", sans-serif; color: var(--tinta);
}
.maplibregl-popup-tip { display: none; }
.pop b { display: block; font: 500 14px "Barlow SC", sans-serif; }
.pop span { color: var(--tinta-3); }

.lectura {
  position: absolute; left: 24px; bottom: 24px; display: flex; gap: 10px; align-items: center;
  font: 500 13px "Barlow SC", sans-serif; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .6);
}
.lectura .sep { width: 1px; height: 12px; background: rgb(255 255 255 / .5); }

.escenas {
  position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex;
  background: rgb(29 34 51 / .86); box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5);
}
.escenas button {
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; font: 500 17px "Barlow SC", sans-serif; white-space: nowrap;
  color: #d5d8e0; border-left: 1px solid rgb(255 255 255 / .15); transition: background .2s, color .2s;
}
.escenas button:first-child { border-left: 0; }
.escenas button:hover { background: rgb(255 255 255 / .08); color: #fff; }
.escenas button.activa { background: #f2f2ef; color: var(--indigo); }
.escenas kbd {
  font: 600 12px "Barlow SC", sans-serif; border: 1px solid currentColor; padding: 0 4px;
}

.leyenda {
  position: absolute; left: 24px; top: 24px; display: grid; gap: 8px; padding: 12px 16px;
  background: rgb(29 34 51 / .86); color: #f2f2ef; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5);
}
.leyenda label { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.leyenda input { appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid #f2f2ef; display: grid; place-content: center; cursor: pointer; }
.leyenda input:checked::after { content: ""; width: 8px; height: 8px; background: #f2f2ef; }
.leyenda input:not(:checked) ~ * { opacity: .45; }
.leyenda i { width: 30px; height: 5px; background: var(--ruta); box-shadow: 0 0 0 2px #07202b; }
.leyenda .m-calor { height: 10px; border-radius: 5px; box-shadow: none; background: linear-gradient(90deg, rgb(255 110 100 / .4), rgb(235 50 50 / .8) 45%, rgb(205 20 30) 75%, rgb(140 8 18)); }
.leyenda small { font-size: 13px; opacity: .75; margin-left: -4px; }
.leyenda .m-gps { height: 3px; box-shadow: 0 0 0 1.5px #1d2233; background: linear-gradient(90deg, #a9bbef 0 6px, transparent 6px 10px, #a9bbef 10px 16px, transparent 16px 20px, #a9bbef 20px); }
.leyenda .m-isat { height: 10px; box-shadow: none; background: linear-gradient(90deg, rgb(232 150 40 / .3) 0 10px, rgb(232 150 40 / .55) 10px 20px, rgb(232 150 40 / .85) 20px); }

.ficha {
  position: absolute; right: 24px; top: 24px; width: 300px; background: var(--papel);
  border: 1px solid var(--tinta); padding: 14px 16px 12px; box-shadow: 0 8px 16px -10px rgb(29 34 51 / .35);
  animation: entra .35s var(--ease);
}
@keyframes entra { from { opacity: 0; translate: 0 -6px; } }
.ficha .cerrar { position: absolute; right: 8px; top: 4px; font-size: 22px; color: var(--tinta-3); line-height: 1; padding: 4px; }
.ficha-empresa { margin: 0 0 2px; font: 500 13px "Barlow SC", sans-serif; color: var(--azul); }
.ficha h2 { margin: 0 24px 10px 0; font: 500 19px/1.2 "Barlow SC", sans-serif; text-wrap: balance; }
.ficha dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); }
.ficha dl div { padding: 6px 0; border-bottom: 1px solid var(--linea-suave); }
.ficha dt { font-size: 12px; color: var(--tinta-3); }
.ficha dd { margin: 0; font: 500 15px "Barlow SC", sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- panel ---------- */
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--papel); }
.titulo { padding: 22px 28px 16px; background: var(--indigo); color: #fff; }
.titulo img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.titulo .sobre { margin: 16px 0 0; font: 600 12px "Barlow SC", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #9fb0e0; }
.titulo h1 { margin: 4px 0 0; font: 600 25px/1.12 "Barlow SC", sans-serif; letter-spacing: -.005em; text-wrap: balance; }
.estado { margin: 8px 0 0; font: 500 14px "Barlow SC", sans-serif; color: #ffd27a; }
.estado[hidden] { display: none; }
.cuerpo { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--linea) transparent; }
.rotulo { margin: 0 0 6px; font: 600 12px "Barlow SC", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-3); }

.kpi-red { padding: 20px 28px 18px; border-bottom: 1px solid var(--linea); }
.cifra { display: flex; align-items: baseline; gap: 8px; }
.cifra output { font-size: calc(var(--t-cifra) * 1.15); font-weight: 600; line-height: .95; letter-spacing: -.02em; color: var(--indigo); }
.cifra .u { font: 500 22px "Barlow SC", sans-serif; color: var(--tinta-2); }
.kpi-red .nota { margin: 6px 0 0; font-size: 14px; color: var(--tinta-3); }
.cifras-sec { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--linea-suave); padding-top: 12px; }
.cifras-sec div + div { border-left: 1px solid var(--linea-suave); padding-left: 14px; }
.cifras-sec output { font-size: 34px; font-weight: 600; line-height: 1; color: var(--tinta); }
.cifras-sec p { margin: 4px 0 0; font-size: 14px; line-height: 1.2; color: var(--tinta-2); }

.kpi-isat { padding: 18px 28px 18px; background: #fff; border-bottom: 1px solid var(--linea); }
.isat-cab > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.isat-cab output { font-size: 54px; font-weight: 600; line-height: .9; color: var(--s-fal); letter-spacing: -.02em; }
.isat-cab p { margin: 0; font: 500 17px/1.2 "Barlow SC", sans-serif; color: var(--tinta); }
.sev-barra { display: flex; height: 12px; margin: 16px 0 10px; background: var(--papel-2); }
.sev-barra i { display: block; height: 100%; transition: width .6s var(--ease); }
.sev-barra i + i { border-left: 2px solid #fff; }
.sev-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.sev-lista li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: 14.5px; color: var(--tinta-2); }
.sev-lista i { width: 10px; height: 10px; border-radius: 50%; }
.sev-lista b { font: 600 16px "Barlow SC", sans-serif; color: var(--tinta); font-variant-numeric: tabular-nums; }

.filtros { padding: 18px 28px 20px; }
.selects { display: grid; grid-template-columns: 1fr; gap: 10px; }
.selects label { grid-template-columns: 74px 1fr; align-items: center; }
.selects label { display: grid; gap: 4px; font: 500 14px "Barlow SC", sans-serif; color: var(--tinta-2); }
.selects select {
  appearance: none; width: 100%; font: 500 15px "Barlow", sans-serif; color: var(--tinta); padding: 9px 30px 9px 11px;
  border: 1px solid var(--tinta-3); border-radius: 0; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23243060' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.selects select.activo { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); background-color: #eef0f7; }
fieldset { border: 0; margin: 0; padding: 14px 0 6px; }
.selects + fieldset.rango { margin-top: 18px; padding-top: 0; }
.selects + fieldset.rango legend { margin-bottom: 0; }
.selects + fieldset.rango .doble { margin-top: -2px; }
legend { display: flex; width: 100%; align-items: baseline; padding: 0; margin-bottom: 6px; font: 500 14px "Barlow SC", sans-serif; color: var(--tinta-2); }
legend output { margin-left: auto; color: var(--tinta); font-weight: 600; }
.mas { margin-top: 10px; border-top: 1px solid var(--linea-suave); }
.mas summary { cursor: pointer; padding: 12px 0 4px; font: 500 15px "Barlow SC", sans-serif; color: var(--azul); list-style: none; }
.mas summary::before { content: "+ "; }
.mas[open] summary::before { content: "− "; }
.limpiar { margin-top: 14px; width: 100%; padding: 9px; font: 500 15px "Barlow SC", sans-serif; color: var(--indigo); border: 1px solid var(--indigo); }
.limpiar:hover { background: var(--indigo); color: #fff; }
.limpiar[hidden] { display: none; }
.todo { margin-left: auto; font: 500 14px "Barlow SC", sans-serif; color: var(--azul); padding: 1px 6px; border: 1px solid var(--azul); }
.ver-todos { margin-top: 6px; font: 500 14px "Barlow SC", sans-serif; color: var(--azul); }
.ver-todos[hidden] { display: none; }
.barras li:nth-child(n+8) { display: none; }
.barras.abiertas li { display: block; }
.todo[hidden] { display: none; }
.barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.barras button {
  position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; text-align: left;
  padding: 5px 8px; font-size: 15px; isolation: isolate;
}
.barras button::before {
  content: ""; position: absolute; inset: 0; background: #dfe1ea; z-index: -1;
  transform: scaleX(var(--p)); transform-origin: left; transition: transform .5s var(--ease);
}
.barras button .num { color: var(--tinta-2); font-size: 15px; }
.barras:has([aria-pressed="true"]) button:not([aria-pressed="true"]) { opacity: .45; }
.barras button:hover::before { background: #cfd3e2; }
.barras button[aria-pressed="true"]::before { background: var(--indigo); transform: none; }
.barras button[aria-pressed="true"], .barras button[aria-pressed="true"] .num { color: var(--papel); }
.barras .apagado { opacity: .38; }

input[type="range"] { width: 100%; accent-color: var(--indigo); margin: 2px 0; }
.marcas { display: flex; justify-content: space-between; font-size: 14px; color: var(--tinta-3); }
.doble { position: relative; height: 22px; }
.doble input { position: absolute; inset: 0; pointer-events: none; background: none; }
.doble input::-webkit-slider-thumb { pointer-events: auto; }
.doble input::-moz-range-thumb { pointer-events: auto; }

.cajetin {
  display: grid; grid-template-columns: 1fr auto; border-top: 1.5px solid var(--tinta);
  font: 400 13px/1.3 "Barlow", sans-serif; color: var(--tinta-2);
}
.cajetin div { padding: 5px 10px; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.cajetin div:nth-child(2n) { border-right: 0; }
.cajetin span { display: block; font: 500 10px "Barlow SC", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.cajetin .cajetin-base { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.cajetin b { font-weight: 500; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .lamina { grid-template-columns: 1fr; grid-template-rows: 50vh auto; height: auto; }
  .mapa { border-right: 0; border-bottom: 1px solid var(--linea); }
  .escenas { left: 16px; right: 16px; translate: none; overflow-x: auto; }
  .escenas button { padding: 8px 10px; min-height: 44px; font-size: 14px; white-space: nowrap; }
  .escenas kbd { display: none; }
  .leyenda { left: 16px; top: 16px; padding: 8px 10px; }
  .leyenda label { font-size: 13px; }
  .lectura { display: none; }
  .ficha { left: 16px; right: 16px; width: auto; top: auto; bottom: 70px; }
  .titulo, .kpi-red, .kpi-isat, .filtros { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.origen { margin: 10px 0 0; font-size: 13px; color: var(--tinta-2); display: grid; gap: 2px; }
.origen span:first-child { font: 500 11px "Barlow SC", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.origen b { font-weight: 500; color: var(--tinta); }
#f-archivo { overflow-wrap: anywhere; }

/* ---------- ingreso ---------- */
.ingreso { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: #1d2233; }
.ingreso[hidden] { display: none; }
.ingreso form { width: min(360px, calc(100vw - 32px)); background: var(--papel); padding: 32px 28px 28px; display: grid; gap: 8px;
  box-shadow: 0 12px 28px -14px rgb(0 0 0 / .6); }
.ingreso img { width: 200px; height: auto; margin-bottom: 18px; }
.ingreso label { font: 500 14px "Barlow SC", sans-serif; color: var(--tinta-2); }
.ingreso input { font: 400 17px "Barlow", sans-serif; padding: 10px 12px; border: 1px solid var(--tinta-3); background: #fff; color: var(--tinta); }
.ingreso input:focus { outline: 2px solid var(--foco); outline-offset: 0; border-color: var(--foco); }
.ingreso .error { min-height: 18px; margin: 0; font-size: 14px; color: var(--isat-txt); }
.ingreso button { font: 500 17px "Barlow SC", sans-serif; padding: 11px; background: var(--indigo); color: var(--papel); }
.ingreso button:hover { background: var(--azul); }
.pop p { margin: 6px 0 0; color: var(--tinta-2, #3a3f4c); font-size: 13px; line-height: 1.35; }
.leyenda .punto-isat { width: 9px; height: 9px; background: #fff; border: 2.4px solid var(--isat); box-sizing: content-box; }

/* ---------- siniestros: íconos y ficha ---------- */
.leyenda .m-ico { width: 18px; height: 18px; border-radius: 50%; background: var(--s-fal); box-shadow: 0 0 0 2px #fff; margin: 0 6px 0 6px; }
.leyenda .sev { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0 0 26px; font-size: 13px; color: #d5d8e0; }
.leyenda .sev span { display: inline-flex; align-items: center; gap: 5px; }
.leyenda .sev i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.leyenda input[data-capa="isat"]:not(:checked) ~ * { opacity: .45; }
.mk-isat {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .55); transition: transform .15s var(--ease);
}
.mk-isat svg { width: 64%; height: 64%; fill: #fff; }
.mk-isat.fal { width: 32px; height: 32px; }
.mk-isat:hover, .mk-isat.sel { transform: scale(1.25); z-index: 2; }
.mk-isat.sel { box-shadow: 0 0 0 4px rgb(255 255 255 / .55), 0 2px 8px rgb(0 0 0 / .6); }
.marcador-oculto { display: none !important; }

.ficha-isat {
  position: absolute; right: 24px; top: 24px; max-height: calc(100% - 114px); width: 380px; display: flex; flex-direction: column;
  background: var(--papel); border: 1px solid var(--tinta); box-shadow: 0 12px 24px -12px rgb(0 0 0 / .55);
  overflow: hidden; animation: entra .35s var(--ease); z-index: 3;
}
.ficha-isat[hidden] { display: none; }
.ficha-isat .cerrar { position: absolute; right: 8px; top: 6px; z-index: 2; width: 32px; height: 32px; font-size: 22px; line-height: 1;
  color: #fff; background: rgb(29 34 51 / .7); border-radius: 50%; }
.fi-foto { margin: 0; position: relative; background: #1d2233; flex: none; }
.fi-foto img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fi-foto figcaption { position: absolute; left: 10px; bottom: 8px; font: 500 12px "Barlow SC", sans-serif; color: #fff;
  background: rgb(29 34 51 / .75); padding: 3px 8px; }
.fi-cuerpo { padding: 14px 18px 12px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.fi-sev { margin: 0; display: inline-flex; align-items: center; gap: 6px; font: 600 12px "Barlow SC", sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; padding: 3px 9px; }
.ficha-isat h2 { margin: 8px 36px 2px 0; font: 600 24px/1.15 "Barlow SC", sans-serif; color: var(--indigo); text-wrap: balance; }
.fi-donde { margin: 0 0 10px; font: 500 15px "Barlow SC", sans-serif; color: var(--tinta-2); }
.ficha-isat dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linea); }
.ficha-isat dl div { padding: 6px 0; border-bottom: 1px solid var(--linea-suave); }
.ficha-isat dl div.ancho { grid-column: 1 / -1; }
.ficha-isat dt { font-size: 12px; color: var(--tinta-3); }
.ficha-isat dd { margin: 0; font: 500 15px/1.25 "Barlow SC", sans-serif; }
.fi-relato { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.fi-leccion { margin-top: 12px; border-left: 3px solid var(--azul); background: #e6e9f2; padding: 8px 12px; }
.fi-leccion span { font: 600 11px "Barlow SC", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.fi-leccion p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; }
.fi-leccion[hidden] { display: none; }
.fi-pie { margin: 14px 0 0; font-size: 12px; color: var(--tinta-3); }
@media (max-width: 900px) { .ficha-isat { left: 16px; right: 16px; width: auto; top: auto; bottom: 70px; max-height: 70%; } }
.lejos .mk-isat { width: 20px; height: 20px; border-width: 1.5px; }
.lejos .mk-isat.fal { width: 23px; height: 23px; }
.lejos .mk-isat svg { width: 64%; height: 64%; }

/* ---------- caso de uso PAO ---------- */
.pie-caso { display: flex; justify-content: flex-end; padding: 12px 28px; border-top: 1px solid var(--linea); }
.boton-caso {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px 0 14px;
  background: #003C45; color: #fff; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .6); border-left: 4px solid #64CCC9;
  font: 600 15px "Barlow SC", sans-serif; letter-spacing: .1em; text-transform: uppercase; transition: background .2s;
}
.boton-caso img { height: 26px; width: auto; }
.boton-caso span { border-left: 1px solid rgb(255 255 255 / .3); padding-left: 12px; }
.boton-caso:hover { background: #00525e; }
.caso { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #003C45;
  visibility: hidden; pointer-events: none; }
.caso.abierto { visibility: visible; pointer-events: auto; }
.caso-barra { display: flex; align-items: center; gap: 18px; height: 44px; padding: 0 16px; color: #fff; font: 500 15px "Barlow SC", sans-serif; }
.caso-barra button { color: #fff; padding: 6px 12px; border: 1px solid rgb(255 255 255 / .5); font: 500 14px "Barlow SC", sans-serif; }
.caso-barra button:hover { background: rgb(255 255 255 / .12); }
.caso-tit { opacity: .85; }
.caso-conf { margin-left: auto; background: #D22630; padding: 4px 10px; font: 700 12px "Barlow SC", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.caso iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.caso-carga { position: absolute; top: 50%; left: 50%; translate: -50% -50%; color: #fff; font: 500 16px "Barlow SC", sans-serif; }
.caso-carga[hidden] { display: none; }
@media (max-width: 900px) { .pie-caso { padding: 12px 16px; } .ficha-isat { top: auto; } }
.en-caso .lamina { visibility: hidden; }
.caso iframe { opacity: 0; transition: opacity .3s; }
.caso iframe.listo { opacity: 1; }
.fi-sev[hidden] { display: none; }
/* pantallas bajas (notebook 768 px): el panel se compacta para que los filtros y el botón entren sin desplazar */
@media (max-height: 820px) and (min-width: 901px) {
  .titulo { padding: 14px 28px 12px; }
  .titulo .sobre { margin-top: 10px; }
  .titulo h1 { font-size: 21px; }
  .kpi-red { padding: 12px 28px 12px; }
  .cifra output { font-size: calc(var(--t-cifra) * .9); }
  .kpi-red .nota { font-size: 13px; margin-top: 2px; }
  .cifras-sec { margin-top: 10px; padding-top: 8px; }
  .cifras-sec output { font-size: 28px; }
  .kpi-isat { padding: 12px 28px; }
  .isat-cab output { font-size: 44px; }
  .sev-barra { margin: 10px 0 8px; }
  .filtros { padding: 12px 28px 12px; }
  .selects { gap: 6px; }
  .selects select { padding: 7px 30px 7px 11px; }
  .selects + fieldset.rango { margin-top: 12px; }
  .pie-caso { padding: 8px 28px; }
}
