/* Hero Slider Styles */

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video,
.hero-image,
.hero-youtube-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
}

.hero-youtube-embed {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  z-index: 1;
  pointer-events: none;
  /* Calcular tamaño para cubrir todo el espacio manteniendo 16:9 */
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-width: 100%;
  min-height: 100%;
  /* Ocultar cualquier elemento que pueda aparecer */
  overflow: hidden;
}

/* Ocultar elementos de YouTube que puedan aparecer */
.hero-youtube-embed::before,
.hero-youtube-embed::after {
  display: none !important;
}

/* Ocultar cualquier overlay o elemento de YouTube dentro del iframe */
.hero-slide-background {
  position: relative;
}

/* Asegurar que no haya elementos visibles sobre el video */
.hero-slide-background .hero-youtube-embed {
  /* Ocultar cualquier elemento que pueda aparecer */
  filter: none;
}

/* Si el contenedor es más alto que ancho, usar altura como base */
@media (max-aspect-ratio: 16/9) {
  .hero-youtube-embed {
    width: 177.77vh; /* 16:9 basado en altura */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
  }
}


.hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(#00000030, #00000030);*/
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.wrapper-herotext {
  text-align: center;
  z-index: 4;
  pointer-events: auto;
}

.hero-title-centered {
  position: relative;
}

.hero-title {
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta-wrapper {
  margin-top: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta-button {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Arrows */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.hero-slider-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider-prev {
  left: 20px;
}

.hero-slider-next {
  right: 20px;
}

.hero-slider-nav .material-icons {
  font-size: 32px;
  color: #ffffff;
  user-select: none;
  pointer-events: none;
}

/* Bullets/Pagination */
.hero-slider-pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.hero-slider-bullet {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  min-width: 25px;
  min-height: 25px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-bullet span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.hero-slider-bullet:hover,
.hero-slider-bullet.active {
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.15);
}

.hero-slider-bullet.active span {
  background: rgba(255, 255, 255, 1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .hero-slider-wrapper {
    height: 80vh;
    min-height: 500px;
    max-height: 700px;
  }
  
  .hero-slider-nav .material-icons {
    font-size: 28px;
  }
  
  .hero-slider-prev {
    left: 15px;
  }
  
  .hero-slider-next {
    right: 15px;
  }
  
  .hero-slider-pagination {
    bottom: 20px;
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero-slider-wrapper {
    height: 70vh;
    min-height: 400px;
    max-height: 600px;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-slider-nav .material-icons {
    font-size: 24px;
  }
  
  .hero-slider-prev {
    left: 10px;
  }
  
  .hero-slider-next {
    right: 10px;
  }
  
  .hero-slider-bullet {
    width: 8px;
    height: 8px;
  }
  
  .hero-slider-bullet span {
    width: 8px;
    height: 8px;
  }
  
  .hero-slider-pagination {
    gap: 8px;
    bottom: 15px;
    display: none !important;
  }
  
  .wrapper-herotext {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 479px) {
  .hero-slider-wrapper {
    height: 60vh;
    min-height: 350px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-slider-nav .material-icons {
    font-size: 20px;
  }
  
  .hero-cta-button {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Pause on hover (optional) */
.hero-slider-wrapper:hover .hero-slider-nav {
  opacity: 1;
}

/* Accessibility */
.hero-slider-nav:focus,
.hero-slider-nav:focus-visible {
  outline: 2px solid rgba(250, 214, 52, 0.4);
  outline-offset: 3px;
  border-radius: 4px;
  background-color: rgba(250, 214, 52, 0.15);
}

.hero-slider-bullet:focus,
.hero-slider-bullet:focus-visible {
  outline: 2px solid rgba(250, 214, 52, 0.4);
  outline-offset: 3px;
  border-color: rgba(250, 214, 52, 0.5);
  transform: scale(1.3);
}

.hero-cta-button:focus,
.hero-cta-button:focus-visible {
  outline: 2px solid rgba(250, 214, 52, 0.4);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Loading state */
.hero-slide.loading .hero-video {
  opacity: 0.5;
}


