/**
 * COMPONENTS / STATS
 * -----------------------------------------------------------------------------
 * Dos piezas de cifras:
 *   .stats-bar   Banda blanca de 4 cifras con icono, bajo el hero.
 *   .stats-inline Cifras en línea separadas por filete, sobre fondo oscuro.
 */

/* =============================================================
   BANDA DE CIFRAS
============================================================= */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stats-bar__item {
    text-align: center;
    padding: 6px 20px;
    border-right: 1px solid var(--border-soft);
}

.stats-bar__item:last-child {
    border-right: 0;
}

.stats-bar__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto var(--space-sm);
    border: 1.5px solid var(--border-blue);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.stats-bar__icon svg {
    width: 22px;
    height: 22px;
}

.stats-bar__value {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 30px;
    color: var(--blue);
    line-height: 1;
}

.stats-bar__label {
    font-size: var(--fs-md);
    color: var(--text);
    margin-top: var(--space-2xs);
}

/* La sección que envuelve la banda */
.stats-section {
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    padding: 46px 0;
}

/* =============================================================
   CIFRAS EN LÍNEA
============================================================= */

.stats-inline {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stats-inline__item + .stats-inline__item {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 40px;
}

.stats-inline__value {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: 32px;
    color: var(--white);
    line-height: 1;
}

.stats-inline__label {
    font-size: var(--fs-base);
    color: var(--on-dark-soft);
    margin-top: 4px;
}

/* Sobre fondo claro */
.section--white .stats-inline__value,
.section--alt .stats-inline__value {
    color: var(--heading);
}

.section--white .stats-inline__item + .stats-inline__item,
.section--alt .stats-inline__item + .stats-inline__item {
    border-left-color: var(--border);
}

.section--white .stats-inline__label,
.section--alt .stats-inline__label {
    color: var(--text-muted);
}

/* =============================================================
   RESPONSIVE
============================================================= */

@media (max-width: 700px) {

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md) 0;
    }

    .stats-bar__item:nth-child(2) {
        border-right: 0;
    }

    .stats-bar__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: var(--space-md);
    }

    .stats-inline {
        gap: var(--space-md);
    }

    .stats-inline__item + .stats-inline__item {
        padding-left: var(--space-md);
    }

    .stats-inline__value {
        font-size: 26px;
    }
}
