@media only screen and (max-width: 1536px) {

  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;
    margin-bottom: 7%;
  }

  .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: -112px auto;
    padding: 4% 5%;
    display: flex;
    justify-content: center;
    overflow: 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;
    margin-bottom: -5%;
    margin-top: -3%;
  }

  /* 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: 100px;
    height: 159px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-fondo {
    width: 115px;
    height: 180px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-lateral {
    width: 130px;
    height: 220px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-centro {
    width: 200px;
    height: 310px;
    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: 200px;
    height: 310px;
    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 .img-centro {
    opacity: 10;
  }
}

@media only screen and (max-width: 1366px) {



  .text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 40%;
    justify-content: center;
    margin-bottom: 10%;
  }

  .img-centro {
    width: 140px;
    height: 220px;
    background-position: center;
    object-fit: cover;
    border: 3px solid white;
    border-color: #fff;
    border-radius: 3%;
  }

  .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 146px;
    height: 226px;
    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;
    padding: 10px;
    /* Añade padding para evitar que el texto toque los bordes */
    box-sizing: border-box;
    /* Incluye el padding y el borde en el tamaño total del elemento */
  }

  .text-overlay p {
    color: #fff;
    font-size: 14px;
    text-align: center;
    word-wrap: break-word;
    /* Permite el ajuste de palabras largas */
    overflow: hidden;
    /* Oculta el desbordamiento */
    text-overflow: ellipsis;
    /* Añade puntos suspensivos si el texto es demasiado largo */
    white-space: normal;
    /* Permite el ajuste de línea */
    word-break: break-word;
    /* Permite romper palabras largas */
  }

  .img-lateral {
    width: 130px;
    height: 190px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-fondo {
    width: 90px;
    height: 150px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-fondo2 {
    width: 75px;
    height: 120px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .hi-slide {
    background-color: rgba(24, 24, 24, 0.2);
    backdrop-filter: blur(6px);
    width: 90%;
    margin: -112px auto;
    padding: 0% 5%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
  }

}

@media only screen and (max-width: 1280px) {

  .text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 40%;
    justify-content: center;
    margin-bottom: 10%;
  }

  .img-centro {
    width: 140px;
    height: 220px;
    background-position: center;
    object-fit: cover;
    border: 3px solid white;
    border-color: #fff;
    border-radius: 3%;
  }

  .text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 146px;
    height: 226px;
    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;
    padding: 10px;
    /* Añade padding para evitar que el texto toque los bordes */
    box-sizing: border-box;
    /* Incluye el padding y el borde en el tamaño total del elemento */
  }

  .text-overlay p {
    color: #fff;
    font-size: 14.7px;
    text-align: center;
    word-wrap: break-word;
    /* Permite el ajuste de palabras largas */
    overflow: hidden;
    /* Oculta el desbordamiento */
    text-overflow: ellipsis;
    /* Añade puntos suspensivos si el texto es demasiado largo */
    white-space: normal;
    /* Permite el ajuste de línea */
    word-break: break-word;
    /* Permite romper palabras largas */
  }

  .img-lateral {
    width: 130px;
    height: 190px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-fondo {
    width: 90px;
    height: 150px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .img-fondo2 {
    width: 70px;
    height: 110px;
    background-position: center;
    object-fit: cover;
    border-radius: 3%;
  }

  .hi-slide {
    background-color: rgba(24, 24, 24, 0.2);
    backdrop-filter: blur(6px);
    width: 90%;
    margin: -112px auto;
    padding: 0% 5%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
  }

}

@media (max-width: 1024px) {

  .text img {
    margin-bottom: 0;
    height: 230px;
    width: 594px;
  }


}

/* iPad */
@media (max-width: 768px) {}

/* mobile */
@media (max-width: 430px) {

  .text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 40%;
    justify-content: center;
    margin-bottom: 20%;
  }

  .text img {
    margin-bottom: 0;
    height: 130px;
    width: 350px;
  }

  .hi-slide .hi-prev {
    left: 30%;
    top: 86%;
    z-index: 50;
}

.hi-slide .hi-next {
  right: 33%;
  top: 86%;
  z-index: 50;
}

/* CSS para la superposición de texto */
.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 147px;
        height: 227px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Inicialmente oculto */
  transition: opacity 0.1s ease;
  border-radius: 3%;
  border: 3px solid white;
}

.text-overlay p {
  color: #fff;
  font-size: 14.7px;
  text-align: center;
  word-wrap: break-word;
  /* Permite el ajuste de palabras largas */
  overflow: hidden;
  /* Oculta el desbordamiento */
  text-overflow: ellipsis;
  /* Añade puntos suspensivos si el texto es demasiado largo */
  white-space: normal;
  /* Permite el ajuste de línea */
  word-break: break-word;
  /* Permite romper palabras largas */
}

/* CSS para mantener la superposición de texto siempre visible cuando se tenga el atributo data-selected-image="true" */
.hi-slide>ul>li[data-selected-image="true"] .text-overlay {
  opacity: 1; /* Hace que la superposición de texto sea siempre visible en los <li> con el atributo data-selected-image="true" */
}


}