/* iDEV · Landing 2026
   Capa visual clara para cuatro CRM + Portal.
   El recorrido guiado conserva íntegramente sus estilos originales. */

:root {
  --n-paper: #f6f8f9;
  --n-white: #ffffff;
  --n-ink: #0d1619;
  --n-copy: #36464c;
  --n-muted: #657579;
  --n-line: #dce3e6;
  --n-teal: #0b7c84;
  --n-teal-dark: #064a50;
  --n-teal-soft: #e9f6f7;
  --n-shadow: 0 24px 70px rgba(13, 22, 25, .10);
}

body {
  color: var(--n-ink);
  background: var(--n-white);
}

/* La versión anterior queda en el documento como respaldo estructural, pero no
   se presenta. El dialog del recorrido no es una section y queda fuera. */
#contenido > section { display: none !important; }
.landing-nueva { display: block; overflow: clip; }
.landing-nueva h1,
.landing-nueva h2,
.landing-nueva h3 { color: var(--n-ink); }
.landing-nueva a { text-underline-offset: 3px; }

.nav {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(13, 22, 25, .08);
  box-shadow: 0 8px 30px rgba(13, 22, 25, .04);
}
.nav .contenedor { min-height: 72px; }
.nav-logo img { height: 33px; }
.nav-ligas { gap: 1.2rem; }
.nav-ligas a {
  color: var(--ink-700);
  font-size: .91rem;
}
.nav-ligas a:hover { color: var(--n-teal); }
.nav-ligas .boton { color: #fff; }
.nav-toggle {
  color: var(--n-ink);
  border-color: var(--ink-300);
  background: var(--n-white);
}
.progreso { background: linear-gradient(90deg, #2ba0a7, #0e7a4f); }

.n-kicker {
  margin: 0 0 .85rem;
  color: var(--n-teal);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.n-seccion {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}
.n-seccion-suave { background: var(--n-paper); }
.n-seccion-tinta {
  background: var(--ink-900);
  color: var(--ink-200);
}
.n-seccion-tinta h2,
.n-seccion-tinta h3 { color: #fff; }
.n-seccion-tinta .n-kicker { color: var(--brand-300); }
.n-encabezado { max-width: 760px; margin-bottom: 2.4rem; }
.n-encabezado h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.n-encabezado > p:last-child {
  margin-top: 1rem;
  color: var(--n-copy);
  font-size: 1.08rem;
  line-height: 1.65;
}
.n-encabezado-centro { margin-inline: auto; text-align: center; }

/* Clientes: franja compacta de logotipos en una sola tinta. */
.n-clientes {
  padding: 1.35rem 0;
  background: #e8f2f3;
  border-block: 1px solid #d5e5e7;
  color: #27383d;
}
.n-clientes .contenedor {
  display: block;
}
.n-clientes-encabezado { margin: 0 0 1rem; text-align: center; }
.n-clientes h2 {
  color: #27383d;
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.n-clientes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: .75rem;
  max-width: 1100px;
  margin-inline: auto;
}
.n-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 72px;
  overflow: hidden;
  padding: .5rem;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(17,94,99,.1);
  border-radius: 8px;
  color: #27383d;
  text-decoration: none;
  transition: opacity .2s ease;
}
a.n-cliente:hover,
a.n-cliente:focus-visible { opacity: .65; }
.n-cliente img {
  display: block;
  width: min(100%, 132px);
  height: 52px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) opacity(.8);
}
.n-cliente-praia img { clip-path: polygon(0 0,100% 0,100% 100%,82% 100%,82% 68%,0 68%); }
.n-cliente-highview .n-highview-logo {
  position: relative;
  display: block;
  width: min(100%, 180px);
  height: auto;
  aspect-ratio: 1572 / 428;
  overflow: hidden;
}
.n-cliente-highview .n-highview-logo img {
  position: absolute;
  top: -164%;
  left: -9.7%;
  width: 109.7%;
  max-width: none;
  height: auto;
  filter: grayscale(1) brightness(0);
}
.n-cliente-alexandra img { transform: scale(1.18); }
.n-cliente-concretar img { clip-path: polygon(0 0,100% 0,100% 57%,18% 57%,18% 100%,0 100%); }
.n-cliente .n-cliente-sello {
  display: block;
  width: 100px;
  height: 66px;
  background: #27383d;
  -webkit-mask-image: url("img/clientes/hacienda-turquesa-mask.png");
  mask-image: url("img/clientes/hacienda-turquesa-mask.png");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: luminance;
}
.n-cliente-hacienda { padding: 2px; }

@media (max-width: 1000px) {
  .n-clientes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
}
@media (max-width: 600px) {
  .n-clientes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .n-cliente { height: 68px; }
  .n-cliente img, .n-cliente .n-cliente-sello { height: 48px; }
  .n-cliente-highview .n-highview-logo img { height: auto; }
  .n-cliente .n-cliente-sello { width: 88px; height: 60px; }
}

/* Portada */
.n-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6.5rem);
  background:
    linear-gradient(rgba(13, 22, 25, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 22, 25, .035) 1px, transparent 1px),
    linear-gradient(140deg, #fff 0%, #f5fbfb 54%, #edf6f4 100%);
  background-size: 52px 52px, 52px 52px, auto;
}
.n-orbe {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}
.n-orbe-a {
  width: 520px; height: 520px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(43, 160, 167, .20), rgba(43, 160, 167, 0) 68%);
}
.n-orbe-b {
  width: 440px; height: 440px; left: -260px; bottom: -220px;
  background: radial-gradient(circle, rgba(14, 122, 79, .13), rgba(14, 122, 79, 0) 68%);
}
.n-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}
.n-hero h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 5.3vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.055em;
}
.n-lead {
  max-width: 670px;
  margin-top: 1.55rem;
  color: var(--n-copy);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}
.n-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.n-confianza {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin-top: 1.4rem;
  color: var(--n-muted);
  font-size: .86rem;
}
.n-confianza span::before { content: "✓"; margin-right: .38rem; color: var(--n-teal); font-weight: 700; }
.n-hero-visual { position: relative; padding: 1.5rem 1.2rem 3rem; }
.n-ventana {
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid rgba(13, 22, 25, .12);
  border-radius: 17px;
  box-shadow: var(--n-shadow);
}
.n-ventana-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--ink-800);
}
.n-ventana-barra i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-500); }
.n-ventana-barra span {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  color: var(--ink-300);
  font-family: var(--mono);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.n-ventana img {
  display: block;
  width: 100%;
  margin-top: -1.85%;
  clip-path: inset(2.9% 0 0);
  background: #fff;
}
.n-ventana video {
  display: block;
  width: 100%;
  height: auto;
  background: #eef3f4;
}
.n-ventana-principal { transform: perspective(1500px) rotateY(-4deg) rotateX(1deg); }
.n-flotante {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 184px;
  padding: .82rem 1rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--n-line);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(13, 22, 25, .14);
  backdrop-filter: blur(12px);
}
.n-flotante b { font-family: var(--display); font-size: .94rem; }
.n-flotante span { margin-top: .12rem; color: var(--n-muted); font-size: .74rem; }
.n-flotante-costos { left: -1rem; bottom: 0; }
.n-flotante-redes { right: -.8rem; top: 0; }
.n-flotante-portal { right: 9.5rem; bottom: .35rem; }

/* Selector de productos */
.n-productos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.n-producto-card {
  position: relative;
  grid-column: auto;
  min-height: 280px;
  padding: 1.55rem;
  overflow: hidden;
  background: var(--n-white);
  border: 1px solid var(--n-line);
  border-radius: 16px;
  color: var(--n-ink);
  box-shadow: 0 10px 30px rgba(13, 22, 25, .04);
  transition: transform .3s var(--curva), box-shadow .3s var(--curva), border-color .3s;
}
.n-producto-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--producto);
}
.n-producto-card::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px; right: -85px; top: -90px;
  border-radius: 50%;
  background: var(--producto);
  opacity: .07;
}
.n-producto-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--producto) 45%, var(--n-line));
  box-shadow: 0 24px 55px rgba(13, 22, 25, .11);
  text-decoration: none;
}
.n-num { color: var(--producto); font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; }
.n-tipo {
  float: right;
  padding: .2rem .46rem;
  color: var(--producto);
  background: color-mix(in srgb, var(--producto) 9%, #fff);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.n-producto-card h3 { margin-top: 2.4rem; font-size: 1.55rem; }
.n-producto-card p { margin-top: .65rem; color: var(--n-copy); font-size: .94rem; line-height: 1.55; }
.n-ir { position: absolute; left: 1.55rem; bottom: 1.4rem; color: var(--producto); font-size: .88rem; font-weight: 600; }

/* Flujo */
.n-flujo { padding: 5rem 0; background: var(--n-paper); border-block: 1px solid var(--n-line); }
.n-flujo-lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: producto;
}
.n-flujo-lista li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: 1.4rem 1.2rem 1.2rem 3.4rem;
  background: #fff;
  border-block: 1px solid var(--n-line);
}
.n-flujo-lista li:first-child { border-left: 1px solid var(--n-line); border-radius: 13px 0 0 13px; }
.n-flujo-lista li:last-child { border-right: 1px solid var(--n-line); border-radius: 0 13px 13px 0; }
.n-flujo-lista li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 50%;
  color: var(--n-teal);
  background: var(--n-paper);
  transform: translateY(-50%);
}
.n-flujo-lista li::before {
  counter-increment: producto;
  content: "0" counter(producto);
  position: absolute;
  left: 1rem;
  top: 1.45rem;
  color: var(--n-teal);
  font-family: var(--mono);
  font-size: .68rem;
}
.n-flujo-lista b { font-family: var(--display); }
.n-flujo-lista span { color: var(--n-muted); font-size: .82rem; }
.n-flujo-nota { max-width: 800px; margin: 1.25rem auto 0; color: var(--n-muted); font-size: .86rem; text-align: center; }

/* Detalle de producto */
.n-producto-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(520px, 1.15fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.n-producto-inverso .n-producto-copy { order: 2; }
.n-producto-copy h2 {
  max-width: 650px;
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.n-producto-lead { margin-top: 1.2rem; color: var(--n-copy); font-size: 1.09rem; line-height: 1.65; }
.n-checks { display: grid; gap: .65rem; margin: 1.45rem 0 0; padding: 0; list-style: none; }
.n-checks li { position: relative; padding-left: 1.65rem; color: var(--n-copy); line-height: 1.5; }
.n-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--producto);
  font-weight: 700;
}
.n-links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; margin-top: 1.7rem; }
.n-links a,
.n-link-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--producto);
  background: color-mix(in srgb, var(--producto) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--producto) 48%, #fff);
  border-radius: 999px;
  padding: 0 .95rem;
  font: 600 .93rem var(--body);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.n-links a:hover,
.n-link-boton:hover {
  background: color-mix(in srgb, var(--producto) 13%, #fff);
  box-shadow: 0 7px 18px rgba(13, 22, 25, .09);
  transform: translateY(-1px);
  text-decoration: none;
}
.n-producto-media { box-shadow: 0 28px 70px rgba(13, 22, 25, .15); }
.n-seccion-tinta .n-producto-lead,
.n-seccion-tinta .n-checks li { color: var(--ink-300); }
.n-seccion-tinta .n-links a,
.n-seccion-tinta .n-link-boton {
  color: var(--brand-200);
  background: rgba(92, 188, 193, .10);
  border-color: rgba(154, 215, 218, .5);
}
.n-seccion-tinta .n-links a:hover,
.n-seccion-tinta .n-link-boton:hover { background: rgba(92, 188, 193, .18); }
.n-aclaracion {
  margin-top: 1.2rem;
  padding: .85rem 1rem;
  color: var(--n-copy);
  background: #fff;
  border-left: 3px solid var(--producto);
  border-radius: 0 8px 8px 0;
  font-size: .86rem;
}

/* Tableros dibujados para Costos */
.n-tablero-costos,
.n-tablero-redes {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: 18px;
  box-shadow: var(--n-shadow);
}
.n-tablero-cab { display: flex; flex-direction: column; gap: .35rem; padding: .5rem .5rem 1.2rem; }
.n-tablero-cab span { color: var(--n-teal); font-family: var(--mono); font-size: .65rem; letter-spacing: .11em; }
.n-tablero-cab b { color: var(--n-ink); font-family: var(--display); font-size: 1.35rem; }
.n-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: stretch; }
.n-kpis article { display: grid; grid-template-rows: 2.7em auto 1fr; align-content: start; min-width: 0; padding: .9rem; overflow: hidden; background: var(--n-paper); border: 1px solid var(--n-line); border-radius: 11px; }
.n-kpis span { display: block; color: var(--n-muted); font-family: var(--mono); font-size: .61rem; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.n-kpis b { display: block; min-width: 0; margin-top: .3rem; color: var(--n-ink); font-family: var(--display); font-size: clamp(1rem, 1.15vw, 1.15rem); font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.n-kpis small { display: block; margin-top: .45rem; color: var(--n-muted); font-size: .7rem; line-height: 1.35; }
.n-costos-tabla { display: grid; gap: 0; margin-top: .8rem; border: 1px solid var(--n-line); border-radius: 11px; overflow: hidden; }
.n-costos-tabla div { display: grid; grid-template-columns: 55px 1fr auto; gap: .6rem; padding: .85rem 1rem; color: var(--n-copy); border-bottom: 1px solid var(--n-line); }
.n-costos-tabla div:last-child { border: 0; }
.n-costos-tabla b { color: var(--n-teal); font-family: var(--mono); }
.n-costos-tabla em { color: var(--n-teal); font-style: normal; font-weight: 600; }
.n-barras {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 150px;
  margin: 1rem .5rem;
  padding: 1rem;
  background: linear-gradient(var(--n-line) 1px, transparent 1px);
  background-size: 100% 33%;
  border-left: 1px solid var(--n-line);
  border-bottom: 1px solid var(--n-line);
}
.n-barras i { flex: 1; height: var(--h); min-width: 10px; background: linear-gradient(#5cbcc1, #0b7c84); border-radius: 5px 5px 0 0; }
.n-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.n-pipeline span { padding: .7rem; color: var(--n-copy); background: var(--n-paper); border-radius: 8px; font-size: .7rem; }
.n-pipeline b { display: block; margin-top: .25rem; color: var(--n-ink); font-size: 1rem; }

/* Diferenciadores */
.n-razones { background: linear-gradient(145deg, #fff, #f3fbfb); }
.n-razones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.n-razones-grid article { padding: 1.5rem; background: rgba(255,255,255,.84); border: 1px solid var(--n-line); border-radius: 14px; }
.n-razones-grid span { color: var(--n-teal); font-family: var(--mono); font-size: .7rem; }
.n-razones-grid h3 { margin-top: 1.7rem; font-size: 1.15rem; }
.n-razones-grid p { margin-top: .45rem; color: var(--n-copy); font-size: .9rem; line-height: 1.55; }

/* Planes */
#precios .n-encabezado { margin-inline: auto; text-align: center; }
.n-planes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; align-items: stretch; }
.n-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.35rem; background: #fff; border: 1px solid var(--n-line); border-radius: 14px; text-align: center; }
.n-plan-destacado { border-color: var(--brand-300); box-shadow: 0 18px 50px rgba(11,124,132,.12); }
.n-plan-etiqueta { position: absolute; top: -11px; right: 12px; padding: .25rem .55rem; color: #fff; background: var(--n-teal); border-radius: 999px; font-size: .63rem; }
.n-plan-tipo { color: var(--n-teal); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.n-plan h3 { margin-top: 1.35rem; font-size: clamp(1.35rem, 2vw, 1.9rem); }
.n-plan > p { min-height: 2.6em; margin-top: .25rem; color: var(--n-muted); font-size: .78rem; }
.n-plan-implementacion { display: grid; gap: .2rem; min-height: 4.25rem; margin-top: .85rem; padding: .7rem .75rem; background: var(--n-paper); border: 1px solid var(--n-line); border-radius: 9px; }
.n-plan-implementacion span { color: var(--n-muted); font-family: var(--mono); font-size: .61rem; letter-spacing: .07em; text-transform: uppercase; }
.n-plan-implementacion strong { color: var(--n-ink); font-family: var(--display); font-size: .92rem; line-height: 1.2; }
.n-plan-implementacion small { color: var(--n-teal); font-family: var(--mono); font-size: .58rem; font-weight: 700; letter-spacing: .09em; line-height: 1.2; }
.n-plan ul { display: grid; gap: .5rem; flex: 1; margin: 1.2rem 0; padding: 1.1rem 0 0; border-top: 1px solid var(--n-line); list-style: none; }
.n-plan li { color: var(--n-copy); font-size: .8rem; line-height: 1.4; }
.n-plan li::before { content: "✓"; margin-right: .35rem; color: var(--n-teal); font-weight: 700; }
.n-plan .boton { width: 100%; min-height: 42px; padding: 0 .6rem; font-size: .79rem; }
.n-planes-nota { max-width: 800px; margin: 1.25rem auto 0; color: var(--n-muted); font-size: .78rem; text-align: center; }

/* Implementación, seguridad y FAQ */
.n-dos-columnas,
.n-faq-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(480px, 1.25fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.n-pasos { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.n-pasos li { position: relative; padding: 1.2rem 1rem 1.2rem 4.2rem; border-bottom: 1px solid var(--n-line); }
.n-pasos li::before { counter-increment: paso; content: "0" counter(paso); position: absolute; left: 1rem; top: 1.15rem; color: var(--n-teal); font-family: var(--mono); font-size: .74rem; }
.n-pasos b { display: block; font-family: var(--display); font-size: 1.04rem; }
.n-pasos span { display: block; margin-top: .3rem; color: var(--n-copy); font-size: .88rem; }
.n-seguridad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.n-seguridad-grid article { padding: 1.4rem; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 13px; }
.n-seguridad-grid h3 { font-size: 1.05rem; }
.n-seguridad-grid p { margin-top: .45rem; color: var(--ink-300); font-size: .88rem; line-height: 1.5; }
.n-faq { border-top: 1px solid var(--n-line); }
.n-faq details { border-bottom: 1px solid var(--n-line); }
.n-faq summary { position: relative; padding: 1.15rem 2.4rem 1.15rem 0; font-family: var(--display); font-weight: 700; cursor: pointer; list-style: none; }
.n-faq summary::-webkit-details-marker { display: none; }
.n-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; color: var(--n-teal); font-size: 1.25rem; }
.n-faq details[open] summary::after { content: "−"; }
.n-faq details p { padding: 0 2rem 1.2rem 0; color: var(--n-copy); font-size: .92rem; line-height: 1.6; }

/* Cierre */
.n-cierre { padding: clamp(5rem, 9vw, 8rem) 0; text-align: center; background: linear-gradient(145deg, #e9f6f7, #f8fbf8); border-top: 1px solid var(--n-line); }
.n-cierre .contenedor { max-width: 850px; }
.n-cierre h2 { font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.n-cierre p:not(.n-kicker) { max-width: 690px; margin: 1.1rem auto 0; color: var(--n-copy); font-size: 1.05rem; }
.n-acciones-centro { justify-content: center; }

/* El pie también pasa a claro. */
.pie { background: var(--ink-800); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-ligas {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--n-line);
    box-shadow: 0 18px 40px rgba(13,22,25,.09);
  }
  .nav-ligas.abierto { display: flex; }
  .nav-ligas a { padding: .8rem 0; color: var(--n-copy); border-bottom: 1px solid var(--n-line); font-size: .9rem; }
  .nav-ligas .boton-primario { margin-top: .8rem; }
  .n-planes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-plan,
  .n-plan:nth-child(4),
  .n-plan:nth-child(5) { grid-column: auto; }
  .n-productos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-producto-card,
  .n-producto-card:nth-child(4),
  .n-producto-card:nth-child(5) { grid-column: auto; }
  .n-hero { min-height: auto; }
  .n-hero-grid,
  .n-producto-layout,
  .n-dos-columnas,
  .n-faq-layout { grid-template-columns: 1fr; }
  .n-hero-visual { width: 100%; max-width: 820px; }
  .n-producto-inverso .n-producto-copy { order: initial; }
  .n-producto-layout { gap: 2.5rem; }
  .n-producto-media,
  .n-tablero-costos,
  .n-tablero-redes { width: 100%; max-width: 820px; }
}

@media (max-width: 940px) {
  .nav-ligas {
    top: 72px;
    background: rgba(255,255,255,.98);
    border-bottom-color: var(--n-line);
  }
  .nav-ligas a { color: var(--n-copy); border-bottom-color: var(--n-line); }
  .nav-ligas .boton-primario { margin-top: .8rem; }
  .n-hero { min-height: auto; }
  .n-hero-grid,
  .n-producto-layout,
  .n-dos-columnas,
  .n-faq-layout { grid-template-columns: 1fr; }
  .n-hero-visual { max-width: 720px; }
  .n-producto-inverso .n-producto-copy { order: initial; }
  .n-producto-layout { gap: 2.5rem; }
  .n-producto-media,
  .n-tablero-costos,
  .n-tablero-redes { max-width: 780px; }
  .n-flujo-lista { grid-template-columns: 1fr; }
  .n-flujo-lista li { border: 1px solid var(--n-line); border-bottom: 0; border-radius: 0; }
  .n-flujo-lista li:first-child { border-radius: 13px 13px 0 0; }
  .n-flujo-lista li:last-child { border-bottom: 1px solid var(--n-line); border-radius: 0 0 13px 13px; }
  .n-flujo-lista li:not(:last-child)::after { content: "↓"; right: 1rem; top: auto; bottom: -13px; transform: none; padding: 0 .2rem; }
  .n-razones-grid,
  .n-seguridad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .contenedor { width: min(var(--ancho), calc(100% - 2rem)); }
  .n-hero { padding-top: 4.3rem; background-size: 38px 38px, 38px 38px, auto; }
  .n-hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .n-hero-grid { gap: 2.2rem; }
  .n-hero-visual { padding: 0 0 5rem; }
  .n-ventana-principal { transform: none; }
  .n-flotante { min-width: 150px; padding: .7rem .8rem; }
  .n-flotante-costos { left: -.3rem; bottom: .2rem; }
  .n-flotante-redes { right: -.3rem; top: -.8rem; }
  .n-flotante-portal { right: auto; left: .3rem; bottom: -3rem; }
  .n-productos-grid { grid-template-columns: 1fr; }
  .n-producto-card,
  .n-producto-card:nth-child(4),
  .n-producto-card:nth-child(5) { grid-column: auto; min-height: 235px; }
  .n-kpis { grid-template-columns: 1fr; }
  .n-kpis article { grid-template-rows: auto auto auto; }
  .n-kpis b { font-size: 1.35rem; }
  .n-barras { height: 115px; }
  .n-pipeline { grid-template-columns: repeat(2, 1fr); }
  .n-planes-grid,
  .n-razones-grid,
  .n-seguridad-grid { grid-template-columns: 1fr; }
  .n-plan,
  .n-plan:nth-child(4),
  .n-plan:nth-child(5) { grid-column: auto; }
  .n-acciones .boton { width: 100%; }
}

/* Visibilidad por dispositivo configurada desde el editor visual. */
@media (min-width: 1025px) {
  [data-idev-visible-desktop="false"] { display: none !important; }
}

@media (min-width: 701px) and (max-width: 1024px) {
  [data-idev-visible-tablet="false"] { display: none !important; }
}

@media (max-width: 700px) {
  [data-idev-visible-mobile="false"] { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .n-producto-card,
  .n-ventana-principal { transform: none !important; transition: none !important; }
}

/* Escenarios de producto v20
   Una sola gramática visual: superficie oscura, panel principal en perspectiva
   y datos secundarios en capas. */
.n-hero {
  background:
    linear-gradient(rgba(99, 211, 162, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 211, 162, .055) 1px, transparent 1px),
    radial-gradient(circle at 78% 16%, rgba(17, 143, 151, .28), transparent 34%),
    linear-gradient(145deg, #071012 0%, #0b171a 58%, #102427 100%);
  background-size: 54px 54px, 54px 54px, auto, auto;
  border-bottom: 1px solid rgba(99, 211, 162, .12);
}
.n-hero h1 { color: #f4fbfa; }
.n-hero .n-kicker { color: #63d3a2; }
.n-hero .n-lead { color: #b8c9c9; }
.n-hero .n-confianza { color: #8fa6a7; }
.n-hero .n-confianza span::before { color: #63d3a2; }
.n-hero .boton-secundario {
  color: #eef8f7;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.22);
}
.n-hero .boton-secundario:hover { background: rgba(255,255,255,.09); }
.n-hero .n-orbe-a { background: radial-gradient(circle, rgba(43, 160, 167, .26), rgba(43, 160, 167, 0) 68%); }
.n-hero .n-orbe-b { background: radial-gradient(circle, rgba(99, 211, 162, .16), rgba(99, 211, 162, 0) 68%); }

/* v25: original product captures; current layout and copy are preserved. */
.n-original-media {
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  transform: none;
}
.n-original-media > img,
.n-original-media > video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  clip-path: none;
}
.n-hero-grid,
.n-producto-layout,
.n-portal-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.n-hero { min-height: 0; }
.n-producto-copy { min-width: 0; }
.n-producto-copy h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.08; }
.n-portal-showcase {
  background: radial-gradient(circle at 80% 35%, rgba(43,160,167,.12), transparent 40%), #071012;
}
.n-portal-showcase .n-producto-copy h2 { color: #f5fbfa; }
.n-portal-showcase .n-producto-lead { color: #b2c4c5; }
.n-beneficios-portal { display: grid; gap: .7rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.n-beneficios-portal li { display: grid; gap: .2rem; padding: 0 0 .75rem 1.25rem; position: relative; border-bottom: 1px solid #ffffff15; }
.n-beneficios-portal li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 6px; height: 6px; border-radius: 50%; background: #63d3a2; }
.n-beneficios-portal b { color: #edf7f6; font-size: .95rem; }
.n-beneficios-portal span { color: #a2b5b6; font-size: .87rem; line-height: 1.5; }

/* Scroll-driven sequence; contain never crops a screen or its frame. */
.n-scroll-story {
  --story-accent: #63d3a2;
  position: relative;
  padding: clamp(4rem, 7vw, 7rem) 0 3rem;
  color: #f1f8f7;
  background: radial-gradient(ellipse at 75% 40%, #15323266, transparent 45%), #0b1012;
}
.n-scroll-story-head { max-width: 850px; margin: 0 auto; padding-bottom: 1.5rem; text-align: center; }
.n-scroll-story-head .n-kicker { color: var(--story-accent); }
.n-scroll-story-head h2 { color: #f4fbfa; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.n-scroll-story-head > p:last-child { margin-top: 1rem; color: #9bafb0; }
.n-scroll-track { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; }
.n-scroll-copy { position: relative; z-index: 2; min-width: 0; }
.n-scroll-step { display: flex; min-height: 76svh; flex-direction: column; justify-content: center; opacity: .23; transition: opacity .4s ease; }
.n-scroll-step.is-active { opacity: 1; }
.n-scroll-step > span { color: var(--story-accent); font: 600 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.n-scroll-step h3 { max-width: 480px; margin-top: 1rem; color: #f4fbfa; font-size: clamp(2rem, 3.1vw, 3.25rem); line-height: 1.08; letter-spacing: -.04em; }
.n-scroll-step p { max-width: 460px; margin-top: 1.2rem; color: #a9babc; font-size: 1.03rem; line-height: 1.6; }
.n-scroll-stage { position: relative; min-width: 0; }
.n-scroll-stage-sticky { position: sticky; top: 88px; height: calc(100svh - 105px); min-height: 0; background: transparent; }
.n-scroll-panel { display: flex; align-items: center; position: absolute; inset: 0 0 2rem; width: 100%; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(24px); transition: opacity .45s ease, transform .6s ease, visibility .6s; }
.n-scroll-panel.is-active { opacity: 1; visibility: visible; transform: none; z-index: 2; pointer-events: auto; }
.n-scroll-panel.is-before { transform: translateY(-24px); }
.n-scroll-panel > .n-original-media { width: min(100%, calc((100svh - 175px) * var(--screen-ratio, 1.6))); margin-inline: auto; }
.n-scroll-panel[data-scroll-panel="1"] { --screen-ratio: 1.236; }
.n-scroll-progress { display: flex; justify-content: center; gap: .5rem; position: absolute; bottom: 1.1rem; left: 0; right: 0; }
.n-scroll-progress i { display: block; height: 4px; width: 22px; background: #ffffff30; border-radius: 99px; transition: background .3s ease; }
.n-scroll-progress i.is-active { background: var(--story-accent); }
.n-scroll-counter { position: absolute; right: .5rem; bottom: .55rem; display: flex; align-items: baseline; gap: .3rem; margin: 0; color: #e8f3f2; font: 500 .95rem var(--mono); }
.n-scroll-counter small { color: #8ca2a3; font-size: .7rem; }

@media (max-width: 900px) {
  .n-hero-grid, .n-producto-layout, .n-portal-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .n-producto-inverso .n-producto-copy { order: 0; }
  .n-original-media { width: 100%; max-width: 760px; margin-inline: auto; }
  .n-producto-copy h2 { max-width: 700px; }
}
@media (max-width: 820px) {
  .n-scroll-track { display: flex; flex-direction: column; gap: 0; }
  .n-scroll-stage { order: -1; position: sticky; z-index: 3; top: 72px; width: 100%; background: #0b1012; }
  .n-scroll-stage-sticky { position: relative; top: 0; height: clamp(210px, 41svh, 440px); }
  .n-scroll-panel { justify-content: center; inset: 0 0 1.5rem; }
  .n-scroll-panel > .n-original-media { width: min(100%, calc((clamp(210px, 41svh, 440px) - 60px) * var(--screen-ratio, 1.6))); }
  .n-scroll-copy { z-index: 1; }
  .n-scroll-step { min-height: 65svh; justify-content: flex-start; padding-top: 2.5rem; padding-bottom: 3rem; }
  .n-scroll-step h3 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .n-scroll-step p { font-size: .98rem; }
  .n-scroll-story-head { padding-bottom: 2rem; }
  .n-scroll-counter { right: .2rem; bottom: .2rem; }
  .n-scroll-progress { bottom: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .n-scroll-step, .n-scroll-panel { transition: none; }
}
