/* === slider.css reformulado === */

/* Contenedor principal del slider */
.swiper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Cada diapositiva */
.swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
}

/* Imagen de fondo animada */
.slider-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: backgroundZoom 20s ease-in-out infinite;
}

/* Animación del zoom de fondo */
@keyframes backgroundZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

/* Capa de superposición oscura */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Contenido de la diapositiva */
.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 1000px;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  padding-left: 32px;
  padding-right: 32px;
}

/* Título del slider */
.slider-title {
  font-size: 48px;
  color: #97F7ED;
  margin: 0 15px 5px;
  text-shadow: 0 0 5px rgba(10, 97, 113, 0.7);
}

/* Texto del slider */
.slider-text {
  font-size: 26px;
  color: #CBEDE6;
  margin-top: 5px; /* separación exacta respecto al título */
  line-height: 1.3;
  text-shadow: 0 0 3px rgba(77, 195, 201, 0.6);
  text-align: center;
}

/* Botones del slider */
.slider-buttons {
  margin-top: 50px;
  text-align: center;
}

/* Botón individual */
.slider-buttons .btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #3EC1D5;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
}

.slider-buttons .btn:hover {
  background-color: #2ba3b0;
}

/* Animaciones */
@keyframes fadeLine {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: tablet */
@media screen and (max-width: 768px) {
  .slider-title {
    font-size: 32px;
  }

  .slider-text {
    font-size: 26px;
  }

  .slider-buttons {
    margin-top: 30px;
  }

  .slider-buttons .btn {
    display: block;
    margin: 10px auto;
  }
}

/* Responsive: móvil */
@media screen and (max-width: 480px) {
  .slider-title {
    font-size: 24px;
  }

  .slider-text {
    font-size: 19px;
  }
}
