/* ============================================
   SECCIÓN DE INICIO - DISEÑO ÉPICO
   ============================================ */

/* Contenedor principal de la sección */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Video de fondo mejorado */
#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.2);
}

/* Overlay con gradiente dinámico */
#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 255, 218, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, 
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0.6) 80%,
      rgba(0, 0, 0, 0.9) 100%
    );
  z-index: 1;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

/* Partículas animadas de fondo */
#inicio::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(100, 255, 218, 0.8), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(30, 144, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(100, 255, 218, 0.7), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(30, 144, 255, 0.5), transparent),
    radial-gradient(1px 1px at 33% 85%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 15% 60%, rgba(100, 255, 218, 0.5), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  z-index: 1;
  animation: particlesFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particlesFloat {
  0%, 100% {
    background-position: 0% 0%;
    opacity: 0.6;
  }
  25% {
    background-position: 100% 50%;
    opacity: 0.8;
  }
  50% {
    background-position: 50% 100%;
    opacity: 1;
  }
  75% {
    background-position: 0% 50%;
    opacity: 0.7;
  }
}

/* Contenido hero */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 3rem 2rem;
  animation: heroFadeIn 1.5s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título principal ARMET - ÉPICO */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  
  /* Gradiente animado */
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #64ffda 25%,
    #1e90ff 50%,
    #64ffda 75%,
    #ffffff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Sombras múltiples para efecto 3D */
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.4))
          drop-shadow(0 0 15px rgba(30, 144, 255, 0.3))
          drop-shadow(0 5px 15px rgba(0, 0, 0, 0.9));
  
  animation: titleGradient 8s ease-in-out infinite;
}

@keyframes titleGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}



/* Efecto de escaneo sobre el título */
.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.4),
    transparent
  );
  animation: scanEffect 4s ease-in-out infinite;
}

@keyframes scanEffect {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 200%;
  }
}

/* Subtítulo - Section title */
.hero-content .section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 500;
  margin: 1.5rem 0;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: #64ffda;
  text-shadow: 
    0 0 8px rgba(100, 255, 218, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.8);
}



/* Párrafo lead */
.hero-content .lead {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: #e0e0e0;
  margin: 2rem auto;
  max-width: 700px;
  padding: 2rem;
  
  /* Glassmorphism */
  background: linear-gradient(135deg,
    rgba(30, 144, 255, 0.1),
    rgba(100, 255, 218, 0.05)
  );
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(30, 144, 255, 0.2);
  
  animation: leadFloat 6s ease-in-out infinite;
}

@keyframes leadFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Botón de audio mejorado */
.audio-control {
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  background: linear-gradient(135deg, #64ffda 0%, #1e90ff 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  box-shadow: 
    0 0 8px rgba(100, 255, 218, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.4);
  
  transition: all 0.3s ease;
}



/* Efecto de onda en el botón */
.audio-control::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.audio-control:hover::before {
  width: 300px;
  height: 300px;
}

.audio-control:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 12px rgba(100, 255, 218, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.6);
}

.audio-control:active {
  transform: translateY(-1px) scale(1.02);
}

/* Estado cuando el audio está reproduciéndose */
.audio-control.playing {
  background: linear-gradient(135deg, #1e90ff 0%, #64ffda 100%);
  box-shadow: 
    0 0 8px rgba(30, 144, 255, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Indicador de scroll hacia abajo */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-indicator::before {
  content: '▼';
  font-size: 1.5rem;
  color: #64ffda;
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.4);
}

.scroll-indicator::after {
  content: 'Explore';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #64ffda;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.3);
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(15px);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-content {
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
    letter-spacing: 0.3rem;
  }
  
  .hero-content .section-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.2rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .audio-control {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .scroll-indicator {
    bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    letter-spacing: 0.2rem;
  }
  
  .hero-content .section-title {
    letter-spacing: 0.1rem;
  }
  
  .hero-content .lead {
    padding: 1rem;
  }
}

/* Mejora de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-content .section-title,
  .hero-content .lead,
  .audio-control,
  .scroll-indicator,
  #inicio::before,
  #inicio::after {
    animation: none;
  }
  
  .hero-title::before {
    animation: none;
  }
}
