/* ==========================================================================
   Hero — fondo oscuro con ondas digitales y particulas verdes
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: var(--gradiente-verde);
  color: var(--blanco);
  padding: 140px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(75, 155, 42, 0.35), transparent 58%),
    radial-gradient(circle at 82% 72%, rgba(75, 155, 42, 0.24), transparent 55%),
    radial-gradient(circle at 55% 5%, rgba(75, 155, 42, 0.15), transparent 45%);
  pointer-events: none;
}

.hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  color: var(--blanco);
  margin-bottom: 22px;
}

.hero h1 .resaltado {
  color: var(--verde-tech);
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ondas {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-ondas svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-ondas path.onda-1 {
  animation: onda-flujo 9s ease-in-out infinite;
}

.hero-ondas path.onda-2 {
  animation: onda-flujo 13s ease-in-out infinite reverse;
}

@keyframes onda-flujo {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3%); }
}

.particula {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde-tech);
  box-shadow: 0 0 10px rgba(75, 155, 42, 0.9);
  opacity: 0.55;
  z-index: 1;
  animation: particula-flotar 6s ease-in-out infinite;
}

@keyframes particula-flotar {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(-22px); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ondas path,
  .particula {
    animation: none !important;
  }
}

/* ---- Variante secundaria (encabezado de paginas interiores) ---- */

.hero-secundario {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  background: var(--gradiente-verde);
  color: var(--blanco);
  padding: 96px 0 64px;
  text-align: center;
}

.hero-secundario::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(75, 155, 42, 0.3), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(75, 155, 42, 0.22), transparent 55%);
  pointer-events: none;
}

.hero-secundario .contenedor {
  position: relative;
  z-index: 2;
}

.hero-secundario h1 {
  color: var(--blanco);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 12px;
}

.hero-secundario h1 .resaltado {
  color: var(--verde-tech);
}

.hero-secundario p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.migas {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
}

.migas a {
  color: rgba(255, 255, 255, 0.85);
}

.migas a:hover {
  color: var(--verde-tech);
}

@media (max-width: 768px) {
  .hero {
    min-height: 640px;
    text-align: center;
    padding: 120px 0 80px;
  }

  .hero-contenido {
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
}
