
.slide_texto_img {
    background-color: #000;
}

.slide_texto_img .carousel-caption h1 {
    color: #efefef;
    text-shadow: 4px 4px 12px rgba(0, 0, 0, 0.8);

}

.slide_texto_img .carousel-caption h1::after {
    background-color: #fff;
}

.slide_texto_img .carousel-caption .sobretitular {
    font-family: "Allison", cursive;
    font-weight: 400;
    transform: rotate(-5deg);
    margin-bottom: 10px;
}

.slide_texto_img .fondo_slide {
    background-image: url(../img/fondo_slide.jpg);
    background-position: bottom;
    background-size: cover;
    top: -112px;
    margin-bottom: -112px;
    padding-top: 112px;
}

.slide_texto_img .carousel-inner img {
    object-fit: cover;
    height: calc(100vh - 170px);
    width: 100%;
}


.slide_texto_img .carousel-caption {
    color: #fff;
    text-align: left;
    z-index: 5;
   

}

/*.img_slide .overlay{
    position: absolute;
    top: 0;
    
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.4) 100%);
    width: 100%;
    height: 100%;
  
}*/
.slide_texto_img .carousel-control-prev, .carousel-control-next {
    color: #000;
}

.slide_texto_img .carousel-caption h1 {
    font-size: clamp(1.4rem, 2.5vw, 5rem);
    font-weight: 400;
    line-height: 125%;
  
}


/* Extra small devices (portrait phones, less than 576px)*/
@media (width <= 575.98px) {
   

    .slide_texto_img .img_slide img {
        max-height: 50vh;
        opacity: 0.5;
    }

    .slide_texto_img .carousel-caption p {
        line-height: 120%;
    }

    .slide_texto_img .carousel-caption h1::after {
        margin: 10px 0px;
    }

    .slide_texto_img .sobretitular {
        text-shadow: 0px 0px 12px rgb(252, 251, 251);
        color:#fff;
    }
}

/* Small devices (landscape phones, 576px and up)*/
@media (576px <= width <= 767.98px) {
       .slide_texto_img .sobretitular {
        text-shadow: 0px 0px 12px rgb(252, 251, 251);
        color:#fff;
    }
    .slide_texto_img .img_slide img {
        height: 100vh;
        opacity: 0.7;
    }

    .carousel-caption {    bottom: 3.25rem;}
      
    .slide_texto_img .carousel-caption p {
        line-height: 120%;
    }

    .slide_texto_img .carousel-caption h1::after {
        margin: 10px 0px;
    }

  
}

/* Medium devices (tablets, 768px and up)*/
@media (768px <= width <= 991.98px) {
    .slide_texto_img .carousel-caption p {
        line-height: 120%;
    }

    .slide_texto_img .carousel-caption h1::after {
        margin: 10px 0px;
    }
}

/* Medium devices (tablets, 768px and up)*/
@media (768px <= width <= 991.98px) and (orientation: portrait) {

}


/* Large devices l (desktops, 992px and up)*/
@media (992px <= width <= 1199.98px) {
    .slide_texto_img .carousel-caption p {
        line-height: 120%;
    }
}

/* Large devices l (desktops, 992px and up)*/
@media (992px <= width <= 1199.98px)  and (orientation: portrait) {

}


/* Extra large devices xl(large desktops, 1200px and up)*/
@media (1200px <= width <= 1399px) {
    .slide_texto_img .carousel-caption {
        width: 80%;
    }

}

/* Extra large devices xl(large desktops, 1400px and up)*/
@media (width >= 1400px) {
    .slide_texto_img .carousel-caption {
        position: absolute;
        left: 300px;
        top: 50%;
        transform: translateY(-50%);
    }

}





