:root{font-family:"Segoe UI",Arial,sans-serif;color:#173e41;background:#f6f7f2;--ink:#123f43;--line:#d9dfd7;--paper:#fafbf6}*{box-sizing:border-box}body{margin:0;height:100dvh;display:grid;grid-template-rows:78px minmax(0,1fr) 30px}header{display:flex;align-items:center;gap:24px;background:#fff;border-bottom:1px solid var(--line);padding:0 23px}.brand{border-right:1px solid var(--line);padding-right:24px;display:flex}.brand img{object-fit:contain;width:132px;height:55px}.heading span{font-size:.77rem;color:#546e68}.heading h1{font:600 clamp(1.05rem,2vw,1.55rem)/1.18 Georgia,serif;margin:3px 0;color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;color:var(--ink)}header button{margin-left:auto;background:white;border:1px solid var(--line);border-radius:6px;padding:9px 13px;font-size:.84rem}main{display:flex;min-height:0;position:relative}aside{width:292px;display:flex;flex-direction:column;flex-shrink:0;padding:24px 17px 0;min-height:0;background:var(--paper);z-index:800;border-right:1px solid var(--line)}h2{font:600 1.35rem Georgia,serif;margin:0}.sectionhead,.listhead{display:flex;align-items:center;justify-content:space-between}.sectionhead{margin-bottom:18px}.sectionhead button{border:0;background:transparent;font-size:1.45rem}.listhead{margin:18px 0 8px;padding-top:15px;border-top:1px solid var(--line);font-size:.82rem}.listhead button{background:transparent;border:0;text-decoration:underline}label{font-size:.78rem;font-weight:600;margin:0 0 5px}input[type=search],select{width:100%;border:1px solid #aab8b0;background:#fff;color:var(--ink);padding:10px;border-radius:5px;margin-bottom:12px;font-size:.88rem}#results{overflow:auto;flex:1;min-height:0}#results button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid #e3e9df;background:transparent;padding:10px 4px;font-size:.88rem}#results button:hover,#results button:focus-visible{background:#e1ede6}#results small{display:block;color:#55756e;padding-top:2px}#detail{background:#e3efe7;margin:0 -17px;padding:16px;border-top:1px solid #abc2b3;font-size:.83rem}#detail strong{display:block;font:600 1.15rem Georgia,serif;margin:0 0 7px}.canvas{position:relative;flex:1;min-width:0}#map{height:100%;background:#f0eee5}nav{position:absolute;top:14px;left:14px;display:flex;gap:5px;z-index:700}nav button,#closeMethod{background:var(--ink);color:white;border:0;border-radius:5px;font-weight:600;padding:10px 13px;box-shadow:0 2px 6px #173e411c}#layersPanel{position:absolute;left:14px;top:62px;z-index:900;max-height:calc(100% - 88px);overflow:auto;width:min(315px,calc(100% - 28px));background:var(--paper);padding:16px;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #183e4129}#layersPanel h3{font-size:.8rem;color:#3d635f;margin:14px 0 6px;padding-top:10px;border-top:1px solid var(--line)}#layersPanel label.item{display:flex;gap:7px;align-items:center;padding:3px 0;font-weight:400;font-size:.86rem}#layersPanel small{color:#67746d;font-size:.68rem;margin-left:auto}input{accent-color:var(--ink)}.swatch{width:8px;height:8px;border-radius:2px;flex-shrink:0}.north{position:absolute;right:15px;top:13px;z-index:650;display:grid;justify-items:center;color:#163c3e;background:#ffffffe0;padding:5px 8px;border-radius:5px;font-size:.75rem}.north i{border-bottom:19px solid var(--ink);border-left:5px solid transparent;border-right:5px solid transparent}.tag{font:600 10px/1.15 "Segoe UI",sans-serif;color:#274743;text-shadow:1px 1px 2px white,-1px -1px 2px white,0 0 4px white;white-space:nowrap;pointer-events:none}.tag span{display:block;transform:translate(-50%,-50%);width:max-content}.leaflet-popup-content dl{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;font-size:.78rem}.leaflet-popup-content dd{margin:0}.leaflet-popup-content dt{color:#657470}.leaflet-popup-content h3{font-size:1rem;margin:5px 0}.leaflet-popup-content p{margin:5px 0}#notice:not(:empty){position:absolute;bottom:40px;left:14px;z-index:900;background:#fff;padding:9px 12px;border-radius:5px;max-width:80%;font-size:.8rem}footer{display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:var(--ink);color:white;font-size:.72rem}footer a{color:#fff}dialog{border:1px solid var(--line);border-radius:8px;max-width:min(500px,92vw);color:var(--ink);padding:24px;line-height:1.5}dialog a{color:#176968}dialog::backdrop{background:#102c2d66}aside.closed{display:none}[hidden]{display:none!important}.leaflet-control-scale-line{background:#ffffffe0}button:focus-visible,a:focus-visible{outline:3px solid #ca801b;outline-offset:2px}@media(max-width:720px){body{grid-template-rows:66px minmax(0,1fr) 30px}header{padding:0 10px;gap:10px}.brand{padding-right:10px}.brand img{width:75px;height:auto}.heading span{font-size:.65rem}header button{font-size:.7rem;padding:6px}aside{position:absolute;top:0;bottom:0;left:0;width:min(310px,90vw);box-shadow:4px 0 15px #243c3d22}footer span:first-child{display:none}footer{padding:0 8px;font-size:.65rem}}
#handle{font:600 1.12rem Georgia,serif;cursor:move;touch-action:none;padding:5px 0}#detail{max-height:32%;overflow:auto}#detail a{display:block;color:#125b62;margin-top:6px}

body{grid-template-rows:80px minmax(0,1fr) auto}
header,footer{background:var(--ink);color:white}
header{border-bottom:0;gap:18px}
.brand{padding:5px 9px;background:white;border:0;border-radius:4px}
.heading h1{font-size:clamp(1.15rem,2.4vw,1.72rem);color:white}
.heading span{color:#e2efea;font-size:.92rem}
.edition{margin-left:auto;white-space:nowrap;text-align:right;font-size:.77rem;line-height:1.45}
.edition time{display:block}
header button{margin-left:0}
footer{min-height:40px;gap:12px;padding:5px 14px}
.downloads{display:flex;gap:15px}
.crs{text-align:right;line-height:1.3}
#hazardClasses .swatch{border:1px solid #b6c2c9;width:13px;height:13px}
@media(max-width:720px){
 body{grid-template-rows:auto minmax(0,1fr) auto}
 header{gap:8px;padding:7px 8px;flex-wrap:wrap}
 .brand{padding:3px 5px}.brand img{width:54px}
 .heading{flex:1;min-width:115px}.heading h1{font-size:1.05rem;line-height:1.1}.heading span{font-size:.73rem}
 .edition{font-size:.65rem}header button{max-width:60px}
 footer{gap:5px;padding:4px 6px}.downloads{flex-direction:column;gap:2px}
 .crs{font-size:.62rem}
}
.etiqueta-cursor{position:absolute;top:0;left:0;z-index:680;pointer-events:none;white-space:pre-line;max-width:min(330px,88%);padding:6px 9px;border:1px solid #719585;border-radius:5px;background:#fffffff5;color:#173e41;box-shadow:0 2px 8px #183e4133;font:600 12px/1.45 "Segoe UI",sans-serif}
.insignia{display:inline-grid;place-items:center;width:23px;height:23px;border:1.5px solid white;border-radius:50%;color:white;vertical-align:middle;flex-shrink:0}
.insignia svg{width:76%;height:76%}.mapa-icono .insignia{width:24px;height:24px;box-shadow:0 1px 4px #173e4180}
#results button .insignia{margin-right:7px}#layersPanel .insignia{width:19px;height:19px}
#detail{position:absolute;z-index:705;right:12px;top:68px;margin:0;width:min(320px,calc(100% - 24px));max-height:calc(100% - 156px);overflow:auto;padding:16px;background:var(--paper);border:1px solid #a8bcb1;border-radius:8px;box-shadow:0 5px 18px #183e4133}
#closeDetail{float:right;border:0;background:transparent;font-size:1.4rem;line-height:1;padding:0 3px 6px 10px}
#detail h3{font:600 1.16rem/1.2 Georgia,serif;margin:4px 0 10px}
#detail dl{display:grid;grid-template-columns:minmax(65px,auto) 1fr;gap:4px 9px;margin:8px 0;line-height:1.35}
#detail dt{color:#51675c}#detail dd{margin:0;overflow-wrap:anywhere}#detail p{font-size:.8rem}
#detail label{display:block;margin:12px 0 4px}#detail select{margin:0}
@media(max-width:720px){#detail{top:auto;bottom:32px;left:8px;right:auto;max-height:43%;width:min(330px,calc(100% - 60px));padding:12px}}
.header-actions{display:flex;align-items:center;gap:8px}.header-actions .help-button{flex:none;width:32px;height:32px;border:1.5px solid #d2e5db;border-radius:50%;font-size:1.05rem;font-weight:700;padding:0;background:transparent;color:white}
.guide{width:min(465px,92vw);max-height:85dvh;overflow:auto}.guide h2{line-height:1.15}.guide h3{font-size:1rem;margin:16px 0 4px}.guide p{margin:0 0 10px}.guide ol{padding-left:1.35em}.guide li{margin:8px 0}.guide-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.guide-actions button{border:1px solid #a0b6a9;border-radius:5px;padding:8px 12px;background:white}.guide-actions .primary{background:var(--ink);color:white;border-color:var(--ink)}
.hazard-master{display:flex;gap:6px;align-items:center;font-size:.9rem;cursor:pointer}#hazardClasses{margin:0;padding:3px 0 2px 16px;border:0}#hazardClasses legend{font-size:.75rem;color:#45625c}#hazardClasses:disabled label{opacity:.55}
.leaflet-right .base-key,.leaflet-right .leaflet-control-scale{margin:0 8px 2px 0;padding:3px 7px;background:#fffffff5;border:1px solid #81928a;border-radius:4px;color:#19362c;font:600 11px/1.2 "Segoe UI",sans-serif}
.leaflet-right .leaflet-control-scale-line{box-sizing:border-box;text-align:right;white-space:nowrap;font-weight:650;color:#17291e;text-shadow:none;background:transparent;border-color:#142c24}
.leaflet-control-scale-line:after{content:"";display:block;height:5px;margin:2px -5px -1px;background:linear-gradient(90deg,#163a2e 25%,#fff 25% 50%,#163a2e 50% 75%,#fff 75%);border-top:1px solid #142c24}
#map[data-base="hybrid"] .tag{color:white;text-shadow:1px 1px 2px #102117,-1px -1px 2px #102117,0 0 4px #102117}
@media(max-width:720px){.header-actions{gap:4px}.header-actions .help-button{width:26px;height:26px}.guide{padding:18px}.guide li{margin:6px 0}}
#map:is([data-base="hybrid"],[data-base="topo"]) .mapa-icono .insignia{outline:1.5px solid #18322c;box-shadow:0 0 0 2.5px #fffffff0}
#layers .swatch{box-shadow:0 0 0 1px #52675b88}
