/* ============================================================
   IAPLIKADA — hero.css
   Hero section: particles, typography, CTAs, scroll indicator
   ============================================================ */

/* ============================================================
   1. HERO WRAPPER
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--negro);
  overflow: hidden;
}

/* ============================================================
   2. PARTICLES CANVAS (Particles.js)
   ============================================================ */
#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradiente inferior para transición suave con sección siguiente */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--negro));
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   3. HERO CONTENT
   ============================================================ */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 120px var(--container-pad) 140px;
  max-width: 900px;
  margin-inline: auto;
  width: 100%;
}

/* ============================================================
   4. LOGO EN HERO
   ============================================================ */
.hero__logo {
  height: 52px;
  width: auto;
  margin-bottom: var(--sp-2xl);
  filter: brightness(0) invert(1); /* Por si se usa versión color */
}

/* ============================================================
   5. EYEBROW LABEL
   ============================================================ */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(22, 171, 141, 0.4);
  border-radius: var(--radius-full);
  background: rgba(22, 171, 141, 0.08);
  backdrop-filter: blur(8px);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-claro);
  margin-bottom: var(--sp-xl);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--teal);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ============================================================
   6. TÍTULO PRINCIPAL (SplitText target)
   ============================================================ */
.hero__title {
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--blanco);
  margin-bottom: var(--sp-xl);
  max-width: 800px;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
}

.hero__title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Palabras clave en gradiente */
.hero__title .highlight {
  background: var(--grad-principal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   7. SUBTÍTULO / POSICIONAMIENTO
   ============================================================ */
.hero__sub {
  font-size: var(--text-h2);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-lg);
  letter-spacing: 0.5px;
}

/* ============================================================
   8. DESCRIPCIÓN
   ============================================================ */
.hero__desc {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--lh-normal);
  max-width: 620px;
  margin-bottom: var(--sp-2xl);
}

/* ============================================================
   9. CTAs DEL HERO
   ============================================================ */
.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3xl);
}

/* ============================================================
   10. BADGES DE CERTIFICACIONES
   ============================================================ */
.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  transition: all var(--dur-normal) var(--ease-out);
}

.hero__badge:hover {
  border-color: rgba(22, 171, 141, 0.4);
  color: var(--teal-claro);
  background: rgba(22, 171, 141, 0.08);
}

/* ============================================================
   11. SCROLL INDICATOR (anclado al fondo del hero)
   ============================================================ */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-decoration: none;
}

/* ============================================================
   12. LÍNEAS DECORATIVAS (fondo)
   ============================================================ */
.hero__deco-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__deco-lines::before,
.hero__deco-lines::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.06;
}

.hero__deco-lines::before {
  width: 600px;
  height: 600px;
  border: 1px solid var(--azul);
  top: -200px;
  right: -100px;
  border-radius: var(--radius-full);
}

.hero__deco-lines::after {
  width: 400px;
  height: 400px;
  border: 1px solid var(--teal);
  bottom: -100px;
  left: -100px;
  border-radius: var(--radius-full);
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero__content {
    padding: 100px var(--container-pad) 120px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 8vw, 3rem);
    letter-spacing: -0.5px;
  }

  .hero__sub {
    font-size: var(--text-h3);
  }

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

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    gap: var(--sp-sm);
  }
}

@media (max-width: 480px) {
  .hero__logo { height: 40px; }
  .hero__scroll { display: none; }
}
