/* ============================================================
   hero.css — Sección Hero con grid animado
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-h);
}

/* ── Fondo: grid animado en CSS puro ── */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 200, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 200, 232, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  animation: gridShift 18s linear infinite;
  pointer-events: none;
}

@keyframes gridShift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Orbes de fondo decorativos */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero::before {
  width: 600px;
  height: 600px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(77, 200, 232, 0.12) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.hero::after {
  width: 500px;
  height: 500px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(232, 50, 110, 0.10) 0%, transparent 70%);
  animation: orbFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* ── Contenido ── */
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  animation: heroFadeUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(77, 200, 232, 0.08);
  border: 1px solid rgba(77, 200, 232, 0.25);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--cyan-light);
  letter-spacing: 0.02em;
}

/* Headline */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, var(--fs-5xl));
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 760px;
}

/* Sub-headline */
.hero__subheadline {
  font-size: clamp(var(--fs-base), 2.2vw, var(--fs-lg));
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* Botones */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  animation: fadeIn 1.5s ease 1.5s forwards;
  opacity: 0;
}

.hero__scroll-indicator span {
  display: block;
  width: 22px;
  height: 38px;
  border: 2px solid rgba(77, 200, 232, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0%   { top: 5px; opacity: 1; }
  80%  { top: 18px; opacity: 0; }
  100% { top: 5px; opacity: 0; }
}

@keyframes fadeIn {
  to { opacity: 0.5; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}
