/* Controles del mapa y resumen de organizaciones. */
/* Informe: el texto ocupa la columna que antes seguía a la bandera. */
#view-informe .case-study summary{grid-template-columns:minmax(0,1fr) 24px;gap:20px}
#view-informe .case-study summary>span:not(.case-flag){min-width:0}
#view-informe .case-study summary strong{font-size:20px;line-height:1.35}
#view-informe .case-study summary small{font-size:16px;line-height:1.5;max-width:650px}
#view-informe .case-body{padding:0 4px 26px}
#view-informe .case-body p,#view-informe .case-body dd{font-size:16px;line-height:1.6}
.report-context-plus{display:none}
.view-informe-plus #view-informe .report-context-plus{display:grid;grid-template-columns:minmax(260px,.55fr) minmax(0,1.2fr);gap:clamp(38px,9vw,138px);padding:76px 0;border-bottom:1px solid var(--line)}
.view-informe-plus #view-informe .report-origin,.view-informe-plus #view-informe .report-brief,.view-informe-plus #view-informe .report-reader{display:none}
.report-context-plus-copy{max-width:790px}.report-context-plus-copy p{margin:0 0 22px;font-size:18px;line-height:1.58;color:var(--muted)}.report-context-plus-copy p:last-child{margin-bottom:0}.report-context-plus-lead{max-width:360px;margin:20px 0 0;font-family:var(--serif);font-size:clamp(20px,2vw,28px)!important;line-height:1.3!important;color:var(--ink)!important}.report-context-plus-kicker{display:block;margin-top:16px}
/* Indicadores con un ancho de lectura acotado y gráficos comparables. */
#view-datos{padding-left:max(24px,calc((100vw - 1400px)/2));padding-right:max(24px,calc((100vw - 1400px)/2))}
#view-datos .reading-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px}
#view-datos .reading-block{padding:26px;background:var(--white);border-top:3px solid var(--green)}
#view-datos .reading-block h4{font-size:21px;font-weight:600;margin-bottom:24px}
#view-datos .indicator-bars{gap:17px}
#view-datos .indicator-bar-row{grid-template-columns:minmax(115px,160px) minmax(40px,1fr) 58px;gap:12px;min-height:36px}
#view-datos .indicator-bar-label{font-size:15px;font-weight:500;line-height:1.4}
#view-datos .indicator-bar-row strong{font-size:17px}
#view-datos .indicator-bar-row strong small{display:block;font-size:12px;font-weight:400;margin-top:3px}
#view-datos .indicator-bar-track{height:12px}
#view-datos .chart-footnote{font-size:15px!important;line-height:1.6!important}
#view-datos .data-grid p,#view-datos .data-grid li{font-size:16px!important;line-height:1.65}
#view-datos .data-grid a{font-size:15px}
#view-datos .data-grid h3{font-size:26px}
#view-datos .data-grid small{font-size:13px}
#view-datos .data-grid .eyebrow{font-size:12px}
#view-datos .chart-heading{gap:24px;align-items:start}
#view-datos .chart-heading p{max-width:480px}
@media(max-width:1000px){#view-datos .reading-grid{grid-template-columns:1fr}}
@media(max-width:760px){#view-datos{padding-left:18px;padding-right:18px}#view-datos .reading-block{padding:20px 12px}#view-datos .indicator-bar-row{grid-template-columns:minmax(90px,120px) minmax(30px,1fr) 48px;gap:8px}#view-datos .indicator-bar-label{font-size:14px}#view-informe .case-study summary{grid-template-columns:minmax(0,1fr) 20px}.view-informe-plus #view-informe .report-context-plus{grid-template-columns:1fr;gap:30px;padding:50px 0}.report-context-plus-copy p{font-size:17px}.report-context-plus-lead{font-size:23px!important}}
.filters{--ink:#24343c;--muted:#66747a;--line:#dfe4e6;--paper:#f5f6f6;--green:#286e8b;padding:25px 22px 28px;background:#fff;box-shadow:none}
.filters .panel-title{align-items:center;margin-bottom:25px}
.filters .panel-title h2{font-size:24px;font-weight:650;letter-spacing:-.025em;line-height:1.2;margin:0}
.filters .btn-collapse-sidebar{background:transparent;border:0;border-radius:3px}
.filters .sidebar-nav-tabs{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;gap:24px;margin-bottom:12px}
.filters .sidebar-nav-tab{flex:0 1 auto;padding:10px 0;border-radius:0;border-bottom:2px solid transparent;font-size:15px;font-weight:550;background:none;color:var(--muted)}
.filters .sidebar-nav-tab.active{background:none;color:var(--ink);border-bottom-color:var(--ink);box-shadow:none}
.filters .layer-groups{border-top:0}
.filters .axis-card,.filters .axis-card.axis-active,.filters .axis-header{background:transparent;box-shadow:none}
.filters .axis-header{min-height:72px;padding:16px 0;gap:8px}
.filters .axis-title{font-size:16px;font-weight:600;line-height:1.3;letter-spacing:0}
.filters .axis-subtitle{font-size:12px;font-weight:400;margin-top:4px;color:var(--muted)}
.filters .axis-master-toggle{font-size:11px;font-weight:550;border-radius:2px;background:none;color:var(--muted);padding:6px 3px}
.filters .axis-master-toggle.active,.filters .axis-master-toggle.partial{background:none;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.filters .axis-chevron{padding:8px 3px;font-size:9px}
.filters .axis-body{border-top:0;padding:0 0 13px}
.filters .layer-option{padding:11px 0;border:0;gap:8px;grid-template-columns:16px 10px minmax(0,1fr)}
.filters .layer-option input{accent-color:var(--green);width:14px;height:14px;margin:3px 0}
.filters .layer-name{font-size:14px;font-weight:500;line-height:1.4}
.filters .layer-title-line{display:block}
.filters .layer-kpi-badge{display:block;padding:0;margin-top:2px;background:none;color:var(--muted);font-size:12px;font-weight:400;white-space:normal}
.filters .layer-period{font-size:11px;color:var(--muted);margin-top:2px}
.filters .sidebar-module{margin-top:24px;padding-top:22px;border-top:0}
.filters .module-header{margin-bottom:15px}
.filters .eyebrow{font-size:16px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink)}
.filters .mode-switch{gap:0;border:1px solid var(--line);border-radius:3px;overflow:hidden;margin-bottom:20px}
.filters .mode{border:0;border-radius:0;font-size:13px;font-weight:500;padding:10px 5px;background:transparent}
.filters .mode.active{background:#edf2f3;color:var(--ink);box-shadow:inset 0 -2px var(--green)}
.filters .select-label{font-size:13px;font-weight:500;gap:7px;margin-top:16px;color:var(--ink)}
.filters .select-label select{font-size:14px;font-weight:400;min-height:40px;border-radius:3px;border-color:var(--line);background:transparent;padding:8px 9px}
.filters .result-row{margin-top:24px;padding-top:18px;align-items:baseline}
.filters .result-row strong{font-size:25px;font-weight:600}
.filters .result-row span,.filters .result-row button{font-size:13px;font-weight:400}
.filters .result-row button{margin-top:8px;text-decoration:underline;text-underline-offset:3px}
.filters .layer-guide{margin-top:24px;font-size:13px;line-height:1.55}
.filters .legend-note{margin-top:14px;font-size:12px;line-height:1.55;color:var(--muted)}
.filters .module-intro p{font-size:13px;line-height:1.5}
.filters .question-presets{gap:0}
.filters .question-preset{padding:16px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.filters .question-preset-name{font-size:15px;font-weight:550}
.filters .question-preset small{font-size:13px;line-height:1.5;margin-top:5px}
.filters .question-preset.active{background:#f3f6f7;box-shadow:inset 2px 0 var(--green);padding-left:10px}
.filters .question-box,.filters .cross-layer-item{border-radius:0;box-shadow:none;background:none}
.filters .cross-logic-header,.filters .cross-layer-role,.filters .active-q-text{font-size:13px;line-height:1.5}
.detail{box-shadow:-5px 0 22px #172b3612}
.feature-preview{--ink:#24343c;--muted:#66747a;--line:#dfe4e6;--green:#286e8b}
.feature-preview-header{padding:32px 26px 24px;gap:12px}
.feature-preview-header .eyebrow{font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted);margin-bottom:13px}
.feature-preview-header h2{font-size:29px;font-weight:600;line-height:1.17;letter-spacing:-.025em;overflow-wrap:anywhere}
.feature-preview-close{width:30px;height:30px;border:0;border-radius:2px;color:var(--muted)}
.feature-preview-close:hover{transform:none;background:#edf2f3;color:var(--ink)}
.feature-preview-body{padding:24px 26px;gap:24px}
.feature-location{font-size:15px!important;font-weight:400}
.feature-preview-kpis{display:block;border:0}
.feature-preview-kpis div,.feature-preview-kpis div+div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:15px;padding:10px 0;border:0;border-bottom:1px solid var(--line)}
.feature-preview-kpis span{font-size:13px;text-transform:none;letter-spacing:0;font-weight:400;margin:0}
.feature-preview-kpis strong{font-size:14px;font-weight:500}
.feature-preview-summary h3{font-size:16px;font-weight:600}
.feature-preview-summary p{font-size:16px;line-height:1.6}
.feature-preview-note{font-size:12px!important;line-height:1.5}
.feature-preview-footer{padding:22px 26px;grid-template-columns:1fr;gap:14px}
.feature-preview-footer small{font-size:12px;line-height:1.5}
.feature-profile-link{justify-content:space-between;font-size:15px;font-weight:550;border-radius:3px;min-height:46px}
.theme-dark .filters,.theme-dark .feature-preview{--ink:#e4edf0;--muted:#a5b7c0;--line:#314550;--paper:#152d3a;--green:#8fc8df;background:#0d2636}
.theme-dark .filters .axis-card,.theme-dark .filters .axis-header,.theme-dark .filters .sidebar-nav-tabs,.theme-dark .filters .sidebar-nav-tab,.theme-dark .filters .question-preset{background:none}
.theme-dark .filters .mode.active,.theme-dark .filters .question-preset.active{background:#193746}
.theme-dark .feature-profile-link{color:#102a37}
@media(max-width:760px){#view-mapa .filters{padding:22px 20px}.filters .panel-title h2{font-size:23px}.feature-preview-header{padding:22px}.feature-preview-header h2{font-size:25px}.feature-preview-body{padding:20px 22px}.feature-preview-footer{padding:16px 22px}}

.feature-preview-summary .feature-preview-description + .feature-preview-description{margin-top:10px}
.feature-preview-sources a{display:block;margin:8px 0;color:var(--green);font-size:13px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.feature-preview-sources .feature-metrics-scope{white-space:pre-line}

/* Legibilidad general del mapa: un paso mayor sin perder densidad. */
.brand h1{font-size:17px}
.brand p{font-size:12px}
.tab{font-size:14.5px}
.filters .axis-subtitle{font-size:13px;line-height:1.4}
.filters .axis-master-toggle{font-size:12px}
.filters .layer-name{font-size:15px}
.filters .layer-kpi-badge{font-size:13px;line-height:1.4}
.filters .layer-period{font-size:12px}
.filters .mode{font-size:14px}
.filters .result-row span,.filters .result-row button{font-size:14px}
.filters .layer-guide{font-size:14px}
.filters .legend-note{font-size:13px}
.compare-toolbar strong{font-size:15px}
.compare-reading{font-size:12px;line-height:1.45}
.compare-pane header span{font-size:10px}
.compare-pane header small{font-size:10px;line-height:1.35}
.province-facts span,.province-facts small{font-size:9px;line-height:1.3}
.province-facts strong{font-size:13px}
.legend-toggle,.rank-toggle{font-size:12px}
.legend-panel,.rank-panel,.map-summary{font-size:12.5px;line-height:1.45}
.onboarding-card p{font-size:15px;line-height:1.55}
.onboarding-actions button{font-size:13px}
@media(max-width:760px){
  .tab{font-size:11.5px}
  .mobile-filter{font-size:12.5px}
  .filters .axis-subtitle{font-size:13px}
  .filters .layer-name{font-size:15px}
}
