/* ═══════════════════════════════════════════════
   DATAPOS · Nosotros (scroll + globo)
   ═══════════════════════════════════════════════ */

.ng {
  position: relative;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(28, 39, 67, 0.55), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(20, 34, 66, 0.5), transparent 60%),
    #000;
  color: #fff;
  overflow-x: clip;
}

/* ── barra de progreso superior ── */
.ng-progress-track {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 60;
  background: rgba(255, 255, 255, 0.06);
}
.ng-progress-fill {
  height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, #3b69b0, #2c5788, #437be9);
  box-shadow: 0 0 8px rgba(59, 105, 176, 0.6);
  transition: transform 0.12s ease-out;
}

/* ── globo fijo ── */
.ng-globe {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 0; height: 0; pointer-events: none;
  opacity: 0.9;
  transform: translate3d(78vw, 50vh, 0) translate3d(-50%, -50%, 0) scale(1.25);
  transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
  will-change: transform, opacity;
}
.ng-globe canvas {
  display: block; margin: -240px 0 0 -240px; /* centra el canvas 480x480 */
  pointer-events: auto; cursor: grab; touch-action: pan-y;
}
.ng-globe canvas:active { cursor: grabbing; }

/* ── navegación lateral de puntos ── */
.ng-dots {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 20px;
}
.ng-dots::before {
  content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px; width: 1px;
  transform: translateX(-50%); z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(59, 105, 176, 0.25), transparent);
}
.ng-dot {
  position: relative; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3); background: transparent;
  cursor: pointer; padding: 0; transition: all 0.3s ease;
}
.ng-dot:hover { border-color: rgba(59, 105, 176, 0.8); transform: scale(1.2); }
.ng-dot.is-active {
  background: #437be9; border-color: #437be9; box-shadow: 0 0 12px rgba(67, 123, 233, 0.7);
}
.ng-dot::after {
  content: attr(data-label);
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 0.78rem; font-weight: 500; color: #fff;
  padding: 5px 11px; border-radius: 8px;
  background: rgba(10, 15, 32, 0.92); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.ng-dot:hover::after, .ng-dot.is-active::after { opacity: 1; }
@media (max-width: 767px) { .ng-dots { display: none; } }

/* ── secciones ── */
.ng-section {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 7vw 100px;
}
.ng-section--center { align-items: center; text-align: center; }
.ng-section--left { align-items: flex-start; text-align: left; }
.ng-inner {
  max-width: 700px; width: 100%;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.ng-section--center .ng-inner { max-width: 1040px; }
.ng-section--center .ng-desc { max-width: 680px; }
.ng-section.is-active .ng-inner { opacity: 1; transform: translateY(0); }
.ng-section--center .ng-inner { margin: 0 auto; }

/* scrim suave detrás del texto centrado: legibilidad cuando el logo queda detrás */
.ng-section--center .ng-inner { position: relative; }
.ng-section--center .ng-inner::before {
  content: ""; position: absolute; inset: -10% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 72% 68% at 50% 46%, rgba(3, 6, 14, 0.78), rgba(3, 6, 14, 0.42) 52%, transparent 78%);
}
.ng-section--center .ng-title,
.ng-section--center .ng-desc { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55); }

.ng-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ng-title {
  font-weight: 600; line-height: 1.07; letter-spacing: -0.015em; color: #fff;
  font-size: clamp(38px, 6vw, 76px); margin: 0 0 22px;
}
.ng-grad {
  background: linear-gradient(100deg, #6f9bff, #3b69b0 55%, #8fb2ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ng-desc {
  color: rgba(255, 255, 255, 0.72); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65;
  margin: 0; max-width: 560px;
}
.ng-section--center .ng-desc { margin: 0 auto; }
.ng-desc strong { color: #fff; font-weight: 600; }

.ng-hint {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.5);
}
.ng-hint__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #437be9;
  box-shadow: 0 0 0 0 rgba(67, 123, 233, 0.6); animation: ng-pulse 2s infinite;
}
@keyframes ng-pulse {
  0% { box-shadow: 0 0 0 0 rgba(67, 123, 233, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(67, 123, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 123, 233, 0); }
}

/* ── features (sección 3) · card liquid glass tipo burbuja ── */
.ng-features { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ng-feat {
  position: relative; overflow: hidden; width: 440px; max-width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 18px; border-radius: 16px;
  background: rgba(30, 41, 71, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.4),
    inset 0 0 22px rgba(255, 255, 255, 0.04),
    0 18px 42px -20px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
/* brillo tipo burbuja: glow suave desde arriba */
.ng-feat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -45%, rgba(255, 255, 255, 0.18), transparent 62%);
}
.ng-feat > * { position: relative; z-index: 1; }
.ng-feat:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); }
.ng-feat h3 { margin: 0; font-size: 0.98rem; font-weight: 600; color: #fff; }
.ng-feat p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: rgba(255, 255, 255, 0.7); }

/* ── stats (sección 4) ── */
.ng-stats {
  margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px;
}
.ng-stat { display: flex; flex-direction: column; align-items: center; }
.ng-stat__num {
  font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1;
  background: linear-gradient(100deg, #6f9bff, #437be9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.ng-stat__lbl { margin-top: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* ── acciones (sección 4) ── */
.ng-actions { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ng-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; border-radius: 999px; font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.ng-btn--primary {
  color: #fff;
  background: radial-gradient(120% 120% at 50% -40%, rgba(255, 255, 255, 0.16), transparent 56%), linear-gradient(180deg, #1a2742 0%, #060a14 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.4), 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}
.ng-btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 38px -12px rgba(0, 0, 0, 0.9); }
.ng-btn--ghost {
  color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ng-btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.1); border-color: rgba(67, 123, 233, 0.4); }

/* ── mobile ── */
@media (max-width: 767px) {
  .ng-section { padding: 110px 24px 80px; min-height: 92vh; align-items: flex-start; text-align: left; }
  .ng-section--center { align-items: flex-start; text-align: left; }
  .ng-section--center .ng-inner, .ng-section--center .ng-desc { margin: 0; }
  .ng-stats { justify-content: flex-start; }
  .ng-actions { justify-content: flex-start; }
  .ng-btn { width: 100%; }
}

/* ── scroll-snap: frena exacto en cada sección (desktop + mobile) ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y mandatory; }
  .ng-section { scroll-snap-align: start; scroll-snap-stop: always; }
  footer.footer { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ng-globe { transition: opacity 0.6s ease; }
  .ng-inner { transition: opacity 0.4s ease; transform: none; }
}
