/* 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% !important;
  object-fit: cover;
}

/* Contenido */
.slide-content {
  position: absolute;
  z-index: 2;
  width: 100%;
  padding: 0 180px;
  text-align: left;
  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;
}

/* Animaciones fade-in-up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados iniciales de los elementos */
.slide-content .slide-bid-span,
.slide-content h2,
.slide-content p,
.slide-content .slide-button,
.slide-content .slide-video-button {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

/* Animaciones cuando el slide está activo */
.swiper-slide-active .slide-content .slide-bid-span {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;  
}

.swiper-slide-active .slide-content h2 {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.swiper-slide-active .slide-content p {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.swiper-slide-active .slide-content .slide-button {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  transform: skewX(-5deg);
}

/* 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);
}

.slide-bid-span {
  font-size: 18px;
  font-weight: 500;
  color: var(--rs-white);
  padding: 10px 19px;
  background-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.slide-bid-span::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  top: 0;
  inset-inline-start: 0;
}

.slide-bid-span::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 10px;
  background-color: rgb(238, 13, 8);
  bottom: 0;
  inset-inline-end: 0;
}

/* Textos específicos */
.slide-content h2 {
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
  font-size: 60px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
  text-align: left;
  font-size: 18px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Contenedor de botones */
.slide-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botón principal */
.slide-content .slide-button {
  font-size: 18px;
  text-transform: capitalize;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  height: 60px;
  transition: all 0.3s linear;
  border-radius: 2px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #D40A06;
  transform: skewX(-5deg);
  text-decoration: none;
}

.slide-content .slide-button:hover {
  background: #d409069c;
  transform: skewX(-5deg);
}

/* Botón de video */
.slide-content .slide-video-button {
  font-size: 18px;
  text-transform: capitalize;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px;
  height: 60px;
  transition: all 0.3s linear;
  border-radius: 2px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #0A6DD4;
  transform: skewX(-5deg);
  text-decoration: none;
  gap: 8px;
}

.slide-content .slide-video-button:hover {
  background: #0856b3;
  transform: skewX(-5deg);
}

.slide-content .slide-video-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Animaciones para botones de video */
.swiper-slide-active .slide-content .slide-video-button {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 1s;
}

/* RESPONSIVE */
/* Responsive views */
@media (min-width: 1024px) {
  .desktop-slide {
    display: block !important;
  }

  .slide-content h2 {
    font-size: 80px;
    line-height: 1.15;
    text-transform: capitalize;
    width: 900px;
  }

  .slide-content p {
    font-size: 20px;
    width: 800px;
  }

  .slide-bid-span {
    font-size: 18px;
    font-weight: 500;
    color: white;
    padding: 10px 19px;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
  }

  .slide-bid-span::before {
    position: absolute;
    content: "";
    width: 3px;
    height: 10px;
    background-color: rgb(238, 13, 8);
    top: 0;
    inset-inline-start: 0;
  }

  .slide-bid-span::after {
    position: absolute;
    content: "";
    width: 3px;
    height: 10px;
    background-color: rgb(238, 13, 8);
    bottom: 0;
    inset-inline-end: 0;
  }
}

@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: 50px;
  }

  .slide-content p {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .slide-content h2 {
    font-size: 40px;
  }
}

/* MODAL DE VIDEO */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80%;
  max-height: 675px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.video-modal-close:hover {
  color: #ff4444;
}

.video-modal-body {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
    height: 70%;
  }
  
  .video-modal-close {
    top: -35px;
    font-size: 25px;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 98%;
    height: 60%;
  }
  
  .video-modal-close {
    top: -30px;
    font-size: 20px;
  }
}