﻿.counters {
    display: flex;
    /*background: rgba(255, 255, 255, 0.75);*/
    padding: 20px;
    /*border-radius: 10px;*/
    /*box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);*/
    justify-content: center;
}

.counter {
    letter-spacing: 0.125rem;
    line-height: 1;
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 6.125rem;
    font-size: 6.125rem;
    margin: 0 1.25rem;
    font-weight: 600;
}

    .counter > span {
        z-index: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: transform 2s ease;
        transform: translateY(0);
        line-height: 1;
        color: #fff;
    }

        .counter > span span {
            flex: 0 0 100%;
            height: 100%;
        }

    .counter:nth-child(1) > span {
        transition-delay: 0s;
    }

    .counter:nth-child(2) > span {
        transition-delay: 0.375s;
    }

    .counter:nth-child(3) > span {
        transition-delay: 0.75s;
    }

    .counter:nth-child(4) > span {
        transition-delay: 1.125s;
    }

    .counter:nth-child(5) > span {
        transition-delay: 1.5s;
    }

    .counter:nth-child(6) > span {
        transition-delay: 1.875s;
    }

    .counter:nth-child(7) > span {
        transition-delay: 2.25s;
    }

    .counter:nth-child(8) > span {
        transition-delay: 2.625s;
    }

    .counter:nth-child(9) > span {
        transition-delay: 3s;
    }

    .counter:nth-child(10) > span {
        transition-delay: 3.375s;
    }

    .counter:nth-child(11) > span {
        transition-delay: 3.75s;
    }

    .counter:nth-child(12) > span {
        transition-delay: 4.125s;
    }

    .counter:nth-child(13) > span {
        transition-delay: 4.5s;
    }

    .counter:nth-child(14) > span {
        transition-delay: 4.875s;
    }

    .counter:nth-child(15) > span {
        transition-delay: 5.25s;
    }

    .counter:nth-child(16) > span {
        transition-delay: 5.625s;
    }

    .counter:nth-child(17) > span {
        transition-delay: 6s;
    }

    .counter:nth-child(18) > span {
        transition-delay: 6.375s;
    }

    .counter:nth-child(19) > span {
        transition-delay: 6.75s;
    }

    .counter:nth-child(20) > span {
        transition-delay: 7.125s;
    }

    .counter:nth-child(1) {
        color: #EF8354;
    }

    .counter:nth-child(2) {
        color: #0EB1D2;
    }

    .counter:nth-child(3) {
        color: #2D3142;
    }

    .counter:nth-child(4) {
        color: #698F3F;
    }


/* Etiqueta bajo cada contador (antes estilo en línea) */
.counter-label {
    text-align: center;
    font-size: 4em;
    color: #fff;
    font-weight: 600;
}

/* Móvil: el número (6 rem) y la etiqueta (4 em) eran más anchos que la pantalla y
   forzaban scroll horizontal en el Home */
@media (max-width: 575.98px) {
    .c-card > .position-absolute {
        width: 100%;
        max-width: 100vw;
    }
    .counters {
        padding: 12px 0;
    }
    .counter {
        height: 3.6rem;
        font-size: 3.6rem;
        margin: 0 .35rem;
        letter-spacing: .06rem;
    }
    .counter-label {
        margin: 0;
        padding: 0 12px;
        font-size: 1.9rem;
        line-height: 1.15;
    }
}
