/* =========================
ESTADÍSTICAS TERRITORIALES
========================= */

.stats-dashboard {
    gap: 1.5rem;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stats-badge {
    background: #edf5e8;
    color: #456854;
    padding: 0.6rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* KPIs */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0.1rem 1rem;
    margin: 1rem 0;
}

.kpi-card {
    background: #faf7ef;
    border: 1px solid #e7dfd0;
    border-radius: 11px;
    padding: 0.3rem 0.6rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.01rem;
}

.kpi-card i {
    font-size: 1.3rem;
    color: #5f8d6f;
}

.kpi-card strong {
    font-size: 1rem;
    color: #23493d;
}

.kpi-card span {
    font-size: 0.8rem;
    color: #6f7d71;
}

/* CHART */

.chart-section {
    background: linear-gradient(
        135deg,
        #f7f4ec,
        #eef5ea
    );

    border-radius: 11px;
    padding: 0.4rem 0.6rem;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bar-item {
    display: grid;
    grid-template-columns: 220px 1fr 60px;
    gap: 1rem;
    align-items: center;
}

.bar-item span{color: var(--verde-musgo);}

.bar-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #355a4b;
}

.bar-track {
    width: 100%;
    height: 14px;
    background: #dde7d8;
    border-radius: 40px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 40px;
}

.bar-1 {
    width: 78%;
    background: linear-gradient(90deg,#5b876c,#8db79d);
}

.bar-2 {
    width: 62%;
    background: linear-gradient(90deg,#4b7c70,#7cb0aa);
}

.bar-3 {
    width: 48%;
    background: linear-gradient(90deg,#5d6f8b,#8ca2c7);
}

.bar-4 {
    width: 84%;
    background: linear-gradient(90deg,#6f7d53,#a3ba74);
}

/* CORRELACIONES */

.correlation-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.correlation-card {
    background: #fcfaf5;
    border: 1px solid #e4dccb;
    border-radius: 11px;
    padding: 0.2rem 0.6rem;

    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.correlation-card i {
    font-size: 1.3rem;
    color: #5c8b69;
    margin-top: 0.2rem;
}

.correlation-card strong {
    color: #2c5847;
    display: block;
    margin-bottom: 0.4rem;
}

.correlation-card p {
    font-size: 0.82rem;
    line-height: 0.9;
    color: #647565;
}


/* RESPONSIVE */
@media (max-width: 992px) {
	.kpi-grid {
        grid-template-columns: repeat(1,1fr);
    }

    .correlation-grid {
        grid-template-columns: 1fr;
    }
     .bar-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .chart-section {
        padding: 1rem;
    }
    .bar-label {
        font-size: 0.75rem;
    }
}