.eco-banners .row{
    margin: 0;
    display: flex;
    height: 300px;
}
.eco-banners .d-flex{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.eco-banners .special-padding{
    padding: 0 0 0 0.5rem;
}
.eco-banners .flex-column > div:first-child{
    margin-bottom: 0.5rem;
}
.eco-banner-item {
    flex-grow: 1;
    padding: 0;
}

.eco-banner-item a {
    display: block;
    position: relative;
    overflow: hidden; /* Para mantener el border-radius en las imágenes */
    border-radius: 15px;
    height: 100%;
}

.eco-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.eco-banner-item a:hover img {
    transform: scale(1.05);
}

/* El texto del editor WYSIWYG */
.eco-banner-item .banner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Espaciado para los banners de la columna derecha */
.col-lg-5 .col-12:first-child {
    padding-bottom: 0.5rem;
}
.col-lg-5 .col-12:last-child {
    padding-top: 0.5rem;
}
.bannerText{
    position: absolute;
    left: 10%;
    bottom: 10%;
    color: white;
}
.d-flex .bannerText{
    left: 20%;
}
.bannerText p{
    color: white;
}
.bannerButton {
    padding: 3px 18px;
    border: 1px solid white;
    border-radius: 30px;
}
/* Ajustes responsivos */

@media (max-width: 991px){
    .bannerText > p{
        display: none;
    }
    .eco-banners{
        margin-left: -15px;
        margin-right: -15px;
    }
    .eco-banners .row{
        flex-direction: column;
        height: auto;
    }
    .bannerButton{
        font-size: 12px;
    }
    .eco-banners > .row > div{
        padding: 0;
        margin-bottom: 5px;
    }
    .eco-banner-item a{
        border-radius: 0;
    }
    .eco-banners .d-flex:first-child div:first-child{
        display: none;
    }
    .d-flex.row{
        margin: 0;
        div{
            padding: 0;
        }
    }
    .
}

