/**
 * HERO SLIDER - GOMALOR
 * Carrusel de portada con Ken Burns effect y parallax
 */

/* ============================================
   SECCIÓN HERO
   ============================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-min-height);
  overflow: hidden;
  background-color: var(--color-black);
}

/* ============================================
   SLIDER CONTAINER
   ============================================ */

.hero__slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}

/* ============================================
   SLIDES
   ============================================ */

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slower) var(--easing-smooth),
              visibility var(--duration-slower) var(--easing-smooth);
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* ============================================
   IMAGE WRAPPER (Ken Burns Effect)
   ============================================ */

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  will-change: transform;
}

/* Ken Burns animation - zoom sutil de 1.0 a 1.1 en 10s */
.hero__slide.active .hero__image {
  animation: kenBurns var(--duration-ken-burns) var(--easing-smooth) forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ============================================
   OVERLAY OSCURO
   ============================================ */

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-dark);
  z-index: 1;
}

/* ============================================
   CONTENIDO DEL HERO
   ============================================ */

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 10;
  width: 90%;
  max-width: 1000px;
  padding: var(--space-md);
}

/* En hero.css, reemplaza la sección .hero__logo con esto: */

.hero__logo {
  max-width: 300px;
  height: auto;
  margin: 0 auto var(--space-lg);
  
  /* Glass effect container */
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  
  /* Animation */
  animation: fadeInUp 1s var(--easing-smooth) 0.3s backwards;
  
  /* Smooth transition */
  transition: all var(--duration-normal) var(--easing-smooth);
}

.hero__logo:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero__slogan {
  font-family: var(--font-headings);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s var(--easing-smooth) 0.5s backwards;
  line-height: var(--leading-tight);
}

.hero__subtitle {
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s var(--easing-smooth) 0.7s backwards;
  opacity: 0.95;
}

/* ============================================
   CTAs (Call to Actions)
   ============================================ */

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--easing-smooth) 0.9s backwards;
}

.hero__cta .btn {
  min-width: 200px;
  font-size: var(--text-lg);
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero__cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   CONTROLES DEL SLIDER
   ============================================ */

.hero__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--easing-smooth);
  pointer-events: auto;
  z-index: 10;
}

.hero__arrow--prev {
  left: 2rem;
}

.hero__arrow--next {
  right: 2rem;
}

.hero__arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.hero__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero__arrow svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   DOTS DE NAVEGACIÓN
   ============================================ */

.hero__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--duration-normal) var(--easing-smooth);
  padding: 0;
}

.hero__dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero__dot.active {
  background-color: var(--color-white);
  border-color: var(--color-white);
  width: 32px;
  border-radius: var(--radius-full);
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 1023px) {
  .hero__logo {
    max-width: 250px;
  }
  
  .hero__slogan {
    font-size: var(--text-4xl);
  }
  
  .hero__subtitle {
    font-size: var(--text-xl);
  }
  
  .hero__arrow {
    width: 45px;
    height: 45px;
  }
  
  .hero__arrow--prev {
    left: 1rem;
  }
  
  .hero__arrow--next {
    right: 1rem;
  }
  
  .hero__cta .btn {
    min-width: 180px;
    font-size: var(--text-base);
    padding: 0.875rem 1.75rem;
  }
}

/* ============================================
   RESPONSIVE - MÓVIL
   ============================================ */

@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
  }
  
  .hero__slider {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero__logo {
    max-width: 200px;
    margin-bottom: var(--space-md);
  }
  
  .hero__slogan {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
  }
  
  .hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
  }
  
  .hero__cta {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero__cta .btn {
    min-width: 100%;
    max-width: 300px;
    font-size: var(--text-base);
    padding: 0.75rem 1.5rem;
  }
  
  /* Ocultar flechas en móvil (swipe touch disponible) */
  .hero__arrow {
    display: none;
  }
  
  .hero__dots {
    bottom: 1rem;
  }
  
  .hero__dot {
    width: 10px;
    height: 10px;
  }
  
  .hero__dot.active {
    width: 24px;
  }
}

/* ============================================
   TOUCH GESTURES (para swipe móvil)
   ============================================ */

.hero__slider {
  touch-action: pan-y;
}

/* ============================================
   LOADING STATE
   ============================================ */

.hero__slide.loading .hero__image {
  filter: blur(10px);
  transform: scale(1.05);
}

.hero__slide.loaded .hero__image {
  filter: blur(0);
  transition: filter var(--duration-slow) var(--easing-smooth);
}

/* ============================================
   PARALLAX EFFECT (se aplicará con JS)
   ============================================ */

.hero.parallax .hero__image {
  transform: translateY(var(--parallax-offset, 0)) scale(1);
}

.hero.parallax .hero__slide.active .hero__image {
  animation: kenBurnsParallax var(--duration-ken-burns) var(--easing-smooth) forwards;
}

@keyframes kenBurnsParallax {
  0% {
    transform: translateY(var(--parallax-offset, 0)) scale(1);
  }
  100% {
    transform: translateY(var(--parallax-offset, 0)) scale(1.1);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .hero__slide.active .hero__image {
    animation: none;
    transform: scale(1);
  }
  
  .hero__logo,
  .hero__slogan,
  .hero__subtitle,
  .hero__cta {
    animation: none;
  }
  
  .hero__arrow:hover {
    transform: translateY(-50%);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .hero__controls,
  .hero__dots,
  .hero__cta {
    display: none;
  }
  
  .hero {
    min-height: 400px;
  }
  
  .hero__slide:not(.active) {
    display: none;
  }
}