.firma {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.95rem;
    color: var(--texto-tenue);
    margin-top: 1.5rem;
}

/* Cifras principales */

.cifra {
    height: 100%;
    border-top: 2px solid var(--borde);
    padding-top: 1rem;
}

.cifra-num {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cifra-txt {
    font-size: 0.95rem;
    color: var(--texto-suave);
    margin: 0;
}

/* Texto del reportaje */

.relato {
    max-width: 44rem;
    margin: 3.5rem 0 2rem 0;
}

.relato h2 {
    margin-bottom: 1.25rem;
}

.relato p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

/* Gráficas */

.grafica {
    margin: 0 0 3rem 0;
}

.grafica-titulo {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.grafica-sub {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.95rem;
    color: var(--texto-tenue);
    margin-bottom: 1rem;
}

.muestra {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: -1px;
}

.lienzo {
    width: 100%;
}

.lienzo svg {
    display: block;
    overflow: visible;
}

.lienzo text,
.mini text {
    font-family: "Roboto Condensed", sans-serif;
    fill: var(--texto-tenue);
    font-size: 12px;
}

.eje .domain {
    display: none;
}

.eje line {
    stroke: #262626;
}

.anotacion {
    fill: white !important;
    font-size: 13px !important;
}

.leyenda-linea {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    margin-top: 0.75rem;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.9rem;
    color: var(--texto-suave);
}

/* Múltiplos pequeños */

.mini {
    border-top: 1px solid var(--borde);
    padding-top: 0.75rem;
}

.mini-titulo {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
    margin-bottom: 0.25rem;
}

.mini-valores {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mini-valores .flecha {
    color: var(--texto-tenue);
    font-weight: 300;
    margin: 0 0.3rem;
}

/* Mapa */

.mapa-marco {
    position: relative;
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    background: #050505;
}

#mapa canvas,
#mapa svg {
    display: block;
}

#mapa {
    position: relative;
}

#mapa svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.leyenda-mapa {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--borde);
    pointer-events: none;
}

.leyenda-mapa text {
    font-family: "Roboto Condensed", sans-serif;
    fill: var(--texto-suave);
    font-size: 11px;
}

.mapa-resumen {
    position: absolute;
    right: 18px;
    top: 14px;
    margin: 0;
    text-align: right;
    font-family: "Outfit", sans-serif;
    pointer-events: none;
}

.mapa-resumen .anio {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1;
}

.mapa-resumen .detalle {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.95rem;
    color: var(--texto-suave);
}

#filtro-anio {
    margin-bottom: 1rem;
}

#filtro-anio .filtro {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
}

.nota {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 0.9rem;
    color: var(--texto-tenue);
}

/* Tabla */

.tabla-contenedor {
    overflow-x: auto;
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla th {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    color: var(--texto-tenue);
    border-bottom: 1px solid var(--borde);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.tabla td {
    border-bottom: 1px solid #1a1a1a;
    padding: 0.7rem 0.75rem;
    vertical-align: top;
    color: var(--texto-suave);
}

.tabla td:first-child {
    color: white;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
}

.tabla .lugar {
    color: white;
}

.tabla .num {
    text-align: right;
    white-space: nowrap;
}

.tabla .barra-ha {
    display: inline-block;
    height: 8px;
    border-radius: 4px;
    background: var(--color-rojo);
    margin-right: 0.5rem;
    vertical-align: 1px;
}

.tabla .desconocida {
    color: var(--color-amarillo);
}

/* Metodología */

.metodologia {
    max-width: 44rem;
    border-top: 1px solid var(--borde);
    margin-top: 4rem;
    padding-top: 2rem;
}

.metodologia ul {
    padding-left: 1.1rem;
}

.metodologia li {
    color: var(--texto-suave);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.metodologia strong {
    color: white;
    font-weight: 500;
}

/* Tooltip */

.tooltip-pirah {
    position: fixed;
    z-index: 1000;
    max-width: 260px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: #111111;
    border: 1px solid var(--borde);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 0.85rem;
    line-height: 1.45;
    pointer-events: none;
}

.tooltip-pirah strong {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.tooltip-pirah .tt-dato {
    color: var(--texto-suave);
}

@media (max-width: 576px) {
    .leyenda-mapa {
        position: static;
        border: none;
        border-top: 1px solid var(--borde);
        border-radius: 0;
        background: transparent;
    }

    .relato p {
        font-size: 1.05rem;
    }

    .tabla th:nth-child(3),
    .tabla td:nth-child(3) {
        display: none;
    }

    .tabla .barra-ha {
        display: none;
    }
}

/* Mosaico de desenlaces: un cuadro = 1,000 eventos */

.mosaico-leyenda {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-top: 1.25rem;
}

.mosaico-leyenda .item {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    font-size: 0.95rem;
    color: var(--texto-suave);
}

.mosaico-leyenda .item strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    color: white;
}

.mosaico-leyenda .muestra {
    border-radius: 2px;
    flex: none;
}
