.casos_exito {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 60vh;
    align-items: center;
    padding-bottom: 10px;
    padding-top: 10px;
}

.ctn_caso_ext {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 50vh;
    align-items: center;
    justify-content: center;
}

.title_caso_ext {
    width: 40%;
    text-align: center;
    margin-bottom: 20px;
}

.title_caso_ext img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    display: flex;
    width: 60%;
    height: 50vh;
}

.panel {
    flex: 1;
    transition: flex 0.5s ease;
    cursor: pointer;
    position: relative;
}

.card_ctn {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.card_ctn_descr {
    display: none;
    width: 0%;
}

.card_ctn_img {
    display: flex;
    width: 100%;
}

.card_ctn_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.panel.active {
    flex: 3;
}

.panel.active.card_ctn_img img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 100%;
    text-align: center;
    padding: 10px;
}

.card_ctn_descr.active {
    display: flex;
    width: 50%;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primario);
}

.card_ctn_img.active {
    width: 50%;
}


.card_ctn_descr p {
    color: var(--color-blanco);
    font-family: var(--fuente-montserrat);
    font-size: 13px;
    padding: 0 20px;
}

.panel.first {
    border-radius: 15px 0 0 15px;
    /* border: 1px solid var(--color-primario); */
}

.card_ctn_descr.first {
    border-radius: 15px 0 0 15px;
    /* border: 1px solid var(--color-primario); */
}

.primero {
    border-radius: 15px 0 0 15px;
}

@media (max-width: 335px)and (min-width: 0px) {
    .casos_exito {
        flex-direction: row;
        height: 320px;
    }

    .ctn_caso_ext {
        flex-direction: column;
        height: 100%;
    }

    .title_caso_ext {
        width: 100%;
        height: 40%;
        margin-bottom: 0;
    }

    .title_caso_ext img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    .container {
        display: flex;
        width: 100%;
        height: 60%;
    }

    .card_ctn_descr p {
        font-size: 8px;
        padding: 0 5px;
    }

    .panel.first {
        border-radius: 0px 0 0 0px;
    }

    .card_ctn_descr.first {
        border-radius: 0;
    }

    .primero {
        border-radius: 0;
    }

}

@media (max-width: 361px) and (min-width: 336px) {
    .casos_exito {
        flex-direction: row;
        height: 360px;
    }

    .ctn_caso_ext {
        flex-direction: column;
        height: 100%;
    }

    .title_caso_ext {
        width: 100%;
        height: 40%;
        margin-bottom: 0;
    }

    .title_caso_ext img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    .container {
        display: flex;
        width: 100%;
        height: 60%;
    }

    .card_ctn_descr p {
        font-size: 9px;
        padding: 0 5px;
    }

    .panel.first {
        border-radius: 0;
    }

    .card_ctn_descr.first {
        border-radius: 0;
    }

    .primero {
        border-radius: 0;
    }
}

@media (max-width: 481px) and (min-width: 361px) {
    .casos_exito {
        flex-direction: row;
        height: 380px;
    }

    .ctn_caso_ext {
        flex-direction: column;
        height: 100%;
    }

    .title_caso_ext {
        width: 100%;
        height: 40%;
        margin-bottom: 0;
    }

    .title_caso_ext img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    .container {
        display: flex;
        width: 100%;
        height: 60%;
    }

    .card_ctn_descr p {
        font-size: 10px;
        padding: 0 5px;
    }

    .panel.first {
        border-radius: 0;
    }

    .card_ctn_descr.first {
        border-radius: 0;
    }

    .primero {
        border-radius: 0;
    }
}

@media (max-width: 701px) and (min-width: 481px) {
    .casos_exito {
        flex-direction: row;
        height: 450px;
    }

    .ctn_caso_ext {
        flex-direction: column;
        height: 100%;
    }

    .title_caso_ext {
        width: 100%;
        height: 30%;
        margin-bottom: 0;
    }

    .title_caso_ext img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }

    .container {
        display: flex;
        width: 100%;
        height: 70%;
    }

    .card_ctn_descr p {
        font-size: 12px;
        padding: 0 5px;
    }

    .panel.first {
        border-radius: 0;
    }

    .card_ctn_descr.first {
        border-radius: 0;
    }

    .primero {
        border-radius: 0;
    }
}

@media (max-width: 959px) and (min-width: 701px) {
    .casos_exito {
        height: 300px;
    }

    .ctn_caso_ext {
        margin-top: 20px;
        height: 100%;
    }

    .title_caso_ext {
        width: 30%;
        margin-bottom: 0;
    }

    .container {
        width: 70%;
        height: 100%;
    }

    .card_ctn_descr p {
        font-size: 12px;
        padding: 0 5px;
    }
}

@media (max-width: 1200px) and (min-width: 959px) {
    .casos_exito {
        height: 300px;
    }

    .ctn_caso_ext {
        margin-top: 20px;
        height: 100%;
    }

    .title_caso_ext {
        width: 30%;
        margin-bottom: 0;
    }

    .container {
        width: 70%;
        height: 100%;
    }

    .card_ctn_descr p {
        font-size: 13px;
        padding: 0 5px;
    }
}

@media (max-width: 1921px) and (min-width: 1337px) {
    .casos_exito {
        height: 500px;
    }

    .ctn_caso_ext {
        margin-top: 20px;
        height: 100%;
    }

    .title_caso_ext {
        width: 30%;
        margin-bottom: 0;
    }

    .container {
        width: 70%;
        height: 100%;
    }

    .card_ctn_descr p {
        font-size: 22px;
        padding: 0 5px;
    }
}

@media (max-width: 2700px) and (min-width: 1921px) {
    .casos_exito {
        height: 700px;
    }

    .ctn_caso_ext {
        margin-top: 20px;
        height: 100%;
    }

    .title_caso_ext {
        width: 30%;
        margin-bottom: 0;
    }

    .container {
        width: 70%;
        height: 100%;
    }

    .card_ctn_descr p {
        font-size: 30px;
        padding: 0 5px;
    }
}