/* Estilos base */
.hero-slider {
  height: 100vh;
  width: 100%;
  position: relative;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Manejo de las imágenes */
.slide-image {
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: none; /* Ocultar por defecto */
}

.swiper-slide-active .slide-image {
  opacity: 1;
}

/* Overlay */
.slide-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)); */
  z-index: 1;
}

/* Imagen */
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido */
.slide-content {
  position: absolute;
  z-index: 2;
  width: 100%;
  padding: 0 180px;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  color: white;
}

.swiper-slide-active .slide-content {
  opacity: 1;
}

/* Controles de navegación */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
  width: 50px !important;
  height: 50px !important;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px !important;
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Paginación */
.swiper-pagination {
  bottom: 30px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ffffff;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffffff;
  transform: scale(1.2);
}

/* Textos específicos */
.slide-content h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
  font-size: 44px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  font-size: 30px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Botón */
.slide-content .btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.slide-content .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* RESPONSIVE */
/* Responsive views */
@media (min-width: 1024px) {
  .desktop-slide {
    display: block !important;
  }
  .slide-content h2 {
    font-size: 54px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .tablet-slide {
    display: block !important;
  }
  .slide-content {
    padding: 0 100px;
  }
}

@media (max-width: 767px) {
  .mobile-slide {
    display: block !important;
  }
  .slide-content {
    padding: 0 20px;
  }

  .slide-content h2 {
    font-size: 34px;
  }
  .slide-content p {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .slide-content h2 {
    font-size: 24px;
  }
}
