/* Cuánto Cobran — papel de nómina, tinta verde y un sello rojo */
/* Archivo (SIL Open Font License), servida desde la propia web: sin llamadas a terceros */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/archivo-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/archivo-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --papel: #eef3ec;
  --hoja: #f8fbf6;
  --tinta: #1c3b2e;
  --gris: #5f7368;
  --linea: #cad7cd;
  --sello: #b3262d;
  --foco: #2f6f9f;
  --ancho: 46rem;
  --c1: #1c3b2e; --c2: #5b8a6f; --c3: #a3c2ae; --c4: #7d6a3a;
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  color: var(--tinta);
  background: var(--papel);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #122019; --hoja: #18291f; --tinta: #e3ece5; --gris: #9db1a5; --linea: #2c4436; --sello: #e2555b; --foco: #7cb7e3;
    --c1: #e3ece5; --c2: #8fbfa2; --c3: #4f7a62; --c4: #c9b27a;
  }
}
:root[data-theme="dark"] {
  --papel: #122019; --hoja: #18291f; --tinta: #e3ece5; --gris: #9db1a5; --linea: #2c4436; --sello: #e2555b; --foco: #7cb7e3;
  --c1: #e3ece5; --c2: #8fbfa2; --c3: #4f7a62; --c4: #c9b27a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--papel); }
a { color: inherit; text-decoration-color: var(--linea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: 2px; }

.cabecera, main, .pie { max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }
.cabecera { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.marca { font-weight: 800; font-variation-settings: "wdth" 125; text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.cabecera nav { display: flex; gap: 1.1rem; font-size: .95rem; }
.cabecera nav a { text-decoration: none; color: var(--gris); }
.cabecera nav a:hover { color: var(--tinta); }
.pie { color: var(--gris); font-size: .85rem; padding-top: 3rem; padding-bottom: 3rem; }

h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.02em; margin: 1.5rem 0 .75rem; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 2.5rem 0 .75rem; }
.texto p { max-width: 38rem; }
.imp, .total strong, .pos { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Portada: la pregunta es el buscador */
.portada { padding: clamp(2.5rem, 10vw, 6rem) 0 1rem; }
.pregunta { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem;
  font-size: clamp(2.2rem, 8.5vw, 4.6rem); font-weight: 800; font-variation-settings: "wdth" 115; line-height: 1.05; letter-spacing: -.03em; }
.pregunta label { white-space: nowrap; }
.pregunta input { flex: 1 1 8ch; min-width: 0; font: inherit; color: var(--tinta); background: transparent; border: 0;
  border-bottom: 3px solid var(--tinta); padding: 0; letter-spacing: inherit; }
.pregunta input::placeholder { color: var(--linea); }
.pregunta input:focus { outline: none; border-bottom-color: var(--sello); }
.pregunta input::-webkit-search-cancel-button { display: none; }
.sugerencias { position: absolute; left: 0; right: 0; top: 100%; margin: .5rem 0 0; padding: .25rem 0; list-style: none; z-index: 5;
  background: var(--hoja); border: 1px solid var(--linea); font-size: 1rem; font-weight: 400; font-variation-settings: "wdth" 100; letter-spacing: 0; box-shadow: 0 8px 24px rgb(28 59 46 / .12); }
.sugerencias a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .55rem .9rem; text-decoration: none; }
.sugerencias a[aria-selected="true"], .sugerencias a:hover { background: var(--papel); }
.sugerencias small { color: var(--gris); grid-column: 1; }
.sugerencias .imp { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.ayuda { color: var(--gris); margin: 1.25rem 0 0; max-width: 34rem; }

/* Listas con líneas, como un libro de cuentas */
.lista { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--tinta); }
.lista li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--linea); }
.lista li a { font-weight: 600; }
.lista .tipo { grid-column: 1; color: var(--gris); font-size: .88rem; }
.lista .imp { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
.numerada li { grid-template-columns: 2.2rem 1fr auto; }
.numerada .pos { grid-row: 1 / 3; color: var(--gris); font-size: .9rem; }
.numerada .tipo { grid-column: 2; }
.numerada .imp { grid-column: 3; }
.mas { margin-top: 1rem; }
.anios { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 1.25rem; }
.anios a { color: var(--gris); text-decoration: none; }
.anios a[aria-current="page"] { color: var(--tinta); font-weight: 700; border-bottom: 2px solid var(--tinta); }

/* Ficha de consejero */
.resumen { font-size: 1.15rem; max-width: 36rem; margin: 0 0 1.5rem; }
.serie { margin: 0 0 2rem; overflow-x: auto; }
.serie rect { fill: var(--tinta); opacity: .85; }
.serie g:last-child rect { opacity: 1; }
.serie text { fill: var(--gris); font-size: 11px; font-family: inherit; }
.nominas { display: grid; gap: 1.75rem; }

/* La nómina */
.nomina { position: relative; background: var(--hoja); border: 1px solid var(--linea); padding: 1.25rem 1.25rem 1rem; }
.nom-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--tinta); padding-right: 7.5rem; }
.nom-cab p { margin: 0; }
.emp { font-weight: 700; font-size: 1.05rem; }
.emp a { text-decoration: none; }
.cargo, .periodo { color: var(--gris); font-size: .88rem; }
.lineas { padding: .35rem 0; }
.linea { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px dotted var(--linea); font-size: .96rem; }
.linea.vacia { color: var(--gris); }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding-top: .8rem; border-top: 2px solid var(--tinta); }
.total span { font-weight: 600; }
.total strong { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -.02em; }
.var { margin: .25rem 0 0; color: var(--gris); font-size: .9rem; text-align: right; }
.fuente { display: inline-block; margin-top: .75rem; font-size: .88rem; color: var(--gris); }

/* El sello: lo único que se sale de la cuadrícula */
.sello { position: absolute; top: .9rem; right: .9rem; transform: rotate(-6deg); color: var(--sello); border: 2px solid currentColor;
  border-radius: 4px; padding: .3rem .55rem .25rem; font-size: .72rem; font-weight: 800; font-variation-settings: "wdth" 85;
  line-height: 1.1; max-width: 7rem; text-align: center; opacity: .88; box-shadow: inset 0 0 0 2px var(--hoja), inset 0 0 0 3px currentColor; }
.anio { position: relative; }
.anio-cab { position: relative; padding-right: 8rem; }
.anio-cab h2 { margin-bottom: .25rem; }
.anio-cab p { margin: 0 0 .9rem; color: var(--gris); }
.anio-cab .sello { top: .25rem; right: 0; }

@media (max-width: 30rem) {
  .nom-cab { padding-right: 0; padding-top: 2.4rem; }
  .anio-cab { padding-right: 0; padding-top: 2.6rem; }
  .anio-cab .sello { top: 0; }
  .numerada li { grid-template-columns: 1.8rem 1fr auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .nomina .sello { animation: estampar .35s cubic-bezier(.2, .9, .3, 1.4) both .15s; }
  @keyframes estampar { from { transform: rotate(-6deg) scale(1.8); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: .88; } }
}

/* consejo frente a plantilla */
.plantilla { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--linea, #cad7cd); border-radius: 6px; }
.plantilla h2 { margin-top: 0; font-size: 1.1rem; }
.plantilla p { margin: .5rem 0; }
.evol { border-collapse: collapse; margin: .75rem 0; font-variant-numeric: tabular-nums; }
.evol th, .evol td { padding: .25rem .9rem .25rem 0; text-align: right; }
.evol th:first-child, .evol thead th { text-align: left; }
.nota { font-size: .85rem; opacity: .75; }

/* Ficha de consejero */
.ficha-cab h1 { margin-bottom: .35rem; }
.ficha-cab .sub { margin: 0; font-size: 1.05rem; }
.ficha-cab .meta { margin: .2rem 0 0; color: var(--gris); font-size: .9rem; }
.cifras { display: grid; gap: 0; margin: 1.5rem 0 .5rem; border-top: 2px solid var(--tinta); }
.cifra { padding: .9rem 0 1rem; border-bottom: 1px solid var(--linea); }
.cifra .et { margin: 0; color: var(--gris); font-size: .9rem; font-weight: 600; }
.cifra .num { margin: .1rem 0 .2rem; font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; font-variation-settings: "wdth" 118;
  letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dato-sec { margin: .15rem 0 0; color: var(--gris); font-size: .9rem; }
.reparto { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .92rem; }
.reparto li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-top: 1px dotted var(--linea); }
@media (min-width: 44rem) {
  .cifras { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
}

.grafico { margin: 0; }
.grafico svg { width: 100%; height: auto; max-height: 15rem; display: block; overflow: visible; }
.grafico text { fill: var(--gris); font-size: 10px; font-family: inherit; }
.grafico .ast { fill: var(--sello); font-size: 14px; font-weight: 800; }
.grafico .c1 { fill: var(--c1); } .grafico .c2 { fill: var(--c2); } .grafico .c3 { fill: var(--c3); } .grafico .c4 { fill: var(--c4); }
.grafico .hit { fill: transparent; }
.grafico .barra { cursor: pointer; outline: none; }
.grafico .barra rect:not(.hit):not(.sd) { opacity: .72; transition: opacity .15s; }
.grafico .barra.activa rect:not(.hit):not(.sd), .grafico .barra:hover rect:not(.hit):not(.sd) { opacity: 1; }
.grafico .barra.activa text { fill: var(--tinta); font-weight: 700; }
.grafico .barra:focus-visible .hit { stroke: var(--foco); stroke-width: 1.5; }
.grafico .sd { fill: none; stroke: var(--gris); stroke-dasharray: 3 3; }
.grafico .fuera line { stroke: var(--linea); stroke-width: 2; }
.det { min-height: 2.6rem; margin-top: .5rem; font-size: .95rem; display: flex; flex-direction: column; gap: .1rem; }
.det strong { font-variant-numeric: tabular-nums; }
.det span { color: var(--gris); font-size: .88rem; }
.leyenda { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--gris); }
.leyenda i, .sd-muestra { display: inline-block; width: .8rem; height: .8rem; margin-right: .35rem; vertical-align: -1px; }
.leyenda .c1 { background: var(--c1); } .leyenda .c2 { background: var(--c2); } .leyenda .c3 { background: var(--c3); } .leyenda .c4 { background: var(--c4); }
.sd-muestra { border: 1px dashed var(--gris); }

.consejos li { grid-template-columns: 1fr auto; }
.consejos .tipo { margin: .1rem 0 0; }
.consejos .imp { display: flex; flex-direction: column; align-items: flex-end; grid-row: 1; }
.consejos .imp small { color: var(--gris); font-size: .78rem; }

.selector { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .4rem; margin: 0 0 1rem; scrollbar-width: thin; }
.selector button { font: inherit; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--gris); background: transparent;
  border: 1px solid var(--linea); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; flex: none; }
.selector button[aria-pressed="true"] { color: var(--hoja); background: var(--tinta); border-color: var(--tinta); font-weight: 700; }
.panel + .panel { margin-top: 2rem; }
.total.conjunto { border-top: 2px solid var(--tinta); border-bottom: 1px solid var(--linea); padding-bottom: .6rem; margin-bottom: 1rem; }

.bloque { padding: .25rem 0 1rem; border-bottom: 1px solid var(--linea); }
.bloque h3 { font-size: 1rem; margin: .75rem 0 .25rem; }
.bloque p { margin: .35rem 0; }
.votos { list-style: none; padding: 0; margin: .25rem 0 0; }
.votos li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dotted var(--linea); font-size: .95rem; }
.fuentes ul { padding-left: 1.1rem; font-size: .9rem; }
.fuentes li { margin: .2rem 0; }
@media (max-width: 30rem) {
  .evol { font-size: .88rem; }
  .evol th, .evol td { padding-right: .55rem; }
}

/* Rankings: secciones y filtros */
.tipos-rk { padding-bottom: .6rem; border-bottom: 1px solid var(--linea); }
.filtros { display: flex; gap: .35rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: .3rem; }
.filtros button { font: inherit; font-size: .88rem; color: var(--gris); background: transparent; border: 1px solid var(--linea);
  border-radius: 999px; padding: .25rem .75rem; cursor: pointer; flex: none; }
.filtros button[aria-pressed="true"] { color: var(--hoja); background: var(--tinta); border-color: var(--tinta); font-weight: 700; }
.lista li[hidden] { display: none; }

/* Portada */
.portada-anio h2 { margin-bottom: 1rem; }
.nomina-anio .nom-cab { padding-right: 7.5rem; }
.dos-col { display: grid; gap: 0 2rem; }
.dos-col h2 { margin-bottom: .25rem; }
.dos-col .nota { margin: 0 0 .75rem; }
@media (min-width: 44rem) { .dos-col { grid-template-columns: 1fr 1fr; } }

/* Comparador */
.comparador { margin: 1.5rem 0 0; padding: 1rem 1.25rem 1.1rem; background: var(--hoja); border: 1px solid var(--linea); }
.comparador h2 { margin: 0 0 .5rem; }
.tu-sueldo label { display: block; color: var(--gris); font-size: .9rem; font-weight: 600; }
.tu-sueldo .campo { display: flex; align-items: baseline; gap: .4rem; max-width: 11rem; border-bottom: 2px solid var(--tinta); }
.tu-sueldo input { flex: 1; min-width: 0; font: inherit; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--tinta); background: transparent; border: 0; padding: .1rem 0; }
.tu-sueldo input::placeholder { color: var(--linea); }
.tu-sueldo input:focus { outline: none; }
.tu-sueldo .campo:focus-within { border-bottom-color: var(--sello); }
.tu-sueldo span { font-size: 1.3rem; font-weight: 700; }
.comparador .resp { font-size: 1.08rem; margin: .9rem 0 .4rem; max-width: 36rem; }

/* Más visual: barras en rankings, composición de nóminas, más tonos */
:root { --c5: #b3262d; --c6: #cad7cd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c5: #e2555b; --c6: #2c4436; } }
:root[data-theme="dark"] { --c5: #e2555b; --c6: #2c4436; }
.grafico .c5 { fill: var(--c5); } .grafico .c6 { fill: var(--c6); }
.leyenda .c5 { background: var(--c5); } .leyenda .c6 { background: var(--c6); }
.con-barras li { background: linear-gradient(var(--c3), var(--c3)) left calc(100% - 1px) / calc(var(--p, 0) * 100%) 3px no-repeat; }
.compo { margin: .6rem 0 .2rem; }
.compo-barra { display: flex; height: .55rem; border-radius: 2px; overflow: hidden; background: var(--linea); }
.compo-barra i { display: block; height: 100%; }
.compo-barra .c1, .compo .leyenda .c1 { background: var(--c1); }
.compo-barra .c2, .compo .leyenda .c2 { background: var(--c2); }
.compo-barra .c3, .compo .leyenda .c3 { background: var(--c3); }
.compo-barra .c4, .compo .leyenda .c4 { background: var(--c4); }
.compo-barra .c5, .compo .leyenda .c5 { background: var(--c5); }
.compo .leyenda { font-size: .8rem; margin-top: .35rem; }
.sub-graf { font-size: .95rem; color: var(--gris); margin: 1rem 0 .25rem; font-weight: 600; }
.distrib { margin: 0 0 1.5rem; }
.distrib figcaption { font-weight: 700; margin-bottom: .5rem; }
.distrib ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.distrib li { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .88rem; }
.distrib .et { color: var(--gris); white-space: nowrap; }
.distrib .barra-h { height: .7rem; background: transparent; }
.distrib .barra-h i { display: block; height: 100%; background: var(--c2); border-radius: 1px; }
.distrib .imp { text-align: right; }

/* Para todos los públicos */
.ficha-cab .frase { font-size: 1.15rem; margin: .9rem 0 0; max-width: 36rem; line-height: 1.45; }
.que-es { margin: 1.5rem 0 0; border-top: 1px solid var(--linea); padding-top: .75rem; }
.que-es summary { cursor: pointer; font-weight: 700; color: var(--tinta); }
.que-es ul { padding-left: 1.1rem; margin: .75rem 0 0; display: grid; gap: .45rem; font-size: .93rem; max-width: 38rem; }
.que-es strong { display: block; }
.info { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.05rem; height: 1.05rem;
  margin-left: .2rem; border: 1px solid currentColor; border-radius: 50%; font-size: .68rem; font-weight: 700; font-style: italic;
  font-family: Georgia, serif; color: var(--gris); cursor: help; vertical-align: 1px; }
.info .tip { display: none; position: absolute; z-index: 10; left: -2rem; top: calc(100% + .4rem);
  width: min(16rem, 75vw); padding: .55rem .7rem; background: var(--tinta); color: var(--hoja); font: 400 .82rem/1.4 "Archivo", system-ui, sans-serif;
  font-style: normal; border-radius: 4px; text-align: left; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { display: block; }
.intro { color: var(--tinta); font-size: 1rem; max-width: 38rem; margin: .1rem 0 .9rem; }
.ranking h1 + .intro { font-size: 1.08rem; }
.lista li.oculta { display: none; }
.ver-mas { display: block; width: 100%; margin: .75rem 0 0; padding: .65rem; font: inherit; font-weight: 700; color: var(--tinta);
  background: transparent; border: 1px solid var(--linea); border-radius: 4px; cursor: pointer; }
.ver-mas:hover { border-color: var(--tinta); }
.punto { display: inline-block; width: .65rem; height: .65rem; margin-right: .45rem; border-radius: 1px; vertical-align: 0; }
.punto.c1 { background: var(--c1); } .punto.c2 { background: var(--c2); } .punto.c3 { background: var(--c3); }
.punto.c4 { background: var(--c4); } .punto.c5 { background: var(--c5); } .punto.c6 { background: var(--c6); }
.detalle-nom { margin-top: .4rem; }
.detalle-nom summary { cursor: pointer; color: var(--gris); font-size: .9rem; padding: .35rem 0; }
.resumen-anio .frase { font-size: 1.2rem; max-width: 38rem; line-height: 1.45; margin: .5rem 0 .4rem; }
.distrib.por-tipo li { grid-template-columns: 12rem 1fr 7rem; }
@media (max-width: 30rem) { .distrib.por-tipo li { grid-template-columns: 1fr 5rem; } .distrib.por-tipo .barra-h { grid-column: 1 / -1; grid-row: 2; } }
.herr-emp { display: grid; gap: .6rem; margin: 0 0 1rem; }
#buscar-emp { font: inherit; font-size: 1.05rem; padding: .55rem .75rem; border: 1px solid var(--linea); border-radius: 4px;
  background: var(--hoja); color: var(--tinta); width: 100%; max-width: 24rem; }
#buscar-emp:focus { outline: 2px solid var(--foco); outline-offset: 1px; }
.herr-emp .filtros { margin: 0; }
.lista li[hidden] { display: none; }

/* ===== Rediseño 2026-11: tarjetas claras, verde de nómina, cifra protagonista ===== */
:root {
  --papel: #f4f6f1; --hoja: #ffffff; --tinta: #15372a; --gris: #5b6a61; --linea: #e0e6db; --sello: #c43a31; --foco: #2f6f9f;
  --verde: #1e6a3b; --verde-claro: #e2efda; --marca-fosfo: #f7dd4c;
  --c1: #1d5a34; --c2: #5b9268; --c3: #b4d78c; --c4: #efcd3b; --c5: #c43a31; --c6: #dde4d8;
  --radio: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #0f1b15; --hoja: #16251d; --tinta: #e4ede6; --gris: #9fb2a6; --linea: #26392e; --sello: #ec6b62; --foco: #7cb7e3;
    --verde: #7fd19b; --verde-claro: #1d3a28; --marca-fosfo: #8a7a1c;
    --c1: #7fd19b; --c2: #4f9467; --c3: #2f6040; --c4: #d9bb3a; --c5: #ec6b62; --c6: #26392e;
  }
}
:root[data-theme="dark"] {
  --papel: #0f1b15; --hoja: #16251d; --tinta: #e4ede6; --gris: #9fb2a6; --linea: #26392e; --sello: #ec6b62; --foco: #7cb7e3;
  --verde: #7fd19b; --verde-claro: #1d3a28; --marca-fosfo: #8a7a1c;
  --c1: #7fd19b; --c2: #4f9467; --c3: #2f6040; --c4: #d9bb3a; --c5: #ec6b62; --c6: #26392e;
}
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
mark { background: var(--marca-fosfo); color: inherit; padding: 0 .15em; border-radius: 2px; font-weight: 700; }

/* cabecera */
.cabecera { display: block; max-width: none; padding: 0; border-bottom: 1px solid var(--linea); background: var(--papel); }
.cab-fila, .cabecera nav { max-width: var(--ancho); margin: 0 auto; padding: 0 1rem; }
.cab-fila { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; }
.marca { font-size: 1.45rem; font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -.02em; color: var(--tinta); }
.cab-buscar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; color: var(--tinta); border-radius: 50%; }
.cab-buscar:hover { background: var(--verde-claro); }
.cab-buscar .ico { width: 1.4rem; height: 1.4rem; }
.cabecera nav { display: flex; gap: 1.6rem; font-size: 1rem; overflow-x: auto; }
.cabecera nav a { color: var(--tinta); padding: .8rem 0 .65rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.cabecera nav a[aria-current="page"] { color: var(--verde); font-weight: 700; border-bottom-color: var(--verde); }
main { padding-top: .25rem; }

/* migas y pestañas */
.migas { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 1rem 0 0; font-size: .9rem; }
.migas a { color: var(--verde); text-decoration: none; }
.migas a::after { content: "›"; margin-left: .5rem; color: var(--gris); }
.migas span { font-weight: 600; }
h1 { font-variation-settings: "wdth" 104; letter-spacing: -.025em; color: var(--tinta); margin-top: .9rem; }
.ficha-cab .sub { font-size: 1.05rem; }
.ficha-cab .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin: .75rem 0 0; color: var(--tinta); font-size: .98rem; font-weight: 600; }
.ficha-cab .meta span { display: inline-flex; gap: .5rem; align-items: center; }
.ficha-cab .meta small { font-weight: 400; color: var(--gris); font-size: .88rem; }
.ficha-cab .meta .ico { width: 1.45rem; height: 1.45rem; color: var(--gris); }
.pestanas { position: sticky; top: 0; z-index: 4; display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none;
  margin: 1.1rem -1rem 0; padding: .55rem 1rem; background: var(--papel); }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas a { flex: none; padding: .42rem .85rem; border-radius: 8px; text-decoration: none; color: var(--tinta); font-size: .95rem; }
.pestanas a[aria-current="true"] { background: var(--verde); color: #fff; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pestanas a[aria-current="true"] { color: #0f1b15; } }
section[id], div[id="resumen"] { scroll-margin-top: 3.6rem; }

/* tarjetas de cifras */
.cifras { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .6rem 0 .4rem; border: 0; }
.cifra { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--radio); padding: .9rem 1rem 1rem; min-width: 0; }
.cifra-ancha { grid-column: 1 / -1; }
.cifra .et { color: var(--tinta); font-size: .92rem; font-weight: 700; }
.cifra .num { margin: .3rem 0 .4rem; color: var(--verde); font-size: clamp(1.9rem, 8.5vw, 2.6rem); white-space: normal; line-height: 1; }
.cifra .num .n { display: inline-block; }
.cifra .num .u { display: block; font-size: .95rem; font-weight: 700; letter-spacing: 0; font-variation-settings: "wdth" 100; margin-top: .2rem; }
.cifra-ancha .num .u { display: inline; font-size: .62em; margin-left: .25rem; }
@media (min-width: 30rem) { .cifra .num .u { display: inline; font-size: .62em; margin-left: .25rem; } }
.badge { display: inline-flex; gap: .3rem; align-items: baseline; margin: .2rem 0 .3rem; padding: .2rem .6rem; border-radius: 999px;
  background: var(--verde-claro); color: var(--verde); font-weight: 700; font-size: .9rem; }
.badge small { font-weight: 500; font-size: .8rem; }
.badge.baja { background: #f6e3e1; color: #a3322a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.baja { background: #3a1f1d; color: #f0948d; } }
.dato-sec { font-size: .86rem; }
.nota-cifras { margin: .2rem 0 0; }
.reparto.por-tipo li { display: grid; grid-template-columns: 1fr auto 3.6rem; gap: .75rem; align-items: center; padding: .5rem 0; border-top: 1px solid var(--linea); }
.reparto.por-tipo .pct { text-align: right; color: var(--gris); font-variant-numeric: tabular-nums; }
.reparto .punto { width: .85rem; height: .85rem; border-radius: 3px; vertical-align: -1px; }

/* secciones en tarjeta y gráficos */
.tarjeta { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--radio); padding: .9rem 1rem 1rem; margin-top: 1.25rem; }
.tarjeta h2 { margin-top: 0; }
h2 { font-size: 1.3rem; font-weight: 750; letter-spacing: -.01em; }
.grafico .unidad { margin: 0 0 .2rem; font-size: .78rem; color: var(--gris); }
.grafico .rej { stroke: var(--linea); stroke-width: 1; }
.grafico .tick { fill: var(--gris); font-size: 9px; }
.grafico .val { display: none; fill: var(--verde); font-size: 11px; font-weight: 800; }
.grafico .barra.activa .val { display: inline; }
.grafico svg { max-height: 17rem; }

/* comparador */
.comparador { background: var(--verde-claro); border: 0; border-radius: var(--radio); padding: 1rem 1.1rem 1.1rem; }
.comp-cab { display: flex; gap: .9rem; align-items: flex-start; }
.comp-cab .ico { width: 2.6rem; height: 2.6rem; color: var(--verde); margin-top: .2rem; }
.comparador h2 { font-size: 1.5rem; margin: 0 0 .25rem; }
.comparador .frase { margin: 0; font-size: 1.05rem; }
.tu-sueldo { margin-top: 1rem; }

/* trayectoria */
.consejos li { display: block; padding: 0; }
.fila-enlace { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; padding: .8rem 0; text-decoration: none; }
.fila-enlace > .ico:first-child { width: 1.6rem; height: 1.6rem; color: var(--gris); }
.fila-enlace > .ico:last-child { color: var(--gris); }
.fila-enlace strong { font-size: 1.05rem; }
.fila-enlace .tipo { margin: .1rem 0 0; }
.fila-enlace:hover strong { text-decoration: underline; }
@media (max-width: 26rem) { .fila-enlace { grid-template-columns: auto 1fr auto; } .fila-enlace > .ico:last-child { display: none; } }

/* listas, píldoras y selectores */
.lista { border-top: 1px solid var(--linea); }
.pildoras { gap: .35rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
.pildoras a { flex: none; padding: .35rem .8rem; border-radius: 8px; color: var(--tinta); }
.pildoras a[aria-current="page"] { background: var(--verde); color: #fff; border: 0; }
.tipos-rk a[aria-current="page"] { color: var(--verde); border-bottom-color: var(--verde); }
.selector button, .filtros button { border-radius: 8px; color: var(--tinta); border-color: var(--linea); background: var(--hoja); }
.selector button[aria-pressed="true"], .filtros button[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.nomina { border-radius: var(--radio); }
.ver-mas { border-radius: 8px; color: var(--verde); background: var(--hoja); }

/* tabla de ranking */
.rk-cab, .tabla-rk li { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) minmax(0, 6.5rem) auto; gap: 0 .6rem; align-items: center; }
.rk-cab { padding: .4rem 0; font-size: .88rem; font-weight: 700; color: var(--tinta); }
.rk-cab span:last-child { text-align: right; }
.tabla-rk li { padding: .7rem 0; }
.tabla-rk .pos { grid-row: 1; grid-column: 1; color: var(--tinta); }
.tabla-rk a { grid-column: 2; grid-row: 1; font-weight: 700; text-decoration: none; line-height: 1.2; }
.tabla-rk .tipo { grid-column: 3; grid-row: 1; color: var(--tinta); font-size: .9rem; line-height: 1.25; }
.tabla-rk .imp { grid-column: 4; grid-row: 1; font-weight: 800; }
.tabla-rk.con-barras li { background: none; }
@media (max-width: 24rem) { .rk-cab, .tabla-rk li { grid-template-columns: 1.5rem minmax(0, 1fr) auto; } .rk-cab span:nth-child(3) { display: none; }
  .tabla-rk .tipo { grid-column: 2; grid-row: 2; } .tabla-rk .imp { grid-column: 3; } }
.nota-i { grid-column: 2; color: var(--sello); font-size: .8rem; }
.lista .imp .u { margin-left: .25rem; font-weight: 400; font-size: .85em; }
.tabla-rk .imp { text-align: right; line-height: 1.05; }
.tabla-rk .imp .n { display: block; font-size: 1.08rem; }
.tabla-rk .imp .u { display: block; margin: 0; font-size: .74rem; font-weight: 500; color: var(--gris); }
.tabla-rk .nota-i { grid-row: 2; grid-column: 2 / 4; margin-top: .2rem; }
.tabla-rk + .distrib { margin-top: 2rem; }
.tu-sueldo input::placeholder { color: var(--gris); opacity: .45; }
.grafico .tick { font-size: 10px; }
@media (max-width: 24rem) { .tabla-rk .nota-i { grid-row: 3; grid-column: 2 / -1; } }
.pregunta input::placeholder { color: var(--gris); opacity: .35; }
.sub-rk { grid-column: 2; grid-row: 2; color: var(--gris); font-size: .8rem; }
.tabla-rk .nota-i { grid-row: 3; }
.tabla-scroll { overflow-x: auto; }
.tipos-rk { flex-wrap: nowrap; overflow-x: auto; }
.tipos-rk a { flex: none; }
.genero { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.genero li { background: var(--hoja); border: 1px solid var(--linea); border-radius: var(--radio); padding: .75rem 1rem; }
.genero p { margin: 0; }
.gen-tipo { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gen-tipo span { color: var(--gris); font-size: .88rem; }
.gen-cifras { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: baseline; margin-top: .35rem !important; }
.gen-cifras .badge { margin: 0 0 0 auto; }
.cifra .num { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
.reparto li { flex-wrap: wrap; gap: 0 .75rem; }

/* Portada nueva */
.portada { padding: clamp(1.5rem, 7vw, 4rem) 0 .5rem; }
.pregunta { color: var(--tinta); }
.pregunta input { border-bottom-color: var(--verde); }
.prueba { margin: .9rem 0 0; color: var(--gris); font-size: .95rem; }
.prueba a { display: inline-block; margin: .25rem .3rem 0 0; padding: .25rem .7rem; border-radius: 999px; background: var(--verde-claro);
  color: var(--verde); font-weight: 600; text-decoration: none; }
.datos-portada { display: grid; gap: .7rem; margin: 1.75rem 0 .5rem; }
@media (min-width: 40rem) { .datos-portada { grid-template-columns: repeat(3, 1fr); } }
.dato-p { display: block; text-decoration: none; transition: border-color .15s; }
.dato-p:hover { border-color: var(--verde); }
.dato-p .num .u { display: inline; font-size: .55em; margin-left: .2rem; }
.dato-p .dato-sec { color: var(--tinta); font-size: .92rem; }
.portada-top h2 { margin-bottom: .6rem; }
.ver-todo { color: var(--verde); font-weight: 700; text-decoration: none; }
.ver-todo:hover { text-decoration: underline; }
.num-grande { margin: .2rem 0 .3rem; color: var(--verde); font-size: clamp(2.2rem, 10vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variation-settings: "wdth" 118; }
.num-grande .u { font-size: .45em; margin-left: .3rem; }
.portada-anio .compo { margin: .8rem 0 .4rem; }
.portada-anio .compo-barra { height: .9rem; border-radius: 4px; }
.portada-anio .compo .leyenda { display: none; }
.dos-col .tarjeta { margin-top: 1.25rem; }
.dos-col .tarjeta h2 { font-size: 1.15rem; }
.dato-p .num { white-space: nowrap; font-size: clamp(1.9rem, 9vw, 2.3rem); }
.aviso { background: #fff6d6; border-left: 4px solid var(--c4); padding: .6rem .9rem; border-radius: 6px; font-size: .92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aviso { background: #3a3315; } }

/* Altos cargos del Estado */
.ac-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.ac-filtros input, .ac-filtros select { font: inherit; font-size: .95rem; padding: .5rem .7rem; border: 1px solid var(--linea); border-radius: 10px;
  background: var(--hoja); color: var(--tinta); min-width: 0; }
.ac-filtros input { flex: 1 1 14rem; }
.ac-filtros select { flex: 1 1 12rem; max-width: 100%; }
.ac-lista li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; gap: 0 .6rem; align-items: baseline; padding: .65rem 0; }
.ac-parcial li { grid-template-columns: minmax(0, 1fr) auto; }
.ac-cargo { font-weight: 700; line-height: 1.25; min-width: 0; }
.ac-cargo small { display: block; font-weight: 400; color: var(--gris); font-size: .85rem; margin-top: .15rem; }
.ac-lista .imp { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-cargo small.hist { font-size: .8rem; }
.ac-cargo small a { color: inherit; }
