/* ============================================================================
   NULLSTRATA — ns.css  ·  Capa de diseño visual (progressive enhancement)
   ----------------------------------------------------------------------------
   Se carga DESPUÉS de los CSS de página del sitio y solo mejora la estética:
   no elimina contenido ni funcionalidad. Todos los selectores van prefijados
   con `html.ns-enhanced` para ganar especificidad sobre el CSS base sin usar
   nunca `!important` (salvo en modo reducido, donde es legítimo).

   Para ajustar el look global basta editar los tokens de :root al final.
   Autor: NULLSTRATA · sin dependencias externas · CSP-safe (todo es CSS)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. TOKENS PROPIOS
   ------------------------------------------------------------------------- */
:root {
  --ns-grad: linear-gradient(110deg, #5eead4 0%, #22d3ee 42%, #38bdf8 78%, #5eead4 100%);
  --ns-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ns-ring: 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ns-glow-accent: 0 18px 48px rgba(45, 212, 191, 0.22);
  --ns-line: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55), transparent);
}

/* ---------------------------------------------------------------------------
   2. BASE FINA: scrollbar, selección, foco, tipografía
   ------------------------------------------------------------------------- */
html.ns-enhanced {
  color-scheme: dark;
  scrollbar-color: #2a2e38 transparent;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
html.ns-enhanced ::-webkit-scrollbar { width: 12px; height: 12px; }
html.ns-enhanced ::-webkit-scrollbar-track { background: transparent; }
html.ns-enhanced ::-webkit-scrollbar-thumb {
  background: linear-gradient(#262a33, #1b1f27);
  border: 3px solid var(--bg, #0a0b0e);
  border-radius: 999px;
}
html.ns-enhanced ::-webkit-scrollbar-thumb:hover { background: #333845; }

html.ns-enhanced ::selection {
  background: rgba(45, 212, 191, 0.30);
  color: #ffffff;
}

html.ns-enhanced :focus-visible {
  outline: 2px solid var(--accent, #2dd4bf);
  outline-offset: 3px;
  border-radius: 6px;
  transition: outline-offset 0.12s var(--ns-ease);
}

/* Enlaces internos (#ancla): la cabecera fija no debe tapar el destino */
html.ns-enhanced [id] { scroll-margin-top: 92px; }

html.ns-enhanced h1,
html.ns-enhanced h2 {
  font-weight: 700;
  letter-spacing: -0.028em;
}

/* Enlaces de contenido con subrayado degradado al pasar el ratón */
html.ns-enhanced .prose a {
  text-decoration-color: rgba(45, 212, 191, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s var(--ns-ease), color 0.16s var(--ns-ease);
}
html.ns-enhanced .prose a:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------------------
   3. FONDO AMBIENTAL: rejilla de puntos + aurora muy sutil
   ------------------------------------------------------------------------- */
html.ns-enhanced body {
  background-image:
    radial-gradient(1200px 640px at 82% -12%, rgba(45, 212, 191, 0.16), transparent 62%),
    radial-gradient(900px 560px at -10% 8%, rgba(34, 211, 238, 0.12), transparent 58%),
    radial-gradient(900px 900px at 50% 122%, rgba(56, 189, 248, 0.08), transparent 62%);
}
html.ns-enhanced body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
}

/* ---------------------------------------------------------------------------
   4. NAVEGACIÓN: cristal esmerilado, línea viva, subrayados animados
   ------------------------------------------------------------------------- */
html.ns-enhanced .nav {
  background: rgba(10, 11, 14, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}
html.ns-enhanced .nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ns-line);
  opacity: 0.7;
  pointer-events: none;
}

html.ns-enhanced .nav__inner { min-height: 66px; }

/* Logo con halo */
html.ns-enhanced .brand img {
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 6px 18px rgba(34, 211, 238, 0.20);
  transition: box-shadow 0.25s var(--ns-ease), transform 0.25s var(--ns-ease);
}
html.ns-enhanced .brand:hover img {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 10px 26px rgba(34, 211, 238, 0.38);
}
html.ns-enhanced .brand span {
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* Subrayado animado en los enlaces de escritorio */
@media (min-width: 901px) {
  html.ns-enhanced .nav__links > a:not(.nav__cta-mobile) { position: relative; }
  html.ns-enhanced .nav__links > a:not(.nav__cta-mobile)::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.22rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #5eead4, #22d3ee);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ns-ease);
  }
  html.ns-enhanced .nav__links > a:not(.nav__cta-mobile):hover::after,
  html.ns-enhanced .nav__links > a.is-active::after { transform: scaleX(1); }
  html.ns-enhanced .nav__links > a.is-active { color: var(--text, #eef1f4); }
}

/* Menú móvil desplegado */
html.ns-enhanced .nav__links.open {
  background: rgba(10, 11, 14, 0.96);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  gap: 0.15rem;
}
html.ns-enhanced .nav__links.open > a:not(.nav__cta-mobile) {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}
html.ns-enhanced .nav__links.open > a:not(.nav__cta-mobile):hover { background: var(--surface-2, #191b22); }

html.ns-enhanced .lang { transition: border-color 0.2s var(--ns-ease), color 0.2s var(--ns-ease); }
html.ns-enhanced .lang:hover { border-color: var(--accent-line, rgba(45, 212, 191, 0.35)); color: var(--accent, #2dd4bf); }

/* ---------------------------------------------------------------------------
   5. BOTONES: brillo que cruza, elevación, gradiente vivo
   ------------------------------------------------------------------------- */
html.ns-enhanced .btn { font-weight: 650; letter-spacing: 0.01em; }
html.ns-enhanced .btn--primary {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, #5eead4, #22d3ee 60%, #38bdf8);
  background-size: 170% 170%;
  background-position: 0% 50%;
  transition: background-position 0.45s var(--ns-ease), box-shadow 0.3s var(--ns-ease), transform 0.2s var(--ns-ease);
}
html.ns-enhanced .btn--primary::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ns-ease);
  pointer-events: none;
}
html.ns-enhanced .btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 14px 38px rgba(45, 212, 191, 0.42);
}
html.ns-enhanced .btn--primary:hover::after { left: 115%; }

html.ns-enhanced .btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.ns-enhanced .btn--ghost:hover {
  background: var(--surface-2, #191b22);
  border-color: var(--accent-line, rgba(45, 212, 191, 0.35));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------------
   6. TARJETAS: borde degradado al hover + elevación
   ------------------------------------------------------------------------- */
html.ns-enhanced .card { position: relative; }
html.ns-enhanced .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(94, 234, 212, 0.55), rgba(34, 211, 238, 0.16) 42%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ns-ease);
  pointer-events: none;
}
html.ns-enhanced .card:hover::before { opacity: 1; }

html.ns-enhanced .badge { letter-spacing: 0.04em; }
html.ns-enhanced .badge--accent {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.16), 0 6px 18px -8px rgba(45, 212, 191, 0.5);
}

/* ---------------------------------------------------------------------------
   7. HERO (portada): halo, titular vivo, terminal con marco
   ------------------------------------------------------------------------- */
html.ns-enhanced .hero { position: relative; }
html.ns-enhanced .hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  height: 78%;
  background:
    radial-gradient(58% 62% at 28% 18%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(46% 52% at 82% 8%, rgba(56, 189, 248, 0.11), transparent 72%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}
html.ns-enhanced .hero > * { position: relative; z-index: 1; }

html.ns-enhanced .grad {
  background-image: var(--ns-grad);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

html.ns-enhanced .value-chip {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.10), 0 10px 30px -14px rgba(45, 212, 191, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html.ns-enhanced .hero__trust::before {
  animation: ns-pulse 2.4s var(--ns-ease) infinite;
}
@keyframes ns-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.24); }
  50% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0.06); }
}

/* Terminal: marco luminoso + banda de escaneo + rótulo de ventana */
html.ns-enhanced .terminal {
  border-color: rgba(45, 212, 191, 0.22);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(45, 212, 191, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
}
html.ns-enhanced .terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
html.ns-enhanced .terminal__bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
/* Rótulo de ventana a la derecha de la barra (texto real, no decorativo) */
html.ns-enhanced .terminal__brand {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-subtle, #8a929d);
  white-space: nowrap;
}
html.ns-enhanced .terminal__body .ok { text-shadow: 0 0 18px rgba(126, 231, 135, 0.35); }
html.ns-enhanced .terminal__body .crit { text-shadow: 0 0 18px rgba(255, 123, 114, 0.4); }
html.ns-enhanced .terminal__body .warn { text-shadow: 0 0 18px rgba(240, 180, 41, 0.32); }

/* ---------------------------------------------------------------------------
   8. BANDAS: métricas con cifras degradadas + barra de confianza
   ------------------------------------------------------------------------- */
html.ns-enhanced .metrics {
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
html.ns-enhanced .metrics > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 70%), var(--surface-1, #121319);
  transition: background 0.3s var(--ns-ease);
}
html.ns-enhanced .metrics > div:hover {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.07), transparent 75%), var(--surface-1, #121319);
}
html.ns-enhanced .metrics .k {
  background-image: var(--ns-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

html.ns-enhanced .trustbar .icon {
  border-radius: 14px;
  background-image: linear-gradient(160deg, rgba(45, 212, 191, 0.18), rgba(34, 211, 238, 0.05));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.10);
  transition: transform 0.25s var(--ns-ease), box-shadow 0.25s var(--ns-ease);
}
html.ns-enhanced .trustbar > div:hover .icon {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.22), 0 12px 26px -14px rgba(45, 212, 191, 0.6);
}

/* ---------------------------------------------------------------------------
   9. LÍNEA DE TIEMPO (Cómo trabajamos)
   ------------------------------------------------------------------------- */
html.ns-enhanced .timeline::before { box-shadow: 0 0 24px rgba(45, 212, 191, 0.35); }
html.ns-enhanced .tl-dot {
  box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.05), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  transition: background 0.25s var(--ns-ease), color 0.25s var(--ns-ease), border-color 0.25s var(--ns-ease), transform 0.25s var(--ns-ease);
}
html.ns-enhanced .tl-step:hover .tl-dot {
  background: linear-gradient(135deg, #5eead4, #22d3ee);
  border-color: transparent;
  color: #04211d;
  transform: translateY(-2px);
}
html.ns-enhanced .tl-step h3 { font-weight: 650; }

/* ---------------------------------------------------------------------------
   10. PRECIOS
   ------------------------------------------------------------------------- */
html.ns-enhanced .plans { align-items: stretch; }
html.ns-enhanced .plan {
  transition: transform 0.3s var(--ns-ease), border-color 0.3s var(--ns-ease), box-shadow 0.3s var(--ns-ease);
}
@media (min-width: 720px) {
  html.ns-enhanced .plan:hover { transform: translateY(-4px); }
  html.ns-enhanced .plan--featured { transform: translateY(-8px); box-shadow: 0 40px 90px -40px rgba(45, 212, 191, 0.35); }
  html.ns-enhanced .plan--featured:hover { transform: translateY(-12px); }
  html.ns-enhanced .plan--featured::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 55% at 50% 0%, rgba(45, 212, 191, 0.13), transparent 62%);
    pointer-events: none;
  }
}
html.ns-enhanced .plan__rec {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2), 0 10px 26px -12px rgba(45, 212, 191, 0.7);
}
html.ns-enhanced .plan__price {
  background-image: var(--ns-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.15rem;
  font-weight: 700;
}
html.ns-enhanced .plan__anchor { color: var(--accent, #2dd4bf); }
html.ns-enhanced .checks li::before {
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.55);
  border-radius: 999px;
  width: 7px;
  height: 7px;
  top: 0.58em;
}

/* ---------------------------------------------------------------------------
   11. BLOG: lista y artículo
   ------------------------------------------------------------------------- */
html.ns-enhanced .post__meta { font-family: var(--font-mono, monospace); letter-spacing: 0.02em; }
html.ns-enhanced .post { position: relative; }
html.ns-enhanced .post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5eead4, #22d3ee, #38bdf8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ns-ease);
}
html.ns-enhanced .post:hover::before { transform: scaleX(1); }
html.ns-enhanced .post__title a { transition: color 0.2s var(--ns-ease); }
html.ns-enhanced .post__tags .badge { font-family: var(--font-mono, monospace); font-size: 0.72rem; }
html.ns-enhanced .post__more { font-weight: 600; white-space: nowrap; }

html.ns-enhanced .post-head__meta { font-family: var(--font-mono, monospace); letter-spacing: 0.02em; }
html.ns-enhanced .post-head h1 { letter-spacing: -0.03em; }

/* Lectura larga: medida y ritmo cómodos */
html.ns-enhanced .prose { font-size: 1.03rem; }
html.ns-enhanced .prose > h2 {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.09));
}
html.ns-enhanced .prose blockquote {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.07), transparent 70%);
  border-radius: 0 10px 10px 0;
  padding-block: 0.35rem;
}
html.ns-enhanced .prose code {
  font-family: var(--font-mono, monospace);
  font-size: 0.9em;
  background: var(--surface-2, #191b22);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.09));
  border-radius: 6px;
  padding: 0.12em 0.4em;
}
html.ns-enhanced .prose table { border: 1px solid var(--border, rgba(255, 255, 255, 0.09)); border-radius: 12px; overflow: hidden; }
html.ns-enhanced .prose thead { background: rgba(255, 255, 255, 0.025); }

/* ---------------------------------------------------------------------------
   12. SERVICIOS: índice, ficha, pasos y FAQ
   ------------------------------------------------------------------------- */
html.ns-enhanced .services .service { transition: transform 0.3s var(--ns-ease); }
@media (min-width: 720px) {
  html.ns-enhanced .services .service:hover { transform: translateY(-3px); }
}
html.ns-enhanced .service__n {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--accent, #2dd4bf);
  opacity: 0.85;
}
html.ns-enhanced .service__title a { transition: color 0.2s var(--ns-ease); }

html.ns-enhanced .step__num {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background-image: var(--ns-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html.ns-enhanced .faq__item {
  border-left: 2px solid var(--accent-line, rgba(45, 212, 191, 0.35));
  padding-left: 1.25rem;
}
html.ns-enhanced .faq__item h3 { font-weight: 650; }
html.ns-enhanced .block h2 { letter-spacing: -0.02em; }
html.ns-enhanced .breadcrumb a,
html.ns-enhanced .breadcrumb span { transition: color 0.2s var(--ns-ease); }

/* ---------------------------------------------------------------------------
   13. LEGAL y SOBRE NOSOTROS
   ------------------------------------------------------------------------- */
html.ns-enhanced .legal__updated {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.05em;
}
html.ns-enhanced .quote {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.08), transparent 72%);
  border-radius: 0 12px 12px 0;
  padding-block: 0.6rem;
}
html.ns-enhanced .proof__avatar {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.14), 0 14px 30px -18px rgba(45, 212, 191, 0.65);
  transition: transform 0.25s var(--ns-ease), box-shadow 0.25s var(--ns-ease);
}
html.ns-enhanced .proof__card:hover .proof__avatar {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.28), 0 18px 38px -18px rgba(45, 212, 191, 0.85);
}
html.ns-enhanced .year .mono { color: var(--accent, #2dd4bf); }

/* ---------------------------------------------------------------------------
   14. CTA FINAL y PIE
   ------------------------------------------------------------------------- */
html.ns-enhanced .cta {
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(45, 212, 191, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface-1, #121319);
  box-shadow: 0 40px 100px -60px rgba(45, 212, 191, 0.55);
}

html.ns-enhanced .footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%),
    var(--surface-1, #121319);
}
html.ns-enhanced .footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ns-line);
  opacity: 0.55;
}
html.ns-enhanced .footer::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -64px;
  width: 300px;
  height: 300px;
  background: url("/assets/logo-mark.png") center / contain no-repeat;
  opacity: 0.05;
  filter: grayscale(1) brightness(2.4);
  pointer-events: none;
}
html.ns-enhanced .footer__logo img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html.ns-enhanced .footer__col a { transition: color 0.18s var(--ns-ease), transform 0.18s var(--ns-ease); display: inline-block; }
html.ns-enhanced .footer__col a:hover { color: var(--accent, #2dd4bf); transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   15. 404
   ------------------------------------------------------------------------- */
html.ns-enhanced .err__code {
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  background-image: var(--ns-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}

/* ---------------------------------------------------------------------------
   16. MOVIMIENTO (solo si el sistema lo permite)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.ns-enhanced .grad { animation: ns-flow 10s linear infinite; }
  html.ns-enhanced .terminal { animation: ns-float 9s ease-in-out infinite; }
  html.ns-enhanced .hero__copy > .eyebrow,
  html.ns-enhanced .hero__copy > h1,
  html.ns-enhanced .hero__copy > .lead {
    animation: ns-rise 0.7s var(--ns-ease) both;
  }
  html.ns-enhanced .hero__copy > h1 { animation-delay: 0.06s; }
  html.ns-enhanced .hero__copy > .lead { animation-delay: 0.12s; }
}
@keyframes ns-flow {
  to { background-position: 240% 50%; }
}
@keyframes ns-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes ns-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.ns-enhanced .grad,
  html.ns-enhanced .terminal,
  html.ns-enhanced .hero__copy > *,
  html.ns-enhanced .hero__trust::before {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------------
   17. IMPRESIÓN
   ------------------------------------------------------------------------- */
@media print {
  html.ns-enhanced body::before,
  html.ns-enhanced .nav,
  html.ns-enhanced .footer::after { display: none !important; }
  html.ns-enhanced .footer { background: none; }
}

/* ---------------------------------------------------------------------------
   18. ALTO CONTRASTE (forced-colors)
   Los textos con degradado (background-clip: text + color transparent) se
   quedan invisibles en modo alto contraste: se fuerzan a color del sistema.
   ------------------------------------------------------------------------- */
@media (forced-colors: active) {
  html.ns-enhanced .grad,
  html.ns-enhanced .plan__price,
  html.ns-enhanced .step__num,
  html.ns-enhanced .metrics .k,
  html.ns-enhanced .err__code {
    color: CanvasText;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
  }
}

/* ---------------------------------------------------------------------------
   19. NAVEGACIÓN SIN JAVASCRIPT
   El menú móvil depende del script de navegación: sin JS (o si la CSP
   bloquea el bootstrap inline que añade la clase `js`) los enlaces quedarían
   ocultos. Aquí se muestran como lista estática bajo la cabecera.
   ------------------------------------------------------------------------- */
@media (width<=900px) {
  html.ns-enhanced:not(.js) .nav__inner {
    flex-wrap: wrap;
    padding-block: .75rem;
    row-gap: .25rem;
  }
  html.ns-enhanced:not(.js) .nav__links {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    margin: 0;
  }
  html.ns-enhanced:not(.js) .nav__actions { margin-left: auto; }
  html.ns-enhanced:not(.js) .nav__toggle { display: none; }
}

/* ---------------------------------------------------------------------------
   20. FAQ Y ARTÍCULOS RELACIONADOS
   Mejoras de conversión (dudas resueltas antes del CTA) y de enlazado
   interno (posts relacionados). Todo con <details>, sin JavaScript.
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
html.ns-enhanced .ns-faq details {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color var(--t);
}
html.ns-enhanced .ns-faq details[open] { border-color: var(--accent-line); }
html.ns-enhanced .ns-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.9rem;
}
html.ns-enhanced .ns-faq summary::-webkit-details-marker { display: none; }
html.ns-enhanced .ns-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -.1em;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15em;
}
html.ns-enhanced .ns-faq details[open] summary::after { content: "–"; }
html.ns-enhanced .ns-faq details p { color: var(--text-muted); margin: .65rem 0 0; }
html.ns-enhanced .ns-faq__foot { margin-top: 1.25rem; color: var(--text-subtle); font-size: var(--fs-sm); }
html.ns-enhanced .ns-faq__foot a { text-decoration: underline; text-underline-offset: 2px; }

html.ns-enhanced .ns-related {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
html.ns-enhanced .ns-related h2 { font-size: var(--fs-h3); margin: 0 0 .9rem; }
html.ns-enhanced .ns-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
html.ns-enhanced .ns-related li { margin: 0; }
html.ns-enhanced .ns-related a { color: var(--text-muted); text-decoration: none; }
html.ns-enhanced .ns-related a::before {
  content: "→ ";
  color: var(--accent);
  font-family: var(--font-mono);
}
html.ns-enhanced .ns-related a:hover { color: var(--text); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   21. FORMULARIOS (Netlify Forms)
   Formulario de contacto y captura de email. Envío nativo sin JavaScript:
   el POST lo procesa Netlify y redirige a la página de gracias (action).
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-form { display: grid; gap: 1rem; margin-top: 1.75rem; text-align: left; }
html.ns-enhanced .ns-form__grid { display: grid; gap: 1rem; }
html.ns-enhanced .ns-form--inline { max-width: 32rem; }
@media (width >= 640px) {
  html.ns-enhanced .ns-form__grid { grid-template-columns: 1fr 1fr; }
}
html.ns-enhanced .ns-field { display: grid; gap: .45rem; min-width: 0; }
html.ns-enhanced .ns-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
html.ns-enhanced .ns-field :is(input, textarea) {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  transition: border-color var(--t), background var(--t);
}
html.ns-enhanced .ns-field :is(input, textarea):hover { border-color: var(--text-subtle); }
html.ns-enhanced .ns-field :is(input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
html.ns-enhanced .ns-field textarea { resize: vertical; min-height: 6.5rem; }
html.ns-enhanced .ns-field ::placeholder { color: var(--text-subtle); opacity: 1; }
html.ns-enhanced .ns-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}
html.ns-enhanced .ns-check input { margin-top: .3rem; accent-color: var(--accent); flex: none; }
html.ns-enhanced .ns-check a { text-decoration: underline; text-underline-offset: 2px; }
html.ns-enhanced .ns-form .btn { justify-self: start; }
html.ns-enhanced .ns-form__note { font-size: var(--fs-xs); color: var(--text-subtle); margin: 0; }
html.ns-enhanced .ns-form__alt { font-size: var(--fs-sm); margin: 1.5rem 0 0; }
html.ns-enhanced .ns-form__alt a { text-decoration: underline; text-underline-offset: 2px; }
html.ns-enhanced .ns-hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------------------
   22. CTA FIJO EN MÓVIL
   Barra inferior con el CTA principal en pantallas pequeñas (hasta 900px).
   En escritorio permanece oculta.
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-sticky { display: none; }
@media (width <= 900px) {
  html.ns-enhanced .ns-sticky {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.25rem;
    background: var(--cta-grad);
    color: var(--accent-ink);
    font-size: var(--fs-sm);
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 32px #000000b3, var(--ns-glow-accent);
  }
  html.ns-enhanced .ns-sticky:hover { color: var(--accent-ink); }
}

/* ---------------------------------------------------------------------------
   23. CAPTURA DE EMAIL (tarjeta de novedades en el blog)
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-news { margin-top: 2rem; }
html.ns-enhanced .ns-news h2 { font-size: var(--fs-h3); margin-bottom: .35rem; }
html.ns-enhanced .ns-news > p { color: var(--text-muted); margin-bottom: 0; }
html.ns-enhanced .ns-news .ns-form { margin-top: 1.25rem; max-width: 34rem; }
html.ns-enhanced .ns-news .ns-form__grid { grid-template-columns: 1fr; }
html.ns-enhanced .ns-news__link { font-size: var(--fs-sm); margin: .9rem 0 0; }
html.ns-enhanced .ns-news__link a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------------------
   24. PÁGINA DE GRACIAS
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-thanks { text-align: center; }
html.ns-enhanced .ns-thanks .lead { margin-inline: auto; }
html.ns-enhanced .ns-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---------------------------------------------------------------------------
   25. BANDA DE MARCA (imagen corporativa a ancho completo)
   Banner oficial de NULLSTRATA (Fondo.jpg) como cierre de página.
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-brand-band { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
html.ns-enhanced .ns-brand-band img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------------------
   26. RENDIMIENTO: recortar el coste de pintado sin tocar la estética
   En escritorio todo se mantiene idéntico. En pantallas pequeñas y en equipos
   con movimiento reducido se desactivan los efectos que obligan a repintar el
   viewport en cada frame. Ninguna regla cambia la estructura ni el contenido.
   ------------------------------------------------------------------------- */

/* 26.1 · Fondo fijo = repintado del viewport completo en cada scroll. Es el
   coste más alto de esta capa y en pantalla táctil se nota. Con `scroll` el
   degradado se desplaza con el documento y sigue viéndose. */
@media (max-width: 900px) {
  html.ns-enhanced body { background-attachment: scroll; }
}

/* 26.2 · El patrón de puntos es una capa fija a pantalla completa con
   mask-image: se recompone en cada frame. En móvil apenas se percibe. */
@media (max-width: 900px) {
  html.ns-enhanced body::before { display: none; }
}

/* 26.3 · El latido del indicador del hero anima box-shadow en bucle infinito.
   Animar una sombra implica repintado continuo, no solo composición. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  html.ns-enhanced .hero__trust::before { animation: none; }
}

/* 26.4 · Un desenfoque de 34 px sobre una caja grande es caro de rasterizar.
   A la mitad de radio el halo se percibe igual. */
@media (max-width: 900px) {
  html.ns-enhanced .hero::before { filter: blur(18px); }
}

/* 26.5 · Cada backdrop-filter abre una capa de composición propia. En móvil se
   retiran los de elementos pequeños: el fondo translúcido ya hace el trabajo
   visual. El nav conserva el suyo porque define la identidad del sitio. */
@media (max-width: 900px) {
  html.ns-enhanced .btn--ghost,
  html.ns-enhanced .value-chip {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* 26.6 · La animación del titular mueve background-position en bucle. Al
   detenerla se fija la posición centrada para que el degradado no aparezca
   cortado por el borde izquierdo. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  html.ns-enhanced .grad {
    animation: none;
    background-position: 50% 50%;
  }
}

/* ---------------------------------------------------------------------------
   27. ANUNCIO VIGENTE (pentesting gratuito: hasta 2027 o 100 plazas)
   Banda de novedad reutilizable en home, precios y ficha de servicio.
   Peso visual alto (filete, cifra grande, CTA sólido) sin caer en estridencia.
   ------------------------------------------------------------------------- */
html.ns-enhanced .ns-promo-wrap { margin-block: clamp(1.5rem, 3.5vw, 2.5rem) 0; }

html.ns-enhanced .ns-promo {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--accent-line, rgba(45, 212, 191, 0.35));
  border-radius: var(--radius-lg, 16px);
  background:
    linear-gradient(120deg, rgba(45, 212, 191, 0.14), rgba(34, 211, 238, 0.07) 50%, transparent 88%),
    var(--surface-1, #121319);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 18px 44px -28px rgba(45, 212, 191, 0.55);
  overflow: hidden;
}

html.ns-enhanced .ns-promo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #5eead4, #22d3ee);
}

html.ns-enhanced .ns-promo__count {
  flex: none;
  display: grid;
  justify-items: center;
  line-height: 1;
  gap: 0.15rem;
  padding-right: 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

html.ns-enhanced .ns-promo__num {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-accent, linear-gradient(120deg, #5eead4, #22d3ee 55%, #38bdf8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.ns-enhanced .ns-promo__unit {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle, #8a929d);
}

html.ns-enhanced .ns-promo__body {
  flex: 1 1 20rem;
  display: grid;
  gap: 0.4rem;
}

html.ns-enhanced .ns-promo__tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink, #04211d);
  background: var(--accent, #2dd4bf);
  border-radius: var(--radius-pill, 999px);
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
}

html.ns-enhanced .ns-promo__text {
  margin: 0;
  font-size: var(--fs-sm, 0.9375rem);
  line-height: 1.55;
  color: var(--text-muted, #a3aab4);
}

html.ns-enhanced .ns-promo__text strong {
  color: var(--text, #eef1f4);
  font-weight: 650;
}

html.ns-enhanced .ns-promo__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius, 12px);
  background: var(--cta-grad, linear-gradient(135deg, #5eead4, #22d3ee));
  color: var(--accent-ink, #04211d);
  font-size: var(--fs-sm, 0.9375rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px -10px rgba(45, 212, 191, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html.ns-enhanced .ns-promo__cta:hover {
  color: var(--accent-ink, #04211d);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(45, 212, 191, 0.85);
}

@media (max-width: 640px) {
  html.ns-enhanced .ns-promo { padding: 1rem; }
  html.ns-enhanced .ns-promo__count {
    border-right: 0;
    padding-right: 0;
    grid-auto-flow: column;
    align-items: baseline;
    justify-items: start;
    gap: 0.45rem;
  }
  html.ns-enhanced .ns-promo__cta { width: 100%; }
}
