:root {
  --navy: #13294b; --navy2: #1e3a66; --ink: #1b1f24; --muted: #5d6877; --line: #dde2e8; --bg: #f3f5f8; --card: #fff;
  --oro: #c9a227; --acc: #0b5f8a; --ok: #2f7d4f; --ko: #b3261e; --ab: #9a6a00;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 "Source Sans 3", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--acc); }
h1, h2 { font-family: "Source Serif 4", Georgia, serif; letter-spacing: -.01em; }
.cab { background: var(--navy); color: #fff; }
.cab-in { max-width: 1180px; margin: 0 auto; padding: 22px 16px 14px; display: flex; gap: 16px; align-items: flex-start; }
.sello { flex: 0 0 auto; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.35); border-radius: 8px; display: flex; align-items: flex-end; gap: 4px; padding: 7px; margin-top: 4px; }
.sello span { flex: 1; background: #e8eef6; border-radius: 1px; }
.sello span:nth-child(1) { height: 40%; } .sello span:nth-child(2) { height: 65%; } .sello span:nth-child(3) { height: 100%; background: var(--oro); } .sello span:nth-child(4) { height: 55%; }
.ante { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #b9c6da; font-weight: 600; }
h1 { margin: 2px 0 6px; font-size: clamp(25px, 4.6vw, 40px); line-height: 1.1; }
.sub { margin: 0; color: #d7dfeb; max-width: 760px; font-size: 16px; }
.menu { max-width: 1180px; margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { color: #cfd9e8; text-decoration: none; padding: 10px 10px 11px; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.menu a:hover, .menu a.act { color: #fff; border-bottom-color: var(--oro); }
.ctrl { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.ctrl-in { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid #c3ccd8; border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 12px; font: 600 14px/1 "Source Sans 3", sans-serif; color: var(--navy); cursor: pointer; min-height: 38px; }
.seg button + button { border-left: 1px solid #c3ccd8; }
.seg button.on { background: var(--navy); color: #fff; }
.seg.peq { margin: 4px 0 8px; } .seg.peq button { padding: 6px 10px; min-height: 34px; font-size: 13.5px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; min-height: 38px; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }
main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; }
.bloque { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px 16px; margin: 18px 0; }
.bloque h2 { margin: 0 0 6px; font-size: clamp(21px, 3.4vw, 27px); color: var(--navy); }
.nota { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 14px; }
.kpi { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 8px; padding: 9px 10px; background: #fbfcfd; }
.kpi .a { font-weight: 700; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.kpi .v { font: 700 21px/1.15 "Source Serif 4", serif; color: var(--navy); margin: 2px 0; }
.kpi .d { font-size: 13px; font-weight: 600; } .kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--ko); }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi.proy { border-top-color: var(--oro); }
.graf { width: 100%; }
.fila-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
input[type=search], input[list], select { font: 15px "Source Sans 3", sans-serif; padding: 8px 10px; border: 1px solid #c3ccd8; border-radius: 8px; background: #fff; color: var(--ink); min-height: 40px; max-width: 100%; }
input[type=search], input[list] { min-width: 220px; flex: 1 1 220px; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0 10px; -webkit-overflow-scrolling: touch; }
.tabla { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabla th, .tabla td { padding: 7px 9px; border-bottom: 1px solid #eef1f4; text-align: left; white-space: nowrap; }
.tabla th { background: #eef2f7; color: var(--navy); font-weight: 700; position: sticky; top: 0; z-index: 1; }
.tabla td.n, .tabla th.n { text-align: right; }
.tabla tr.tot td { font-weight: 700; background: #f6f8fb; }
.tabla.orden th { cursor: pointer; user-select: none; }
.tabla.orden th.asc::after { content: " ▲"; font-size: 10px; } .tabla.orden th.desc::after { content: " ▼"; font-size: 10px; }
.tabla tbody tr.clic { cursor: pointer; } .tabla tbody tr.clic:hover td { background: #f3f7fc; }
.tabla td.desc { white-space: normal; min-width: 260px; }
.tabla td.mun { position: sticky; left: 0; background: #fff; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: #fff; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 0 0 0 2px; cursor: pointer; }
.btn { font: 600 14px "Source Sans 3", sans-serif; color: var(--navy); background: #fff; border: 1px solid #c3ccd8; border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 38px; }
.btn:hover { background: #eef2f7; }
.ficha-cab { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 6px 0; }
.ficha-cab .nom { font: 700 22px "Source Serif 4", serif; color: var(--navy); }
.ficha-cab .dato { color: var(--muted); font-size: 14.5px; }
.ficha-cab .dato b { color: var(--ink); }
.vot-lista { display: grid; gap: 8px; }
.vot { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.vot summary { list-style: none; cursor: pointer; padding: 10px 12px; display: grid; grid-template-columns: 96px 1fr auto; gap: 4px 12px; align-items: center; }
.vot summary::-webkit-details-marker { display: none; }
.vot .f { font-weight: 700; color: var(--navy); font-size: 14px; }
.vot .t { font-weight: 600; }
.vot .t small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.vot .r { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.vot .sent { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.vot .sent span b { margin-right: 4px; }
.lbl-f { color: var(--ok); } .lbl-c { color: var(--ko); } .lbl-a { color: var(--ab); }
.vot .det { padding: 0 12px 12px; font-size: 14px; }
.vot .det blockquote { margin: 6px 0 8px; padding: 8px 10px; background: #f6f8fb; border-left: 3px solid var(--navy2); color: #333; }
.vot .det .asis { columns: 2 240px; column-gap: 18px; margin: 6px 0; padding: 0; list-style: none; }
.vot .det .asis li { break-inside: avoid; font-size: 13.5px; padding: 1px 0; }
.res-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; width: 120px; background: #eee; }
.res-bar i { display: block; height: 100%; }
.fuentes li { margin-bottom: 8px; }
.pie { text-align: center; color: var(--muted); font-size: 13.5px; padding: 18px 16px 90px; }
.compartir { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; background: var(--navy); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px; font: 700 15px "Source Sans 3", sans-serif; box-shadow: 0 6px 18px rgba(19,41,75,.3); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: #222; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.on { opacity: 1; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi .v { font-size: 18px; }
  .vot summary { grid-template-columns: 1fr auto; } .vot .f { grid-column: 1 / -1; }
  .bloque { padding: 14px 12px; }
  .cab-in { padding-top: 16px; } .sello { display: none; }
  html { scroll-padding-top: 150px; }
}
