#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 80px;
  overflow: hidden;
  text-align: center;
  background-image: url('/assets/img/hero-bg.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Overlay oscuro para que el texto sea legible */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 14, 24, 0.75) 0%,
    rgba(6, 14, 24, 0.60) 50%,
    rgba(6, 14, 24, 0.90) 100%
  );
  z-index: 1;
}

canvas#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 158, 117, 0.15);
  border: 0.5px solid rgba(29, 158, 117, 0.4);
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s 0.25s forwards;
}

h1 .accent {
  color: var(--blue);
}

h1 .accent-teal {
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: row;
    align-items: center;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    flex: 0 1 auto;
    padding: 12px 22px;
    font-size: 14px;
  }
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 0.5px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s 0.75s forwards;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeIn 0.7s 1.2s forwards;
  z-index: 2;
}

.scroll-hint span {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--blue);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@media (max-width: 640px) {
  h1 { letter-spacing: -1px; }
  .hero-stats { gap: 24px; }
}