:root{--ink:#20392f;--muted:#79867f;--green:#24684e;--border:#e5eae5;--private:#d18b43;--sidebar:390px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:#f7f9f5}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d4a550;outline-offset:3px}a{color:var(--green)}[hidden]{display:none!important}.header{height:80px;background:white;display:flex;align-items:center;padding:0 30px;gap:25px;border-bottom:1px solid var(--border);position:relative;z-index:900}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:24px;font-weight:700;letter-spacing:-.8px;color:var(--ink)}.brand-icon{background:var(--green);color:white;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;font-weight:800;font-size:25px;position:relative}.brand-icon>span{position:absolute;right:2px;top:0;font-size:17px;color:#d9cf93}.brand-caption{display:block;font-size:8px;letter-spacing:1px;font-weight:600;margin-top:3px}.header-divider{height:30px;width:1px;background:var(--border)}.header-title{font-size:14px;font-weight:600}.province-label{margin-left:auto;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:8px}.province-label i,.live-dot{height:7px;width:7px;border-radius:50%;background:#67906d;display:inline-block}.button{background:var(--green);border:1px solid var(--green);color:white;border-radius:7px;padding:10px 15px;font-size:12px;font-weight:600}.button.quiet{background:white;color:var(--ink);border-color:var(--border)}.workspace{height:calc(100dvh - 80px);display:flex}.sidebar{width:var(--sidebar);flex-shrink:0;background:#fff;overflow:auto;z-index:800;border-right:1px solid var(--border);scrollbar-width:thin;display:flex;flex-direction:column}.sidebar-intro{padding:28px 27px 22px;background:linear-gradient(125deg,#f1f5ed,#fbfcf9)}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:#758571}.sidebar-intro h1{font-size:29px;line-height:1.17;font-weight:600;letter-spacing:-1.1px;margin:12px 0}.sidebar-intro h1>span{color:#c4964f}.sidebar-intro p{font-size:12px;color:var(--muted);margin:0}.tabs{display:flex;padding:0 25px;border-bottom:1px solid var(--border);gap:22px}.tabs button{padding:17px 0 14px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);font-size:12px;font-weight:600}.tabs button[aria-selected=true]{border-bottom-color:var(--green);color:var(--green)}.tabs span{background:#f0f3ee;padding:2px 5px;border-radius:4px;font-size:10px;margin-left:4px}.filters{padding:22px 25px 16px;border-bottom:1px solid var(--border)}.search-field{display:flex;align-items:center;border:1px solid #dce4dc;border-radius:7px;padding:0 12px;gap:9px;background:#fff;height:42px}.search-field:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #24684e13}.search-field>span{font-size:23px;color:#7c8d80}.search-field input{width:100%;min-width:0;border:0;outline:none;background:none;font-size:12px;color:var(--ink)}kbd{border:1px solid var(--border);border-radius:3px;padding:1px 5px;color:#9ca49d;font-size:10px}.management{margin:18px 0 16px;padding:0;border:0;display:flex;gap:8px}.management legend{font-size:11px;font-weight:600;margin-bottom:8px}.management label{display:flex;flex:1;align-items:center;gap:6px;border:1px solid var(--border);border-radius:6px;padding:9px 8px;font-size:11px;cursor:pointer}.management label:has(input:checked){background:#f6f9f4;border-color:#c5d7c5}input[type=checkbox]{accent-color:var(--green);height:14px;width:14px;flex-shrink:0;margin:0}.management small{margin-left:auto;font-size:10px;color:var(--muted)}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}.public{background:var(--green)}.private{background:var(--private)}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;margin-bottom:13px}select{border:1px solid #dce4dc;border-radius:6px;padding:10px 26px 10px 10px;font-size:11px;width:100%;color:#526559;background:#fff;min-width:0}.filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.data-note{font-size:10px;line-height:1.5;color:#879188;margin:0 0 13px}.filter-bottom{display:flex;align-items:center;justify-content:space-between}.viewport-filter{font-size:10px;display:flex;align-items:center;gap:7px;color:#617367}.text-button{border:0;background:none;color:var(--green);font-size:11px;font-weight:600;padding:5px 0}.text-button:hover{text-decoration:underline}.results-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 25px 10px}.results-heading h2{font-size:12px;margin:0;font-weight:500;color:var(--muted)}#result-count{font-size:17px;color:var(--ink);font-weight:650}.school-status{font-size:12px;color:var(--muted);padding:8px 25px;line-height:1.5}.school-status:empty{display:none}.school-status button{margin:8px 0;display:block}.results{padding:0 15px}.school-card{display:flex;align-items:flex-start;gap:11px;background:white;border:1px solid transparent;border-bottom-color:#edf0eb;border-radius:6px;width:100%;padding:13px 10px;text-align:left}.school-card:hover,.school-card.selected{background:#f1f6ee;border-color:#dce7d8}.school-symbol{background:#edf3e9;color:var(--green);border:1px solid #dce6d6;border-radius:7px;display:grid;place-items:center;min-width:32px;height:32px;font-size:18px}.private-card .school-symbol{background:#fcf4e9;border-color:#f0e2ce;color:#ae793d}.school-copy{min-width:0;flex:1}.school-copy strong{font-size:12px;line-height:1.45;display:block;font-weight:600}.school-copy>span{font-size:10px;line-height:1.5;color:var(--muted);display:block;margin:4px 0}.school-copy small{font-size:9px;display:inline-block;background:#f1f4ed;color:#6b7e68;border-radius:3px;padding:3px 5px;margin-right:4px}.school-arrow{font-size:14px;color:#98a494;margin-top:8px}.more{display:block;margin:14px auto;background:#f1f6ee;color:var(--green);border-color:var(--border)}.export-row{padding:17px 25px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.sidebar-footer{border-top:1px solid var(--border);padding:19px 25px;display:flex;gap:18px;align-items:center;margin-top:auto;min-height:80px;color:#899182;font-size:10px;line-height:1.5}.footer-mark{font-size:23px;color:var(--green);font-weight:800;letter-spacing:-1px;line-height:.9}.footer-mark>span{display:block;font-size:10px;letter-spacing:1px;font-weight:500;margin-top:5px}.sidebar-footer>a{margin-left:auto;text-decoration:none;font-size:20px}.map-area{flex:1;position:relative;min-width:0}#map{height:100%;width:100%;background:#e8ede2}.map-heading{position:absolute;z-index:450;top:25px;left:25px;background:#ffffffed;box-shadow:0 3px 15px #213b3010;border:1px solid #ffffffb5;backdrop-filter:blur(6px);padding:13px 18px;border-radius:9px;display:flex;align-items:center;gap:11px}.map-heading strong{display:block;font-size:12px;font-weight:600}.map-heading div>span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.map-heading .live-dot{box-shadow:0 0 0 5px #edf3e7}.map-actions{position:absolute;top:120px;right:24px;z-index:450;display:flex;flex-direction:column;gap:8px}.map-actions button{width:35px;height:35px;border:1px solid #dbe2d8;background:white;border-radius:6px;color:#4b6550;font-size:24px;box-shadow:0 2px 8px #203b3010}.map-bottom{position:absolute;z-index:450;bottom:48px;left:25px;right:25px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px;pointer-events:none}.map-bottom>*{pointer-events:auto}.legend{background:#ffffffed;padding:14px 17px;border-radius:8px;box-shadow:0 2px 8px #203b3010;display:flex;align-items:center;gap:14px;font-size:10px}.legend>span{display:flex;gap:6px;align-items:center}.basemap-label{background:white;padding:10px 13px;border-radius:8px;display:flex;align-items:center;gap:10px;font-size:10px;white-space:nowrap;box-shadow:0 2px 8px #203b3010}.basemap-label select{border:0;background:#f3f5f0;width:125px;padding:7px}.coordinates{position:absolute;z-index:450;bottom:17px;left:25px;font-size:10px;color:#657762;background:#ffffffc9;padding:4px 7px;border-radius:3px}.leaflet-touch .leaflet-bar{border:1px solid #dbe2d8;border-radius:7px;overflow:hidden;box-shadow:0 2px 8px #203b3010}.leaflet-top.leaflet-right .leaflet-control-zoom{margin-top:25px;margin-right:24px}.leaflet-bar a{color:#49644e}.leaflet-control-attribution{font-size:9px!important;max-width:100%}.leaflet-control-scale{margin-bottom:90px!important;margin-right:25px!important}.leaflet-popup-content-wrapper{border-radius:10px}.leaflet-popup-content{margin:18px;max-height:350px;overflow:auto;font:12px/1.5 Inter,"Segoe UI",Arial,sans-serif;min-width:215px}.popup-tag{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:var(--green)}.leaflet-popup-content h3{font-size:16px;line-height:1.4;margin:7px 0 13px;color:var(--ink)}.popup-details{margin:0;display:grid;grid-template-columns:95px 1fr;gap:6px}.popup-details dt{color:var(--muted)}.popup-details dd{margin:0;overflow-wrap:anywhere}.popup-directions{display:block;padding:9px;background:#edf4e9;text-align:center;border-radius:5px;margin-top:16px;text-decoration:none;color:var(--green)!important;font-weight:600}.layer-intro{padding:22px 25px 12px}.layer-intro h2{font-size:16px;margin:0 0 8px}.layer-intro p,.layer-footnote{font-size:11px;line-height:1.6;color:var(--muted)}.layer-search{margin:0 25px 15px}.layer-group{margin:0 25px;border-bottom:1px solid var(--border);padding:12px 0}.layer-group summary{cursor:pointer;font-size:11px;font-weight:700;padding:3px 0 10px}.layer-row{display:flex;align-items:center;gap:10px;padding:9px 0;font-size:12px;cursor:pointer}.layer-row img{width:20px;height:20px;object-fit:contain}.layer-row>span{flex:1}.layer-row small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.layer-row .layer-error{color:#b15b41}.layer-footnote{padding:10px 25px}.toast{position:fixed;z-index:2000;bottom:25px;left:50%;transform:translateX(-50%);background:#20392f;color:white;box-shadow:0 5px 25px #0002;padding:13px 20px;border-radius:8px;font-size:12px;max-width:90vw}.mobile-toggle{display:none}.empty-state{padding:25px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.7}.empty-state strong{display:block;color:var(--ink);font-size:14px}
@media(min-width:1500px){:root{--sidebar:420px}.sidebar-intro{padding:34px 30px}.sidebar-intro h1{font-size:33px}}
@media(max-width:1050px){:root{--sidebar:345px}.header{padding:0 20px;gap:18px}.province-label{display:none}.header .quiet{margin-left:auto}.sidebar-intro h1{font-size:27px}.legend{gap:8px;padding:12px}.legend .eyebrow{display:none}.map-heading{left:18px}.map-bottom{left:18px;right:18px}.filter-grid{gap:7px}.management label{padding:9px 5px}}
@media(max-width:700px){.header{height:65px;padding:0 15px;gap:12px}.brand{font-size:20px;gap:8px}.brand-icon{width:33px;height:33px;font-size:22px}.brand-caption{font-size:6px;letter-spacing:.5px}.header-divider,.header-title{display:none}.header .quiet{font-size:10px;padding:9px}.workspace{height:calc(100dvh - 65px)}.sidebar{display:none;position:absolute;top:65px;bottom:0;left:0;right:0;width:100%;padding-bottom:75px}.sidebar.open{display:flex}.sidebar-intro{padding:22px 25px}.sidebar-intro h1{font-size:27px}.sidebar-intro h1 br{display:none}.map-heading{left:15px;top:15px;padding:11px 14px}.map-heading div>span{font-size:9px}.leaflet-top.leaflet-right .leaflet-control-zoom{margin-top:15px;margin-right:15px}.map-actions{right:15px;top:105px}.map-bottom{left:15px;right:15px;bottom:93px;gap:8px}.legend{padding:12px;gap:9px}.basemap-label{padding:5px;font-size:0}.basemap-label select{font-size:10px;width:115px}.coordinates{bottom:65px;left:15px;font-size:9px}.mobile-toggle{display:block;position:fixed;z-index:950;bottom:22px;left:50%;transform:translateX(-50%);box-shadow:0 4px 16px #1a423239;white-space:nowrap;padding:13px 26px;border-radius:24px}.leaflet-control-scale{margin-bottom:140px!important;margin-right:15px!important}.toast{bottom:80px}.leaflet-control-attribution{font-size:8px!important}.export-row{padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.related-maps{display:flex;gap:15px;flex-wrap:wrap;padding:15px 25px;border-top:1px solid var(--border);font-size:10px}.related-maps a{text-decoration:none}.related-maps a:hover{text-decoration:underline}
/* Herramientas de análisis espacial */
.tabs{gap:18px;padding-left:22px;padding-right:22px;justify-content:space-between}.tabs button{white-space:nowrap;font-size:11px}.tabs span{margin-left:2px}
.tool-section{margin:0 25px;padding:18px 0;border-bottom:1px solid var(--border)}.tool-section:last-child{border-bottom:0}.tool-section h3{margin:0 0 10px;color:#9aab91;font-size:11px;display:flex;align-items:center;gap:12px}.tool-section h3 span{font-size:14px;color:var(--ink);font-weight:600}.tool-section>p{font-size:11px;line-height:1.6;color:var(--muted);margin:8px 0 14px}.tool-buttons{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0 15px}.tool-buttons .button{flex:1}.tool-section input[type=text],.tool-section input[type=number]{width:100%;border:1px solid #dce4dc;border-radius:6px;padding:10px;font-size:12px;color:var(--ink);background:white;min-width:0}.tool-result{display:block;background:#f2f6ee;border:1px solid #e0e8da;padding:12px;border-radius:7px;font-size:12px;color:#4d6550;line-height:1.7;margin:14px 0;overflow-wrap:anywhere}.tool-section .viewport-filter{margin:12px 0}.tool-section .data-note{font-size:10px}.tool-section .tool-attribution{font-size:10px;line-height:1.8}.tool-attribution a{color:var(--green)}[data-tool-active]{background:#e9efdf!important;border-color:#8ca275!important}.tool-picking{cursor:crosshair!important}.tool-picking .leaflet-interactive{cursor:crosshair!important}.draw-bar{position:absolute;z-index:700;top:100px;left:25px;max-width:min(440px,calc(100% - 95px));background:#fffffff5;border:1px solid #ccd9c4;box-shadow:0 4px 20px #203b3020;border-radius:9px;padding:14px 16px;backdrop-filter:blur(6px)}.draw-bar>span{display:block;font-size:12px;line-height:1.6;color:var(--ink)}.draw-bar>div{display:flex;align-items:center;gap:20px;margin-top:12px}.draw-bar .button{padding:7px 14px}.analysis-label{background:#fff!important;border:1px solid #d9dfd2!important;box-shadow:0 1px 5px #0001!important;font-size:10px!important;padding:2px 6px!important;color:#4d6550!important}
@media(max-width:700px){.tabs{gap:12px}.draw-bar{top:auto;bottom:180px;left:15px;max-width:calc(100% - 30px);width:360px;padding:12px 14px}.draw-bar>span{font-size:11px}.draw-bar>div{gap:16px}.tool-section{margin:0 25px}}
