.phases-wrapper {
    position: relative;
    padding: 4px 4px 12px;
    overflow: visible;
}

.phases {
    display: flex;
    gap: 40px;
    align-items: stretch;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 30px;
    overflow: visible;
}

.phases::-webkit-scrollbar {
    display: none;
}

.phases .box {
    position: relative;
    flex: 0 0 31%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    text-align: left;
    box-shadow: 8px 4px 20px rgb(5 4 42 / 12%);
    transition: border-color .2s ease,
        box-shadow .2s ease,
        transform .15s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phases .box .image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    height: 260px;
}

.phases .box .image {
    width: 100%;
    height: 260px;
    /* Altura fija */
    overflow: hidden;
}

.phases .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantiene el ratio y recorta lo que sobre */
    object-position: center;
    /* Centra el recorte */
    display: block;
}

.phases .box .text {
    padding: 20px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.phases .box .text .phase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phases .box .text .phase-top .num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0504aa;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phases .box .text .phase-top .num.mujer {
    background: #c84fa8;
}

.phases .box .text .phase-top .timing {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0504aa;
    background: #0504aa14;
    border-radius: 999px;
    padding: 3px 12px;
}

.phases .box .text .phase-top .timing.mujer {
    background: #c84fa81a;
    color: #c84fa8;
}

.phases .box .text .phase-top .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phases .box .text .phase-top .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phases .box .text .cat {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #29d0fd;
    background: #29d0fd24;
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}

.phases .box .text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #02016f;
    margin: 0;
    line-height: 1.2;
}

.phases .box .text p {
    font-size: .88rem;
    color: #4f5c76;
    line-height: 1.65;
    margin: 0;
}

.phases .box .text span svg {
    flex-shrink: 0;
    color: #0504aa;
    opacity: .6;
}

.phases-wrapper .arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #0504aa1f;
    box-shadow: 0 18px 48px rgba(5, 4, 42, .12);
    color: #0504aa;

    display: none;

    align-items: center;
    justify-content: center;
    cursor: pointer;

    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
}

.phases-wrapper .arrow.is-visible {
    display: inline-flex;
}

.phases-wrapper .arrow-left {
    left: 0;
}

.phases-wrapper .arrow-right {
    right: 0;
}

.phases-wrapper .arrow svg {
    width: 18px;
    height: 18px;
}

.container.cuatro .phases {
    gap: 20px;
}

.container.cuatro .phases .box {
    flex: 0 0 23.7%;
}

.container.cuatro .phases .box .image {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .phases-wrapper .arrow {
        display: none !important;
    }
}

/* lg */
@media (max-width: 991.98px) {

    .container .phases .box .image {
        height: 300px;
    }

    .phases-wrapper {
        padding: 5px;
    }

    .phases {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding: 0 10px 15px 0;
    }

    .phases .box {
        flex: 0 0 90% !important;
    }

    .phases .box .image {
        height: 180px;
    }

    .phases::-webkit-scrollbar {
        display: none;
    }



}