/* Consultas de Compras Públicas | G&V Soluciones. Mismos tokens del sitio principal: un acento violeta. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f4f8; --surface: #ffffff; --surface-2: #edebf3; --line: #dfdce8; --line-strong: #c9c5d7;
  --text: #16141c; --text-2: #4c485e; --text-3: #6a667e;
  --accent: #5b3fd3; --accent-hover: #4c32bf; --accent-ink: #ffffff; --accent-soft: #ebe6ff; --accent-text: #4a2fbf;
  --wa: #1d8a4b; --wa-hover: #17773f; --ok: #1f7a46; --ok-soft: #e4f4ea; --warn: #9a5b00; --warn-soft: #fbefdc;
  --heat-0: #eeebf7; --heat-1: #d6cdf7; --heat-2: #b3a3f0; --heat-3: #8a71e4; --heat-4: #5b3fd3; --heat-5: #3c2696;
  --st-open: #1f7a46; --st-plan: #8a8699; --st-eval: #c07a12; --st-award: #5b3fd3; --st-contract: #2b6cb0;
  --shadow: 0 1px 2px rgb(35 25 80 / .05), 0 10px 30px rgb(35 25 80 / .07);
  --shadow-lg: 0 6px 16px rgb(35 25 80 / .10), 0 30px 70px rgb(35 25 80 / .18);
  --r-ctl: 12px; --r-panel: 20px; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f17; --surface: #1a1822; --surface-2: #221f2c; --line: #2d2a38; --line-strong: #3c3849;
    --text: #efedf5; --text-2: #bbb6cb; --text-3: #948fa8;
    --accent: #9079f2; --accent-hover: #a18df4; --accent-ink: #110e19; --accent-soft: #2a2344; --accent-text: #bcaefa;
    --wa: #2aa463; --wa-hover: #35b670; --ok: #6fd39b; --ok-soft: #173325; --warn: #f0b45a; --warn-soft: #3a2a12;
    --heat-0: #24212f; --heat-1: #332b55; --heat-2: #4a3a86; --heat-3: #6a54c4; --heat-4: #9079f2; --heat-5: #c2b5fb;
    --st-open: #6fd39b; --st-plan: #8f8aa3; --st-eval: #f0b45a; --st-award: #a08cf5; --st-contract: #73a9f0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .3);
    --shadow-lg: 0 6px 16px rgb(0 0 0 / .35), 0 30px 70px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- barra superior ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { width: min(1240px, 100% - 32px); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.logo-text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.logo-text small { font-weight: 500; font-size: 12px; color: var(--text-3); }
.top-end { display: flex; align-items: center; gap: 8px; }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-right: 6px; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-plan); }
.sync.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.sync.busy .dot { background: var(--st-eval); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .12s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-hover); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- portada ---------- */
.intro { padding: 44px 0 20px; display: grid; gap: 20px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.intro h1 { margin: 0; font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }
.lead { margin: 12px 0 0; max-width: 62ch; color: var(--text-2); font-size: 1.05rem; }
.search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 820px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.search .i { color: var(--text-3); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 16px; outline: none; }
.search .btn { height: 48px; padding: 0 22px; border-radius: 13px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); cursor: pointer; transition: border-color .15s, color .15s; }
.quick button:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- filtros ---------- */
.filters { margin-top: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); display: grid; gap: 14px; box-shadow: var(--shadow); }
.f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.f-row:nth-child(2) { grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-3); }
.field select, .field input { height: 40px; width: 100%; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface); }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field.inline select { width: auto; }
.seg { display: flex; padding: 3px; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line); }
.seg button { flex: 1; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.seg.sm button { height: 28px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chips button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-open { background: var(--st-open); } .st-plan { background: var(--st-plan); } .st-eval { background: var(--st-eval); }
.st-award { background: var(--st-award); } .st-contract { background: var(--st-contract); } .st-other { background: var(--line-strong); }
.f-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.active-filters { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; border: 0; cursor: pointer; }
.tag .i { width: 14px; height: 14px; }

/* ---------- indicadores ---------- */
.kpis { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); display: grid; gap: 2px; box-shadow: var(--shadow); overflow: hidden; }
.kpi .i { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; color: var(--accent-text); opacity: .8; }
.kpi .k-label { font-size: 13px; color: var(--text-3); font-weight: 500; }
.kpi strong { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--text-3); font-size: 12.5px; }
.kpi.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kpi.accent .k-label, .kpi.accent small, .kpi.accent .i { color: inherit; opacity: .85; }

/* ---------- paneles ---------- */
.grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  grid-template-areas: "map mes cat" "map tipo soon" "ent prov soon"; }
.a-map { grid-area: map; } .a-mes { grid-area: mes; } .a-cat { grid-area: cat; } .a-tipo { grid-area: tipo; }
.a-soon { grid-area: soon; } .a-ent { grid-area: ent; } .a-prov { grid-area: prov; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.map-panel { display: flex; flex-direction: column; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.p-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

/* mapa en mosaico */
.map { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(56px, 78px)); gap: 6px; align-content: center; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; border-radius: 10px; border: 1px solid transparent; background: var(--heat-0); color: var(--text); cursor: pointer; text-align: left; transition: transform .15s var(--ease-out), box-shadow .15s; min-width: 0; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); z-index: 2; }
.tile b { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile span { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile.h1 { background: var(--heat-1); } .tile.h2 { background: var(--heat-2); }
.tile.h3 { background: var(--heat-3); color: #fff; } .tile.h4 { background: var(--heat-4); color: #fff; } .tile.h5 { background: var(--heat-5); color: #fff; }
@media (prefers-color-scheme: dark) { .tile.h4, .tile.h5 { color: #120e20; } }
.tile.sel { outline: 3px solid var(--text); outline-offset: 1px; }
.tile.dim { opacity: .4; }
.tile.gal { border: 1px dashed var(--line-strong); }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.legend i { flex: 1; max-width: 180px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--heat-0), var(--heat-2), var(--heat-4), var(--heat-5)); }

/* gráficos */
.chart { position: relative; height: 210px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity .15s; }
.chart .bar:hover { opacity: 1; }
.chart .axis { fill: var(--text-3); font-size: 11px; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.tip { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow-lg); z-index: 5; }
.donut-wrap { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.donut-wrap svg { width: 150px; height: 150px; }
.donut-wrap .seg-arc { transition: opacity .15s; cursor: pointer; }
.donut-wrap .seg-arc:hover { opacity: .8; }
.donut-center { font-size: 22px; font-weight: 700; fill: var(--text); }
.donut-sub { font-size: 10px; fill: var(--text-3); }
.dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.dl i { width: 10px; height: 10px; border-radius: 3px; }
.dl b { font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; gap: 4px; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.bar-row .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bar-row .lbl span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .lbl span:last-child { color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; }
.bar-row .track { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 4px; background: var(--accent); transform-origin: left; animation: grow .6s var(--ease-out) both; }
.bar-row:hover .fill { background: var(--accent-hover); }
.bar-row.static { cursor: default; }
@keyframes grow { from { transform: scaleX(0); } }

.soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon li button { width: 100%; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.soon li button:hover { border-color: var(--accent); }
.soon .when { display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 12px; line-height: 1.15; text-align: center; }
.soon .when.hot { background: var(--warn-soft); color: var(--warn); }
.soon .what { min-width: 0; display: grid; }
.soon .what strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon .what span { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-3); font-size: 13px; margin: 0; }

/* ---------- resultados ---------- */
.results { margin-top: 14px; }
.res-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-out); }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.card .c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--text-3); }
.card .c-code { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.card h3 { grid-column: 1; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .c-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-2); }
.card .c-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card .c-meta .i { width: 15px; height: 15px; color: var(--text-3); }
.card .c-amt { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; display: grid; gap: 4px; justify-items: end; }
.card .c-amt strong { font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card .c-amt small { color: var(--text-3); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill.ant { background: var(--ok-soft); color: var(--ok); }
.pill.noant { background: var(--surface-2); color: var(--text-3); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--text-3); }
.empty .i { width: 34px; height: 34px; }
.empty strong { color: var(--text); }
.skeleton { height: 92px; border-radius: 16px; background: linear-gradient(90deg, var(--surface-2), var(--bg), var(--surface-2)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; }
.pager button[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { color: var(--text-3); padding: 0 4px; }

/* ---------- información ---------- */
.about { margin: 28px 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.about article { padding: 20px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.about h2 { margin: 0 0 8px; font-size: 16px; }
.about p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.about .cta { background: var(--accent-soft); border-color: transparent; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.foot { border-top: 1px solid var(--line); padding: 20px 0 28px; font-size: 12.5px; color: var(--text-3); }
.foot-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- ficha del proceso ---------- */
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(620px, 100%); padding: 0; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.drawer::backdrop { background: rgb(10 8 20 / .45); backdrop-filter: blur(2px); }
.drawer[open] { animation: slide .28s var(--ease-out); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.d-inner { height: 100%; display: flex; flex-direction: column; }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.d-head h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.d-body { flex: 1; overflow: auto; padding: 18px 22px 28px; display: grid; gap: 18px; align-content: start; }
.d-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-amounts div { padding: 12px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 2px; }
.d-amounts span { font-size: 12px; color: var(--text-3); }
.d-amounts strong { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.d-grid { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; margin: 0; font-size: 14px; }
.d-grid dt { color: var(--text-3); }
.d-grid dd { margin: 0; overflow-wrap: anywhere; }
.d-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--ok); background: var(--ok-soft); border-radius: 0 12px 12px 0; font-size: 13.5px; color: var(--text-2); }
.d-note { font-size: 12.5px; color: var(--text-3); margin: 0; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.d-section h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.d-section p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------- adaptable ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "map map" "mes cat" "tipo soon" "ent prov"; }
  .f-row, .f-row:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-row:nth-child(2) .grow { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .sync #sync-text { display: none; }
  .intro { padding-top: 28px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .i { display: none; }
  .grid { grid-template-columns: 1fr; grid-template-areas: "map" "mes" "cat" "soon" "tipo" "ent" "prov"; }
  .about { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card .c-amt { grid-column: 1; grid-row: auto; justify-items: start; text-align: left; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .search { padding-left: 14px; }
  .search .btn { padding: 0 14px; }
  .p-head { flex-direction: column; }
  .res-tools { justify-content: flex-start; }
  .d-amounts { grid-template-columns: 1fr 1fr; }
  .d-grid { grid-template-columns: 1fr; gap: 2px; }
  .d-grid dd { margin-bottom: 8px; }
  .donut-wrap { grid-template-columns: 120px 1fr; }
  .donut-wrap svg { width: 120px; height: 120px; }
  .tile b { font-size: 9.5px; }
}
@media (max-width: 420px) {
  .f-row, .f-row:nth-child(2) { grid-template-columns: 1fr; }
  .seg button { padding: 0 6px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
