/* CDMX AL MEMENTO · Mapa ilustrado. Paleta rosa mexicano / tinta / crema. */
.mapa-body{background:radial-gradient(circle at 65% -8%,#6b29465e,transparent 35%),#0d1119}
.mapa-main{padding-bottom:32px}
.mapa-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:48px 0 35px}
.mapa-hero h1{font-size:clamp(33px,4.8vw,60px);letter-spacing:-2px;line-height:1.12;margin:9px 0 16px}
.mapa-hero h1 span{color:#f5a1c9}
.mapa-hero p:not(.eyebrow){max-width:740px;color:#bdc9d5;font-size:15px;line-height:1.75}
.mapa-hero-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}
.mapa-hero-chips span{border:1px solid #704763;background:#3e283e;color:#f9dbea;border-radius:99px;padding:7px 12px;font-size:12px;font-weight:800}
.mapa-hero-badge{min-width:186px;height:170px;display:grid;place-content:center;text-align:center;border:3px dashed #ffd0e8;border-radius:28px;background:#f2aacc;color:#46203e;transform:rotate(6deg);box-shadow:9px 12px 0 #321e3e}
.mapa-hero-badge strong{font-size:48px;line-height:1.12;letter-spacing:-3px}
.mapa-hero-badge span{font-size:10px;font-weight:950;letter-spacing:1.7px}
.mapa-layout{display:grid;grid-template-columns:290px minmax(0,1fr);align-items:start;gap:20px}
.mapa-panel{min-width:0;background:#181f2b;border:1px solid #604761;border-radius:21px;overflow:hidden;box-shadow:0 20px 45px #05060b55}
.mapa-panel-top{padding:23px 21px 17px;background:linear-gradient(125deg,#50243e,#222335)}
.mapa-panel-top h2{font-size:25px;line-height:1.2;margin:5px 0 10px;letter-spacing:-.5px}
.mapa-panel-top p:last-child{color:#d0c6d8;font-size:12px;line-height:1.65;margin:0}
.mapa-panel-top .eyebrow{margin:0;font-size:10px}
.mapa-capas{display:grid;padding:11px 12px;gap:4px}
.mapa-capa{position:relative;display:flex;align-items:center;gap:10px;padding:10px 9px;border:1px solid transparent;border-radius:12px;cursor:pointer;transition:background .2s,border-color .2s}
.mapa-capa:hover,.mapa-capa:focus-within{background:#293344;border-color:#715574}
.mapa-capa:has(input:checked){background:#35283c;border-color:#8e5b83}
.mapa-capa input{margin:0;min-width:0;width:17px;height:17px;accent-color:#e86fa9;flex:none}
.mapa-capa strong{display:block;font-size:13px;line-height:1.3;color:#f8f2f8}
.mapa-capa small{display:block;color:#a8b2c5;font-size:10px;margin-top:2px}
.capa-punto{width:11px;height:11px;flex-shrink:0;border:2px solid #ffffffc2;border-radius:5px;box-shadow:0 0 0 2px #101821}
.capa-punto.metro{background:#ee76ab}.capa-punto.metrobus{background:#a46cee}.capa-punto.ligero{background:#e1ab37}.capa-punto.cablebus{background:#61b6dd}.capa-punto.trolebus{background:#55d5bb}.capa-punto.rtp{background:#496fee}.capa-punto.camiones{background:#ec855a}.capa-punto.monumentos{background:#ffd99a}
.mapa-status{font-size:11px;color:#cfdaea;line-height:1.6;margin:0 21px 10px;min-height:20px}
.mapa-status[data-error]{color:#ffb5bf}
.mapa-panel-buttons{display:flex;gap:7px;margin:0 13px 14px}
.mapa-panel-buttons button{flex:1;min-width:0;font-size:11px;font-weight:750;padding:9px 6px;border-radius:9px;border:1px solid #815477;color:#ffe0f0;background:#402741;cursor:pointer}
.mapa-panel-buttons button:hover{background:#633957}
.mapa-sites{padding:17px 17px 19px;border-top:1px solid #405067}
.mapa-sites h2{font-size:16px;margin:0 0 13px}
.mapa-search-label{display:block;color:#b4bdd2;font-size:11px;margin-bottom:6px}
.mapa-sites input{width:100%;min-width:0;background:#101927;border:1px solid #586078;border-radius:10px;font-size:13px;padding:10px 11px}
.mapa-sites-list{margin-top:12px;display:grid;gap:7px;max-height:300px;overflow-y:auto;scrollbar-color:#9b6e94 #212c3c}
.mapa-lugar{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:11px 10px;border:1px solid #36445b;border-radius:10px;background:#212c3a;color:#f8f9ff;font-size:12px;font-weight:730;cursor:pointer}
.mapa-lugar span{font-size:22px}
.mapa-lugar:hover,.mapa-lugar:focus-visible{border-color:#f4a4c8;background:#3c2f45}
.mapa-view-wrap{min-width:0}
.mapa-view-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}
.mapa-view-head .eyebrow{margin:0 0 3px;font-size:10px}
.mapa-view-head h2{font-size:clamp(22px,2.8vw,31px);margin:0;letter-spacing:-.6px}
#mapa-centrar{border:1px solid #855678;color:#ffe0ef;background:#3c2a3f;padding:10px 12px;border-radius:11px;font-weight:800;font-size:12px;cursor:pointer;white-space:nowrap}
#mapa-centrar:hover{background:#58314e}
.mapa-frame{position:relative;background:#fff0dc;border:7px solid #f4c1d6;border-radius:24px;overflow:hidden;box-shadow:0 17px 0 #8b4672,0 32px 35px #05060b88}
#mapa-interactivo{width:100%;height:430px;min-height:320px;background:linear-gradient(135deg,#fef4df,#dae7df);z-index:0}
.mapa-frame .leaflet-container{font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.mapa-frame .leaflet-tile-pane{filter:saturate(.83) contrast(.9) sepia(.11)}
.mapa-frame .leaflet-control-zoom a{background:#ffe5f1;color:#72284e;border-color:#efb7d0;font-weight:950;font-size:20px}
.mapa-frame .leaflet-control-zoom a:hover{background:#f6b8d8}
.mapa-frame .leaflet-control-attribution{font-size:9px;background:#fff9f0e6}
.mapa-frame .leaflet-popup-content-wrapper{background:#fff8ea;color:#202b3b;border:3px solid #f0b6cf;border-radius:17px;box-shadow:5px 7px 0 #28334726}
.mapa-frame .leaflet-popup-tip{background:#fff8ea}
.mapa-frame .leaflet-popup-content{margin:14px;min-width:175px}
.mapa-popup h3{font-size:17px;margin:5px 0 7px;color:#402239;line-height:1.25}
.mapa-popup p{font-size:12px;line-height:1.5;color:#4c5365;margin:6px 0}
.mapa-popup .mapa-type{color:#913b70;font-size:10px;font-weight:950;letter-spacing:1px;text-transform:uppercase}
.mapa-popup .mapa-route{font-size:11px;font-weight:850;color:#222a3a}
.mapa-sticker{position:absolute;z-index:400;right:19px;top:16px;pointer-events:none;transform:rotate(5deg);border-radius:11px;background:#fff4df;color:#8b3964;border:2px solid #d97daa;box-shadow:3px 4px 0 #6b2a4b70;padding:7px 11px;font-size:9px;font-weight:950;letter-spacing:1.1px}
.mapa-pin{position:relative;width:64px;height:70px}
.mapa-pin svg{overflow:visible;filter:drop-shadow(2px 3px 0 #523e46a8)}
.mapa-pin:after{content:'';position:absolute;width:9px;height:9px;bottom:3px;left:27px;border-radius:50%;background:#b05e7e;border:2px solid #fff5e8}
.mapa-pin--selected svg{filter:drop-shadow(0 0 7px #ee478d) drop-shadow(2px 3px 0 #523e46a8)}
.mapa-pin-wrap{background:transparent;border:0}
.mapa-pin-wrap:focus-visible{outline:3px solid #ec4e96;border-radius:12px}
.mapa-controls-note{margin:23px 5px 11px;color:#abb8c9;font-size:11px;line-height:1.6}
.mapa-legend{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:12px 14px;border:1px solid #35465a;border-radius:12px;background:#192231;color:#b5c6d8;font-size:11px}
.mapa-legend strong{color:#fff;margin-right:7px}
.mapa-legend span{padding:4px 7px;border-radius:7px;background:#263449}
.mapa-about{margin:45px 0;padding:23px 25px;font-size:12px;line-height:1.9}
.mapa-about strong{color:#fff}
.mapa-end{margin:40px 0 20px;display:flex;align-items:center;justify-content:space-between;gap:25px;background:linear-gradient(115deg,#472844,#1b2739);border:1px solid #6c4b6d;border-radius:18px;padding:27px}
.mapa-end h2{font-size:24px;margin:5px 0}
.mapa-end p:not(.eyebrow){font-size:13px;color:#c7bfce;margin-bottom:0}
@media(max-width:980px){
 .mapa-layout{grid-template-columns:245px minmax(0,1fr);gap:13px}
 .mapa-hero-badge{min-width:130px;height:135px}
 .mapa-hero-badge strong{font-size:38px}
 #mapa-interactivo{height:400px}
}
@media(max-width:750px){
 .mapa-hero{padding-top:27px;align-items:flex-start}
 .mapa-hero-badge{display:none}
 .mapa-layout{display:flex;flex-direction:column}
 .mapa-view-wrap{order:0;width:100%}
 .mapa-panel{order:1;width:100%;display:block}
 .mapa-capas{grid-template-columns:repeat(2,minmax(0,1fr))}
 #mapa-interactivo{height:365px;min-height:310px}
 .mapa-sites-list{max-height:270px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mapa-frame{border-width:5px}
}
@media(max-width:460px){
 .mapa-main{padding-inline:13px}
 .mapa-hero h1{letter-spacing:-1.5px}
 .mapa-hero-chips span{font-size:10px;padding:6px 10px}
 .mapa-view-head{align-items:start}
 .mapa-view-head h2{font-size:23px}
 #mapa-centrar{font-size:10px;white-space:normal;max-width:116px;line-height:1.3}
 .mapa-sticker{font-size:7px;top:9px;right:9px}
 #mapa-interactivo{min-height:290px;height:340px}
 .mapa-capas{gap:1px;padding:7px}
 .mapa-capa{padding:9px 5px;gap:6px}
 .mapa-capa strong{font-size:11px}
 .mapa-capa small{font-size:9px}
 .mapa-end{flex-direction:column;align-items:start}
 .mapa-sites-list{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.mapa-body *, .mapa-body *:before,.mapa-body *:after{scroll-behavior:auto!important;transition:none!important}}

/* Vista resumida en un cuadro y ampliación real a pantalla completa. */
.mapa-frame .mapa-ampliar{position:absolute;z-index:900;top:15px;left:15px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:2px solid #a15886;border-radius:12px;background:#ffedf5;color:#642a4e;box-shadow:0 3px 0 #6138556b;padding:10px 13px;font-size:12px;font-weight:900;cursor:pointer}
.mapa-frame .mapa-ampliar:hover,.mapa-frame .mapa-ampliar:focus-visible{background:#ffd5e8;color:#542644}
body.mapa-expandido{overflow:hidden}
.mapa-frame.mapa-ampliado{position:fixed;inset:0;z-index:2000;width:100vw;height:100dvh;border:0;border-radius:0;box-shadow:none;background:#fff7e9}
.mapa-frame.mapa-ampliado #mapa-interactivo{width:100%;height:100%;min-height:0}
.mapa-frame.mapa-ampliado .mapa-ampliar{top:max(14px,env(safe-area-inset-top));left:15px}
.mapa-frame.mapa-ampliado .mapa-sticker{top:max(14px,env(safe-area-inset-top))}
@media(max-width:550px){.mapa-frame .mapa-ampliar{top:10px;left:10px;padding:8px 10px;font-size:10px}.mapa-frame:not(.mapa-ampliado) .mapa-sticker{top:auto;right:auto;left:9px;bottom:25px}}

/* Capa de parques y áreas naturales. */
.capa-punto.naturaleza{background:#4bbd8b}
.mapa-lugar:focus-visible{outline:2px solid #b8f9cb;outline-offset:2px}
