/* ==========================================================================
   Stats — mobile first
   ========================================================================== */

.stats {
    padding: var(--section-padding);
    background-color: var(--color-blanco);
}

/* Header */
.stats__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.stats__title {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--color-azul);
    max-width: 52rem;
    margin: 0 auto;
}

.stats__title-accent {
    display: block;
    width: 3.5rem;
    height: 4px;
    margin: 1rem auto 0;
    background-color: var(--color-amarillo);
    border-radius: 2px;
}

/* Grid */
.stats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    list-style: none;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(10, 76, 152, 0.12);
}

.stats__item:last-child {
    border-bottom: none;
}

/* Icon */
.stats__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 4rem;
    margin-bottom: 1.125rem;
    color: var(--color-amarillo);
}

.stats__icon-fa,
.stats__icon i {
    display: block;
    font-size: clamp(2.5rem, 12vw, 3rem);
    line-height: 1;
    width: 1em;
    height: 1em;
    color: var(--color-blanco);
    -webkit-text-stroke: 0.08em var(--color-amarillo);
    paint-order: stroke fill;
}

/* Stat */
.stats__stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.3125rem 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.stats__value {
    font-size: clamp(2.125rem, 8vw, 2.5rem);
    font-weight: 900;
    color: var(--color-azul);
    letter-spacing: -0.02em;
}

.stats__keyword {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-amarillo);
    letter-spacing: 0.04em;
}

/* Divider */
.stats__divider {
    display: block;
    width: 3.25rem;
    height: 3px;
    background-color: var(--color-amarillo);
    border-radius: 2px;
    margin-bottom: 1rem;
}

/* Description */
.stats__desc {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gris-texto);
    line-height: 1.55;
    max-width: 16rem;
    margin: 0;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item {
        border-bottom: 1px solid rgba(10, 76, 152, 0.12);
    }

    .stats__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .stats__item:nth-child(odd) {
        border-right: 1px solid rgba(10, 76, 152, 0.12);
    }
}

@media (min-width: 768px) {
    .stats {
        padding: 4rem 0;
    }

    .stats__header {
        margin-bottom: 3rem;
    }

    .stats__icon {
        min-height: 3.5rem;
        margin-bottom: 1rem;
    }

    .stats__icon-fa,
    .stats__icon i {
        font-size: 2.625rem;
    }

    .stats__desc {
        font-size: 0.875rem;
        max-width: 11rem;
    }
}

@media (min-width: 1024px) {
    .stats__grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .stats__item {
        padding: 1.5rem 1rem;
        border-bottom: none;
        border-right: 1px solid rgba(10, 76, 152, 0.12);
    }

    .stats__item:nth-child(odd) {
        border-right: 1px solid rgba(10, 76, 152, 0.12);
    }

    .stats__item:last-child {
        border-right: none;
    }

    .stats__desc {
        max-width: 10.5rem;
    }

    .stats__icon-fa,
    .stats__icon i {
        font-size: 2.375rem;
    }
}

@media (min-width: 1200px) {
    .stats__item {
        padding: 2rem 1.25rem;
    }

    .stats__icon {
        min-height: 3.75rem;
    }

    .stats__icon-fa,
    .stats__icon i {
        font-size: 2.875rem;
    }

    .stats__desc {
        max-width: 11.5rem;
    }
}
