/* ==========================================
   HERO SECTION - YACHAY
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
  overflow: hidden;
  padding-bottom: 100px;
}

/* Fondo animado */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(2, 132, 199, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

/* Contenido del Hero */
.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--bg-primary);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  font-size: var(--text-base);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--text-lg);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 2px solid var(--primary-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary-600);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elementos decorativos flotantes */
.floating-card {
  position: absolute;
  background: var(--bg-primary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  animation: float 3s ease-in-out infinite;
  z-index: 3;
  width: 220px;
}

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

.floating-card-1 {
  top: 15%;
  right: 5%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 15%;
  left: 5%;
  animation-delay: 1.5s;
}

.floating-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-md);
}

.floating-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xs) 0;
}

.floating-card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

/* Features Grid */
.hero-features {
  position: relative;
  margin-top: var(--spacing-3xl);
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  z-index: 10;
}

.feature-card {
  background: var(--bg-primary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: var(--text-2xl);
  color: var(--primary-600);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: var(--text-white);
  transform: scale(1.1);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive para Hero */
@media (max-width: 1061px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 300px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card {
    width: 180px;
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 0 var(--spacing-3xl);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-visual {
    display: none;
  }

  .hero-features {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-2xl);
  }
}
