/**
 * Hero Section - Visual Enhancements
 * Gradientes animados, partículas flotantes y efectos avanzados
 * Versión: 2.0
 */

/* ========================================
   HERO SECTION MEJORADA
   ======================================== */

.hero-landing {
  min-height: 100vh;
  background: linear-gradient(135deg,
    #0a0a0a 0%,
    #1a1a1a 25%,
    #2c2c2c 50%,
    #1a1a1a 75%,
    #0a0a0a 100%);
  background-size: 400% 400%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  animation: gradientShift 15s ease infinite;
}

/* Partículas flotantes doradas */
.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(212, 175, 55, 0.08) 40%,
    transparent 70%
  );
  animation: float 20s infinite ease-in-out;
}

.hero-particles::before {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.hero-particles::after {
  width: 500px;
  height: 500px;
  bottom: -250px;
  right: -250px;
  animation-delay: 10s;
}

/* Patrón de teclas mejorado */
.hero-landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="piano-keys" x="0" y="0" width="80" height="200" patternUnits="userSpaceOnUse"><rect fill="%23ffffff" opacity="0.03" x="0" y="0" width="12" height="200"/><rect fill="%23ffffff" opacity="0.03" x="20" y="0" width="12" height="200"/><rect fill="%23ffffff" opacity="0.03" x="40" y="0" width="12" height="200"/><rect fill="%23ffffff" opacity="0.03" x="60" y="0" width="12" height="200"/></pattern></defs><rect fill="url(%23piano-keys)" width="1200" height="600"/></svg>');
  opacity: 0.4;
  z-index: 2;
}

/* Gradiente final hacia el contenido */
.hero-landing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 1));
  z-index: 3;
}

/* ========================================
   HERO CONTENT
   ======================================== */

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
}

/* Título con efecto shimmer mejorado */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg,
    #ffffff 0%,
    #f0f0f0 25%,
    #d4af37 50%,
    #f4d03f 75%,
    #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
}

/* Efecto de brillo detrás del texto */
.hero-title::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(212, 175, 55, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(20px);
  opacity: 0.7;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BOTONES HERO MEJORADOS
   ======================================== */

.btn-hero-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  border: none;
  color: var(--piano-dark);
  font-weight: 700;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  border-radius: var(--radius-round);
  transition: all 0.4s var(--ease-in-out-smooth);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.5),
    inset 0 -3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Efecto de brillo deslizante */
.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent);
  transition: left 0.6s;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(212, 175, 55, 0.7),
    inset 0 -3px 10px rgba(0, 0, 0, 0.15);
  color: var(--piano-dark);
}

.btn-hero-primary:active {
  transform: translateY(-2px) scale(1.02);
}

/* Efecto ripple en click */
.btn-hero-primary::after {
  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;
}

.btn-hero-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Botón secundario mejorado */
.btn-hero-secondary {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 700;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  border-radius: var(--radius-round);
  transition: all 0.4s var(--ease-in-out-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.btn-hero-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.4s var(--ease-in-out-smooth);
  z-index: -1;
}

.btn-hero-secondary:hover::before {
  width: 100%;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-5px) scale(1.05);
  color: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary:active {
  transform: translateY(-2px) scale(1.02);
}

/* ========================================
   TRUST INDICATORS (Certificados, etc.)
   ======================================== */

.trust-indicator {
  transition: all 0.3s var(--ease-in-out-smooth);
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.trust-indicator:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.trust-indicator i {
  filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.6));
  transition: transform 0.3s ease;
}

.trust-indicator:hover i {
  transform: scale(1.15) rotate(10deg);
}

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

@media (max-width: 767.98px) {
  .hero-landing {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }

  .hero-particles::before,
  .hero-particles::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 575.98px) {
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

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

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--piano-gold);
  transform: translateX(-50%) translateY(-5px);
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

/* ========================================
   PRELOAD ANIMATIONS
   ======================================== */

.hero-content > * {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.8s;
}
