:root {
  --site-bg: #f3f5f8;
  --site-fg: #101828;
  --site-accent: #0f9d8f;
  --site-on-accent: #ffffff;
  --site-surface: #ffffff;
  --site-muted: #667085;
  --site-border: #e4e9ef;
  --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --site-radius: 1;
  --site-space: 1;
  --site-type: 1;
  --site-motion: 1;

  --navy: #0b1f2e;
  --navy-2: #0e2739;
  --navy-3: #123247;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e4e9ef;
  --line-soft: #eef2f6;
  --teal: #0f9d8f;
  --teal-dark: #0b7f74;
  --teal-soft: #e8f6f3;
  --amber: #d97706;
  --amber-soft: #fdf4e3;
  --rose: #c0432f;
  --rose-soft: #fbece9;
  --sky: #0ea5e9;
  --r: calc(14px * var(--site-radius));
  --r-sm: calc(10px * var(--site-radius));
  --space: calc(1px * var(--site-space));
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
  --sidebar-w: 252px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font-family: var(--site-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
button, select { font: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--site-accent); color: var(--site-on-accent);
  padding: 9px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  padding: 22px 16px 16px;
  background:
    radial-gradient(420px 240px at 20% -4%, rgba(20, 184, 166, .16), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0a1b29 100%);
  color: #c7d3df;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 22px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: #2dd4bf;
  background: rgba(45, 212, 191, .1);
  border: 1px solid rgba(45, 212, 191, .22);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 25px; font-weight: 700; letter-spacing: -1.2px; }
.brand-dot { color: #2dd4bf; }
.brand-text small {
  margin-top: 5px; font-size: 9.5px; font-weight: 600;
  letter-spacing: 2.6px; text-transform: uppercase; color: #6f879b;
}
.nav-label {
  margin: 0 10px 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.7px; text-transform: uppercase; color: #5d7488;
}
.nav-label-row { display: flex; align-items: center; justify-content: space-between; }
.nav-count {
  background: rgba(255, 255, 255, .08); color: #9fb2c3;
  border-radius: 99px; padding: 1px 7px; font-size: 10px; letter-spacing: 0;
}
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 9px;
  color: #aab9c7; text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background calc(150ms * var(--site-motion)) ease, color calc(150ms * var(--site-motion)) ease;
}
.nav-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: #e8f0f6; background: rgba(255, 255, 255, .05); }
.nav-item.active { color: #d9fbf5; background: rgba(45, 212, 191, .12); }
.nav-item.active::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
.nav-municipios { margin-bottom: 6px; }
.muni-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7.5px 11px; border-radius: 8px;
  color: #aab9c7; text-decoration: none; font-size: 13px;
  transition: background calc(150ms * var(--site-motion)) ease, color calc(150ms * var(--site-motion)) ease;
}
.muni-link:hover { color: #eef6fa; background: rgba(255, 255, 255, .05); }
.muni-link.active { color: #fff; background: rgba(255, 255, 255, .07); }
.muni-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pc, #94a3b8); flex: 0 0 auto;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, #94a3b8) 16%, transparent);
}
.muni-link .muni-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muni-link .muni-badge {
  font-size: 9px; letter-spacing: .4px; color: #7f95a8;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; padding: 1px 5px;
}
.sidebar-card {
  margin-top: auto;
  background: linear-gradient(160deg, rgba(45, 212, 191, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(45, 212, 191, .16);
  border-radius: 12px; padding: 15px 14px 13px;
  position: relative; overflow: hidden;
}
.sidebar-card::before {
  content: ""; position: absolute; right: -40px; top: -50px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(45, 212, 191, .08); filter: blur(2px);
}
.sidebar-card-icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(45, 212, 191, .13); color: #5eead4;
  margin-bottom: 10px;
}
.sidebar-card-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-card strong { display: block; color: #eaf9f7; font-size: 12.5px; margin-bottom: 5px; }
.sidebar-card p { margin: 0 0 10px; font-size: 11.5px; line-height: 1.55; color: #93a9bb; }
.sidebar-card a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #5eead4; text-decoration: none; font-size: 11.5px; font-weight: 600;
}
.sidebar-card a svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-card a:hover { color: #99f6e4; }
.sidebar-card-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #7690a4; font-size: 10.5px;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
.sidebar-footer {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 8px 0; margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.avatar {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #eaf6f3; color: #0b7f74; font-size: 11px; font-weight: 700;
}
.sidebar-footer strong { display: block; color: #dfe9f0; font-size: 11.5px; }
.sidebar-footer small { color: #7590a5; font-size: 10px; }
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(7, 19, 29, .5); backdrop-filter: blur(2px);
}
.sidebar-close { display: none; color: #9fb2c3; }
.sidebar .sidebar-close { display: none; }
.icon-btn {
  appearance: none; border: 1px solid transparent; background: transparent;
  width: 34px; height: 34px; border-radius: 8px; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: #eef2f6; color: var(--ink); }
.menu-btn { display: none; margin-left: -6px; }

.main { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 25;
  height: 62px; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--site-bg) 86%, #ffffff);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--site-border);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint); min-width: 0; }
.breadcrumb span, .breadcrumb strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb strong { color: var(--ink-soft); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); flex: 0 0 auto; }
.source-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 27px; padding: 0 10px; border-radius: 7px;
  background: var(--site-surface); border: 1px solid var(--site-border);
  color: var(--ink-soft); font-size: 11.5px; font-weight: 500;
}
.topbar-date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; }
.topbar-date svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar-avatar {
  width: 29px; height: 29px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark);
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px;
}

.content {
  width: 100%; max-width: 1380px; margin: 0 auto;
  padding: calc(26px * var(--site-space)) calc(28px * var(--site-space)) calc(34px * var(--site-space));
  flex: 1;
}
.view { animation: viewIn calc(340ms * var(--site-motion)) cubic-bezier(.2, .7, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- Page heading ---------- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: calc(18px * var(--site-space)); margin-bottom: calc(20px * var(--site-space));
}
.eyebrow {
  margin: 0 0 7px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint);
}
.page-title {
  margin: 0; font-size: calc(29px * var(--site-type)); line-height: 1.15;
  font-weight: 650; letter-spacing: -.9px; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.page-title .title-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--site-accent);
  display: inline-block; flex: 0 0 auto;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-accent) 13%, transparent);
}
.page-sub { margin: 8px 0 0; max-width: 720px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--site-border); border-radius: var(--r-sm);
  background: var(--site-surface); color: var(--ink-soft);
  font-size: 12.5px; font-weight: 550; text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color calc(150ms * var(--site-motion)) ease, background calc(150ms * var(--site-motion)) ease;
}
.btn:hover { border-color: #c8d2dc; background: #fbfcfd; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primario { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-on-accent); }
.btn.primario:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.small { height: 29px; padding: 0 9px; font-size: 11.5px; }

.chip-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 9px; border-radius: 6px;
  border: 1px solid var(--site-border); background: var(--site-surface);
  color: var(--muted); font-size: 11px; font-weight: 500;
}
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.teal { background: var(--teal-soft); border-color: color-mix(in srgb, var(--site-accent) 22%, #fff); color: var(--teal-dark); }
.chip.base { background: var(--amber-soft); border-color: #f3dfb8; color: #92600d; }

/* ---------- Cards / KPIs ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(14px * var(--site-space)); margin-bottom: calc(16px * var(--site-space)); }
.card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.kpi { position: relative; padding: calc(16px * var(--site-space)) calc(17px * var(--site-space)) calc(14px * var(--site-space)); min-width: 0; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.kpi-label .hint { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #d2dae2; color: #98a2b3; font-size: 8px; font-weight: 700; display: grid; place-items: center; cursor: help; }
.kpi-icon {
  width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal-dark); flex: 0 0 auto;
}
.kpi-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi-value {
  margin-top: 10px; font-size: calc(26px * var(--site-type)); line-height: 1.08;
  font-weight: 650; letter-spacing: -1px; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.kpi-value .unit { margin-left: 5px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.kpi-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; min-height: 20px; }
.kpi-note { color: var(--faint); font-size: 10.5px; line-height: 1.4; }
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  border-radius: 5px; padding: 2px 6px;
  font-size: 10px; font-weight: 650; letter-spacing: .1px;
  font-variant-numeric: tabular-nums;
}
.delta.up { background: var(--teal-soft); color: var(--teal-dark); }
.delta.down { background: var(--rose-soft); color: var(--rose); }
.delta.flat { background: #f2f4f7; color: var(--muted); }
.delta svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.split-bar { display: flex; height: 4px; border-radius: 99px; overflow: hidden; background: #eef2f6; margin-top: 9px; }
.split-bar span { height: 100%; }
.split-bar .m { background: var(--site-accent); }
.split-bar .h { background: #b8c4d0; }
.kpi-split { display: flex; justify-content: space-between; margin-top: 5px; color: var(--faint); font-size: 9.5px; }
.sparkline { width: 60px; height: 22px; flex: 0 0 auto; margin-left: auto; opacity: .9; }
.sparkline path { fill: none; stroke: var(--site-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sparkline circle { fill: var(--site-surface); stroke: var(--site-accent); stroke-width: 1.7; }

/* ---------- Layout grids ---------- */
.grid-main { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: calc(16px * var(--site-space)); margin-bottom: calc(16px * var(--site-space)); align-items: stretch; }
.grid-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(16px * var(--site-space)); margin-bottom: calc(16px * var(--site-space)); align-items: stretch; }
.grid-full { margin-bottom: calc(16px * var(--site-space)); }

.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(16px * var(--site-space)) calc(18px * var(--site-space)) calc(13px * var(--site-space)); }
.panel-title { margin: 0; font-size: calc(14.5px * var(--site-type)); font-weight: 650; letter-spacing: -.15px; color: var(--ink); }
.panel-sub { margin: 4px 0 0; color: var(--faint); font-size: 11.5px; line-height: 1.45; }
.panel-body { padding: 0 calc(18px * var(--site-space)) calc(16px * var(--site-space)); flex: 1; }
.panel-body.pad-top { padding-top: 2px; }
.panel-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.panel-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 10.5px; }
.legend-key { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--site-accent); }
.legend-swatch.soft { background: #c9d4df; }
.legend-swatch.line { height: 2px; border-radius: 2px; width: 12px; }
.select-mini {
  appearance: none; height: 28px; padding: 0 24px 0 9px;
  border: 1px solid var(--site-border); border-radius: 7px;
  background: var(--site-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667085' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: var(--ink-soft); font-size: 11px; cursor: pointer;
}
.select-mini:focus { outline: 2px solid var(--site-accent); outline-offset: 1px; }
.segmented { display: inline-flex; gap: 2px; padding: 2px; background: #f1f4f7; border-radius: 8px; flex: 0 0 auto; }
.segmented button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  height: 24px; padding: 0 8px; border-radius: 6px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
  transition: background calc(140ms * var(--site-motion)) ease, color calc(140ms * var(--site-motion)) ease, box-shadow calc(140ms * var(--site-motion)) ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--site-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .09); }
[id] { scroll-margin-top: 78px; }

/* ---------- Horizontal bars ---------- */
.hbars { display: flex; flex-direction: column; gap: 3px; }
.hbar-row { display: grid; grid-template-columns: minmax(94px, 124px) minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 6px 0; }
.hbar-label { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; color: var(--ink-soft); }
.hbar-label .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { position: relative; height: 9px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.hbar-track::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 24.6%, rgba(152, 162, 179, .18) 24.6% 25%);
  pointer-events: none;
}
.hbar-fill {
  position: absolute; inset: 0 auto 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--site-accent), #2dd4bf);
  transition: width calc(600ms * var(--site-motion)) cubic-bezier(.2, .7, .2, 1);
}
.hbar-fill.neutral { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.hbar-value { text-align: right; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hbars-axis { display: flex; justify-content: space-between; margin: 4px 48px 0 134px; color: var(--faint); font-size: 9.5px; }
.hbar-row[data-tip] { cursor: default; border-radius: 5px; }
.hbar-row[data-tip]:hover { background: #fafcfd; }
.hbar-row[data-tip]:hover .hbar-fill { filter: brightness(.96); }

/* ---------- Donut ---------- */
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding-top: 2px; }
.donut { position: relative; width: 176px; height: 176px; flex: 0 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut circle { fill: none; stroke-width: 19; transition: stroke-width calc(160ms * var(--site-motion)) ease, opacity calc(160ms * var(--site-motion)) ease; }
.donut circle.seg { cursor: default; }
.donut circle.seg:hover { stroke-width: 24; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.donut-center span { display: block; margin-top: 2px; color: var(--faint); font-size: 10px; }
.donut-legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.donut-item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.donut-item:last-child { border-bottom: 0; }
.donut-item .sw { width: 8px; height: 8px; border-radius: 2px; }
.donut-item .lbl { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-item .val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-item .pc { color: var(--faint); font-size: 10px; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.donut-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 10.5px; display: flex; align-items: center; gap: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 calc(-18px * var(--site-space)) 0; padding: 0 calc(18px * var(--site-space)); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--faint); font-size: 9.5px; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase; white-space: nowrap;
}
td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfd; }
td.num, th.num { text-align: right; }
.td-strong { color: var(--ink); font-weight: 600; }
.muni-cell { display: flex; align-items: center; gap: 8px; min-width: 128px; }
.muni-cell a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 12.5px; }
.muni-cell a:hover { color: var(--teal-dark); }
.party-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 5px; padding: 2px 6px;
  background: color-mix(in srgb, var(--pc) 11%, #fff);
  color: color-mix(in srgb, var(--pc) 88%, #000);
  font-size: 9.5px; font-weight: 700; letter-spacing: .2px; white-space: nowrap;
}
.party-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pc); }
.mini-track { display: block; height: 3px; width: 74px; border-radius: 99px; background: var(--line-soft); margin-top: 5px; overflow: hidden; }
.mini-track span { display: block; height: 100%; border-radius: 99px; background: var(--pc, var(--site-accent)); }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 2px 6px; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--teal-soft); color: var(--teal-dark); }
.badge.base { background: #f2f4f7; color: var(--muted); }
.badge.warn { background: var(--amber-soft); color: #92600d; }
.table-note { margin: 10px 0 0; color: var(--faint); font-size: 10.5px; display: flex; align-items: center; gap: 5px; }
.table-note svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.scroll-hint { display: none; margin: 8px 0 0; color: var(--faint); font-size: 10px; align-items: center; gap: 4px; }
.scroll-hint svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Heat matrix ---------- */
.matrix-wrap { overflow-x: auto; margin: 0 calc(-18px * var(--site-space)); padding: 0 calc(18px * var(--site-space)); }
.matrix { min-width: 660px; border-collapse: separate; border-spacing: 3px; }
.matrix th { border: 0; padding: 5px 7px; font-size: 9px; }
.matrix th:first-child { text-align: left; padding-left: 0; }
.matrix td:first-child, .matrix th:first-child { position: sticky; left: 0; z-index: 2; background: var(--site-surface); }
.matrix th .mh { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.matrix th a { color: var(--ink-soft); text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.matrix th a:hover { color: var(--teal-dark); }
.matrix td { border: 0; border-radius: 6px; padding: 8px 9px; font-size: 11.5px; font-weight: 600; text-align: right; color: var(--ink); }
.matrix td:first-child { text-align: left; background: transparent !important; color: var(--ink-soft); font-weight: 500; font-size: 11.5px; padding-left: 0; }
.matrix td:first-child small { display: block; color: var(--faint); font-size: 9px; font-weight: 400; margin-top: 1px; }
.heat-good { background: #e3f4ee; }
.heat-mid { background: #fbf3de; }
.heat-bad { background: #f9e6e2; }
.matrix-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; color: var(--faint); font-size: 10px; }
.matrix-legend .lg { display: inline-flex; align-items: center; gap: 4px; }
.matrix-legend .sq { width: 9px; height: 9px; border-radius: 2px; }
.matrix-note { margin: 10px 0 0; color: var(--faint); font-size: 10.5px; line-height: 1.5; }

/* ---------- Bars verticales ---------- */
.vbars { position: relative; padding-left: 48px; }
.vbars-plot { position: relative; height: 218px; }
.vbars-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.vbars-grid span { border-top: 1px dashed #e8edf2; height: 0; }
.vbars-y { position: absolute; left: 0; top: 0; height: 218px; width: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.vbars-y span { font-size: 9.5px; color: var(--faint); text-align: right; transform: translateY(-5px); font-variant-numeric: tabular-nums; }
.vbars-groups { position: absolute; inset: 0; display: flex; align-items: stretch; padding: 0 8px; }
.vbars-group { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.vbars-pair { display: flex; align-items: flex-end; justify-content: center; gap: 9px; width: 100%; height: 100%; padding-top: 20px; }
.vbars-years { display: flex; padding: 8px 8px 0 56px; }
.vbars-years .vbar-year { flex: 1; text-align: center; margin-top: 0; }
.vbar { width: 27px; max-width: 16%; min-height: 3px; border-radius: 5px 5px 2px 2px; background: var(--site-accent); position: relative; transition: filter calc(150ms * var(--site-motion)); cursor: default; }
.vbar:hover { filter: brightness(.94); }
.vbar.second { background: #cbd5e1; }
.vbar .vbar-val { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); font-size: 9px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vbar.second .vbar-val { color: var(--faint); font-weight: 500; }
.vbar-year { margin-top: 8px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.vbar-part { font-size: 9px; color: var(--faint); margin-top: 1px; }
.vbars-legend { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--faint); font-size: 10.5px; flex-wrap: wrap; }

/* ---------- Diagnosis cards ---------- */
.diag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diag-card { background: #fafcfd; border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 12px 11px; min-width: 0; }
.diag-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.diag-card h3 { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.diag-tag { font-size: 8px; font-weight: 600; color: var(--faint); background: #f2f4f7; border-radius: 4px; padding: 1px 4px; white-space: nowrap; }
.diag-value { margin-top: 7px; font-size: 22px; font-weight: 650; letter-spacing: -.7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.diag-value small { font-size: 10px; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-left: 2px; }
.diag-meter { height: 4px; border-radius: 99px; background: var(--line-soft); margin: 8px 0 8px; overflow: hidden; }
.diag-meter span { display: block; height: 100%; border-radius: 99px; background: var(--site-accent); }
.diag-card.warn .diag-meter span { background: var(--amber); }
.diag-reading { margin: 0; color: var(--faint); font-size: 10.5px; line-height: 1.5; }
.diag-source { margin-top: 7px; color: #b0bac6; font-size: 8.5px; }

/* ---------- Political reading ---------- */
.pol-nota { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.pol-block { margin-top: 12px; }
.pol-block h4 { margin: 0 0 7px; color: var(--faint); font-size: 9.5px; letter-spacing: .7px; text-transform: uppercase; font-weight: 700; }
.district-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.district-chips span { background: #f2f5f8; border: 1px solid var(--line-soft); color: var(--ink-soft); border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 600; }
.stack-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #eef2f6; margin: 3px 0 9px; }
.stack-bar span { height: 100%; min-width: 2px; }
.stack-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.stack-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.stack-item .sw { width: 6px; height: 6px; border-radius: 2px; flex: 0 0 auto; }
.stack-item strong { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.pol-empty { color: var(--faint); font-size: 11px; }

/* ---------- Budget / security ---------- */
.big-money { font-size: 24px; font-weight: 650; letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-money small { font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-left: 4px; }
.money-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.money-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(0, 1.6fr) 70px; align-items: center; gap: 9px; }
.money-label { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money-track { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.money-track span { display: block; height: 100%; border-radius: 99px; background: var(--site-accent); }
.money-val { text-align: right; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.obra-list { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 11px; display: flex; flex-direction: column; gap: 9px; }
.obra { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.obra-name { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.obra-meta { margin-top: 2px; font-size: 9.5px; color: var(--faint); }
.obra-monto { font-size: 10.5px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sec-total { display: flex; align-items: baseline; gap: 6px; }
.sec-total strong { font-size: 24px; font-weight: 650; letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sec-total span { color: var(--faint); font-size: 10.5px; }
.sec-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sec-row { display: grid; grid-template-columns: minmax(100px, 1.2fr) minmax(0, 1.6fr) 40px; align-items: center; gap: 8px; }
.sec-label { font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-track { height: 5px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.sec-track span { display: block; height: 100%; background: #f0a25c; border-radius: 99px; }
.sec-val { text-align: right; font-size: 10.5px; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.risk-box { margin-top: 13px; padding: 10px 11px; background: #fbf7ee; border: 1px solid #f3e7cf; border-radius: 8px; font-size: 10.5px; color: #7c5a17; line-height: 1.5; }
.risk-box strong { color: #5f4510; }
.source-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 11px; color: var(--teal-dark); font-size: 10.5px; font-weight: 600; text-decoration: none; }
.source-link svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.source-link:hover { text-decoration: underline; }

/* ---------- Empty ---------- */
.empty {
  border: 1px dashed #dbe3ea; background: #fbfcfd; border-radius: 10px;
  padding: 24px 18px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; min-height: 190px; height: 100%;
}
.empty-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f2f5f8; color: #98a2b3; margin-bottom: 10px; }
.empty-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { margin: 0 0 5px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.empty p { margin: 0; max-width: 300px; color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.empty .badge { margin-top: 10px; }

/* ---------- Sources / notes ---------- */
.sources-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.source-list { display: flex; flex-direction: column; gap: 2px; }
.source-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; color: var(--ink-soft); line-height: 1.45; }
.source-item:last-child { border-bottom: 0; }
.source-item .n { color: var(--faint); font-size: 9.5px; min-width: 14px; padding-top: 1px; }
.source-item a { color: var(--ink-soft); text-decoration: none; }
.source-item a:hover { color: var(--teal-dark); text-decoration: underline; }
.pending-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pending-list li { position: relative; padding-left: 12px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.pending-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #d0a24a; }
details.pendientes { margin-top: 10px; }
details.pendientes summary { cursor: pointer; color: var(--teal-dark); font-size: 10.5px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
details.pendientes summary::-webkit-details-marker { display: none; }
details.pendientes summary svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform calc(150ms * var(--site-motion)); }
details.pendientes[open] summary svg { transform: rotate(180deg); }
details.pendientes .pending-list { margin-top: 9px; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.meta-chips span { font-size: 9.5px; color: var(--faint); border: 1px solid var(--line-soft); border-radius: 5px; padding: 2px 6px; }
.meta-chips strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Methodology ---------- */
.metodo-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.metodo-statement { padding: calc(24px * var(--site-space)); display: flex; flex-direction: column; justify-content: center; }
.metodo-statement h2 { margin: 0 0 10px; font-size: calc(22px * var(--site-type)); letter-spacing: -.5px; font-weight: 650; line-height: 1.25; }
.metodo-statement p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 560px; }
.metodo-statement .quote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.metodo-statement .quote .live-dot { background: var(--site-accent); }
.metodo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metodo-stat { padding: 14px; border-radius: 10px; background: #fafcfd; border: 1px solid var(--line-soft); }
.metodo-stat strong { display: block; font-size: 22px; font-weight: 650; letter-spacing: -.7px; color: var(--ink); }
.metodo-stat span { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; line-height: 1.4; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feature { border: 1px solid var(--line-soft); border-radius: 10px; padding: 13px; background: #fafcfd; }
.feature h3 { margin: 0 0 5px; font-size: 11.5px; color: var(--ink-soft); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.feature h3 svg { width: 13px; height: 13px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin: 0; color: var(--faint); font-size: 10.5px; line-height: 1.55; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.rule { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.rule:last-child, .rule:nth-last-child(2) { border-bottom: 0; }
.rule .check { width: 17px; height: 17px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.rule .check svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rule strong { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; }
.rule p { margin: 0; color: var(--faint); font-size: 10.5px; line-height: 1.5; }
.complete-yes { color: var(--teal-dark); font-weight: 700; }
.complete-no { color: #b3bdc8; }
.metodo-foot { color: var(--faint); font-size: 10.5px; line-height: 1.6; margin-top: 12px; }

/* ---------- Municipality hero ---------- */
.muni-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.muni-hero .page-title { font-size: calc(31px * var(--site-type)); }
.winner-line { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.winner-line .party-chip { font-size: 10px; padding: 3px 7px; }
.winner-line .sep { color: #c8d2dc; }
.prevnext { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.prevnext a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.prevnext a:hover { background: var(--site-surface); color: var(--ink); border: 1px solid var(--line); }
.prevnext svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tooltip ---------- */
.chart-tip {
  position: fixed; z-index: 80; pointer-events: none;
  max-width: 230px; padding: 8px 10px;
  border-radius: 8px; background: #0b1f2e; color: #f2f6fa;
  box-shadow: 0 8px 22px rgba(8, 20, 30, .22);
  font-size: 11px; line-height: 1.45; opacity: 0; transform: translateY(3px);
  transition: opacity calc(120ms * var(--site-motion)) ease, transform calc(120ms * var(--site-motion)) ease;
}
.chart-tip.show { opacity: 1; transform: none; }
.chart-tip strong { display: block; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #8fa6b8; margin-bottom: 2px; font-weight: 600; }
.chart-tip .tip-main { font-size: 13px; font-weight: 650; }
.chart-tip .tip-sub { color: #a9bccb; margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 28px 22px; border-top: 1px solid var(--site-border);
  color: var(--faint); font-size: 10.5px;
}
.site-footer strong { color: var(--ink-soft); font-weight: 600; margin-right: 6px; }
.footer-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-meta a { color: var(--teal-dark); text-decoration: none; font-weight: 600; }
.footer-meta a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .diag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform calc(220ms * var(--site-motion)) cubic-bezier(.2, .7, .2, 1); box-shadow: 18px 0 50px rgba(8, 20, 30, .25); }
  .sidebar.open { transform: none; }
  .sidebar .sidebar-close { display: grid; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .grid-main { grid-template-columns: 1fr; }
  .grid-half { grid-template-columns: 1fr; }
  .metodo-intro { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .content { padding: calc(18px * var(--site-space)) calc(16px * var(--site-space)) calc(28px * var(--site-space)); }
  .topbar { padding: 0 16px; height: 56px; }
  .topbar-date { display: none; }
  .page-head { flex-direction: column; gap: 12px; }
  .page-actions { width: 100%; }
  .page-title { font-size: calc(25px * var(--site-type)); }
  .page-sub { font-size: 13px; }
  .kpi-value { font-size: calc(23px * var(--site-type)); }
  .kpi { padding: 14px; }
  .kpi-label { font-size: 10.5px; white-space: normal; }
  .kpi-icon { width: 24px; height: 24px; }
  .kpi-icon svg { width: 12px; height: 12px; }
  .kpi-note { font-size: 9.5px; }
  .panel-head { padding: 14px 14px 11px; }
  .panel-body { padding: 0 14px 14px; }
  .table-wrap, .matrix-wrap { margin: 0 -14px; padding: 0 14px; }
  .table-wrap table, .matrix { min-width: 640px; }
  .matrix { min-width: 620px; }
  .diag-grid { grid-template-columns: 1fr 1fr; }
  .sources-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hbars-axis { margin-left: 0; margin-right: 48px; }
  .donut { width: 150px; height: 150px; }
  .donut-center strong { font-size: 19px; }
  .site-footer { padding: 14px 16px 18px; }
  .muni-hero { flex-direction: column; }
  .rules { grid-template-columns: 1fr; }
  .rule:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
  .metodo-stats { grid-template-columns: 1fr 1fr; }
  .source-badge { display: none; }
}
@media (max-width: 520px) {
  .kpi-grid { gap: 10px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 20px; }
  .kpi-value .unit { display: none; }
  .diag-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .metodo-stats { grid-template-columns: 1fr 1fr; }
  .donut-wrap { gap: 12px; }
  .donut-legend { min-width: 100%; }
  .hbar-row { grid-template-columns: minmax(84px, 104px) minmax(0, 1fr) 44px; }
  .hbar-label { font-size: 10.5px; }
  .vbar { width: 22px; }
  .vbar-pair { gap: 6px; }
  .vbar-val { font-size: 8px; }
  .vbar.second .vbar-val { display: none; }
  .scroll-hint { display: flex; }
  .page-actions .btn { flex: 1; justify-content: center; }
  .topbar-avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
