/* Presentation atlas. All rules are scoped to the mounted TV panel. */
body.hy-tv:not(.hy-tv-muro) .hy-escenario>.atlas-panel{
 --atlas-ink:#e8f4ff;--atlas-muted:#94b2c8;--atlas-line:#284259;--atlas-cyan:#8bddf3;
 background:radial-gradient(ellipse at 38% 35%,#112c42 0%,#091726 60%,#07121f 100%);color:var(--atlas-ink);border:1px solid #29435a;
 padding:clamp(16px,1.6vw,28px);box-shadow:0 20px 70px #0004,inset 0 1px #afdcff12;
}
body.hy-tv .atlas-panel .hy-panel-h{margin:0 0 12px;flex:none}
body.hy-tv .atlas-panel .hy-panel-h h2{font-size:clamp(26px,2.7vw,48px);letter-spacing:-.04em;color:var(--atlas-ink)}
body.hy-tv .atlas-panel .hy-sub{font-size:clamp(11px,.9vw,16px);color:var(--atlas-muted);margin-top:5px}
body.hy-tv .atlas-panel .hy-panel-c{display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;flex:1;min-height:0}
body.hy-tv .atlas-panel .hy-panel-c>:first-child,body.hy-tv .atlas-panel .hy-panel-c>:last-child{margin:0}
body.hy-tv .atlas-panel .hy-panel-c>.hy-lectura{display:none}
.atlas-metricas{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:16px;border-top:1px solid var(--atlas-line);border-bottom:1px solid var(--atlas-line);padding:14px 0;align-items:center}
.atlas-metricas>div{display:flex;flex-direction:column;border-left:1px solid var(--atlas-line);padding-left:22px;gap:3px}
.atlas-metricas .atlas-intro{border:0;padding:0;gap:8px}
.atlas-intro>span{color:var(--atlas-cyan);font-size:10px;letter-spacing:.18em}
.atlas-intro>b{font-size:clamp(12px,1vw,18px);font-weight:500}
.atlas-metricas strong{font:500 clamp(24px,2.3vw,40px)/1.1 'Archivo',sans-serif;letter-spacing:-.04em;color:var(--atlas-ink)}
.atlas-metricas strong small{font-size:.45em;color:var(--atlas-muted);margin-left:3px}
.atlas-metricas>div:not(.atlas-intro)>span{font-size:clamp(10px,.8vw,14px);color:var(--atlas-muted)}
body.hy-tv:not(.hy-tv-muro) .atlas-panel .hy-ov2.tv{grid-template-columns:minmax(0,1fr) minmax(245px,24%);gap:20px;height:100%;min-height:0;align-items:stretch;align-content:stretch}
.atlas-panel .hy-ov2-m{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;min-height:0}
.atlas-panel #hy-mapa{min-height:0;height:100%}
body.hy-tv:not(.hy-tv-muro) .atlas-panel .hy-mapas{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;height:100%;min-height:0}
body.hy-tv .atlas-panel .hy-mapa .mapcard{min-height:0;border-color:var(--atlas-line);padding:14px;border-radius:14px;overflow:hidden;background:linear-gradient(140deg,#122a3d99,#0b1b2b88)}
body.hy-tv .atlas-panel .hy-mapa .peru-card{display:flex;flex-direction:column;background:linear-gradient(150deg,#0a1827,#0c2132)}
body.hy-tv .atlas-panel .hy-mapa-tit{color:var(--atlas-ink);font-size:11px;margin:0 0 8px;min-height:32px;flex-shrink:0}
body.hy-tv .atlas-panel .hy-mapa-tit>span{color:var(--atlas-muted);font-size:9px}
body.hy-tv:not(.hy-tv-muro) .atlas-panel .hy-mapa .peru{width:100%;height:0;max-height:none;flex:1;min-height:150px}
body.hy-tv .atlas-panel .hy-mapa .peru .dep.vacio{fill:#142b3a;stroke:#254252;stroke-width:1}
body.hy-tv .atlas-panel .peru .atlas-departamento{stroke:#a7eeff;stroke-width:4;filter:drop-shadow(0 0 6px #70d9fa55)}
body.hy-tv .atlas-panel .hy-mapa .peru .pin .lbl{font-size:17px;fill:#d3e6f5;stroke:#071928;stroke-width:4;paint-order:stroke}
body.hy-tv .atlas-panel .hy-mapa .peru .pin.atlas-selected .dot{fill:#98e7ff;stroke:#fff;stroke-width:4}
body.hy-tv .atlas-panel .lima-card{position:relative;background:radial-gradient(ellipse at 65% 35%,#19445a88,transparent 70%),linear-gradient(135deg,#102b3c,#0b1e30)!important}
body.hy-tv .atlas-panel .lima-card:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#8ad6f905 1px,transparent 1px),linear-gradient(90deg,#8ad6f905 1px,transparent 1px);background-size:36px 36px;pointer-events:none}
body.hy-tv .atlas-panel .hy-mapa-tit .atlas-ciudad{display:flex;flex-direction:column;gap:6px;color:var(--atlas-ink);font:500 30px/1.1 'Archivo',sans-serif;letter-spacing:-.02em;text-transform:none}
.atlas-ciudad small{font:400 9px/1.2 'IBM Plex Mono',monospace;letter-spacing:.12em;color:var(--atlas-cyan)}
body.hy-tv .atlas-panel .hy-mapa-tit .atlas-badge{border:1px solid #497086;background:#16364b;padding:7px 9px;border-radius:20px;color:#ccecf8;font-size:10px;letter-spacing:0;text-transform:none}
body.hy-tv:not(.hy-tv-muro) .atlas-panel .hy-mapa .lima{height:0;min-height:150px;max-height:none;flex:1;position:relative;margin:2px 0}
body.hy-tv .atlas-panel .hy-mapa .lima .ld{fill:#1c3b4d;stroke:#567b8e;stroke-width:.7;vector-effect:non-scaling-stroke;transition:fill .35s,stroke .35s}
body.hy-tv .atlas-panel .hy-mapa .lima .ld.vacio{fill:#173344;stroke:#365365}
body.hy-tv .atlas-panel .hy-mapa .lima .ld.con-alto{fill:#2c607d;stroke:#75a2b8}
body.hy-tv .atlas-panel .hy-mapa .lima .ld.con-bajo{fill:#624a5e;stroke:#c48d9c}
body.hy-tv .atlas-panel .hy-mapa .lima .ld.atlas-distrito{fill:#387892;stroke:#a1eeff;stroke-width:1.8;filter:drop-shadow(0 0 6px #77dfff44)}
body.hy-tv .atlas-panel .hy-mapa .pin,body.hy-tv .atlas-panel .hy-mapa .dep.con{pointer-events:auto;cursor:pointer}
body.hy-tv .atlas-panel .lima .pin .dot{fill:#326c94;stroke:#d7edff;stroke-width:.5;filter:drop-shadow(0 1px 2px #0008)}
body.hy-tv .atlas-panel .lima .pin.critico .dot{fill:#ce757f}
body.hy-tv .atlas-panel .lima .pin.medio .dot{fill:#7b8796}
body.hy-tv .atlas-panel .lima .pin.atlas-selected .dot{fill:#b9eeff;stroke:#fff;stroke-width:.8}
body.hy-tv .atlas-panel .lima .pin.atlas-selected .num{fill:#0b2e42}
.atlas-halo{fill:#97e4ff15;stroke:#9ce9ff;stroke-width:.4;opacity:0}
.atlas-selected>.atlas-halo{opacity:1;stroke-dasharray:1.5 1}
body.hy-tv .atlas-panel .lima-distritos-nombres>text{font-size:3.1px;stroke:#102d3d;stroke-width:1;fill:#bed7e6}
body.hy-tv:not(.hy-tv-muro) .atlas-panel .hy-lima-leyenda{position:relative;grid-template-columns:1fr 1fr;gap:4px 8px;border-color:var(--atlas-line);padding-top:8px;margin-top:6px;flex-shrink:0}
body.hy-tv .atlas-panel .hy-lima-leyenda li{padding:0;display:block;min-width:0}
.atlas-panel .hy-lima-leyenda button{display:flex;align-items:center;gap:7px;width:100%;color:#b9cfdf;background:transparent;border:1px solid transparent;padding:5px 6px;border-radius:7px;cursor:pointer;text-align:left;font:400 clamp(10px,.72vw,13px)/1.25 'IBM Plex Sans',sans-serif}
.atlas-panel .hy-lima-leyenda .atlas-selected button{background:#22516b;border-color:#5b92a9;color:#fff}
body.hy-tv .atlas-panel .hy-lima-leyenda button b{width:17px;height:17px;font-size:9px}
.atlas-panel button:focus-visible,.atlas-panel .pin:focus-visible{outline:2px solid #a4e7ff;outline-offset:3px}
.atlas-panel #hy-rampa .hy-rampa{font-size:11px;gap:5px;color:var(--atlas-muted)}
.atlas-panel #hy-rampa .hy-rampa i{width:24px;height:6px;border-radius:2px}
.atlas-panel #hy-rampa .hy-pie,.atlas-panel #hy-rampa .hy-mapa-cob{font-size:10px;color:var(--atlas-muted);margin:4px 0 0;line-height:1.35}
body.hy-tv .atlas-panel .hy-ov2-r{min-height:0;display:flex;flex-direction:column;border:1px solid var(--atlas-line);border-radius:14px;background:linear-gradient(150deg,#15344a99,#091725);padding:15px;overflow:auto}
.atlas-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#061320;border-radius:9px;margin-bottom:20px;flex:none}
.atlas-tabs button{padding:8px 4px;border:0;border-radius:6px;background:transparent;color:var(--atlas-muted);font:500 11px/1.3 'IBM Plex Sans',sans-serif;cursor:pointer}
.atlas-tabs button[aria-pressed=true]{background:#23445c;color:#f1f8ff;box-shadow:0 2px 8px #0003}
.atlas-ficha{--foco:#a2e4f5;flex:1;min-height:0}
.atlas-ficha[data-tono=bajo]{--foco:#f6a1a8}
.atlas-ficha[data-tono=sin],.atlas-ficha[data-tono=medio]{--foco:#c1ccd7}
.atlas-localidad{font:400 11px/1.4 'IBM Plex Sans',sans-serif;color:var(--foco);display:flex;align-items:center;gap:6px}
.atlas-localidad i{display:inline-block;width:5px;height:5px;background:var(--foco);border-radius:50%;box-shadow:0 0 9px var(--foco);flex:none}
body.hy-tv .atlas-panel .atlas-ficha h3{font:500 clamp(19px,1.6vw,29px)/1.15 'Archivo',sans-serif;letter-spacing:-.02em;margin:14px 0 20px;color:var(--atlas-ink)}
.atlas-valor{font:500 clamp(48px,5vw,90px)/.95 'Archivo',sans-serif;letter-spacing:-.07em;color:var(--foco);font-variant-numeric:tabular-nums}
.atlas-valor small{font-size:.37em;letter-spacing:-.03em;margin-left:4px}
.atlas-medida{font-size:11px;color:var(--atlas-muted);margin:10px 0 20px}
.atlas-delta{font:500 16px/1.4 'IBM Plex Sans',sans-serif;color:var(--foco)}
.atlas-delta span{display:block;font-weight:400;font-size:11px;color:var(--atlas-muted)}
.atlas-medidor{height:5px;background:#345063;border-radius:4px;position:relative;margin-top:18px}
.atlas-medidor i{display:block;height:100%;background:var(--foco);border-radius:4px}
.atlas-medidor b{position:absolute;top:-4px;width:1px;height:13px;background:white}
.atlas-escala{display:flex;justify-content:space-between;font:400 9px/1.4 'IBM Plex Mono',monospace;color:var(--atlas-muted);margin-top:7px}
.atlas-ficha dl{margin:22px 0 0;display:flex;flex-direction:column;gap:10px;font-size:12px}
.atlas-ficha dl>div{display:flex;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid var(--atlas-line)}
.atlas-ficha dt{color:var(--atlas-muted)}
.atlas-ficha dd{margin:0;color:var(--atlas-ink);text-align:right}
.atlas-contexto{font-size:10px;line-height:1.5;color:var(--atlas-muted);margin:15px 0}
.atlas-navegar{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--atlas-line);padding-top:12px;margin-top:12px;color:var(--atlas-muted);font:400 11px/1.2 'IBM Plex Mono',monospace}
.atlas-navegar button{border:1px solid #3b617a;background:#19364b;color:#e4f7ff;width:34px;height:30px;border-radius:7px;cursor:pointer}
.atlas-panel [hidden]{display:none!important}
body.hy-tv .atlas-panel .hy-tv-lista .hy-rk{padding:7px 0;gap:5px}
body.hy-tv .atlas-panel .hy-tv-lista .hy-rk .n{font-size:11px;color:var(--atlas-ink)}
body.hy-tv .atlas-panel .hy-tv-lista .hy-rk .v{font-size:13px;color:var(--atlas-ink)}
body.hy-tv .atlas-panel .hy-tv-lista h3{font-size:10px;color:var(--atlas-muted)}
body.hy-tv .atlas-panel .hy-tv-nota{font-size:10px;color:var(--atlas-muted)}
@media(min-width:901px) and (max-height:850px){
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-h h2{font-size:29px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-h{margin-bottom:8px}
 :where(body:not(.hy-tv-escala)) .atlas-metricas{padding:8px 0;gap:10px}:where(body:not(.hy-tv-escala)) .atlas-metricas strong{font-size:25px}:where(body:not(.hy-tv-escala)) .atlas-metricas>div{padding-left:12px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-c{gap:10px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .mapcard{padding:10px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa-tit .atlas-ciudad{font-size:23px;gap:4px}
 :where(body:not(.hy-tv-escala)) .atlas-tabs{margin-bottom:12px}:where(body:not(.hy-tv-escala)) .atlas-tabs button{font-size:10px;padding:6px 3px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .atlas-ficha h3{font-size:19px;margin:8px 0 14px}:where(body:not(.hy-tv-escala)) .atlas-valor{font-size:54px}:where(body:not(.hy-tv-escala)) .atlas-medida{margin:7px 0 12px;font-size:10px}:where(body:not(.hy-tv-escala)) .atlas-ficha dl{margin-top:12px;gap:7px;font-size:10px}:where(body:not(.hy-tv-escala)) .atlas-contexto{font-size:9px;margin:8px 0}:where(body:not(.hy-tv-escala)) .atlas-navegar{padding-top:8px;margin-top:7px}:where(body:not(.hy-tv-escala)) .atlas-medidor{margin-top:12px}
 :where(body:not(.hy-tv-escala)) .atlas-panel .hy-lima-leyenda button{font-size:10px;padding:3px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-tv-lista .hy-rk{padding:4px 0}
}
@media(max-width:1000px){
 :where(body:not(.hy-tv-escala)) .atlas-metricas{grid-template-columns:repeat(4,1fr)}:where(body:not(.hy-tv-escala)) .atlas-metricas .atlas-intro{display:none}
 body.hy-tv:not(.hy-tv-muro):where(:not(.hy-tv-escala)) .atlas-panel .hy-mapas{grid-template-columns:1fr;grid-template-rows:1.2fr 1fr}
 body.hy-tv:not(.hy-tv-muro):where(:not(.hy-tv-escala)) .atlas-panel .hy-ov2.tv{grid-template-columns:minmax(0,1fr) 245px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-ov2.tv .hy-ov2-r{display:flex}
}
@media(max-width:650px){
 body.hy-tv:not(.hy-tv-muro):where(:not(.hy-tv-escala)) .atlas-panel .hy-ov2.tv{grid-template-columns:1fr;height:auto}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-c{overflow:auto;display:block}:where(body:not(.hy-tv-escala)) .atlas-metricas{margin-bottom:12px!important}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .lima{min-height:250px}:where(body:not(.hy-tv-escala)) .atlas-panel .hy-ov2-r{margin-top:12px}
 :where(body:not(.hy-tv-escala)) .atlas-metricas>div{padding-left:6px}:where(body:not(.hy-tv-escala)) .atlas-metricas strong{font-size:22px}
}
@media(prefers-reduced-motion:no-preference){
 .atlas-ficha h3,.atlas-ficha .atlas-valor{animation:atlas-revela .4s ease both}
 @keyframes atlas-revela{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
}
/* A presentation keeps its stage; navigation stays on one quiet line. */
body.hy-tv:has(.atlas-panel.activa) .hy-tv-chips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
body.hy-tv:has(.atlas-panel.activa) .hy-tv-chips button{flex-shrink:0;font-size:10px;padding:5px 8px}
body.hy-tv:has(.atlas-panel.activa) .hy-tv-pie{padding:8px 0;margin-top:12px}
body.hy-tv:has(.atlas-panel.activa) .hy-tv-fila{margin-bottom:8px}
body.hy-tv .atlas-panel #hy-rampa .hy-rampa{font-size:10px;line-height:1.4}
body.hy-tv .atlas-panel #hy-rampa .hy-pie,body.hy-tv .atlas-panel #hy-rampa p{font-size:10px;line-height:1.4;margin:3px 0 0}
body.hy-tv .atlas-panel .hy-ov2-r{gap:0}
.atlas-ficha{overflow:auto}
.atlas-navegar{flex-shrink:0}
@media(min-width:651px) and (max-height:1050px){
 :where(body:not(.hy-tv-escala)) .atlas-metricas{padding:10px 0;gap:12px}:where(body:not(.hy-tv-escala)) .atlas-metricas strong{font-size:28px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-h h2{font-size:32px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-h{margin-bottom:10px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa-tit .atlas-ciudad{font-size:25px;gap:4px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .mapcard{padding:12px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-lima-leyenda button{padding:3px 5px;font-size:10px}
 :where(body:not(.hy-tv-escala)) .atlas-tabs{margin-bottom:12px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .atlas-ficha h3{font-size:21px;margin:10px 0 14px}
 :where(body:not(.hy-tv-escala)) .atlas-valor{font-size:62px}:where(body:not(.hy-tv-escala)) .atlas-medida{font-size:10px;margin:8px 0 14px}
 :where(body:not(.hy-tv-escala)) .atlas-ficha dl{font-size:11px;margin-top:14px;gap:7px}:where(body:not(.hy-tv-escala)) .atlas-ficha dl>div{padding-bottom:7px}
 :where(body:not(.hy-tv-escala)) .atlas-contexto{display:none}:where(body:not(.hy-tv-escala)) .atlas-navegar{padding-top:10px;margin-top:10px}
}
.atlas-selector{display:none}
@media(min-width:651px) and (max-height:800px){
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-panel-h h2{font-size:27px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-sub{font-size:10px}
 :where(body:not(.hy-tv-escala)) .atlas-metricas{padding:7px 0}:where(body:not(.hy-tv-escala)) .atlas-metricas strong{font-size:24px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .mapcard{padding:10px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .lima{min-height:100px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-lima-leyenda{display:none}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa-tit .atlas-badge{display:none}
 :where(body:not(.hy-tv-escala)) .atlas-selector{display:block;max-width:160px;width:45%;background:#15364b;border:1px solid #466b82;border-radius:6px;color:#d3ebfb;padding:6px;font:400 10px 'IBM Plex Sans',sans-serif;text-transform:none;pointer-events:auto}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-ov2-r{padding:10px}
 :where(body:not(.hy-tv-escala)) .atlas-tabs{margin-bottom:8px}:where(body:not(.hy-tv-escala)) .atlas-tabs button{padding:6px 3px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .atlas-ficha h3{font-size:19px;margin:7px 0 10px}
 :where(body:not(.hy-tv-escala)) .atlas-localidad{font-size:10px}:where(body:not(.hy-tv-escala)) .atlas-valor{font-size:48px}
 :where(body:not(.hy-tv-escala)) .atlas-medida{font-size:9px;margin:6px 0 9px}:where(body:not(.hy-tv-escala)) .atlas-delta{font-size:13px;line-height:1.3}:where(body:not(.hy-tv-escala)) .atlas-delta span{font-size:9px}
 :where(body:not(.hy-tv-escala)) .atlas-medidor,:where(body:not(.hy-tv-escala)) .atlas-escala{display:none}
 :where(body:not(.hy-tv-escala)) .atlas-ficha dl{margin-top:12px}:where(body:not(.hy-tv-escala)) .atlas-ficha dl>div:last-child{display:none}
 :where(body:not(.hy-tv-escala)) .atlas-navegar{padding-top:8px;margin-top:7px}
}
/* Atlas uses an adaptive grid; the older scene shrinker must not scale it. */
body.hy-tv .atlas-panel .hy-panel-c{zoom:1!important}
body.hy-tv .atlas-panel .hy-tv-lista .hy-rk{pointer-events:auto;cursor:pointer}
/* National geography remains visible at every width. Labels use leader lines
   from the recorded city coordinates, with real city aggregates. */
body.hy-tv .atlas-panel .hy-mapa .peru-card{display:flex!important;position:relative;background:radial-gradient(ellipse at 65% 38%,#15354b,#0a1928 75%)}
body.hy-tv .atlas-panel .peru-card:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#8ad6f907 1px,transparent 1px),linear-gradient(90deg,#8ad6f907 1px,transparent 1px);background-size:40px 40px}
body.hy-tv .atlas-panel .peru-card .hy-mapa-tit{position:relative;pointer-events:auto}
body.hy-tv .atlas-panel .atlas-ampliar-pais{font:500 10px 'IBM Plex Sans',sans-serif;padding:8px 10px;background:#1b3c52;border:1px solid #456f88;border-radius:7px;color:#d2eeff;cursor:pointer}
body.hy-tv .atlas-panel .hy-mapa .peru .dep{stroke:#6b8d9f;stroke-width:.65;vector-effect:non-scaling-stroke;transition:stroke .3s,filter .3s}
body.hy-tv .atlas-panel .hy-mapa .peru .dep.vacio{fill:#193849;stroke:#3a586a;stroke-width:.65}
body.hy-tv .atlas-panel .hy-mapa .peru .atlas-departamento{stroke:#b3edff;stroke-width:2;filter:drop-shadow(0 0 10px #8be5ff66)}
.atlas-ciudad-linea{fill:none;stroke:#7598b0;stroke-width:1.5;opacity:.65;pointer-events:none}
.atlas-pais-halo{fill:#98e1ff0a;stroke:#93c6df;stroke-width:1.5;opacity:.5;pointer-events:none}
body.hy-tv .atlas-panel .peru .pin .dot{fill:#c0dfef;stroke:#132e43;stroke-width:3}
body.hy-tv .atlas-panel .peru .atlas-ciudad-nombre{font:500 28px 'IBM Plex Sans',sans-serif;fill:#e0f0fc;stroke:#0b2032;stroke-width:4;paint-order:stroke;letter-spacing:0}
body.hy-tv .atlas-panel .peru .atlas-ciudad-dato{font:400 22px 'IBM Plex Mono',monospace;fill:#a0bdd0;stroke:#0b2032;stroke-width:3;paint-order:stroke}
body.hy-tv .atlas-panel .peru .atlas-selected .atlas-ciudad-nombre{fill:#c1f1ff;font-weight:600}
.atlas-selected .atlas-ciudad-linea{stroke:#b7edff;opacity:1;stroke-width:2.5}
.atlas-selected .atlas-pais-halo{opacity:1;stroke:#b7edff;fill:#a5ecff33;stroke-width:2}
.atlas-pais-orientacion{fill:#aac7d9;font:400 22px 'IBM Plex Mono',monospace;pointer-events:none;text-anchor:middle}
.atlas-pacifico{fill:#6e9ab5;font-size:20px;letter-spacing:7px}
.atlas-pais-control{position:relative;display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:10px;border-top:1px solid var(--atlas-line);flex-shrink:0}
.atlas-pais-control label,.atlas-sedes-ciudad{display:flex;flex-direction:column;gap:6px;font:400 9px/1.4 'IBM Plex Mono',monospace;color:var(--atlas-muted);letter-spacing:.06em}
.atlas-pais-control select,.atlas-sedes-ciudad select{border:1px solid #456c82;border-radius:6px;color:#e2f0fa;background:#16384d;padding:7px 10px;font:400 12px 'IBM Plex Sans',sans-serif;min-width:130px;max-width:100%}
.atlas-ciudad-resumen{display:flex;gap:10px;align-items:center}
.atlas-ciudad-resumen strong{color:var(--atlas-ink);font:500 27px/1 'Archivo',sans-serif;letter-spacing:-.03em;white-space:nowrap}
.atlas-ciudad-resumen strong small{font-size:.48em;margin-left:2px}
.atlas-ciudad-resumen>span{font-size:10px;line-height:1.5;color:var(--atlas-muted)}
.atlas-sedes-ciudad{margin:15px 0 0;padding-top:12px;border-top:1px solid var(--atlas-line)}
.atlas-sedes-ciudad select{font-size:11px;width:100%;min-width:0}
body.hy-tv:not(.hy-tv-muro) .atlas-panel #hy-mapa[data-enfoque=peru] .hy-mapas{grid-template-columns:1fr;grid-template-rows:1fr}
.atlas-panel #hy-mapa[data-enfoque=peru] .lima-card{display:none}
@media(max-width:1000px) and (min-width:651px){
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapas .mapcard{padding:9px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-lima-leyenda{display:none}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa-tit .atlas-ciudad{font-size:22px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa-tit .atlas-badge{display:none}
 :where(body:not(.hy-tv-escala)) .atlas-selector{display:block;max-width:150px;width:45%;background:#15364b;border:1px solid #466b82;border-radius:6px;color:#d3ebfb;padding:6px;font:400 10px 'IBM Plex Sans',sans-serif;pointer-events:auto}
 :where(body:not(.hy-tv-escala)) .atlas-pais-control{padding-top:5px;gap:5px}:where(body:not(.hy-tv-escala)) .atlas-pais-control label{font-size:8px;gap:2px}:where(body:not(.hy-tv-escala)) .atlas-pais-control select{font-size:10px;min-width:100px;padding:4px 6px}
 :where(body:not(.hy-tv-escala)) .atlas-ciudad-resumen strong{font-size:20px}:where(body:not(.hy-tv-escala)) .atlas-ciudad-resumen>span{font-size:8px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .lima{min-height:100px}
}
@media(min-width:1001px) and (max-height:800px){
 :where(body:not(.hy-tv-escala)) .atlas-pais-control{padding-top:5px;gap:8px}:where(body:not(.hy-tv-escala)) .atlas-pais-control label{font-size:8px;gap:2px}:where(body:not(.hy-tv-escala)) .atlas-pais-control select{font-size:10px;min-width:100px;padding:4px 6px}
 :where(body:not(.hy-tv-escala)) .atlas-ciudad-resumen strong{font-size:21px}:where(body:not(.hy-tv-escala)) .atlas-ciudad-resumen>span{font-size:8px}
 :where(body:not(.hy-tv-escala)) .atlas-sedes-ciudad{margin-top:8px;padding-top:8px;font-size:8px}:where(body:not(.hy-tv-escala)) .atlas-sedes-ciudad select{font-size:10px;padding:5px}
}
@media(max-width:650px){
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .hy-mapa .peru{min-height:360px;flex:auto}
 body.hy-tv:not(.hy-tv-muro):where(:not(.hy-tv-escala)) .atlas-panel .hy-mapas{height:auto;grid-template-rows:auto auto}
 :where(body:not(.hy-tv-escala)) .atlas-pais-control{gap:8px}:where(body:not(.hy-tv-escala)) .atlas-ciudad-resumen>span{font-size:9px}
}
@media(max-height:800px),(max-width:1000px){
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .peru .atlas-ciudad-nombre{font-size:40px;stroke-width:5px}
 body.hy-tv:where(:not(.hy-tv-escala)) .atlas-panel .peru .atlas-ciudad-dato{display:none}
}
/* The metropolitan card follows the selected city; Lima keeps its existing map. */
body.hy-tv .atlas-panel .lima.ciudad-svg .pin .dot{stroke-width:2.5}
body.hy-tv .atlas-panel .lima.ciudad-svg .pin .num{font-size:15px}
body.hy-tv .atlas-panel .lima.ciudad-svg .pin.atlas-selected .dot{stroke-width:3}
body.hy-tv .atlas-panel .lima.ciudad-svg .atlas-halo{stroke-width:1.5;stroke-dasharray:6 4}
.ciudad-nombres{pointer-events:none}
body.hy-tv .atlas-panel .ciudad-nombres text{font:500 16px 'IBM Plex Sans',sans-serif;letter-spacing:.8px;fill:#d8e8f1;stroke:#173344;stroke-width:4;paint-order:stroke;text-anchor:middle}
.ciudad-norte{fill:#b8d4e4;font:400 16px 'IBM Plex Mono',monospace;text-anchor:middle;pointer-events:none}
.ciudad-aviso{fill:#b8d4e4;font:400 20px 'IBM Plex Sans',sans-serif;text-anchor:middle}
.atlas-fuente-mapa{position:relative;flex:none;color:var(--atlas-muted);font:400 9px/1.4 'IBM Plex Sans',sans-serif;margin:7px 0 0}
.atlas-fuente-mapa a{color:inherit;text-decoration:underline;text-underline-offset:2px}
body.hy-tv .atlas-panel .lima-card:has(.hy-lima-leyenda li:only-child) .hy-lima-leyenda{grid-template-columns:1fr}
