/* Inter y Press Start 2P, servidas desde static/vendor/fonts (las baja
   scripts/vendor_libs.sh). Antes esta linea apuntaba a fonts.googleapis.com:
   ver la cabecera de ese script para el por que. */
@import url('../vendor/fonts/fonts.css');

:root {
    --ink: #08080b;
    --surface: rgba(19, 19, 24, 0.58);
    --surface-2: rgba(13, 13, 17, 0.9);
    --line: rgba(255, 255, 255, 0.085);
    --line-soft: rgba(255, 255, 255, 0.045);
    --txt: #ecedf0;
    --dim: #9b9ba6;
    --dimmer: #6d6d78;
    --accent: #ff3b46;
    --accent-line: rgba(255, 59, 70, 0.38);
    --sec: #ff3b46;
    --r: 16px;
    --r-sm: 10px;
    --shadow: 0 22px 50px -26px rgba(0, 0, 0, .95);
    --maxw: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topnav-h, 49px) + var(--secnav-h, 44px) + 20px);
}

body {
    margin: 0;
    background:
        radial-gradient(1100px 520px at 8% -10%, rgba(255, 59, 70, .13), transparent 62%),
        radial-gradient(900px 460px at 96% 12%, rgba(74, 168, 255, .07), transparent 60%),
        var(--ink);
    background-attachment: fixed;
    color: var(--txt);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14);
    border-radius: 4px;
}

/* ================= barra de secciones ================= */
.secnav {
    position: sticky;
    top: var(--topnav-h, 49px);
    z-index: 55;
    background: rgba(9, 9, 12, .82);
    backdrop-filter: saturate(160%) blur(22px);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    border-bottom: 1px solid var(--line-soft);
}

.secnav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 26px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.secnav-inner::-webkit-scrollbar {
    display: none;
}

.secnav a {
    flex: none;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 13px 12px 12px;
    border-bottom: 2px solid transparent;
    color: var(--dimmer);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, border-color .16s ease;
}

.secnav a i {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .1em;
    opacity: .55;
}

.secnav a:hover {
    color: var(--txt);
}

.secnav a.active {
    color: #fff;
    border-bottom-color: var(--nav, var(--accent));
}

.secnav a.active i {
    color: var(--nav, var(--accent));
    opacity: 1;
}

/* ================= estructura ================= */
.page {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 26px 90px;
}

/* ================= portada ================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: end;
    padding: 62px 0 40px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 10px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 16px;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 5.4vw, 68px);
    font-weight: 900;
    letter-spacing: -.045em;
    line-height: .98;
    color: #fff;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-lede {
    margin: 0 0 26px;
    max-width: 54ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--dim);
}

.hero-lede strong {
    color: var(--txt);
    font-weight: 600;
}

/* filtro */
.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-row label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dimmer);
}

#countryFilter {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 36px 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background:
        url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' fill='none' stroke='%239b9ba6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center/11px,
        rgba(255, 255, 255, .05);
    color: var(--txt);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color .16s ease;
}

#countryFilter:hover,
#countryFilter:focus {
    border-color: var(--accent-line);
}

#countryFilter option {
    background: #14141a;
    color: var(--txt);
}

/* contador gigante */
.bignum-wrap {
    text-align: right;
}

.bignum {
    font-size: clamp(72px, 12vw, 148px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .82;
    color: #fff;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(175deg, #fff 30%, rgba(255, 59, 70, .85) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* El letter-spacing negativo se aplica tambien tras el ultimo digito: la caja
       del elemento acaba ~.06em antes que la tinta del glifo. Como el relleno es
       un degradado recortado al texto (background-clip), ese trozo se queda sin
       fondo que pintar y el numero sale cortado por la derecha. Se ensancha la
       caja de fondo y se compensa con margen negativo para no mover el numero. */
    padding-right: .09em;
    margin-right: -.09em;
}

.bignum-label {
    margin: 12px 0 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dimmer);
}

.bignum-label b {
    color: var(--accent);
    font-weight: 800;
}

/* ficha técnica */
.ficha {
    border-top: 1px solid var(--line);
    text-align: left;
}

.ficha-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line-soft);
}

.ficha-row dt {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--dimmer);
    white-space: nowrap;
}

.ficha-row .leader {
    flex: 1;
    height: 1px;
    border-bottom: 1px dotted rgba(255, 255, 255, .13);
    transform: translateY(-3px);
}

.ficha-row dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fv, #fff);
    font-variant-numeric: tabular-nums;
    text-align: right;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 40px 0 30px;
    }

    .bignum-wrap {
        text-align: left;
    }
}

/* ================= secciones ================= */
.sec {
    padding: 68px 0 6px;
    scroll-margin-top: calc(var(--topnav-h, 49px) + var(--secnav-h, 44px) + 20px);
}

.sec-head {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 26px;
}

.sec-num {
    font-size: 62px;
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.06em;
    color: transparent;
    -webkit-text-stroke: 1.4px var(--sec);
    opacity: .85;
    user-select: none;
}

.sec-head h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    color: #fff;
}

.sec-head h2::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 12px;
    border-radius: 2px;
    background: var(--sec);
}

.sec-lede {
    margin: 0;
    max-width: 74ch;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--dim);
}

.sec-lede strong {
    color: var(--txt);
    font-weight: 600;
}

.sec-lede a {
    color: var(--sec);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 720px) {
    .sec-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sec-num {
        font-size: 40px;
    }

    .sec {
        padding-top: 48px;
    }
}

/* aviso metodológico dentro de una sección */
.caveat {
    margin-top: 14px;
    padding: 12px 15px;
    border-left: 2px solid var(--sec);
    background: linear-gradient(90deg, color-mix(in srgb, var(--sec) 9%, transparent), transparent 78%);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dim);
}

.caveat b {
    color: #fff;
    font-weight: 700;
}

/* ================= rejilla de 12 ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }
.c9 { grid-column: span 9; }
.c12 { grid-column: span 12; }

@media (max-width: 1080px) {
    .c3, .c4, .c5 { grid-column: span 6; }
    .c7, .c8, .c9 { grid-column: span 12; }
}

@media (max-width: 720px) {
    .cards > * { grid-column: span 12 !important; }
}

/* ================= tarjetas ================= */
.card {
    position: relative;
    background: var(--surface);
    backdrop-filter: saturate(150%) blur(18px);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 18px 20px 20px;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, var(--sec), transparent 55%);
    opacity: .5;
}

.card:hover {
    border-color: color-mix(in srgb, var(--sec) 35%, var(--line));
}

.card.feature {
    background: var(--surface-2);
    padding: 22px 24px 24px;
}

.card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
}

.card h3 {
    margin: 0;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--txt);
}

.card .hint {
    margin: 5px 0 14px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--dimmer);
}

.card .tag {
    flex: none;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sec);
    border: 1px solid color-mix(in srgb, var(--sec) 40%, transparent);
    background: color-mix(in srgb, var(--sec) 12%, transparent);
    padding: 3px 8px;
    border-radius: 999px;
}

/* alturas de lienzo */
.plot {
    position: relative;
    width: 100%;
}

.h-xs { height: 190px; }
.h-sm { height: 240px; }
.h-md { height: 300px; }
.h-lg { height: 360px; }
.h-xl { height: 440px; }

@media (max-width: 720px) {
    .h-lg, .h-xl { height: 320px; }
}

/* ================= insight destacado ================= */
.insight {
    grid-column: span 12;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--r);
    border: 1px solid color-mix(in srgb, var(--sec) 28%, transparent);
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--sec) 14%, transparent), transparent 62%),
        var(--surface);
}

.insight .mark {
    flex: none;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--sec);
    opacity: .5;
}

.insight p {
    margin: 0;
    font-size: clamp(15px, 1.7vw, 19px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.015em;
    color: var(--txt);
}

.insight b {
    color: #fff;
    font-weight: 800;
}

.insight .num {
    color: var(--sec);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ================= bloque de texto lateral ================= */
.note-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    /* El lienzo vecino crece con el numero de fuentes; la nota no debe
       estirarse con el hasta quedarse en un cajon casi vacio. */
    align-self: start;
}

.note-card h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
}

.note-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.68;
    color: var(--dim);
}

.note-card a {
    color: var(--sec);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.note-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.note-stats div span {
    display: block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--dimmer);
    margin-bottom: 4px;
}

.note-stats div b {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--sec);
    font-variant-numeric: tabular-nums;
}

/* ================= podio de reportadores ================= */
.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .podium { grid-template-columns: 1fr; }
}

.pod {
    position: relative;
    padding: 20px 18px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.pod[data-rank="1"] {
    border-color: rgba(245, 196, 81, .42);
    background: linear-gradient(120deg, rgba(245, 196, 81, .13), transparent 60%), var(--surface);
}

.pod[data-rank="2"] {
    border-color: rgba(203, 213, 225, .3);
}

.pod[data-rank="3"] {
    border-color: rgba(205, 127, 50, .3);
}

.pod .rank {
    position: absolute;
    right: 12px;
    top: 6px;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, .16);
}

.pod img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--line);
    flex: none;
}

.pod[data-rank="1"] img { border-color: rgba(245, 196, 81, .6); }

.pod .who {
    min-width: 0;
}

.pod .who b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pod .who span {
    font-size: 12px;
    color: var(--dim);
    font-weight: 600;
}

.pod .who span em {
    font-style: normal;
    color: var(--sec);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* lista del resto */
.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 26px;
}

@media (max-width: 720px) {
    .rank-list { grid-template-columns: 1fr; }
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.rank-row .n {
    width: 26px;
    flex: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--dimmer);
    font-variant-numeric: tabular-nums;
}

.rank-row img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: none;
}

.rank-row .nm {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row .ct {
    font-size: 13px;
    font-weight: 800;
    color: var(--sec);
    font-variant-numeric: tabular-nums;
}

.empty-note {
    color: var(--dimmer);
    font-style: italic;
    text-align: center;
    padding: 24px 0;
    font-size: 13.5px;
}

/* ================= cronología ================= */
.timeline-wrap {
    max-width: 940px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding-left: 124px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 104px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(to bottom, var(--sec), rgba(255, 255, 255, .04));
}

.timeline-item {
    position: relative;
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    border-left: 2px solid rgba(255, 255, 255, .1);
    background: var(--surface);
    transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.timeline-item:hover {
    border-left-color: var(--sec);
    border-color: color-mix(in srgb, var(--sec) 30%, var(--line));
    background: var(--surface-2);
    transform: translateX(3px);
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 22px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sec);
    box-shadow: 0 0 0 3px var(--ink), 0 0 12px color-mix(in srgb, var(--sec) 80%, transparent);
}

.timeline-date-label {
    position: absolute;
    left: -124px;
    top: 16px;
    width: 88px;
    text-align: right;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dimmer);
}

.tl-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.tl-crime {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #fff;
}

.tl-time {
    flex: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--dimmer);
    font-variant-numeric: tabular-nums;
}

.tl-place {
    font-size: 12.5px;
    color: var(--dim);
    margin-bottom: 9px;
}

.tl-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.62;
    color: #c9cad2;
}

.tl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    font-size: 11px;
    font-weight: 600;
    color: var(--dim);
}

.chip b {
    font-size: 10px;
    font-weight: 400;
    opacity: .75;
}

.chip img {
    width: 15px;
    height: 11px;
    border-radius: 2px;
    object-fit: cover;
}

.chip.att {
    border-color: rgba(255, 59, 70, .3);
    background: rgba(255, 59, 70, .1);
    color: #ffb4b8;
}

.chip.vic {
    border-color: rgba(74, 168, 255, .3);
    background: rgba(74, 168, 255, .1);
    color: #a8ccff;
}

.tl-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
}

.tl-src {
    display: flex;
    align-items: center;
    gap: 9px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--dim);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tl-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--dim);
}

.tl-author img {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.tl-link {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--sec);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--sec) 45%, transparent);
}

.tl-link:hover {
    border-bottom-color: currentColor;
}

.tl-more {
    text-align: center;
    padding: 18px 0 0;
    font-size: 12px;
    color: var(--dimmer);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
}

@media (max-width: 720px) {
    .timeline-container { padding-left: 24px; }
    .timeline-container::before { left: 5px; }
    .timeline-dot { left: -23px; }

    .timeline-date-label {
        position: static;
        display: block;
        width: auto;
        text-align: left;
        margin-bottom: 7px;
    }
}

/* ================= metodología ================= */
.method {
    margin-top: 74px;
    padding: 28px 30px;
    border-radius: var(--r);
    border: 1px dashed var(--line);
    background: rgba(255, 255, 255, .018);
}

.method h4 {
    margin: 0 0 16px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 860px) {
    .method-grid { grid-template-columns: 1fr; }
}

.method-grid p {
    margin: 0;
    font-size: 13px;
    line-height: 1.68;
    color: var(--dimmer);
}

.method-grid p b {
    display: block;
    color: var(--txt);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 13.5px;
}

.method-grid a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 59, 70, .4);
}

.loading {
    color: var(--dimmer);
    font-style: italic;
    font-size: 13.5px;
}


/* La fila entra sin envolver hasta 360px porque el enlace secundario
   deja de ser pastilla y pasa a ser texto. Envolver seguia siendo
   mejor que recortarlo, pero una pastilla que se cae sola a la fila de
   abajo se lee como un fallo de maquetacion, no como una decision. */
@media (max-width: 640px) {
    .nav-back.nav-quiet {
        border-color: transparent;
        background: none;
        padding: 7px 2px;
    }
}

/* ---- Absolutos / por 100.000 habitantes (B.7) ----
   Mismo aspecto que el interruptor de /lugares. No comparten hoja porque
   history.css y hub.css son dos paquetes independientes y ninguna página carga
   las dos; si algún día aparece una tercera, esto sube a un parcial común. El
   color activo sale de `--sec`, la variable que cada sección de esta página
   define en su `style`, para que el interruptor se tiña del color de su
   apartado igual que el resto de sus gráficos. */
.orden-tasa {
    display: flex;
    gap: 6px;
    margin: 10px 0 2px;
}

.orden-btn {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--dim);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.orden-btn:hover { border-color: var(--sec, var(--line)); }

.orden-btn.is-on {
    border-color: var(--sec, var(--line));
    background: color-mix(in srgb, var(--sec, #888) 16%, transparent);
    color: var(--sec, inherit);
}

/* La tarjeta de la cronologia lleva a la ficha del suceso.
   El cursor es lo unico que lo anuncia antes del clic, asi que no sobra: sin
   el, una tarjeta que navega al pulsarla es una sorpresa. El enlace real
   -«Ver el caso»- esta abajo a la derecha, junto al de la noticia original. */
.timeline-item.is-clickable {
    cursor: pointer;
}

.tl-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tl-go {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--dim);
    text-decoration: none;
    white-space: nowrap;
}

.timeline-item:hover .tl-go {
    color: var(--sec);
}

.tl-go:hover {
    text-decoration: underline;
}
