:root{
  --pstlp-forest:#050505;
  --pstlp-green:#111111;
  --pstlp-mint:#eeeeee;
  --pstlp-ocean:#2f2f2f;
  --pstlp-volcano:#b8583d;
  --pstlp-sand:#f4efe5;
  --pstlp-ink:#202a27;
  --pstlp-muted:#68736f;
  --pstlp-border:#dfe6e2;
  --pstlp-white:#fff;
  --pstlp-shadow:0 22px 60px rgba(0,0,0,.14);
  --pstlp-status-planning:#1478ff;
  --pstlp-status-running:#ff6b00;
  --pstlp-status-finished:#00b84a;
}
.pstlp-app{max-width:1280px;margin:0 auto;padding:24px 18px 80px;color:var(--pstlp-ink);font-family:"DM Sans",Arial,sans-serif;box-sizing:border-box}
.pstlp-app *{box-sizing:border-box}
.pstlp-app button,.pstlp-app input,.pstlp-app select,.pstlp-app textarea,.pstlp-app .leaflet-container{font-family:"DM Sans",Arial,sans-serif}
.pstlp-app a{text-decoration:none}
.pstlp-app .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.pstlp-kicker{display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.pstlp-btn--dark{background:var(--pstlp-forest);color:#fff}
.pstlp-section{margin-top:76px;scroll-margin-top:24px}
.pstlp-app>.pstlp-section:first-of-type{margin-top:0}
.pstlp-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:24px}
.pstlp-section-heading>div{max-width:680px}
.pstlp-section-heading>p{max-width:520px;margin:0;color:var(--pstlp-muted);line-height:1.7}
.pstlp-kicker{margin-bottom:8px;color:var(--pstlp-green)}
.pstlp-section h2{margin:0;color:var(--pstlp-forest);font-size:clamp(1.9rem,3.4vw,3rem);line-height:1.08;letter-spacing:-.03em}
.pstlp-map{height:550px;border:1px solid var(--pstlp-border);border-radius:28px;overflow:hidden;background:#edf2ef;box-shadow:var(--pstlp-shadow)}
.pstlp-map .leaflet-popup-content-wrapper{border-radius:16px;box-shadow:0 14px 35px rgba(0,0,0,.16)}
.pstlp-map .leaflet-popup-content{margin:15px 17px;line-height:1.4}
.pstlp-popup{display:flex;min-width:185px;flex-direction:column;gap:5px}
.pstlp-popup__municipality{color:var(--pstlp-green);font-size:.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.pstlp-popup strong{font-size:1rem;color:var(--pstlp-ink)}
.pstlp-popup>span:not(.pstlp-popup__municipality){color:var(--pstlp-muted);font-size:.84rem}
.pstlp-popup a{margin-top:6px;color:var(--pstlp-ocean);font-weight:800}
.pstlp-filters{display:grid;grid-template-columns:minmax(260px,1.35fr) minmax(180px,.7fr) minmax(230px,1fr) auto;gap:12px;margin-bottom:24px;padding:15px;border:1px solid var(--pstlp-border);border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(0,0,0,.06)}
.pstlp-filters label{margin:0}
.pstlp-filters input,.pstlp-filters select{width:100%;min-height:48px;margin:0;padding:10px 14px;border:1px solid #cfd9d4;border-radius:13px;background:#fff;color:var(--pstlp-ink);font:inherit}
.pstlp-clear-filters{min-height:48px;padding:10px 17px;border:0;border-radius:13px;background:var(--pstlp-sand);color:var(--pstlp-forest);font:inherit;font-weight:800;cursor:pointer}
.pstlp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.pstlp-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--pstlp-border);border-radius:24px;background:#fff;box-shadow:0 13px 36px rgba(0,0,0,.07);transition:transform .2s ease,box-shadow .2s ease}
.pstlp-card:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(0,0,0,.12)}
.pstlp-card[hidden]{display:none!important}
.pstlp-card__image{display:block;width:100%;aspect-ratio:16/10;overflow:hidden;padding:0;border:0;background:#edf1ef;cursor:pointer;-webkit-appearance:none;appearance:none}
.pstlp-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.pstlp-card:hover .pstlp-card__image img,.pstlp-card__image:hover img{transform:scale(1.025)}
.pstlp-card__image:focus-visible{outline:4px solid rgba(20,120,255,.6);outline-offset:-4px}
.pstlp-card__content{display:flex;flex:1;flex-direction:column;padding:22px}
.pstlp-card__topline{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pstlp-app .pstlp-card__map-link{display:inline-flex;align-items:center;color:#111;font-size:.82rem;font-weight:800;line-height:1.2;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;transition:opacity .2s ease}
.pstlp-app .pstlp-card__map-link:hover{opacity:.58}
.pstlp-app .pstlp-card__map-link:focus-visible{outline:3px solid rgba(20,120,255,.35);outline-offset:4px;border-radius:3px}
.pstlp-status{display:inline-flex;align-items:center;width:max-content;padding:6px 9px;border-radius:999px;font-size:.74rem;font-weight:800}
.pstlp-status--planificada{background:var(--pstlp-status-planning);color:#fff;box-shadow:0 5px 14px rgba(20,120,255,.25)}
.pstlp-status--en_ejecucion{background:var(--pstlp-status-running);color:#281300;box-shadow:0 5px 14px rgba(255,107,0,.28)}
.pstlp-status--finalizada{background:var(--pstlp-status-finished);color:#062f18;box-shadow:0 5px 14px rgba(0,184,74,.25)}
.pstlp-municipality{color:var(--pstlp-green);font-size:.82rem;font-weight:800;text-align:right}
.pstlp-card__axis{display:flex;align-items:flex-start;gap:7px;margin:13px 0 0;color:var(--pstlp-muted);font-size:.78rem;line-height:1.35}
.pstlp-card__axis span{flex:0 0 auto;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.pstlp-card__axis strong{color:var(--pstlp-ink);font-weight:750}
.pstlp-card h3{margin:16px 0 10px;color:var(--pstlp-forest);font-size:1.35rem;line-height:1.18;letter-spacing:-.018em}
.pstlp-card__excerpt{margin:0;color:var(--pstlp-muted);font-size:.94rem;line-height:1.65}
.pstlp-card__meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 0}
.pstlp-card__meta div{padding:10px 11px;border-radius:12px;background:#f6f8f7}
.pstlp-card__meta dt{color:var(--pstlp-muted);font-size:.72rem;font-weight:800;text-transform:uppercase}
.pstlp-card__meta dd{margin:4px 0 0;color:var(--pstlp-ink);font-size:.88rem;font-weight:700}
.pstlp-card__meta>div:only-child{grid-column:1/-1}
.pstlp-card__actions{display:flex;margin-top:auto;padding-top:22px}
.pstlp-app .pstlp-card__open{display:flex;width:100%;min-height:54px;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border:1px solid #000;border-radius:14px;background:#000;color:#fff;font:inherit;font-size:.98rem;font-weight:850;line-height:1.2;text-align:left;-webkit-appearance:none;appearance:none;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.16);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.pstlp-app .pstlp-card__open:hover{transform:translateY(-2px);background:#1c1c1c;box-shadow:0 15px 30px rgba(0,0,0,.22)}
.pstlp-app .pstlp-card__open:focus-visible{outline:3px solid rgba(20,120,255,.45);outline-offset:3px}
.pstlp-app .pstlp-card__open-icon{display:grid;flex:0 0 auto;width:30px;height:30px;place-items:center;border-radius:50%;background:#fff;color:#000;font-size:1.15rem;line-height:1;transition:transform .2s ease}
.pstlp-app .pstlp-card__open:hover .pstlp-card__open-icon{transform:translateX(3px)}
.pstlp-empty{padding:36px;border:1px dashed #cbd7d1;border-radius:20px;background:#f8faf9;color:var(--pstlp-muted);text-align:center}
.pstlp-dialog{width:min(1050px,calc(100% - 30px));max-height:92vh;padding:0;border:0;border-radius:26px;background:#fff;box-shadow:0 35px 100px rgba(10,32,27,.28)}
.pstlp-dialog::backdrop{background:rgba(15,31,27,.72);backdrop-filter:blur(4px)}
.pstlp-dialog__inner{position:relative;overflow:auto;max-height:92vh;border-radius:26px}
.pstlp-dialog__close{position:sticky;z-index:5;top:14px;float:right;width:42px;height:42px;margin:14px 14px -56px 0;border:0;border-radius:50%;background:rgba(20,39,34,.9);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.pstlp-dialog__hero{display:block;height:min(48vh,460px);overflow:hidden;background:#eef2ef;cursor:zoom-in}
.pstlp-dialog__hero img{width:100%;height:100%;object-fit:cover}
.pstlp-dialog__body{padding:clamp(26px,5vw,56px)}
.pstlp-dialog__title-row h2{margin:0;color:var(--pstlp-forest);font-size:clamp(2rem,4vw,3.45rem);line-height:1.04;letter-spacing:-.035em}
.pstlp-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:26px 0 0}
.pstlp-detail-grid div{padding:15px;border:1px solid var(--pstlp-border);border-radius:15px;background:#f8faf9}
.pstlp-detail-grid dt{color:var(--pstlp-muted);font-size:.72rem;font-weight:800;text-transform:uppercase}
.pstlp-detail-grid dd{margin:6px 0 0;color:var(--pstlp-ink);font-weight:750;line-height:1.35}
.pstlp-detail-section{margin-top:34px}
.pstlp-detail-section h3{margin:0 0 16px;color:var(--pstlp-forest);font-size:1.45rem}
.pstlp-richtext{color:#3d4b46;line-height:1.75}
.pstlp-richtext>:first-child{margin-top:0}
.pstlp-richtext>:last-child{margin-bottom:0}
.pstlp-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pstlp-media-tile{display:block;overflow:hidden;aspect-ratio:4/3;border-radius:15px;background:#eef1ef;cursor:zoom-in}
.pstlp-media-tile img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.pstlp-media-tile:hover img{transform:scale(1.03)}
.pstlp-file-card{display:flex;align-items:center;gap:12px;min-height:72px;padding:14px;border:1px solid var(--pstlp-border);border-radius:14px;background:#fff;color:var(--pstlp-ink);font-weight:750}
.pstlp-file-card__icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:11px;background:var(--pstlp-sand);color:var(--pstlp-volcano);font-size:.75rem;font-weight:900}
.pstlp-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pstlp-video{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:16px;background:#111}
.pstlp-video iframe,.pstlp-video video{width:100%;height:100%;border:0}
.pstlp-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pstlp-document{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid var(--pstlp-border);border-radius:14px;background:#fff;color:var(--pstlp-ink)}
.pstlp-document__icon{display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;border-radius:12px;background:var(--pstlp-mint);color:var(--pstlp-green);font-weight:900}
.pstlp-document span:last-child{display:flex;min-width:0;flex-direction:column}
.pstlp-document strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pstlp-document small{margin-top:3px;color:var(--pstlp-muted)}

.pstlp-lightbox{padding:0;border:0;background:transparent;color:#fff}
.pstlp-lightbox[open]{position:fixed;inset:0;display:flex;width:100vw;max-width:none;height:100vh;max-height:none;margin:0;align-items:center;justify-content:center;overflow:hidden;background:rgba(0,0,0,.94)}
.pstlp-lightbox::backdrop{background:transparent}
.pstlp-lightbox__figure{display:flex;max-width:calc(100vw - 48px);max-height:calc(100vh - 70px);margin:0;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.pstlp-lightbox__figure img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 105px);border-radius:14px;object-fit:contain;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.pstlp-lightbox__figure figcaption{max-width:min(900px,calc(100vw - 60px));color:rgba(255,255,255,.86);font-size:.92rem;line-height:1.45;text-align:center}
.pstlp-lightbox__close{position:fixed;z-index:2;top:18px;right:18px;display:grid;width:46px;height:46px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(0,0,0,.72);color:#fff;font:inherit;font-size:30px;line-height:1;cursor:pointer}
.pstlp-lightbox__close:hover{background:#fff;color:#000}
.pstlp-lightbox__nav{position:fixed;z-index:3;top:50%;display:grid;width:58px;height:58px;padding:0;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(255,255,255,.94);color:#000;font:inherit;font-size:44px;font-weight:400;line-height:1;cursor:pointer;box-shadow:0 10px 34px rgba(0,0,0,.28);transition:transform .2s ease,background .2s ease}
.pstlp-lightbox__nav:hover{background:#fff;transform:translateY(-50%) scale(1.06)}
.pstlp-lightbox__nav:focus-visible{outline:3px solid #fff;outline-offset:3px}
.pstlp-lightbox__nav--prev{left:24px}
.pstlp-lightbox__nav--next{right:24px}
.pstlp-lightbox__nav[hidden]{display:none}
body.pstlp-dialog-open{overflow:hidden}
@media(max-width:1040px){.pstlp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pstlp-filters{grid-template-columns:1fr 1fr}.pstlp-search,.pstlp-clear-filters{grid-column:1/-1}.pstlp-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.pstlp-app{padding:10px 12px 58px}.pstlp-section{margin-top:56px}.pstlp-section-heading{align-items:flex-start;flex-direction:column}.pstlp-map{height:440px;border-radius:21px}.pstlp-grid{grid-template-columns:1fr}.pstlp-filters{grid-template-columns:1fr}.pstlp-search{grid-column:auto}.pstlp-card__meta{grid-template-columns:1fr}.pstlp-detail-grid,.pstlp-media-grid,.pstlp-videos,.pstlp-documents{grid-template-columns:1fr}.pstlp-dialog{width:calc(100% - 16px);max-height:96vh;border-radius:18px}.pstlp-dialog__inner{max-height:96vh;border-radius:18px}.pstlp-dialog__hero{height:260px}.pstlp-dialog__body{padding:24px 20px 34px}.pstlp-dialog__title-row h2{font-size:2.15rem}.pstlp-lightbox__figure{max-width:calc(100vw - 24px);max-height:calc(100vh - 60px)}.pstlp-lightbox__figure img{max-height:calc(100vh - 90px);border-radius:10px}.pstlp-lightbox__close{top:10px;right:10px;width:42px;height:42px}.pstlp-lightbox__nav{width:46px;height:46px;font-size:36px}.pstlp-lightbox__nav--prev{left:8px}.pstlp-lightbox__nav--next{right:8px}}

/* Map resilience fallback: shown only if Leaflet cannot be initialized. */
.pstlp-map--fallback{position:relative;min-height:550px;background:linear-gradient(180deg,#eef4f1 0%,#e4ece8 100%)}
.pstlp-fallback-map{position:relative;width:100%;height:100%;min-height:550px;overflow:hidden;border-radius:inherit;background:radial-gradient(circle at 50% 45%,rgba(255,255,255,.9),rgba(231,239,235,.72) 44%,rgba(218,229,223,.85) 100%)}
.pstlp-fallback-map__island{position:absolute;inset:5% 25%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.pstlp-fallback-map__island svg{width:100%;height:100%;filter:drop-shadow(0 18px 28px rgba(0,0,0,.1))}
.pstlp-fallback-map__points{position:absolute;inset:0}
.pstlp-fallback-marker{position:absolute;z-index:3;width:22px;height:22px;padding:0;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.28);transition:transform .18s ease,box-shadow .18s ease}
.pstlp-fallback-marker:hover,.pstlp-fallback-marker:focus-visible{z-index:5;transform:translate(-50%,-50%) scale(1.25);outline:none;box-shadow:0 7px 22px rgba(0,0,0,.36)}
.pstlp-fallback-marker[hidden]{display:none!important}
.pstlp-fallback-marker.is-highlighted{animation:pstlp-marker-pulse 1.4s ease 2}
.pstlp-fallback-map__note{position:absolute;right:18px;bottom:18px;left:18px;z-index:2;max-width:460px;margin:auto;padding:10px 14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:rgba(255,255,255,.9);color:#4c5954;font-size:.84rem;font-weight:650;text-align:center;box-shadow:0 8px 25px rgba(0,0,0,.08);backdrop-filter:blur(8px)}
.pstlp-fallback-map__empty{position:absolute;top:50%;left:50%;z-index:2;margin:0;transform:translate(-50%,-50%);color:#596760;text-align:center}
@keyframes pstlp-marker-pulse{0%,100%{box-shadow:0 4px 14px rgba(0,0,0,.28),0 0 0 0 rgba(20,120,255,.45)}50%{box-shadow:0 4px 14px rgba(0,0,0,.28),0 0 0 16px rgba(20,120,255,0)}}
@media(max-width:760px){.pstlp-map--fallback,.pstlp-fallback-map{min-height:440px}.pstlp-fallback-map__island{inset:5% 13%}.pstlp-fallback-map__note{right:10px;bottom:10px;left:10px}}

/* Essential Leaflet layout rules kept locally so the public map remains usable if CDN CSS is delayed. */
.pstlp-map.leaflet-container{position:relative;overflow:hidden;outline:0;-webkit-tap-highlight-color:transparent}
.pstlp-map .leaflet-pane,.pstlp-map .leaflet-tile,.pstlp-map .leaflet-marker-icon,.pstlp-map .leaflet-marker-shadow,.pstlp-map .leaflet-tile-container,.pstlp-map .leaflet-pane>svg,.pstlp-map .leaflet-pane>canvas,.pstlp-map .leaflet-zoom-box{position:absolute;top:0;left:0}
.pstlp-map .leaflet-map-pane,.pstlp-map .leaflet-tile-pane,.pstlp-map .leaflet-objects-pane{position:absolute;top:0;left:0;width:100%;height:100%}
.pstlp-map .leaflet-tile{visibility:hidden;max-width:none!important;max-height:none!important;padding:0}
.pstlp-map .leaflet-tile-loaded{visibility:inherit}
.pstlp-map .leaflet-zoom-animated{transform-origin:0 0}
.pstlp-map .leaflet-tile-pane{z-index:200}.pstlp-map .leaflet-overlay-pane{z-index:400}.pstlp-map .leaflet-shadow-pane{z-index:500}.pstlp-map .leaflet-marker-pane{z-index:600}.pstlp-map .leaflet-tooltip-pane{z-index:650}.pstlp-map .leaflet-popup-pane{z-index:700}
.pstlp-map .leaflet-control{position:relative;z-index:800;pointer-events:auto;float:left;clear:both}
.pstlp-map .leaflet-top,.pstlp-map .leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.pstlp-map .leaflet-top{top:0}.pstlp-map .leaflet-right{right:0}.pstlp-map .leaflet-bottom{bottom:0}.pstlp-map .leaflet-left{left:0}
.pstlp-map .leaflet-control-zoom{margin:12px;border-radius:8px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.pstlp-map .leaflet-control-zoom a{display:grid;width:34px;height:34px;place-items:center;background:#fff;color:#111;font-size:22px;font-weight:700;text-decoration:none}.pstlp-map .leaflet-control-zoom a+a{border-top:1px solid #ddd}
.pstlp-map .leaflet-control-attribution{margin:0;padding:3px 7px;background:rgba(255,255,255,.8);font-size:10px}.pstlp-map .leaflet-control-attribution a{color:#222;text-decoration:underline}
.pstlp-map .leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.pstlp-map .leaflet-popup-content-wrapper{position:relative;background:#fff;color:#333}.pstlp-map .leaflet-popup-content{min-width:1px}.pstlp-map .leaflet-popup-tip-container{position:absolute;left:50%;width:40px;height:20px;margin-left:-20px;overflow:hidden;pointer-events:none}.pstlp-map .leaflet-popup-tip{width:17px;height:17px;margin:-10px auto 0;transform:rotate(45deg);background:#fff;box-shadow:3px 3px 10px rgba(0,0,0,.12)}.pstlp-map .leaflet-popup-close-button{position:absolute;z-index:2;top:4px;right:6px;padding:4px;color:#666;font-size:20px;line-height:18px;text-decoration:none}
