/* .position {
  position: absolute;
  top: 24rem;
  left: 50%;
  transform: translate(-50%, -50%);
} */

/* .slider {
  background-image: url("/images/slider-1.jpg");
  background-size: cover;
  height: 50%;
  width: 100%;
  animation: animate 20s infinite;
} */

/* @keyframes animate {
  0% {
    background-image: url("/images/slider-1.jpg");
    background-size: cover;
  }
  20% {
    background-image: url("/images/slider-2.jpg");
    background-size: cover;
  }
  40% {
    background-image: url("/images/slider-3.jpg");
    background-size: cover;
  }
  60% {
    background-image: url("/images/slider-1.jpg");
    background-size: cover;
  }
  80% {
    background-image: url("/images/slider-2.jpg");
    background-size: cover;
  }
  100% {
    background-image: url("/images/slider-3.jpg");
    background-size: cover;
  }
} */

/* @media (max-width: 1199px) {
  .position {
    top: 26rem;
  }
} */

/* @media (max-width: 991px) {
  .position {
    top: 28rem;
  }
} */

/* desaparece el slider para dispositivos moviles */
/* @media (max-width: 767px) {
  .position {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .slider {
    height: 30vh;
  }
} */

.swiper {
  width: 100%;
  height: 70%;
  position: relative;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem;
  border-radius: 1rem;
  z-index: 10;
}

.text-overlay hr {
  width: 25%;
  margin: 0 auto;
  border: 1px solid #3aa7ba;
}

.text-overlay p {
  font-size: 1.8rem;
  color: #fff;
}

.text-overlay h4 {
  font-size: 4rem;
  margin: 1.5rem;
  color: #fff;
}

.text-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  .text-overlay p {
    font-size: 50%;
  }
  .text-overlay h4 {
    font-size: 70%;
    margin: 0;
  }
}
