.content__boxes {
    /* background: linear-gradient(180deg, #E31F26 0%, #2B0706 100%); */
    margin: 20px 0 0 0;
}

.container_boxes{
    background: linear-gradient(180deg, #E31F26 0%, #2B0706 100%);
    padding: 35px 0 0 0;
}

.boxes-space {
    /* margin-bottom: 30px; */
}

.main_title {
    padding: 0 15px 0 15px;
    text-align: center;
}

.main_title p,
.main_title h1,
.main_title span{
    color: #fff;
}

.main_title p {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    margin: 0 0 10px 0;
}

.main_title h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 10px 0;
}

.main_title span {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.boxes {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    overflow: hidden;
    padding: 110px 0 20px 0;
    position: relative;
    transition: all 400ms ease;
}

.boxes:after {
    /* background: linear-gradient(180deg, rgba(127, 0, 5, 0.00) 0%, rgba(127, 0, 5, 0.55) 100%); */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.50) 100%);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    content: "";
    height: 100%;
    left: 0;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0;
    transition: all 400ms ease;
    width: 100%;
    z-index: 0;
}

.boxes-image {
    bottom: 0;
    height: auto;
    left: 0;
    overflow: hidden;
    position: absolute;
    text-align: center;
    width: 100%;
}

.boxes-image img {
    margin: 0 auto;
    max-width: 90%;
    /* width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; */
}

.boxes-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-end;
    margin-top: 30%;
    padding: 0 20px 40px 20px;
    position: relative;
    z-index: 1;
}

.boxes-summary {
    margin: 0 auto;
    max-width: 80%;
}

.boxes-summary p {
    background: #fff;
    border-radius: 8px;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    margin: 0 0 20px 0;
    padding: 8px 10px 8px 10px;
    position: relative;
    text-align: center;
    transition: all 0.6s ease;
}

.boxes:hover .boxes-summary p{
    opacity: 1;
    visibility: visible;
}

.boxes-summary p:after {
	border: solid transparent;
	border-top-color: #fbfbfb;
	border-width: 8px;
	content: "";
	height: 0;
	left: 50%;
	position: absolute;
	pointer-events: none;
	top: 100%;
	transform: translateX(-50%);
	width: 0;
}

.boxes--link {
    transition: all 0.6s;
}

.boxes:hover .boxes--link{
    transform: translateY(6px);
}

.boxes--link-button{
    background: #fff;
    border-radius: 40px;
    color: #000;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    padding: 10px 15px 10px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 400ms ease;
}

.boxes--link-button:hover{
    background: #000;
    color: #fff;
    text-decoration: none;
}

.content__boxes .boxes_prev, 
.content__boxes .boxes_next {
    display: block;
    height: 32px;
    margin: 0;
    transform: translateY(-50%);
    top: 50%;
    width: 32px;
}

.content__boxes .boxes_prev {
    left: 10px;  
    right: unset;  
}

.content__boxes .boxes_next {
    left: unset;
    right: 10px;    
}


.content__boxes .boxes_prev:after,
.content__boxes .boxes_next:after{
    content: "";
    display: block;
    height: 100%;
    opacity: 1;
    transition: .5s ease all;
    width: 100%;
}

.content__boxes .boxes_prev:after {
    background: url('/Portals/0/skins/ccma/images/iconos/arrow_left.svg') no-repeat;
    background-size: 100%;
    
}

.content__boxes .boxes_next:after {
    background: url('/Portals/0/skins/ccma/images/iconos/arrow_right.svg') no-repeat;
    background-size: 100%;
}


@media(min-width: 768px){

    .boxes {
        padding: 120px 0 50px 0;
    }

    .boxes-image {
        /* bottom: unset;
        height: 100%;
        top: 0; */
    }

    .boxes-text {
        padding: 0 25px 0 25px;
    }

    .content__boxes .boxes_prev {
        left: 5%;  
    }
    
    .content__boxes .boxes_next {
        right: 5%;    
    }

}

@media(min-width: 1024px){

    /* .boxes {
        padding: 70px 0 50px 0;
    } */

    .main_title p {
        font-size: 25px;
        line-height: 30px;
        margin: 0 0 5px 0;
    }
    
    .main_title h1 {
        font-size: 40px;
        line-height: 45px;
        margin: 0 0 5px 0;
    }
    
    .main_title span {
        font-size: 16px;
        line-height: 20px;
    }

    .boxes-text {
        padding: 0 20px 0 20px;
    }

    .content__boxes .boxes_prev {
        left: 1%;  
    }
    
    .content__boxes .boxes_next {
        right: 1%;    
    }

}


@media(min-width: 1200px){
    .boxes:after{
        content: normal;
    }
    
    .boxes:hover:after{
        content: "";
    }

    .boxes-summary {
        max-width: unset;
    }

    .boxes-summary p {
        opacity: 0;
        visibility: hidden;
    }

    .content__boxes .boxes_prev, 
    .content__boxes .boxes_next{
        display: none;
    }
}
