/* Elaborado por SIRCE Democracy. */
@keyframes t-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes t-pop{0%{transform:scale(0)}70%{transform:scale(1.25)}100%{transform:scale(1)}}
@keyframes t-leave{to{opacity:0;transform:translateY(-10px);height:0;margin:0;padding:0}}
@keyframes t-pulse{0%,100%{box-shadow:0 0 0 0 #c08b3e55}50%{box-shadow:0 0 0 7px #c08b3e00}}
@keyframes t-shine{from{background-position:-200% 0}to{background-position:200% 0}}
.t-reveal,.t-row,.t-junta{animation:t-rise .5s cubic-bezier(.2,.8,.2,1) backwards}
.t-leave{animation:t-leave .35s ease forwards;overflow:hidden}
.t-banner{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-bottom:22px;border-radius:16px;background:linear-gradient(110deg,#e3eacb,#eef1e4 45%,#e3eacb);background-size:200% 100%;animation:t-rise .5s backwards,t-shine 6s linear infinite;border:1px solid #d8e0c4}
.t-banner>div{flex:1}.t-banner strong{font-size:13px}.t-banner p{font-size:11px;color:var(--muted);margin-top:3px}
.t-banner-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--green);color:#fff;flex-shrink:0;animation:t-pulse 2.4s ease-in-out infinite}
.t-help{display:inline-flex;align-items:center;gap:5px;padding:6px 10px 6px 7px;border-radius:20px;background:#eef1e6;border:1px solid var(--line);color:#5d7356;font-size:10px;font-weight:600;transition:transform .15s,background .15s,box-shadow .15s;flex-shrink:0}
.t-help svg{width:16px;height:16px}.t-help:hover{background:#e2ead8;transform:translateY(-1px);box-shadow:0 4px 10px #355a4622}
.t-filters{margin-bottom:22px}.t-filters-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.t-filters-top h2{font-size:16px}
.t-selects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.t-selects .field{margin:0}
.t-selects select{transition:border-color .2s,box-shadow .2s}.t-selects select:not(:disabled):hover{border-color:#94a889}
.t-search-row{display:flex;gap:12px;margin-top:14px;align-items:center}.t-search-row .search{max-width:none}
.t-path{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.t-crumb{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:9px;font-size:11px;background:transparent;color:#5d7356;transition:background .15s}
.t-crumb svg{width:14px;height:14px}button.t-crumb:hover{background:#e2ead8;text-decoration:underline}
.t-crumb.current{background:var(--green);color:#fff;font-weight:600;animation:t-rise .35s backwards}.t-sep{color:#b3bba9}
.t-kpi-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px}
.t-stat{transition:transform .2s,box-shadow .2s}.t-stat:hover{transform:translateY(-3px)}
.t-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:2px;flex-shrink:0}.t-dot.f{background:#c08b3e}.t-dot.m{background:#355a46}
.t-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:24px;margin-bottom:24px;align-items:start}
.t-side{display:grid;gap:24px}
.t-bars{display:grid;gap:6px}
.t-bar{display:grid;grid-template-columns:1fr auto;gap:4px 12px;width:100%;text-align:left;background:transparent;padding:10px 12px;border-radius:12px;color:inherit;transition:background .15s,transform .15s}
.t-bar:hover{background:#e8eddf;transform:translateX(3px)}.t-bar .bar-track{grid-column:1/-1;margin-top:4px;display:block}
.t-bar .bar-fill,.t-cond .bar-fill{display:block;transition:width .9s cubic-bezier(.2,.8,.2,1)}
.t-bar-label strong,.t-bar-value strong{display:block;font-size:12px;font-weight:600}.t-bar-label small,.t-bar-value small{display:block;font-size:9px;color:var(--muted)}.t-bar-value{text-align:right}
.t-donut{position:relative;width:170px;height:170px;margin:0 auto 20px}
.t-donut svg{width:170px;height:170px;transform:rotate(-90deg);stroke:none}
.t-donut circle{fill:none;stroke-width:16}.t-ring-bg{stroke:#e7ecdf}.t-ring{transition:stroke-dasharray 1s cubic-bezier(.2,.8,.2,1),stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1)}.t-ring.f{stroke:#c08b3e}.t-ring.m{stroke:#355a46}
.t-donut-label{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.t-donut-label strong{font-size:30px;font-weight:500;letter-spacing:-1px}.t-donut-label small{font-size:10px;color:var(--muted)}
.t-cond{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.t-cond:last-child{border:0}
.t-cond strong{display:block;font-size:12px;font-weight:600}.t-cond small{display:block;font-size:9px;color:var(--muted)}.t-cond .bar-track{display:block;margin-top:7px;height:6px}
.t-cond b{text-align:right;font-size:20px;font-weight:500}.t-cond b small{font-weight:400}
.t-map-card{margin-bottom:28px}.t-map{position:relative;height:460px;border-radius:16px;background:#e3e9da;overflow:hidden;z-index:0;border:1px solid var(--line)}
.t-map-hint{display:flex;align-items:flex-start;gap:6px;font-size:10px;color:var(--muted);margin-top:10px}.t-map-hint svg{width:13px;height:13px;margin-top:1px}
.t-map .leaflet-overlay-pane canvas{animation:t-fade .8s .2s backwards}
@keyframes t-fade{from{opacity:0}}
.t-map .leaflet-interactive{cursor:pointer}
.leaflet-tooltip.t-tooltip{background:#263e33;color:#f4f8ee;border:0;border-radius:10px;padding:8px 11px;font:11px/1.45 Inter,'Segoe UI',system-ui,sans-serif;box-shadow:0 8px 20px #0003;width:max-content;max-width:240px;white-space:normal}
.leaflet-tooltip.t-tooltip::before{border-top-color:#263e33}
.t-detail-map{height:300px;border-radius:14px;overflow:hidden;margin:-4px 0 18px;border:1px solid var(--line);z-index:0}
.leaflet-container{font-family:Inter,'Segoe UI',system-ui,sans-serif}.leaflet-container a.leaflet-popup-close-button,.leaflet-bar a{color:#355a46}
.leaflet-control-zoom a{width:34px!important;height:34px!important;line-height:34px!important;font-size:18px!important}
.t-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.t-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:20px;border:1px solid var(--line);background:var(--bg);font-size:10px;color:inherit;transition:transform .15s,border-color .15s}
.t-chip:hover{transform:translateY(-1px);border-color:var(--green)}.t-chip.active{border-color:var(--green);background:#e3eacb;font-weight:600}
.t-sort{display:inline-flex;gap:5px;align-items:center;background:none;padding:0;font:inherit;letter-spacing:inherit;color:inherit}.t-sort span{opacity:.6}.t-sort.on{color:var(--green)}
.t-row{cursor:pointer;transition:background .15s}.t-row:hover,.t-row:focus-visible{background:#eaefe2;outline:none}
.t-mini{display:block;width:90px;height:4px;border-radius:3px;background:#e6ebdf;margin-top:6px;overflow:hidden}.t-mini span{display:block;height:100%;width:0;background:#899e65;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.t-tags{display:flex;gap:5px;flex-wrap:wrap}
.t-source{display:flex;gap:8px;align-items:flex-start;font-size:10px;color:var(--muted);margin-top:18px}.t-source svg{width:14px;height:14px}
.t-help-body{font-size:13px;line-height:1.8;color:#5f6f58}.t-steps{padding-left:20px;margin:0}.t-steps li{margin-bottom:10px;animation:t-rise .4s backwards}.t-steps li:nth-child(2){animation-delay:.07s}.t-steps li:nth-child(3){animation-delay:.14s}.t-steps li:nth-child(4){animation-delay:.21s}.t-steps li:nth-child(5){animation-delay:.28s}
.t-detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin:-12px 0 18px}
.t-detail-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}
.t-detail-stats div{background:var(--bg);border-radius:12px;padding:12px;box-shadow:inset 2px 2px 5px #e0e4d9,inset -2px -2px 5px #fff}.t-detail-stats span{display:block;font-size:10px;color:var(--muted)}.t-detail-stats strong{font-size:20px;font-weight:550}
.t-detail-info{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;font-size:12px;margin:0 0 18px}.t-detail-info dt{display:flex;align-items:center;gap:6px;color:var(--muted)}.t-detail-info dt svg{width:14px;height:14px}.t-detail-info dd{margin:0;overflow-wrap:anywhere}.t-detail-info a{text-decoration:underline;text-underline-offset:3px}
.t-juntas-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.t-juntas-group h3{display:flex;align-items:center;gap:6px;font-size:12px;margin:14px 0 8px}
.t-juntas{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:7px}
.t-junta{display:flex;flex-direction:column;padding:8px 10px;border-radius:10px;border:1px solid var(--line);border-left:4px solid #355a46;background:var(--bg);transition:transform .15s}.t-junta.f{border-left-color:#c08b3e}.t-junta:hover{transform:translateY(-2px)}
.t-junta b{font-size:12px}.t-junta small{font-size:9px;color:var(--muted)}
@media(max-width:1180px){.t-selects{grid-template-columns:repeat(2,minmax(0,1fr))}.t-grid{grid-template-columns:1fr}.t-side{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.t-banner{flex-wrap:wrap}.t-banner>div{min-width:calc(100% - 60px)}.t-selects{grid-template-columns:1fr 1fr;gap:10px}.t-search-row{flex-direction:column;align-items:stretch}.t-side{grid-template-columns:1fr}.t-map{height:360px}.t-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.t-help span{display:none}.t-help{padding:6px}.t-donut,.t-donut svg{width:150px;height:150px}}
:root[data-theme=dark] .t-banner{background:linear-gradient(110deg,#33432a,#263728 45%,#33432a);background-size:200% 100%;border-color:#435337}
:root[data-theme=dark] :is(.t-help,.t-chip){background:#263728;color:#cfe0c2;border-color:#3c4e3b}
:root[data-theme=dark] :is(.t-help:hover,.t-bar:hover,.t-row:hover,.t-row:focus-visible,button.t-crumb:hover){background:#2c3c2d}
:root[data-theme=dark] .t-crumb{color:#cfe0c2}:root[data-theme=dark] .t-crumb.current{background:#3b6545;color:#fff}
:root[data-theme=dark] .t-chip.active{background:#33432a}
:root[data-theme=dark] .t-map{background:#1b251f}
:root[data-theme=dark] :is(.t-map,.t-detail-map) .leaflet-tile-pane{filter:brightness(.72) contrast(1.08) saturate(.8)}
:root[data-theme=dark] .t-ring-bg{stroke:#354531}:root[data-theme=dark] .t-ring.m,:root[data-theme=dark] .t-dot.m{stroke:#8fb98e;background:#8fb98e}:root[data-theme=dark] .t-junta{border-left-color:#8fb98e}:root[data-theme=dark] .t-junta.f{border-left-color:#c08b3e}
:root[data-theme=dark] .t-detail-stats div{box-shadow:inset 2px 2px 5px #111a14,inset -2px -2px 5px #29392b}
:root[data-theme=dark] :is(.t-help-body,.t-bar-label small,.t-bar-value small){color:#b7c5ad}
:root[data-theme=dark] .t-mini{background:#344331}

.t-location{margin:0 0 20px}.t-location h3{margin-bottom:8px}.t-location>.summary-small{margin:0 0 12px;line-height:1.65}.t-location .t-detail-map{margin:0;background-color:var(--surface-soft)}
@media(max-width:640px){.t-location .t-detail-map{height:280px}}
