/* ==========================================================================
   HERO SECTION - NOVO EVENTOS BY LAURA BASUALTO
   Estilos para la sección hero (portada principal)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 70vh; /* Reducido de 100vh a 70vh para ser más compacto */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-secondary);
}

/* ===== VIDEO/IMAGEN DE FONDO ===== */

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

.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2; /* Video sobre la imagen */
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1; /* Imagen de fallback debajo del video */
}

/* Overlay oscuro sobre el fondo */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(107, 70, 193, 0.3) 100%
  );
  z-index: 2;
}

/* ===== CONTENIDO DEL HERO ===== */

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-md); /* Reducido de xl a md para más compacto */
  max-width: 900px; /* Reducido de 1000px a 900px */
  margin: 0 auto;
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 6vw, 3.5rem); /* Reducido de 2.5-5rem a 2-3.5rem */
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-md); /* Reducido de lg a md */
  line-height: var(--line-height-tight);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title-accent {
  font-family: var(--font-accent);
  color: var(--color-primary);
  display: block;
  font-size: clamp(2.5rem, 8vw, 4.5rem); /* Reducido de 3-6rem a 2.5-4.5rem */
  margin-top: var(--space-xs); /* Reducido de sm a xs */
}

.hero-description {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base); /* Reducido de lg a base */
  line-height: var(--line-height-normal); /* Más compacto */
  color: var(--color-gray-200);
  margin-bottom: var(--space-xl); /* Reducido de 2xl a xl */
  max-width: 600px; /* Reducido de 700px a 600px */
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* ===== SCROLL INDICATOR ===== */

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  text-decoration: none;
  animation: bounce 2s infinite;
}

.hero-scroll-text {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  position: relative;
}

.hero-scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  animation: scrollDown 2s infinite;
}

/* ===== ANIMACIONES ===== */

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 767px) {
  .hero {
    min-height: 100svh; /* Usar svh para móviles */
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
