/* alPAPA.org · 3.1 — versión optimizada: menos consultas, marca corregida y portada ajustada. */
:root{
  color-scheme:light;
  --ink:#123D50; --ink-soft:#31596A; --cyan:#0AA5B3; --cyan-bright:#0EBAC7;
  --cyan-weak:#E8F7F8; --line:#E3ECEE; --muted:#6B8590; --paper:#fff;
  font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
html,body{margin:0;min-width:320px;background:#F0F5F6;color:var(--ink)}
body{overflow-x:hidden}button,input{font:inherit}button{touch-action:manipulation}
button:focus-visible,input:focus-visible{outline:3px solid #61CAD3;outline-offset:2px}
[hidden]{display:none!important}
.app-shell{width:100%;max-width:640px;min-height:100svh;position:relative;margin:0 auto;background:#fff;box-shadow:0 12px 60px #12394d12}

/* BIENVENIDA — identidad en zona propia, SIN texto sobre la fotografía. */
.landing{min-height:100svh;background:linear-gradient(180deg,#fff 0%,#FAFCFC 80%);padding-bottom:env(safe-area-inset-bottom)}
.landing-brand{position:relative;z-index:5;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;background:#fff;padding:calc(26px + env(safe-area-inset-top)) 15px 18px;text-align:center;min-height:122px}
.brand{display:flex;align-items:baseline;justify-content:center;gap:0;font-weight:800;font-size:clamp(37px,10vw,49px);letter-spacing:-2.15px;line-height:1;white-space:nowrap}
.brand-word{color:var(--ink);font-weight:800;font-size:1em;letter-spacing:-.055em;animation:brandIn .68s cubic-bezier(.2,.8,.2,1) .08s both}
.brand-org{color:var(--cyan);font-weight:400;font-size:1em;letter-spacing:-.035em;animation:brandIn .68s cubic-bezier(.2,.8,.2,1) .22s both}
.landing-motto{margin:0;font-size:clamp(18px,5.2vw,22px);font-weight:800;letter-spacing:-.45px;line-height:1.22;color:var(--ink);animation:softIn .8s .48s both}

.pope-stage{position:relative;height:336px;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 82%,#DDF6F6 0%,#F1FAFA 42%,#fff 77%)}
.pope-halo{position:absolute;z-index:0;left:50%;top:11px;transform:translateX(-50%);width:min(92vw,390px);aspect-ratio:1;border-radius:100%;background:radial-gradient(circle at 50% 50%,#f9fefe 0%,#d4f4f4 54%,#e8f8f8 61%,transparent 71%);opacity:.84;animation:haloIn 1.2s .25s both}
.pope-ring{position:absolute;z-index:0;left:50%;top:24px;transform:translateX(-50%);width:min(90vw,345px);aspect-ratio:1;border:1px solid #7eced44a;border-radius:50%;animation:haloIn 1.2s .5s both}
.pope-picture{position:absolute;z-index:1;left:0;right:0;bottom:0;height:100%;pointer-events:none}
.pope-photo{position:absolute;left:50%;bottom:-87px;max-width:none;width:515px;height:auto;display:block;transform-origin:50% 75%;filter:drop-shadow(0 15px 26px #154d4b2a);animation:popeEntrance 1.5s cubic-bezier(.13,.79,.18,1) .25s both;will-change:transform,opacity;
  mask-image:linear-gradient(to bottom,#000 0%,#000 74%,transparent 99%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 74%,transparent 99%)}
.pope-fade{position:absolute;z-index:2;pointer-events:none;left:0;right:0;bottom:0;height:75px;background:linear-gradient(to bottom,transparent,#ffffff 97%)}
.form-card{position:relative;z-index:6;margin:-82px 13px 0;background:#fff;border:1px solid #edf2f3;border-radius:30px;box-shadow:0 21px 54px #133e5130;padding:25px 20px 19px;animation:cardSlide 1s cubic-bezier(.18,.79,.2,1) .4s both}

.card-eyebrow{display:flex;align-items:center;gap:9px;font-weight:900;letter-spacing:.15em;font-size:10px;color:var(--cyan)}
.pulse-dot{display:inline-block;flex:none;width:8px;height:8px;background:#10B8AB;border-radius:50%;box-shadow:0 0 0 4px #DCF6F1}
h1{font-size:clamp(24px,6.4vw,31px);line-height:1.1;letter-spacing:-1.05px;margin:12px 0 5px;font-weight:850}
.intro{color:#587483;font-size:14px;line-height:1.55;margin:0 0 19px;font-weight:500}
#form{display:grid;gap:14px}#form>label:not(.consent){display:grid;gap:7px;font-size:13px;font-weight:735;color:#204D5C}
#form input:not([type=checkbox]){width:100%;min-width:0;height:51px;font-size:16px;background:#FAFDFD;color:#143B4C;border:1px solid #D1E2E5;border-radius:14px;padding:0 15px;appearance:none;box-shadow:0 1px 2px #123d4d06}
#form input::placeholder{color:#B4C3C9}
#form input:not([type=checkbox]):focus{background:#fff;border-color:var(--cyan);box-shadow:0 0 0 4px #0c93a517;outline:0}
.consent{display:flex;align-items:flex-start;gap:11px;padding:14px 13px;border-radius:16px;background:#ECF7F8;font-size:12.5px;line-height:1.55;font-weight:450;color:#2B5665}
.consent input{margin:2px 0 0;width:21px;height:21px;flex:0 0 21px;accent-color:var(--cyan)}.consent strong{font-weight:800}
.primary-button{width:100%;min-height:55px;border:0;border-radius:16px;display:flex;justify-content:center;align-items:center;gap:12px;background:linear-gradient(110deg,#068B9A,#097787);color:white;font-size:16px;font-weight:820;box-shadow:0 13px 27px #0C809C3C;transition:transform .15s,filter .2s}
.primary-button:active{transform:scale(.985)}.primary-button:disabled{opacity:.63;cursor:wait}
.form-error{font-size:13px;color:#AE304A;line-height:1.5;margin:4px 0}
.privacy-note{font-size:11px;color:#7A9199;display:flex;align-items:flex-start;gap:8px;line-height:1.6;margin:17px 0 0}.privacy-note svg{margin-top:2px;flex:none}
.ssl-note{color:#6b551e;background:#FFF9E7;border:1px solid #F3E5BD;font-size:12px;line-height:1.5;padding:12px;border-radius:12px;margin:13px 0 0}
.ssl-note a{font-weight:800;color:#087989}
.landing-footer{display:flex;flex-direction:column;gap:12px;align-items:center;padding:35px 14px 48px;text-align:center}.landing-footer img{width:130px;height:auto;opacity:.93}.landing-footer small{font-size:11px;color:#91A7AF}

/* MAPA — preserva Leaflet y los marcadores. Una interfaz flotante a escala del dedo. */
.map-screen{position:relative;height:100vh;height:100dvh;min-height:0;background:#eaf1f0;overflow:hidden;isolation:isolate}
#map{position:absolute;inset:0!important;width:100%;height:100%!important;background:#ECF3F1;z-index:0;touch-action:pan-x pan-y;overscroll-behavior:contain}
.leaflet-container{background:#ECF3F1!important;font-family:inherit!important}
/* El efecto moderno solo altera la capa cartográfica, no el texto ni las luces. */
.map-screen .leaflet-tile-pane{filter:saturate(.56) contrast(.94) brightness(1.065);transition:filter .35s}
.map-screen.map-classic .leaflet-tile-pane{filter:none}
.leaflet-control-zoom{display:none}
.leaflet-control-attribution{font-size:9px!important;background:#ffffffce!important;border-radius:7px!important;color:#597A81!important;padding:3px 4px!important}
.leaflet-bottom.leaflet-right{bottom:calc(194px + env(safe-area-inset-bottom))!important;right:7px}
.map-header{position:absolute;z-index:850;top:calc(10px + env(safe-area-inset-top));left:12px;right:12px;border:1px solid #F1F6F6;background:#fffffff2;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);height:68px;padding:11px 14px;box-shadow:0 7px 28px #143f4d21;border-radius:21px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.map-identity{min-width:0;flex:1}.map-identity strong{display:block;white-space:nowrap;line-height:1;font-size:clamp(19px,5.7vw,25px);font-weight:900;letter-spacing:-1.25px}
.map-identity small{display:block;font-size:11px;color:#69838C;margin-top:5px;white-space:nowrap}
.live-count{flex:none;display:flex;align-items:center;gap:7px;white-space:nowrap}
.live-indicator{width:7px;height:7px;background:#18B992;box-shadow:0 0 0 4px #DFF7EB;border-radius:50%;margin-right:2px;flex:none}
.count-unit{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:35px}
.count-unit strong{font-size:19px;font-weight:850;line-height:1;color:#153E4C}
.count-unit span{font-size:10px;color:#6A848A}.count-divider{height:22px;width:1px;background:#DDE8E9}
.map-places{position:absolute;z-index:850;top:calc(88px + env(safe-area-inset-top));left:0;right:0;padding:4px 13px 13px;display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
.map-places::-webkit-scrollbar{display:none}
.map-places button{flex:none;scroll-snap-align:center;min-height:45px;min-width:80px;border:1px solid #F0F4F5;background:#fffffff2;border-radius:15px;padding:11px 16px;font-size:14px;font-weight:800;color:#2A5260;box-shadow:0 5px 18px #13435521;transition:transform .13s,background .15s}
.map-places button.active{background:#098B9A;color:#fff;border-color:#098B9A;box-shadow:0 6px 18px #077F9438}
.map-places button:active{transform:scale(.96)}
.demo-banner{position:absolute;z-index:810;top:calc(148px + env(safe-area-inset-top));left:13px;max-width:calc(100% - 26px);background:#FFF7DCED;color:#6B561F;border:1px solid #FFEDC6;padding:9px 12px;font-size:11px;font-weight:790;border-radius:12px;box-shadow:0 4px 15px #44381B17}
.map-fabs{position:absolute;z-index:850;top:calc(148px + env(safe-area-inset-top));right:13px;display:flex;flex-direction:column;gap:10px}
.map-fabs button{width:50px;height:50px;display:grid;place-items:center;border:1px solid #EAF1F2;background:#fffffff2;border-radius:16px;color:#087F90;box-shadow:0 7px 19px #143F4D25;transition:transform .15s}
.map-fabs button:active{transform:scale(.94)}.map-fabs .style-fab[aria-pressed="true"]{background:#EAF8F9}
.group-pin{position:relative;border-radius:50%;display:grid;place-items:center;width:100%;height:100%;font-size:13px;letter-spacing:-.35px;font-weight:900;color:#fff;border:3px solid #fff;box-shadow:0 4px 15px #173b4e59,0 0 0 3px #ffffffa8;transition:transform .17s}
.group-pin:after{content:"";position:absolute;inset:-6px;border:2px solid var(--community,#fff);border-radius:100%;pointer-events:none}
.group-pin.cluster{background:#164F61!important}.group-pin.cluster:after{border-color:#4AD0D5}
.my-pin{height:21px;width:21px;border:3px solid #fff;border-radius:50%;background:#078B9B;box-shadow:0 0 0 5px #078B9B66,0 0 0 10px #078B9B1F}
.bottom-sheet{position:absolute;z-index:890;left:10px;right:10px;bottom:calc(84px + env(safe-area-inset-bottom));max-height:min(64dvh,560px);display:flex;flex-direction:column;background:#fff;border:1px solid #F0F4F5;border-radius:26px;overflow:hidden;box-shadow:0 13px 40px #173E4B33}
.sheet-toggle{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:98px;position:relative;border:0;background:#fff;color:var(--ink);cursor:pointer;padding:25px 19px 17px;flex-shrink:0}
.sheet-handle{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:38px;height:5px;border-radius:15px;background:#DBE5E8}
.sheet-preview{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.sheet-label{font-size:10px;letter-spacing:.16em;font-weight:900;color:#088B97}
.sheet-preview strong{font-size:19px;font-weight:850;letter-spacing:-.6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-preview>span:last-child{font-size:12px;color:#748B93;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sheet-chevron{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:15px;color:#078995;background:#EAF7F8;transition:transform .2s}
.bottom-sheet.is-open .sheet-chevron{transform:rotate(180deg)}
.sheet-body{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0 17px 17px;max-height:calc(min(64dvh,560px) - 98px)}
.group-detail{display:flex;align-items:center;gap:11px;margin:3px 0 13px;padding:12px;background:#F4FAFA;border-radius:18px;border:1px solid #E9F2F3;min-height:74px}
.group-avatar{flex:none;width:44px;height:44px;border-radius:14px;background:#E3F5F6;color:var(--cyan);font-size:22px;display:grid;place-items:center}
.group-main{flex:1;min-width:0}.group-main strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.3px}.group-main span{font-size:12px;display:block;color:#6E8991;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-total{flex:none;display:flex;flex-direction:column;align-items:center}.group-total strong{font-size:24px;font-weight:900;color:#087D8C}.group-total small{font-size:10px;color:#728A93}
.sheet-actions{display:flex;gap:8px}.sheet-actions button{flex:1;min-height:47px;border-radius:14px;padding:9px 11px;font-weight:800;font-size:12px}
.secondary-action{background:#098796;color:#fff;border:1px solid #098796}.quiet-action{background:#F6FAFA;color:#54707C;border:1px solid #E3EBED}
.map-status{font-size:11px;color:#8BA0A7;line-height:1.5;margin:10px 2px 0}
.group-list{display:flex;flex-direction:column;gap:9px;margin:6px 0 14px}.group-list[hidden]{display:none!important}
.group-list button{display:flex;align-items:center;width:100%;min-height:64px;gap:10px;text-align:left;border:1px solid #E7F0F1;background:#F8FCFC;border-radius:15px;color:var(--ink);padding:12px}
.list-dot{width:13px;height:13px;flex:none;border:2px solid white;box-shadow:0 0 0 3px #E1EDEE;border-radius:100%}
.list-copy{flex:1;min-width:0;display:grid;gap:4px}.list-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.list-copy small{color:#71878F;font-size:12px}.list-count{font-size:16px;font-weight:900;color:#087C89}.list-empty{font-size:14px;color:#748D94;margin:12px 5px 20px}
.tab-bar{position:absolute;z-index:930;bottom:calc(10px + env(safe-area-inset-bottom));left:10px;right:10px;height:67px;display:flex;gap:4px;align-items:stretch;padding:5px 7px;background:#ffffffF7;border:1px solid #EAF2F2;backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px);box-shadow:0 5px 29px #163d4b29;border-radius:23px}
.tab-bar button{flex:1;min-height:55px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;background:transparent;border:0;border-radius:16px;font-size:11px;font-weight:800;color:#758990}
.tab-bar button svg{width:24px;height:24px}.tab-bar button[aria-pressed="true"]{color:#078A98;background:#E9F7F8}.tab-bar button[aria-pressed="true"] svg{stroke-width:2.35}
.map-loading{position:absolute;z-index:1000;top:47%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:12px 17px;border-radius:16px;color:#486976;background:#fffffff2;box-shadow:0 8px 26px #173f4a25;font-size:13px}
.spinner{border:2px solid #D8EAEA;border-top-color:#048E9D;width:20px;height:20px;border-radius:50%;animation:spin .7s linear infinite}
@keyframes brandIn{from{opacity:0;transform:translateY(-11px) scale(.97);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes dotPop{from{opacity:0;transform:scale(.1)}to{opacity:1;transform:scale(1)}}
@keyframes softIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes haloIn{from{opacity:0;transform:translateX(-50%) scale(.8)}to{opacity:.84;transform:translateX(-50%) scale(1)}}
@keyframes popeEntrance{from{opacity:0;filter:blur(8px) drop-shadow(0 15px 26px #154d4b2a);transform:translateX(-50%) translateY(42px) scale(.91)}to{opacity:1;filter:blur(0px) drop-shadow(0 15px 26px #154d4b2a);transform:translateX(-50%) translateY(0) scale(1)}}
@keyframes cardSlide{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:360px){.landing-brand{min-height:103px}.pope-stage{height:307px}.pope-photo{width:472px;bottom:-78px}.form-card{margin:-79px 9px 0;padding:23px 16px 16px}.entry-motto{font-size:27px}.map-header{left:9px;right:9px;padding-left:11px;padding-right:11px}.map-identity strong{font-size:18px}.map-identity small{font-size:10px}.live-count{gap:5px}.count-unit{min-width:30px}.count-unit strong{font-size:17px}.count-unit span{font-size:9px}.map-places button{padding:11px 12px;min-width:71px}}
@media(min-width:520px){.pope-stage{height:365px}.pope-photo{width:568px;bottom:-100px}.form-card{max-width:505px;margin:-85px auto 0}.landing-footer{padding-bottom:55px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.pope-photo{will-change:auto}}

/* Marca final — alPAPA azul bold · .org cian regular. */
.brand,.map-identity strong{font-family:Poppins,system-ui,sans-serif;}
.brand-al,.brand-papa{color:#123D50;font-weight:800}
.brand-org{color:#078C9C;font-weight:400;letter-spacing:-.055em}
.map-identity .brand-org{font-size:.84em}
.landing-motto{color:#123D50;font-weight:700;letter-spacing:-.035em}
.map-identity small{font-weight:500;color:#31596A}
/* Controles cómodos y claros al tacto */
.map-places button{font-family:inherit}
@media(max-width:400px){.map-header{gap:8px}.map-identity strong{font-size:clamp(18px,5.4vw,22px)}.map-places button{font-size:13px}}


.map-identity strong,.live-count strong,.tab-bar span,.map-places button,.sheet-label,.sheet-preview strong{font-family:Poppins,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif}
.map-identity strong .brand-word{color:var(--ink);font-weight:800}
.map-identity strong .brand-org{color:var(--cyan);font-weight:400}
.map-places button{min-height:46px;padding:0 18px}
#form input:not([type=checkbox])::placeholder{opacity:0}


/* ===== alPAPA 4.0: nombre consistente y salida fija en modo app ===== */
.brand{align-items:baseline;line-height:1.1}
.brand-word{font-family:Poppins,system-ui,sans-serif;color:#123D50;font-size:1em;font-weight:800;letter-spacing:-.055em}
.brand-org{font-family:Poppins,system-ui,sans-serif;color:#0AA5B3;font-size:1em;font-weight:800;letter-spacing:-.055em}
.map-identity strong{display:flex;align-items:baseline;white-space:nowrap;letter-spacing:-.04em}
.map-identity strong .brand-word{color:#123D50;font-size:1em;font-weight:800}
.map-identity strong .brand-org{color:#0AA5B3;font-size:1em;font-weight:800}
.tab-bar{bottom:calc(78px + env(safe-area-inset-bottom));}
.bottom-sheet{bottom:calc(150px + env(safe-area-inset-bottom));max-height:min(52dvh,470px)}
.sheet-body{max-height:calc(min(52dvh,470px) - 98px)}
.exit-bar{position:absolute;z-index:945;left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));height:60px;display:flex;pointer-events:none}
.exit-button{pointer-events:auto;width:100%;min-height:57px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:19px;border:1px solid #A92D37;background:linear-gradient(180deg,#E54D57,#C92F3F);box-shadow:0 7px 20px #A3213540;color:white;font:700 15px/1.2 Poppins,system-ui,sans-serif;letter-spacing:-.02em;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.exit-button:active{transform:scale(.985)}
.exit-button:focus-visible{outline:3px solid #FFF;outline-offset:2px}
@media(max-height:680px){.bottom-sheet{max-height:47dvh}.sheet-body{max-height:calc(47dvh - 98px)}}
@media(prefers-reduced-motion:reduce){.brand-word,.brand-org,.pope-photo{animation:none!important;opacity:1!important}}


/* alPAPA 5.0: MapLibre móvil, estado de conexión y descarga de zonas offline */
#map {background:#F3F8F8}
.maplibregl-map{font-family:Poppins,system-ui,sans-serif}
.maplibregl-control-container .maplibregl-ctrl-attrib{font-size:10px;background:#ffffffe9;border-radius:8px}
.maplibregl-ctrl-bottom-left{bottom:calc(156px + env(safe-area-inset-bottom));left:7px}
.group-pin {display:grid;place-items:center;border-radius:50%;border:2px solid #fff;color:#fff;font-family:Poppins,system-ui,sans-serif;font-size:12px;font-weight:800;box-shadow:0 0 0 6px #0F9FA524,0 2px 16px #22546A60;user-select:none}
.group-pin.cluster {background:#20596F!important}
.my-pin {width:19px;height:19px;background:#fff;border:5px solid #0AA5B3;border-radius:50%;box-shadow:0 0 0 6px #0AA5B32E,0 3px 12px #11465F55}
.connection-banner{position:absolute;top:calc(160px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:calc(100% - 30px);max-width:390px;z-index:955;background:#FFF6DE;color:#80531A;border:1px solid #F1DB9B;padding:11px 14px;border-radius:14px;box-shadow:0 8px 24px #0C425019;text-align:center;font-size:12px;font-weight:650;pointer-events:none}
.offline-tools{margin:4px 0 10px}
.offline-toggle{display:flex;align-items:center;gap:8px;padding:13px 14px;border:1px solid #D4E8E8;background:#F1FAFA;color:#195366;border-radius:14px;width:100%;text-align:left;font-size:12px;font-weight:750;font-family:Poppins,system-ui,sans-serif}
.offline-toggle>span:first-child{font-size:20px;color:#079EAA;line-height:1}
.offline-toggle>span:nth-child(2){flex:1}
#offline-summary{font-size:10px;color:#587B84;font-weight:600}
.offline-panel{padding:11px 3px 2px}
.offline-panel>p{font-size:11.5px;color:#577483;line-height:1.5;margin:0 4px 10px}
.offline-zone{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #E4F0F0;padding:10px 3px}
.offline-zone>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.offline-zone strong{font-size:12.5px;color:#194857}
.offline-zone small{font-size:11px;color:#789098}
.offline-zone button{border:0;background:#DDF4F5;color:#076B79;border-radius:10px;padding:9px 12px;font-size:11px;font-weight:750;min-width:88px}
.offline-zone button:disabled{opacity:.7}
.offline-zone button[aria-label^="Guardado"]{background:#DCF4E8;color:#186449}
.offline-progress{font-size:11px!important;margin-top:9px!important;min-height:26px}
.offline-panel[hidden]{display:none!important}
@media(max-height:720px){.connection-banner{top:calc(150px + env(safe-area-inset-top))}}


/* alPAPA 5.1 — llamada de portada clara, sin prometer ubicaciones en vivo offline */
.intro{color:#123D50;font-size:14.1px;line-height:1.5;font-weight:800;margin-bottom:7px}
.intro strong{font-weight:800}
.offline-disclaimer{color:#718B92;font:500 11.3px/1.48 Poppins,system-ui,sans-serif;margin:0 0 20px}

/* Botón contextual descargable bajo cada acceso flotante a una zona */
.map-places{padding-bottom:13px}
.zone-download-popover{position:absolute;z-index:965;min-width:174px;max-width:215px;padding:8px;background:#fff;border:1px solid #D8ECEE;box-shadow:0 10px 30px #173D4B35;border-radius:16px;animation:zoneDrop .17s ease-out;}
.zone-download-popover[hidden]{display:none!important}
.zone-download-action{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;padding:8px 12px;background:#098D9A;border:0;border-radius:11px;color:#fff;font:800 12px Poppins,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.zone-download-action span:first-child{font-size:20px;line-height:1}
.zone-download-action.is-stored{background:#E4F5EC;color:#197552}
.zone-download-action:disabled{opacity:.66}
.zone-download-popover small{display:block;font:500 10px/1.4 Poppins,system-ui,sans-serif;color:#597B86;text-align:center;margin:7px 2px 2px}
@keyframes zoneDrop{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.zone-download-popover{min-width:160px}.offline-disclaimer{font-size:11px}}

/* ALPAPA.org 5.5.2 — identidad tipográfica uniforme, sin cambiar disposición.
   Poppins Bold para el nombre entero; azul oscuro + cian, idéntico tamaño. */
.brand,.map-identity strong{font-family:Poppins,system-ui,sans-serif;}
.brand .brand-word,.brand .brand-org,
.map-identity strong .brand-word,.map-identity strong .brand-org{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:800;
  font-size:1em;
  letter-spacing:-.055em;
}
.brand .brand-word,.map-identity strong .brand-word{color:#123D50;}
.brand .brand-org,.map-identity strong .brand-org{color:#0AA5B3;}
@media(max-width:360px){.map-identity strong{font-size:clamp(17px,5.2vw,20px);}}
