/* Contenedor principal */
.cont-principal {
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 0px solid red;
  position: relative;
}

.cont-carrusel {
  position: relative;
  max-width: 500px;
  max-height: 400px;
  overflow: hidden;
 /* box-shadow: 0 8px 15px rgba(0, 0, 0, 0.734);*/
  border-radius: 8px;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.item-carrusel {
  position: relative;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.item-carrusel img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.texto {
  max-width: 100%;
  position: absolute;
  top: 2%;
  left: 5%;
  background: rgba(241, 241, 241, 0.79);
  color: #444;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 3vw;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

@media (min-width: 768px) {
/* Contenedor principal */
 /* .cont-principal {
      position: absolute;
      right: 100px;
      margin-top: 50px;
  }
  .cont-carrusel {
    max-width: 600px;
    max-height: 500px;
  }*/
  .texto {
      font-size: 0vw;
      font-size: 1.5em;
  }
}
@media (min-width: 1300px) {
  /* Contenedor principal */
    .cont-principal {
        position: absolute;
        right: 100px;
        margin-top: 50px;
    }
    .cont-carrusel {
      max-width: 600px;
      max-height: 500px;
    }
}

.item-carrusel.activo .texto {
  opacity: 1;
  transform: scale(1);
}

.btn-ant,
.btn-sig {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  z-index: 10;
  font-size: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.cont-carrusel:hover .btn-ant,
.cont-carrusel:hover .btn-sig {
  opacity: 1;
}

.btn-ant {
  left: 15px;
}

.btn-sig {
  right: 15px;
}

.btn-ant:hover,
.btn-sig:hover {
  background: rgba(0, 0, 0, 0.8);
}