/**
 * CSS NUEVO PARA EL SLIDER HERO
 * Sin dependencias del código anterior
 */

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 450px; /* Valor por defecto, se actualiza desde slider_settings */
  overflow: hidden;
  background: transparent; /* El fondo viene de cada slide desde hero_slides */
}

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

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide__inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-slide__content {
  flex: 1;
  max-width: 600px;
  color: #ffffff;
}

.hero-slide__tagline {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

.hero-slide__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-slide__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.hero-slide__btn--primary {
  background: #23272d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide__btn--primary:hover {
  background: #1a1d22;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-slide__btn--secondary {
  background: rgba(255, 255, 255, 0.95);
  color: #23272d;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-slide__btn--secondary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-slide__media {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
}

.hero-slide__media.single-image {
  grid-template-columns: 1fr;
}

.hero-slide__image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slider__control:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-slider__control span {
  font-size: 2rem;
  line-height: 1;
  color: #23272d;
  font-weight: 300;
}

.hero-slider__control--prev {
  left: 2rem;
}

.hero-slider__control--next {
  right: 2rem;
}

.hero-slider__indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-slider__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider__indicator:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
}

.hero-slider__indicator.active {
  background: #ffffff;
  border-color: #ffffff;
  width: 32px;
  border-radius: 6px;
}

.hero-slider__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-slide__inner {
    flex-direction: column;
    padding: 2rem;
  }
  
  .hero-slide__content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-slide__media {
    max-width: 100%;
  }
  
  .hero-slide__title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-slider-container {
    height: 400px;
  }
  
  .hero-slide__title {
    font-size: 1.5rem;
  }
  
  .hero-slide__subtitle {
    font-size: 1rem;
  }
  
  .hero-slider__control {
    width: 40px;
    height: 40px;
  }
  
  .hero-slider__control--prev {
    left: 1rem;
  }
  
  .hero-slider__control--next {
    right: 1rem;
  }
  
  .hero-slide__media {
    grid-template-columns: 1fr;
  }
}

