/* =============================================================
   Counter Section — Estadísticas / Key Numbers
   Tema Piedrangular
   ============================================================= */

/* ---- Global box-sizing for this section ---- */
.counter-section *,
.counter-section *::before,
.counter-section *::after {
    box-sizing: border-box;
}

/* =============================================================
   Section wrapper
   ============================================================= */
.counter-section {
    background-color: #4563c7;
    padding: 3rem 0;
}

/* =============================================================
   Three-column grid
   ============================================================= */
.counter-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

/* =============================================================
   Individual counter item
   ============================================================= */
.counter-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
}

/* Add a subtle divider between items */
.counter-item + .counter-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 2rem;
}

/* ---- Icon ---- */
.counter-item__icon {
    flex-shrink: 0;
    color: #ffffff;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Text block ---- */
.counter-item__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.counter-item__number {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.01em;
}

.counter-item__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0;
    line-height: 1.4;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 768px) {
    .counter-section__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .counter-item + .counter-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 1.75rem;
    }

    .counter-item {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .counter-section {
        padding: 2.5rem 0;
    }
}
