

/* ================================================================================================= */

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: block;
  transition: transform 1s ease, opacity 1s ease;
}

.carousel-item-next,
.carousel-item-prev {
  opacity: 0;
  transform: scale(1.1);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
}  
  /* Estilos del carrusel y sus elementos */
  .carousel, .carousel-inner, .carousel-item, .active {
    height: 100vh; /* Ajuste para ocupar toda la altura de la ventana */
  }
  
  .carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0;
    max-height: 100%;
    max-width: 100%;
  }
  
  .carousel-inner.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* z-index: 5; */
  }
  
/*   .carousel-inner.bg-image::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/avida/recorte 2.png');
    background-size: 55% 100%;
    background-position: left center;
    background-repeat: no-repeat;
    z-index: 7;
  } */
  
  .carousel-item {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    /* z-index: 8; */
  }

  .carousel-item.active {
    opacity: 1;
    position: relative;
  }
  
  /* Estilo específico para el video en el carousel-item vacío */
  #carouselItemVideo {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
  
  .form-control {
    background-color: rgb(0, 0, 0);
  }
  
  .carousel-caption {
    z-index: 8; /* Establece el valor predeterminado */
    /* margin-left: 200px; */
    
  }



  .carousel-caption h1,
  .carousel-caption p,
  .carousel-caption .btn {
    /* color: #083404; */
    color: #ffffff;
  }
  
  .carousel-caption h1 {
    font-size: calc(1.7rem + .4vw);
  }
  
  .carousel-caption p {
    font-size: calc(0.7rem + 0.25vw);
  }
  

  .carousel-caption .btn {
    border-radius: 25px;
    /* width: 200px; */
    /* border: 2px solid #083404; */
    border: 2px solid #ffffff;
    transition: transform 0.3s;
  }

  .carousel-caption .btn:hover {
    transform: scale(1.1);
  }
  .carousel-caption .btn:active {
    transform: scale(0.9);
  }
  
  .carousel .carousel-inner .bg {
    background-repeat: no-repeat;
  }
  
  .carousel .carousel-inner .bg0 {
    z-index: 9;
  }

  .carousel .carousel-inner .bg1 {
    background: url("../img/avida/AVIDA_010.jpg");
    background-repeat: no-repeat;
    /* background-size: 90% 100%; */
    background-size: 100% 100%;
    background-position: 100%;
    z-index: 6;
  }
  
  .carousel .carousel-inner .bg2 {
    background-image: url("../img/avida/AVIDA_022-(2).png");
    background-repeat: no-repeat;
    /* background-size: 60% 100%; */
    background-size: 100% 100%;
    background-position: right;
    z-index: 6;
  }
  
  .carousel .carousel-inner .bg3 {
    background-image: url("../img/avida/AVIDA_020.jpg");
    background-repeat: no-repeat;
    /* background-size: 60% 100%; */
    background-size: 100% 100%;
    background-position: right;
    z-index: 6;
  }  
  
  .carousel-controls {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: transform 0.3s;
  }
  
  .carousel-control-prev img,
  .carousel-control-next img {
    width: 3rem;
    height: 3rem;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  
  .carousel-control-prev img {
    margin-left: 48px;
    transform: translateY(25px);
  }
  
  .carousel-control-next img {
    margin-right: 48px;
    transform: translateY(25px);
  }
  
  .carousel-control-prev-icon, .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  @media (min-width: 2652px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      left: 5%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }

  @media (min-width: 2561px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      left: 5%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }

  @media (max-width: 2560px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      left: 5%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }
  
  @media (max-width: 2360px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
/*   
    .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }

  @media (max-width: 2160px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }  

  @media (max-width: 2130px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 30%; */
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 610px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.6rem;
    } */
  }  



















  
  
  @media (max-width: 2100px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 20%; */
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
      /* margin-left: 310px; */
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.3vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.2vw);
    }
  
/*     .carousel-caption .btn {
      width: 300px;
      font-size: 2rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1800px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(2rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.9rem + 0.2vw);
    }
  
/*     .carousel-caption .btn {
      width: 250px;
      font-size: 1.5rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1750px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.9rem + 0.22vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.88rem + 0.22vw);
    }
  
/*     .carousel-caption .btn {
      width: 240px;
      font-size: 1.4rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1700px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.8rem + 0.25vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.85rem + 0.25vw);
    }
  
/*     .carousel-caption .btn {
      width: 225px;
      font-size: 1.3rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1650px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.7rem + 0.28vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.82rem + 0.28vw);
    }
  
/*     .carousel-caption .btn {
      width: 215px;
      font-size: 1.2rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1600px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.6rem + 0.3vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.8rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 200px;
      font-size: 1.1rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1575px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.5rem + 0.33vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.78rem + 0.33vw);
    }
  
/*     .carousel-caption .btn {
      width: 180px;
      font-size: 1rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1550px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      left: 3%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1.4rem + 0.35vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.75rem + 0.35vw);
    }
  
/*     .carousel-caption .btn {
      width: 150px;
      font-size: 0.9rem;
      padding: 0.25rem 0.5rem;
    } */
  }
  
  @media (max-width: 1500px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
    }
  
    .carousel-caption h1 {
      font-size: calc(1rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.7rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 100px;
      font-size: 0.7rem;
      padding: 0.25rem 0.6rem;
    } */
  }
  
  
  @media (max-width: 1440px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 310px; */
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 45%;
      /* max-width: 35%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(1rem + 0.4vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.7rem + 0.3vw);
    }
  
/*     .carousel-caption .btn {
      width: 100px;
      font-size: 0.7rem;
      padding: 0.25rem 0.6rem;
    } */
  }

  @media (max-width: 1200px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 310px; */
      left: 2.5%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(1rem + 0.3vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.7rem + 0.2vw);
    }
  
/*     .carousel-caption .btn {
      width: 105px;
      font-size: 0.75rem;
      padding: 0.25rem 0.65rem;
    } */
  }

  @media (max-width: 1023px) {
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2.png');
      background-size: 55% 100%;
      background-position: left center;
    }
  
    .carousel-caption {
      /* margin-left: 310px; */
      left: 1%;
      bottom: 50%;
      transform: translate(-50%, 50%);
      margin-top: 25%;
      /* max-width: 35%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(1rem + 0.3vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.7rem + 0.2vw);
    }
  
/*     .carousel-caption .btn {
      width: 105px;
      font-size: 0.75rem;
      padding: 0.25rem 0.65rem;
    } */
  }
  




  /*-------------------------------- fondo abajo small--------------------------------------------------*/
  @media (max-width: 991px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    } 
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }

  @media (max-width: 930px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 870px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 810px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 768px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 59%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  



/* x-small */

  
  @media (max-width: 680px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 640px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 600px) {
    .carousel .carousel-inner .bg1 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg2 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    
    .carousel .carousel-inner .bg3 {
      /* background-size: 100% 60%; */
      background-size: 100% 100%;
      background-position: top;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 24%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  /* ----------------------------------------------------------------------------------------------------mobiles */
  @media (max-width: 575px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 90%;
      transform: translateX(-50%);
    }
  
    .carousel-caption h1 {
      font-size: calc(0.7rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.5rem + 0.1vw);
    }
    
    /* Ajustes adicionales para los botones si es necesario */
    /* .carousel-caption .btn {
      width: 80px;
      font-size: 0.6rem;
      padding: 0.2rem 0.5rem;
    } */
  }
  

  /* mobiles */
  @media (max-width: 480px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  

  @media (max-width: 400px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 100%;
      /* margin-right: 1px; */
   /*    padding: 10px;
      margin-bottom: 70px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.85rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.65rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 350px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 100%;
/*       padding: 20px;
      margin-bottom: 20px; */
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.85rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.65rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 300px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 100%;
      /* margin-right: 1px; */
      /* padding: 1%;
      margin-bottom: 1%; */
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  
  @media (max-width: 250px) {
    .carousel .carousel-inner .bg1 {
      background-image: url('../img/avida/AVIDA_017 mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg2 {
      background-image: url('../img/avida/AVIDA_022-(2)mobil.png');
      background-size: 100% 100%;
      background-position: bottom;
    }
  
    .carousel .carousel-inner .bg3 {
      background-image: url('../img/avida/AVIDA_002 (1)mobil.jpg');
      background-size: 100% 100%;
      background-position: bottom;
    }
    .br-md-hide {
      display: none;
    }
    #customCarouselCaption {
      width: 100%;
    }
    .carousel-inner.bg-image::before {
      content: "";
      position: absolute;
      background-image: url('../img/avida/recorte 2r.png');
      background-size: 100% 58%;
      background-position: bottom center;
      background-repeat: no-repeat;
    }
    .carousel-caption {
      left: 50%;
      bottom: 10%;
      max-width: 100%;
      /* margin-right: 1px; */
      padding: 1%;
      margin-bottom: 0.5%;
    }
  
    .carousel-caption h1 {
      font-size: calc(0.8rem + 0.2vw);
    }
  
    .carousel-caption p {
      font-size: calc(0.6rem + 0.1vw);
    }
  
/*     .carousel-caption .btn {
      width: 95px;
      font-size: 0.65rem;
      padding: 0.2rem 0.6rem;
    } */
  }
  