/* =========================================================
   Gráficas — marcas finas, eje discreto, leyenda (skill dataviz)
   ---------------------------------------------------------
   Los colores de serie son --serie-1 y --serie-2 de cada paleta (base.css),
   validados; los textos van en colores de texto, nunca del de la serie.
   ========================================================= */
.figura{margin:0}
.grafica{width:100%;height:auto;overflow:visible}
.grafica .eje{stroke:var(--line-2);stroke-width:1}
.grafica .eje-texto{fill:var(--soft);font:600 11px var(--font-ui)}
.grafica .serie-1{fill:var(--serie-1)}
.grafica .serie-2{fill:var(--serie-2)}
.grafica .linea-1{fill:none;stroke:var(--serie-1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.grafica .area-1{fill:var(--serie-1);opacity:.12}
.grafica .punto-1{fill:var(--serie-1);stroke:var(--surface);stroke-width:2}
.grafica .marca:hover .serie-1,.grafica .marca:hover .serie-2{opacity:.8}
.leyenda{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;font-size:13px;color:var(--ink-2)}
.leyenda span{display:inline-flex;align-items:center;gap:6px}
.leyenda i{width:12px;height:12px;border-radius:4px;display:inline-block}
.leyenda i.serie-1{background:var(--serie-1)} .leyenda i.serie-2{background:var(--serie-2)}

/* (2026-11-24) ranking, avance con frase y anillo: un solo color de serie, texto en tinta */
.ranking{display:flex;flex-direction:column;gap:12px}
.rk-fila{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:baseline}
.rk-nombre{font-weight:600;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rk-valor{color:var(--ink);font-size:14px;white-space:nowrap}
.rk-valor small{color:var(--soft);font-size:12px;margin-left:4px}
.rk-barra{grid-column:1 / -1;height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.rk-barra > span{display:block;height:100%;border-radius:999px;background:var(--serie-1)}
.rk-otros .rk-barra > span{background:var(--line-2)}
.avance-con{margin:4px 0 12px}
.avance-txt{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--ink-2);margin-bottom:5px}
.avance-txt .num{color:var(--ink);font-weight:700}
.anillo{width:64px;height:64px;flex:none}
.anillo-fondo{fill:none;stroke:var(--surface-2);stroke-width:7}
.anillo-valor{fill:none;stroke:var(--serie-1);stroke-width:7;stroke-linecap:round}
.anillo.pasado .anillo-valor{stroke:var(--bad-ink)}
.anillo-texto{fill:var(--ink);font:800 14px var(--font-num)}
.con-anillo{display:flex;align-items:center;gap:14px}
.con-anillo p{margin:0}
.rk-boton{all:unset;box-sizing:border-box;width:100%;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:baseline;border-radius:10px}
.rk-boton:hover .rk-nombre{text-decoration:underline}
.rk-boton:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
