/* Netposible Hero: diseño de "¿Qué hacemos?" y "Nuestra historia". Solo diseño; los textos son los de Elementor.
   Los !important son necesarios porque Elementor fija colores, tipografías y alineaciones desde su CSS de página. */

/* Fondo de noche continuo, con polvo de estrellas muy suave. */
.np-sections .np-sec {
  position: relative;
  overflow: hidden; /* las órbitas giran y no deben ensanchar la página en el celular */
  background: #02000a !important;
}
.np-sections .np-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 68% 34%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 72%, rgba(190,215,255,.6), transparent 60%),
    radial-gradient(1px 1px at 86% 80%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 24% 52%, rgba(255,230,190,.5), transparent 60%);
  background-size: 520px 520px;
}
/* Al final se funde con el azul con el que arranca "Nuestras creaciones", para que no corte de golpe. */
.np-sections .np-sec-history {
  background:
    radial-gradient(55% 60% at 78% 50%, rgba(47, 124, 246, .12), transparent 70%),
    linear-gradient(to bottom, #02000a 0%, #02000a 62%, #0d0093 100%) !important;
}
.np-sections .np-sec > .elementor-background-overlay { display: none !important; }
.np-sections .np-sec > .elementor-container {
  position: relative;
  z-index: 1;
  max-width: 1280px !important;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}
.np-sections .np-sec-spacer { padding: 0 !important; }
.np-sections .np-sec-spacer .elementor-spacer-inner { height: 0 !important; }
.np-sections .np-sec-eyebrow { padding: clamp(64px, 8vw, 112px) 0 14px !important; }
.np-sections .np-sec-ai { padding: 0 0 clamp(64px, 8vw, 120px) !important; }
.np-sections .np-sec-history { padding: clamp(64px, 8vw, 120px) 0 !important; }
.np-sections .np-sec-ai > .elementor-container,
.np-sections .np-sec-history > .elementor-container { align-items: center; }

/* "¿Qué hacemos?" como etiqueta, igual que en la portada. */
.np-sections .np-eyebrow,
.np-sections .np-eyebrow .elementor-heading-title { text-align: left !important; }
.np-sections .np-eyebrow .elementor-heading-title {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: #ffb829 !important;
  text-shadow: none !important;
}
.np-sections .np-eyebrow .elementor-heading-title::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}

/* Títulos y párrafos. */
.np-sections .np-h2,
.np-sections .np-h2 .elementor-heading-title { text-align: left !important; }
.np-sections .np-h2 .elementor-heading-title {
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(34px, 4.4vw, 62px) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
  color: #fff !important;
  text-shadow: none !important;
}
.np-sections .np-body,
.np-sections .np-body .elementor-widget-container,
.np-sections .np-body p { text-align: left !important; }
.np-sections .np-body p {
  max-width: 56ch;
  margin: clamp(16px, 2vw, 24px) 0 0 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(16px, 1.25vw, 18px) !important;
  font-weight: 300 !important;
  line-height: 1.65 !important;
  color: #c9cbd6 !important;
}

/* Botón en píldora, como los de la portada. */
.np-sections .np-pill,
.np-sections .np-pill .elementor-button-wrapper { text-align: left !important; }
.np-sections .np-pill { margin-top: 18px; }
.np-sections .np-pill .elementor-button {
  border-radius: 24px !important;
  padding: 14px 22px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

/* Visuales propios en lugar de las imágenes genéricas. */
.np-sections .np-visual .elementor-widget-container > :not(.np-neural):not(.np-orbit) { display: none !important; }
.np-neural {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 5 / 4;
  margin: 0 auto;
}
.np-neural canvas { display: block; width: 100%; height: 100%; }

.np-orbit {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.np-orbit-glow {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 124, 246, .35), transparent 70%);
  filter: blur(10px);
}
.np-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 50%;
  animation: np-spin linear infinite;
}
.np-r1 { inset: 21%; animation-duration: 16s; }
.np-r2 { inset: 10%; animation-duration: 26s; animation-direction: reverse; }
.np-r3 { inset: 0; animation-duration: 40s; }
.np-ring span {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c), 0 0 24px var(--c);
}
.np-ring span.np-b { top: auto; bottom: -5px; }
/* !important porque Elementor fuerza el ancho de las imágenes de ese widget. */
.np-orbit .np-orbit-mascot {
  position: absolute !important;
  left: 32% !important;
  top: 32% !important;
  width: 36% !important;
  max-width: none !important;
  height: auto !important;
  filter: drop-shadow(0 0 24px rgba(47, 124, 246, .45));
}
@keyframes np-spin { to { transform: rotate(360deg); } }

/* Aparición suave al bajar. */
.np-sections .np-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.np-sections .np-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .np-sections .np-visual { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-ring { animation: none; }
}
