#hero-slider {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.hero-content h2 {
    color: white;
    font-size: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}
.hero-content p {
    padding: 1em;
    color: #fff;
    font-size: 1.5em;
    text-align: center;
}

.splide__slide.is-active .hero-content h2 {
    opacity: 1;
    transform: translateY(0);
}

.splide__slide.is-active .hero-slide {
    transform: scale(1.1); /* Zoom in effect */
}

.splide__slide:not(.is-active) .hero-slide {
    transform: scale(1); /* Zoom out effect */
    opacity: 0; /* Fade out effect */
}

.btn_hero {
    display: block; 
    text-decoration:none;
    color: white;
    border: 1px solid #fff;
    padding: 1em 2em;
    border-radius: 5px;
    text-align: center;
    width: 180px;
    margin: 2em auto;
    
     }


 .banner {
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
     background-size: cover;
    background-position: center;
    color: #fff;
 }

  .banner h1{
    font-size: 3.4em;
    margin-bottom: 15px;
  }      

#banner-nosotros {
    background-image: url(../img/banner-nosotros.jpg);
}


/*** responsive */
@media(max-width:767px){


.hero-content h2 {
   
    font-size: 2.2rem;

}
}

@media(max-width:375px){


.hero-content h2 {
   
    font-size: 2rem;

}
}