*{box-sizing:border-box}body{margin:0;background:#edf3f8;color:#173650;font:14px system-ui,-apple-system,Segoe UI,sans-serif}.shell{max-width:2000px;margin:auto;background:white;border:1px solid #d0deea;border-radius:14px;overflow:hidden}header{padding:15px 20px;background:linear-gradient(110deg,#123e59,#0783a4);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px}header img{width:104px}h1{font-size:clamp(20px,2.3vw,29px);margin:4px 0 0;letter-spacing:-.5px}.eyebrow{font-weight:800;font-size:10px;letter-spacing:1.6px}button,select,input{font:inherit;border:1px solid #bed1df;border-radius:8px;background:#fff;color:#163d57;padding:9px 12px}button{cursor:pointer;font-weight:750;box-shadow:0 2px 1px #dce6ec}button:hover{background:#e9f4fb}button.active,button[aria-pressed=true]{background:#087da9;border-color:#087da9;color:white;box-shadow:inset 0 1px 2px #005477}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #f0ad39;outline-offset:2px}.toolbar{padding:13px 17px;display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap;align-items:end}.segmented{display:flex;gap:6px;flex-wrap:wrap}.choices{display:flex;gap:12px}.choices label{position:relative;display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800;color:#506e85}.choices input{width:230px;font-size:13px}.choices select{font-size:13px}.variables{display:flex;gap:6px;overflow:auto;padding:10px 17px;background:#f5f9fc;border-block:1px solid #dce7ee}.variables button{white-space:nowrap;padding:9px 13px;font-size:13px}.statusline{display:flex;align-items:center;justify-content:space-between;padding:9px 18px;gap:12px;min-height:42px}h2{font-size:16px;margin:0}.statusline span{font-size:12px;color:#5f778a}.map-wrap{position:relative}#map{height:clamp(340px,48vh,570px);width:100%;background:#dfe9ee}.map-tools{position:absolute;z-index:800;top:12px;left:12px;display:flex;gap:5px;max-width:calc(100% - 24px);flex-wrap:wrap}.map-tools button,.map-tools select{box-shadow:0 2px 9px #19375026;background:#fff;font-size:12px}.map-tools #plus,.map-tools #minus{font-size:21px;line-height:22px;width:38px;padding:6px}.map-tools #pan[aria-pressed=true]{background:#087da9;color:white}.legend{position:absolute;bottom:30px;left:12px;z-index:700;border-radius:9px;background:#fffffff2;padding:9px 12px;box-shadow:0 2px 12px #17365020;max-width:calc(100% - 150px);font-size:11px}.swatches{display:flex;gap:0;margin-top:5px}.swatches span{min-width:34px;display:flex;flex-direction:column;text-align:center;font-size:10px}.swatches i{height:9px;margin-bottom:3px}.map-logo{position:absolute;right:14px;bottom:29px;width:112px;z-index:700;background:#ffffffce;border-radius:8px;padding:6px}.value-icon{background:none;border:0}.value-label{display:block;min-width:44px;padding:2px 5px;background:#ffffffed;border:1px solid #ffffff;border-radius:7px;box-shadow:0 1px 4px #20344645;font-weight:850;font-size:15px;text-align:center;white-space:nowrap;line-height:23px;border-bottom:3px solid var(--network)}.value-label.local{border-radius:2px 9px 2px 9px}.detail{position:relative;padding:18px 22px;background:#f6fafd;border-top:1px solid #cbdde9}.detail h3{margin:0 35px 3px 0;font-size:21px}.detail .meta{font-size:12px;color:#597489}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:14px}.metric{background:#fff;border:1px solid #dce6ef;border-radius:9px;padding:11px}.metric strong{display:block;font-size:24px;color:#075d88;margin:4px 0}.metric span,.metric small{font-size:11px;color:#5b7386;display:block}.close{position:absolute;right:16px;top:16px}.notice{position:absolute;top:72px;left:50%;transform:translateX(-50%);z-index:750;background:#fffffff5;border:1px solid #ccdce5;border-radius:8px;padding:12px 18px;box-shadow:0 2px 12px #17365022;max-width:90%;text-align:center}footer{padding:12px 18px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:#5b7386}.results{position:absolute;z-index:1000;top:100%;right:0;max-height:300px;overflow:auto;background:white;border:1px solid #c3d7e6;box-shadow:0 5px 15px #17365033;width:310px}.results button{display:block;width:100%;text-align:left;border:0;border-radius:0;box-shadow:none;font-size:13px}.leaflet-container{font-family:inherit}.leaflet-popup-content{font-size:13px}.network-dot{border-radius:50%;width:7px;height:7px;display:inline-block;margin-right:5px;background:#0678b5}@media(max-width:620px){header{padding:12px}header img{width:74px}.toolbar{padding:10px;gap:10px}.choices{width:100%}.choices label:last-child{flex:1}.choices input{width:100%}.segmented button{padding:8px 10px;font-size:12px}.variables{padding:8px 10px}.statusline{padding:9px 11px;align-items:start;flex-direction:column;gap:3px}#map{height:72vh;min-height:570px}.map-tools{gap:4px;left:8px;top:8px}.map-tools button,.map-tools select{padding:8px}.map-tools select{max-width:116px}.legend{bottom:27px;max-width:calc(100% - 24px)}.map-logo{width:80px;bottom:83px}.swatches span{min-width:27px}.metrics{grid-template-columns:repeat(2,1fr)}.detail{padding:15px}.value-label{font-size:14px}}

.export-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 17px;border-bottom:1px solid #dce7ee}.export-tools button,.export-tools a{font-size:12px}.export-tools a{color:#086c98;padding:6px;cursor:pointer}.export-tools span{font-size:12px;color:#526d80}@media(max-width:620px){#map{height:65vh;min-height:420px}.export-tools{padding:8px 10px}}

/* Cabecera compacta: datos y mapa con prioridad visual. */
header{padding:7px 14px;min-height:42px}header>div{display:flex;align-items:center;gap:14px}header h1{margin:0;font-size:20px;color:#fff}header .eyebrow{font-size:9px;letter-spacing:.6px;color:#d2e9f2}header img{width:76px}
.toolbar{padding:7px 12px;gap:8px;align-items:center}.segmented{gap:4px}.segmented button{padding:6px 10px;font-size:12px}.choices{gap:10px;align-items:center}.choices label{flex-direction:row;align-items:center;gap:6px}.choices input{width:185px}.choices select,.choices input{padding:6px 8px}
.variable-row{display:flex;align-items:center;background:#f5f9fc;border-block:1px solid #dce7ee;padding:5px 12px;gap:8px}.variables{padding:0;border:0;gap:5px;flex:0 1 auto}.variables button{padding:6px 10px;font-size:12px}.variable-row>select{font-size:12px;padding:6px 8px;max-width:235px;flex-shrink:0}.statusline{padding:4px 13px;min-height:26px}.statusline h2{font-size:13px}.statusline span{font-size:11px}footer{padding:6px 13px;font-size:10px}#map{height:62vh;min-height:420px}
@media(max-width:620px){header{padding:7px 10px}header>div{display:block}header .eyebrow{display:none}header h1{font-size:18px}header img{width:63px}.toolbar{padding:6px 8px;gap:6px}.choices{width:100%;gap:7px}.choices label{font-size:10px}.choices input{width:100%;min-width:0}.choices label:last-child{min-width:0}.segmented{width:100%}.segmented button{flex:1;padding:6px 4px;font-size:11px}.variable-row{padding:5px 8px;flex-wrap:wrap;gap:5px}.variables{flex:1 1 100%}.variables button{padding:6px 8px;font-size:11px}.variable-row>select{width:100%;max-width:none}.statusline{flex-direction:row;align-items:center;gap:6px}.statusline span{font-size:10px}#map{min-height:400px}.map-tools button,.map-tools select{padding:6px}.map-logo{width:70px}.legend{font-size:10px}}

header .header-actions{display:flex;align-items:center;gap:12px}#toggle-values{font-size:12px;padding:6px 10px;white-space:nowrap;color:#123e59;background:#fff;border-color:#b9d9e7}#toggle-values[aria-pressed=true]{background:#d7f0fb;color:#104563;box-shadow:inset 0 1px 3px #43849b55}@media(max-width:620px){header .header-actions{display:flex;gap:6px}#toggle-values{font-size:11px;padding:6px 8px}header .header-actions img{width:48px}header h1{font-size:16px}}

/* METEOELX_LEYENDAS_COMPACTAS_20260929 */
.legend{left:auto;right:10px;bottom:28px;width:245px;max-width:calc(100% - 24px);padding:5px 7px;border-radius:6px;font-size:10px;line-height:12px;box-shadow:0 1px 5px #17365020}
.swatches{margin-top:3px;width:100%}.swatches span{flex:1;min-width:0;font-size:9px;line-height:11px}.swatches i{height:6px;margin-bottom:2px}
.legend>div:last-child{margin-top:3px!important;font-size:9px;line-height:11px}
.map-logo{right:12px;left:auto;top:12px;bottom:auto;width:76px;padding:4px;border-radius:5px}
.leaflet-bottom.leaflet-left .leaflet-control-scale{margin-left:10px;margin-bottom:7px}.leaflet-control-scale-line{font-size:10px;line-height:11px;padding:1px 4px}
.detail{padding:8px 14px}.detail h3{font-size:17px;line-height:20px;margin:0 35px 2px 0}.detail .meta{font-size:10px;line-height:12px}
.metrics{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px;margin-top:7px}.metric{padding:4px 7px;border-radius:6px}.metric strong{font-size:18px;line-height:21px;margin:2px 0}.metric span,.metric small{font-size:10px;line-height:12px}.detail .close{right:10px;top:7px;padding:3px 9px}
@media(max-width:620px){.legend{right:8px;left:auto;bottom:27px;width:225px;padding:5px 6px;max-width:calc(100% - 24px)}.map-logo{right:9px;top:58px;bottom:auto;width:60px}.detail{padding:8px 10px}.detail h3{font-size:16px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:6px}.metric{padding:4px 6px}.metric strong{font-size:18px}}

/* METEOELX_CAPSULAS_20260929 */
.value-icon .value-label,.value-icon .value-label.local{min-width:0;width:100%;height:22px;padding:1px 4px;border:1px solid #17365055;border-radius:7px;box-shadow:0 1px 2px #17365030;font-size:12px;line-height:18px;font-weight:800;background:var(--capsule-bg);color:var(--capsule-fg);white-space:nowrap;text-align:center}
@media(max-width:620px){.value-icon .value-label,.value-icon .value-label.local{font-size:12px;line-height:18px}}

/* METEOELX_RED_CONTADORES_20260930 */
.shell header .header-actions>img{width:124px;height:auto;max-height:58px;object-fit:contain}
.shell .map-logo{width:150px;height:auto;max-width:25%;top:12px;right:12px;bottom:auto;padding:5px;background:#ffffffe6;border-radius:8px}
.top10-scopes{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.top10-scopes button{font-size:13px;padding:8px 12px}
@media(max-width:620px){
 .shell header .header-actions>img{width:96px;max-height:44px}
 .shell .map-logo{width:110px;max-width:30%;top:62px;right:8px;padding:4px}
 #regions{flex-wrap:wrap}#regions button{flex:1 1 42%;white-space:nowrap}
 .shell header{flex-wrap:wrap;gap:6px}.shell .header-actions{margin-left:auto}
}

/* METEOELX_MOVIL_DIRECTO_20260930 */
.mobile-only{display:none}
@media(max-width:620px){
 html,body{width:100%;margin:0}
 .shell{width:100%;min-width:0;border-radius:10px;overflow:hidden}
 .shell header{display:grid;grid-template-columns:minmax(0,1fr) 78px;align-items:center;gap:6px;padding:8px}
 .shell header>div:first-child{min-width:0}
 .shell header h1{font-size:17px;line-height:21px;margin:0;letter-spacing:-.3px}
 .shell header .header-actions{display:contents}
 .shell header .header-actions>img{grid-column:2;grid-row:1;width:78px;max-height:36px;justify-self:end}
 .shell header .mobile-actions{grid-column:1 / -1;grid-row:2;display:flex;gap:6px;align-items:center;min-width:0}
 .shell header #toggle-values,.shell header #top10-toggle,.shell header #mobile-options-toggle{font-size:12px;min-height:40px;padding:7px 9px;margin:0;flex:1;white-space:nowrap}
 #mobile-options-toggle{color:#163d57;background:#fff}
 #mobile-options-toggle[aria-expanded=true]{background:#d7f0fb}
 .mobile-only{display:block}
 #mobile-options[hidden]{display:none!important}
 #mobile-options{padding:10px;background:#f4f8fb;border-bottom:1px solid #d3e0e8}
 #mobile-options .choices{display:grid;grid-template-columns:1fr;gap:9px;min-width:0}
 #mobile-options label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;font-size:12px;color:#36576d;font-weight:650;position:relative}
 #mobile-options input,#mobile-options select{width:100%;min-width:0;max-width:none;font-size:16px;min-height:44px;padding:8px}
 #mobile-base-slot{margin-top:9px}
 #mobile-options .results{width:100%;max-height:240px}
 #mobile-options .results button{min-height:44px}
 .shell .toolbar{display:block;padding:5px 8px;min-width:0}
 .shell #regions{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;gap:5px;padding-bottom:3px;scrollbar-width:thin}
 .shell #regions button{flex:0 0 auto;min-height:40px;padding:8px 10px;font-size:12px;white-space:nowrap}
 .shell .variable-row{display:block;padding:5px 8px;min-width:0}
 .shell .variable-row #variables,.shell .variable-row #more-variables{display:none}
 .shell #mobile-variable{width:100%;max-width:none;min-height:42px;padding:7px 10px;font-size:16px;font-weight:650}
 .shell .statusline{display:flex;flex-wrap:wrap;gap:2px 8px;min-height:25px;padding:4px 9px}
 .shell .statusline h2{font-size:12px;min-width:0}
 .shell .statusline span{font-size:10px;margin-left:auto}
 .shell #map{min-height:300px}
 .shell .map-tools{top:8px;left:8px;gap:4px;max-width:calc(100% - 95px);flex-wrap:nowrap}
 .shell .map-tools #plus,.shell .map-tools #minus{width:40px;min-width:40px;height:42px;padding:6px}
 .shell .map-tools #reset{font-size:11px;height:42px;padding:6px}
 .shell .map-logo{width:76px;max-width:24%;top:8px;right:7px;bottom:auto;padding:3px;pointer-events:none}
 .shell .legend{position:relative;top:auto;bottom:auto;left:auto;right:auto;margin:5px 8px 5px auto;width:245px;max-width:calc(100% - 16px);box-shadow:none;border:1px solid #dce6ef;pointer-events:none}
 .shell .leaflet-control-attribution{font-size:8px;line-height:10px;max-width:100%;overflow-wrap:anywhere}
 .shell .leaflet-bottom.leaflet-right{max-width:calc(100% - 80px)}
 .shell .notice{top:66px;width:calc(100% - 24px);font-size:12px;padding:9px}
 .shell .detail{padding:9px}
 .shell .detail h3{font-size:16px;line-height:20px;margin-right:42px;overflow-wrap:anywhere}
 .shell .detail .close{min-width:40px;min-height:40px;right:6px;top:5px}
 .shell .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .shell .metric{min-width:0;padding:7px}
 .shell .metric strong{font-size:19px;line-height:23px}
 .shell footer{padding:7px 9px;font-size:9px;line-height:13px}
 body.top10-active #mobile-options,body.top10-active #mobile-options-toggle{display:none!important}
}
