body,
html {
  height: 100%;
  margin: 0;
  font-family: montserrat;
}

body {
  height: 100%;
  width: 100%;
  /* background-image: url('../images/home/3.webp'); */
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.text {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 40%;
  justify-content: center;
}

.text img {
  margin-bottom: -23px;
  height: 177px;
  width: 494px;
}

h1 {
  margin: 150px auto 30px auto;
  text-align: center;
  color: #fff;
}

.hi-slide {
  background-color: rgba(24, 24, 24, 0.2);
  backdrop-filter: blur(6px);
  width: 90%;
  margin: 5px auto;
  padding: 70px 5%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.hi-slide .hi-next {
  position: absolute;
  top: 50%;
  right: 0;
  width: 80px;
  height: 80px;
  margin-top: -50px;
  border-radius: 50px;
  line-height: 70px;
  cursor: pointer;
  transition: all 0.6s;
  transform: rotate(180deg);
  z-index: 5000;
}

.hi-slide .hi-prev {
  position: absolute;
  top: 50%;
  width: 80px;
  height: 80px;
  margin-top: -20px;
  border-radius: 50px;
  line-height: 40px;
  cursor: pointer;
  transition: all 0.6s;
}

.hi-slide .hi-prev {
  left: -160px;
}

.hi-slide .hi-next {
  right: -202px;
}

/* espacio donde esta la galeria */
.hi-slide > ul {
  list-style: none;
  position: relative;
  width: 800px;
  height: 370px;
  margin: 0;
  padding: 0;
}

/* donde esta la imagen */
.hi-slide > ul > li {
  position: absolute;
  z-index: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 3%;
  width: 710px;
  height: 539px;
  top: 100px;
  left: 40px;
}

/* propiedad de la imagen */
.img-fondo2 {
  width: 110px;
  height: 159px;
  background-position: center;
  object-fit: cover;
  border-radius: 3%;
}

.img-fondo {
  width: 128px;
  height: 200px;
  background-position: center;
  object-fit: cover;
  border-radius: 3%;
}

.img-lateral {
  width: 161px;
  height: 260px;
  background-position: center;
  object-fit: cover;
  border-radius: 3%;
}

.img-centro {
  width: 218px;
  height: 350px;
  background-position: center;
  object-fit: cover;
  border: 3px solid white;
  border-color: #fff;
  border-radius: 3%;
}

/* CSS para la superposición de texto */
.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 219px;
  height: 350px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.1s ease;
  border-radius: 3%;
  border: 3px solid white;
  
}

.text-overlay p {
  color: #fff;
  font-size: 18px;
  text-align: center;
}

/* CSS para activar la superposición de texto al pasar el cursor sobre el <li> seleccionado */
.hi-slide > ul > li[data-selected-image="true"]:hover .text-overlay {
  opacity: 10;
}
