

.contenedor_b5{
    display: flex;
    width: 100%;
    height: 500px !important;
    height: auto;
    justify-content: center;
    background-size: 100% 500px;
    background-repeat: no-repeat;
    align-items: center;
    position: relative;
}

.cont_img{
    display: flex;
    justify-content: center;
    /* flex-wrap: wrap; */
    max-width: 1155px;
    width: 98%;
}

.card_b5{
    position: relative;
    width: calc(100%/4);
    max-height: 340px;
    max-width: 272px;
    margin-right: 16px; 
}

.card_b5:last-child{
    margin-right: 0px;
}

#card_1{
    /* max-width: 272px; */
    background: #fff;
    padding: 32px 24px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#card_1 h1{
    font-family: 'Alright Sans Ultra';
    font-size: 24px;
    color: #D31145;
}

#card_1 p{
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    font-family: 'Alright Sans Regular';
}

.card_b5 img{
    width: 100%;
    display: inline;
    z-index: 2;
}

.card_b5 .texto_b5{
    width: 100%;
    max-width: 272px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 24px !important;
    z-index: 100;
    font-family: 'Alright Sans Ultra';
}

.over_b {
    top: 0px;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
}

@media screen and (max-width: 1159px){
    .card_b5:last-child{
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 1123px){
    #card_1{
        padding-top: 0px;
        padding-bottom: 0px;
    }

    #card_1 h1{
        margin-bottom: 20px;
        font-size: 20px;
    }

    #card_1 p{
        font-size: 14px;
    }
}

@media screen and (max-width: 975px){
    #card_1 h1{
        margin-bottom: 20px;
        font-size: 16px;
    }

    #card_1 p{
        font-size: 11px;
    }
}

@media screen and (max-width: 830px){
    .contenedor_b5{
        height: 750px !important;
        background-size: 100% 750px;
    }

    .cont_img{
        flex-wrap: wrap;
    }

    .card_b5{
        width: 40%;
        margin-right: 0;
    }
    .card_b5:first-child{
        margin-right: 16px;
        margin-bottom: 16px;
    }
    .card_b5:nth-child(2){
        margin-bottom: 16px;
    }
    .card_b5:nth-child(3){
        margin-right: 16px !important;
    }
}

@media screen and (max-width: 600px){
    .contenedor_b5 {
        height: 650px !important;
        background-size: 100% 650px;
    }
}

@media screen and (max-width: 500px){
    .contenedor_b5 {
        height: 620px !important;
        background-size: 100% 620px;
    }
    #card_1{
        padding: 0 15px;
    }
    #card_1 h1 {
        margin-bottom: 10px;
        font-size: 14px;
    }
    #card_1 p {
        font-size: 10px;
        margin-bottom: 0;
    }
    .card_b5{
        width: 45%;
    }
    .card_b5 .texto_b5{
        font-size: 18px;
    }
}

@media screen and (max-width: 430px){
    .cont_img{
        width: 100%;
    }
    .contenedor_b5 {
        height: 530px!important;
        background-size: 100% 530px;
    }
    
}

@media screen and (max-width: 380px){
    .contenedor_b5 {
        height: 490px!important;
        background-size: 100% 490px;
    }
}
