/* ================= Inicio ================= */

/* ---------- Hero ---------- */
/* svh = alto visible real: en Chrome/Android descuenta la barra de direcciones (en escritorio es igual a vh). */
.nv-hero { position: relative; padding: 180px var(--nv-gutter) 80px; overflow: hidden; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; }
/* Pantallas verticales anchas (tablets, monitores girados): con tanta altura el texto quedaría muy abajo; se centra. */
@media (min-width: 900px) and (orientation: portrait) {
  .nv-hero { align-items: center; padding-top: 140px; padding-bottom: 140px; }
}
.nv-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.4) scaleY(-1); opacity: 0.6; z-index: 0; }
.nv-hero-tint { position: absolute; inset: 0; z-index: 0; background: #233c72; mix-blend-mode: color; opacity: 0.85; pointer-events: none; }
.nv-hero-glow { position: absolute; inset: 0; z-index: 0; opacity: 0.3; overflow: hidden; }
.nv-hero-glow svg { position: absolute; inset: 0; }
.nv-hero-fade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 60%, var(--bg-base) 100%); }
.nv-hero-content { position: relative; z-index: 1; max-width: 1280px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 28px; }
.nv-hero-content h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: 0.05em; line-height: var(--lh-tight); text-transform: uppercase; max-width: 780px; color: var(--text-heading); text-wrap: balance; margin: 24px 0 0; }
.nv-hero-content h1 .nv-accent { color: var(--accent-primary); }
.nv-a-mob { display: none; }
/* Escritorio: el párrafo del hero corta antes de "centrándonos". */
.nv-br-desk-p { display: none; }
@media (min-width: 900px) { .nv-br-desk-p { display: inline; } }
@media (max-width: 899px) {
  .nv-a-desk { display: none; }
  .nv-a-mob { display: inline; }
}
/* El título va siempre en dos líneas: en pantallas angostas se reduce lo necesario para que
   "AGREGAMOS VALOR A" (≈ 12.7 × el tamaño de fuente) quepa entre los márgenes. */
.nv-hero .nv-hero-content h1 { font-size: min(clamp(30px, 4.2vw, 48px), calc((100vw - 2 * var(--nv-gutter)) / 13)); }
/* ---------- Hero en celular (< 900 px): alineado a la izquierda ----------
   Jerarquía: título dominante (≈ 1.6 × el párrafo) en dos líneas que llenan la columna,
   párrafo al tamaño común con interlineado cómodo y cortes naturales, y el botón separado
   como llamada a la acción. Ritmo vertical: 20 px título → párrafo, 36 px párrafo → botón. */
@media (max-width: 899px) {
  .nv-hero { padding-bottom: 160px; }
  .nv-hero .nv-hero-content { gap: 20px; align-items: center; text-align: center; }
  .nv-hero .nv-hero-cta { justify-content: center; }
  /* "AGREGAMOS VALOR A" mide ≈ 12.74 × la fuente: llena el ancho disponible sin partirse. */
  .nv-hero .nv-hero-content h1 { margin-top: 0; line-height: 1.12; font-size: min(clamp(30px, 4.2vw, 48px), calc((100vw - 2 * var(--nv-gutter)) / 13.1)); }
  .nv-hero .nv-hero-content p { font-size: var(--nv-fs-body); line-height: 1.6; max-width: 34em; text-wrap: pretty; margin: 0 0 16px; }
  .nv-hero-cta .nv-desktop-only { display: none; }
  .nv-hero .nv-hero-cta .nv-btn { min-width: 220px; padding: 15px 28px; }
}
.nv-hero-content p { max-width: 820px; font-size: var(--nv-fs-body); font-weight: 400; color: #FAFCFB; text-wrap: pretty; margin: 0 0 16px; }
.nv-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.nv-hero-cta .nv-btn { padding: 14px 22px; white-space: nowrap; }
.nv-hero-cta .nv-btn--secondary { box-shadow: inset 0 0 0 2.5px #293155; }
.nv-hero-cta .nv-btn--secondary:hover { box-shadow: inset 0 0 0 2.5px #A8F3D0; }

/* Líneas de retícula 25/50/75 % (GradientBackground) */
.nv-grid-lines { position: absolute; inset: 0; pointer-events: none; display: none; }
@media (min-width: 900px) {
  .nv-grid-lines { display: block; }
  .nv-grid-lines::before, .nv-grid-lines::after, .nv-grid-lines span { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-hairline); }
  .nv-grid-lines::before { left: 25%; }
  .nv-grid-lines::after { left: 75%; }
  .nv-grid-lines span { left: 50%; }
}

/* ---------- Quiénes somos (bento) ---------- */
.nv-qs { max-width: 1472px; margin: 0 auto; padding: 80px var(--nv-gutter); box-sizing: content-box; }
.nv-qs-stick { position: relative; }
.nv-qs-inner { position: sticky; top: 68px; z-index: 3; padding-top: 32px; background: #060a09; }
.nv-qs-badge { position: relative; display: flex; justify-content: center; width: 100%; margin-bottom: 48px; }
.nv-qs-spacer { height: 360px; }

.nv-bento-row { display: flex; flex-wrap: nowrap; gap: 28px; height: clamp(360px, 40vw, 520px); margin-top: 24px; }
.nv-bento-col { flex: 1 1 0; min-width: 0; }
.nv-bento-col, .nv-bento-col > div { box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.nv-bento-col > div { overflow: hidden; }
.nv-bento-col img, .nv-bento-col video { -webkit-backdrop-filter: blur(3px) saturate(112%); backdrop-filter: blur(3px) saturate(112%); }
.nv-bento-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.nv-bento-stack { display: flex; flex-direction: column; gap: 28px; }

.nv-bento-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.35; }
.nv-bento-video--erp { object-fit: contain; transform: rotate(90deg) scale(2.6); opacity: 0.6; }

.nv-bento-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0; }
.nv-bento-head { text-align: center; padding: 0 20px; }
.nv-bento-head h3 { font-size: var(--nv-fs-card); margin: 0; }
.nv-erp-link { color: #C8E4FF; }
.nv-erp-link:hover { color: #A8F3D0; }
.nv-bento-head p { font-size: var(--nv-fs-body); color: #FAFCFB; margin: 6px 0 0; text-wrap: balance; }
.nv-num { font-family: var(--font-numeric); font-weight: 600; }
.nv-bento-more { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 10px 22px; border-radius: 999px; font-size: var(--nv-fs-btn); font-weight: 700; letter-spacing: var(--tracking-wide); color: #FAFCFB; text-transform: uppercase; }

/* Marquees */
.nv-marquee { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.nv-marquee-left, .nv-marquee-right { display: flex; gap: 12px; width: max-content; }
.nv-pill, .nv-icon-tile {
  position: relative; overflow: hidden; border: 1px solid transparent;
  background-blend-mode: luminosity; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(250,252,251,0.1);
}
.nv-pill { background: transparent; border-radius: var(--radius-md); padding: 10px 18px; font-size: var(--nv-fs-body); color: #FAFCFB; white-space: nowrap; }
.nv-icon-tile { background-color: rgba(250,252,251,0.01); width: 52px; height: 52px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.nv-pill::before, .nv-icon-tile::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; background: linear-gradient(180deg, rgba(250,252,251,0.45) 0%, rgba(250,252,251,0.15) 20%, rgba(250,252,251,0) 40%, rgba(250,252,251,0) 60%, rgba(250,252,251,0.15) 80%, rgba(250,252,251,0.45) 100%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.nv-pill:hover { color: #A8F3D0; border-color: #A8F3D0; }
.nv-icon-tile:hover { border-color: #A8F3D0; }
.nv-icon-tile:hover svg { stroke: #A8F3D0; }

/* Tarjetas de texto (fondo verde) */
.nv-bento-text { flex: 1 1 auto; position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; }
.nv-bento-texture { position: absolute; inset: -10% 0; width: 100%; height: 120%; max-width: none; object-fit: cover; filter: hue-rotate(-75deg) saturate(0.6) brightness(1.3); will-change: transform; }
.nv-bento-align { position: relative; z-index: 1; font-size: var(--nv-fs-body); line-height: var(--lh-body); color: var(--text-body); margin: 0; text-align: center; text-wrap: pretty; }
.nv-bento-align strong { font-weight: 700; }
.nv-bento-align-box { flex: 0 0 150px; position: relative; border-radius: var(--radius-lg); overflow: hidden; clip-path: inset(0 round var(--radius-lg)); isolation: isolate; display: flex; align-items: center; padding: 24px; }
.nv-bento-texture-rot { position: absolute; left: 50%; top: 50%; width: max(160%, 600px); height: auto; aspect-ratio: 1 / 1; max-width: none; object-fit: cover; transform: translate(-50%, -50%) rotate(140deg); filter: hue-rotate(-75deg) saturate(0.6) brightness(1.3); }

.nv-bento-industrias { flex: 0 0 220px; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.nv-bento-industrias-tint { position: absolute; inset: 0; z-index: 0; background: #293155; mix-blend-mode: color; opacity: 0.85; pointer-events: none; }
.nv-bento-industrias-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 20px 20px; }
.nv-bento-industrias-label span { font-size: var(--nv-fs-body); font-weight: 700; letter-spacing: var(--tracking-wide); color: #FAFCFB; text-transform: uppercase; }
.nv-bento-apps { flex: 1 1 auto; position: relative; border-radius: var(--radius-lg); overflow: hidden; }

.nv-br-d { display: none; }

@media (min-width: 1150px) {
  .nv-qs-badge { justify-content: flex-start; margin-bottom: 20px; }
  .nv-bento-row, .nv-bento-stack { gap: 20px; }
  .nv-bento-row p { font-size: var(--nv-fs-body); line-height: 1.5; }
  .nv-bento-head h3 { font-size: clamp(17px, 1.25vw, 20px); }
  .nv-bento-more { font-size: 13px; padding: 8px 18px; margin-top: 10px; }
  .nv-bento-align { text-align: left; text-wrap: wrap; width: 100%; max-width: none; }
  .nv-br-d { display: inline; }
  /* Tarjetas verdes: cuadro de texto centrado (ancho de la tarjeta − 64 px) y texto que escala con la tarjeta. */
  .nv-bento-text, .nv-bento-align-box { padding-left: 0; padding-right: 0; container-type: inline-size; }
  .nv-bento-row .nv-bento-align { font-size: clamp(12.5px, calc((100cqw - 64px) / 21.2), 15px); line-height: 1.6; width: calc(100% - 64px); margin-left: auto; margin-right: auto; text-wrap: pretty; }
}
@media (max-width: 1150px) {
  .nv-qs-inner { position: relative; top: auto; padding-top: 0; }
  .nv-qs-spacer { height: 0; }
}
/* Título + tarjetas: un solo grupo, centrado entre el botón del menú (67 px) y el borde inferior.
   Si no cabe, la fila se acorta hasta 440 px (los iconos de Interva APPs no caben en menos). 57 px = título + su separación. */
@media (min-width: 1201px), (min-width: 1151px) and (orientation: landscape) {
  .nv-qs-stick {
    --nv-qs-row: clamp(440px, min(40vw, calc(100vh - 182px)), 520px);
    --nv-qs-gap: max(22px, calc((100vh - 67px - 57px - var(--nv-qs-row)) / 2));
  }
  .nv-qs-inner { top: calc(67px + var(--nv-qs-gap) - 32px); }
  .nv-qs-stick .nv-bento-row { height: var(--nv-qs-row); }
}
/* Menos de 600 px de alto visible (laptops con zoom): título + fila (440 px mín.) no caben fijos; se desplazan normal. */
@media (max-height: 599px) {
  .nv-qs-inner { position: relative; top: auto; }
  .nv-qs-spacer { height: 0; }
}
@media (max-width: 1149px) {
  .nv-bento-align-box .nv-bento-align { flex: 1 1 auto; width: 100%; max-width: 32em; margin-left: auto; margin-right: auto; text-align: center; text-wrap: balance; }
}
/* 1024–1150 px en horizontal (tablets apaisadas, laptops pequeñas o con zoom): la fila no es fija y con 40vw
   la tarjeta verde del centro queda sin aire; se le da más altura. */
@media (min-width: 1024px) and (max-width: 1150px) and (orientation: landscape) {
  .nv-bento-row { height: clamp(460px, 45vw, 520px); }
}
@media (max-width: 1023px), (orientation: portrait) and (max-width: 1200px) {
  .nv-bento-row { flex-direction: column; height: auto; }
  .nv-bento-col { flex: 0 0 auto; min-height: 460px; }
  /* Interva APPs: misma altura mínima que la tarjeta de Interva ERP para que su contenido respire. */
  .nv-bento-apps { flex: 0 0 auto; min-height: 460px; }
}

/* ---------- ¿Por qué NetVaIT? ---------- */
.nv-pq { position: relative; z-index: 0; width: 100%; overflow: clip; padding: 38vh 0 0; }
.nv-pq-stick { position: relative; }
.nv-pq-inner { position: sticky; top: 28vh; z-index: 1; }
.nv-pq-wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--nv-gutter); display: flex; justify-content: center; }
.nv-pq-text { width: min(600px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.nv-pq-text h3 { font-size: 22px; font-weight: 700; color: var(--nv-titles); margin: 0 0 0 14px; text-wrap: balance; text-transform: uppercase; }
.nv-pq-text p { font-size: var(--nv-fs-body); line-height: var(--lh-body); color: var(--text-body); margin: 0 auto; max-width: 560px; text-align: center; text-wrap: pretty; }
.nv-pq-text strong { font-weight: 700; }
.nv-pq-text .nv-accent { color: #73B3E6; }
.nv-pq-wave { position: relative; z-index: 0; display: block; width: 100%; max-width: none; height: auto; margin-top: calc(-22.4vw - 10px); pointer-events: none; will-change: transform; }
.nv-pq-spacer { height: 60vh; }
@media (max-width: 1149px) {
  /* Sin parallax: la ola va debajo del texto, con aire entre título, párrafo e imagen. */
  .nv-pq-text { gap: 40px; }
  /* El título se reduce en celulares angostos para que el párrafo (tamaño normal) siga siendo más ancho.
     "¿POR QUÉ NETVAIT?" mide ≈ 10.9 × la fuente. */
  .nv-pq-text h3 { margin-left: 0; font-size: min(var(--nv-fs-title), calc((100vw - 2 * var(--nv-gutter)) * 0.7 / 10.9)); }
  /* Párrafo más ancho que el título: 6 líneas parejas de ≈ 21 em; en celulares angostos la fuente se
     reduce lo necesario para que ese ancho quepa entre los márgenes. */
  .nv-pq-text p { max-width: 21em; text-wrap: balance; }
  /* El 36 % superior de la imagen es transparente (≈ 24vw): se compensa para que los primeros puntos queden ~64 px bajo el texto. */
  .nv-pq-wave { margin-top: calc(64px - 24vw); margin-bottom: 56px; }
}
@media (max-width: 1150px) {
  /* 80 px del final de "Quiénes somos" + 64 px = 144 px hasta el título. */
  .nv-pq { padding-top: 64px; }
  .nv-pq-inner { position: relative; top: auto; }
  .nv-pq-spacer { height: 0; }
}

/* ---------- Soluciones para el éxito (tarjetas apiladas) ---------- */
.nv-sol { max-width: 1472px; margin: 0 auto; padding: 0 var(--nv-gutter) 80px; box-sizing: content-box; }
.nv-stack { position: relative; container-type: inline-size; }
.nv-stack-title { position: sticky; top: 68px; z-index: 5; height: 544px; pointer-events: none; background: linear-gradient(to bottom, #060a09 0, #060a09 124px, transparent 124px); padding: 56px 0 24px; }
.nv-stack-gap { height: 140px; }
.nv-stack-spacer { height: 360px; }

.nv-stack-card { position: sticky; top: 192px; height: 420px; margin-bottom: 0; border-radius: 16px; padding: 32px; display: flex; justify-content: space-between; gap: 24px; box-shadow: -24px 0 60px rgba(0,0,0,0.45); }
.nv-stack-card-1 { margin-left: 0; margin-top: -420px; background: linear-gradient(135deg, #1a2040 0%, #293155 45%, #3b4a7e 100%); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.nv-stack-card-2 { margin-left: 18%; background: linear-gradient(135deg, #172a55 0%, #233c72 45%, #3d63a8 100%); }
.nv-stack-card-3 { margin-left: 36%; background: linear-gradient(135deg, #4f95cf 0%, #73B3E6 45%, #a9d4f5 100%); }
.nv-stack-card-4 { margin-left: 54%; background: linear-gradient(135deg, #a3cdf3 0%, #C8E4FF 45%, #e6f3ff 100%); flex-direction: column; justify-content: flex-start; }

.nv-stack-head { display: flex; flex-direction: column; gap: 24px; flex: 0 0 auto; width: calc(18cqw - 44px); }
.nv-stack-head h3 { font-size: var(--nv-fs-card); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; hyphens: none; color: rgb(200,228,255); margin: 0; }
.nv-stack-card-3 .nv-stack-head h3 { color: rgb(6,10,9); text-wrap: balance; }
.nv-stack-card-4 h3 { font-size: var(--nv-fs-card); font-weight: 800; line-height: 1.25; color: rgb(6,10,9); margin: 0; text-transform: uppercase; white-space: nowrap; }
.nv-stack-card-4 p { font-size: var(--nv-fs-body); line-height: 1.55; color: rgb(6,10,9); margin: 0; text-wrap: pretty; }

.nv-stack-desc { margin-top: 52px; }
.nv-stack-desc-grid { min-width: 0; display: grid; align-content: start; font-size: var(--nv-fs-body); line-height: 1.5; color: rgb(244,247,246); }
.nv-stack-desc-1 { flex: 0 1 680px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.nv-stack-desc-2 { flex: 1 1 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nv-stack-desc-3 { flex: 1 1 0; min-width: 0; font-size: var(--nv-fs-body); line-height: 1.55; color: rgb(6,10,9); margin-left: 20px; text-wrap: pretty; }
.nv-stack-col { display: flex; flex-direction: column; gap: 32px; }
.nv-stack-item { display: flex; flex-direction: column; gap: 12px; }
.nv-stack-item strong { font-weight: 700; color: rgb(200,228,255); }
.nv-stack-item p { margin: 0; line-height: inherit; text-wrap: pretty; }
.nv-stack-item ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }

@media (min-width: 1150px) {
  /* Título + tarjetas: un solo grupo, centrado entre el botón del menú (67 px) y el borde inferior.
     Si no cabe, la tarjeta se acorta hasta 420 px (su texto no cabe en menos). 68 px = título + su separación. */
  .nv-stack {
    --nv-stack-h: clamp(420px, calc(100vh - 193px), 460px);
    --nv-stack-gap: max(22px, calc((100vh - 67px - 68px - var(--nv-stack-h)) / 2));
    --nv-stack-top: calc(67px + var(--nv-stack-gap) + 68px);
  }
  .nv-stack-card { top: var(--nv-stack-top); height: var(--nv-stack-h); }
  .nv-stack-card p, .nv-stack-card li { font-size: var(--nv-fs-body); line-height: 1.55; }
  .nv-stack-card-1 { margin-top: calc(-1 * var(--nv-stack-h)); }
  .nv-stack-title { top: calc(var(--nv-stack-top) - 124px); height: calc(124px + var(--nv-stack-h)); }
  .nv-stack-desc-1, .nv-stack-desc-2 { position: absolute; left: calc(18cqw + 32px); right: 32px; top: 84px; margin: 0; }
  /* La columna del título es angosta: la fuente se reduce lo necesario para que "transformación" (≈ 7.9 × la fuente) no se parta. */
  .nv-stack-card:not(.nv-stack-card-4) .nv-stack-head h3 { font-size: min(var(--nv-fs-card), calc((18cqw - 44px) / 8)); }
}
/* 1150–1259 px (laptops con zoom, ventanas medianas): columnas angostas, la lista de la tarjeta 2 no cabe.
   La tarjeta crece hasta 500 px si hay altura y el texto baja a 15 px. */
@media (min-width: 1150px) and (max-width: 1259px) {
  .nv-stack { --nv-stack-h: clamp(420px, calc(100vh - 193px), 500px); }
  .nv-stack-card p, .nv-stack-card li { font-size: 15px; line-height: 1.45; }
}
@media (max-width: 1149px) {
  .nv-stack-card:not(.nv-stack-card-4) { flex-direction: column; justify-content: flex-start; gap: 24px; }
  .nv-stack-card { height: auto; min-height: 0; padding-top: 64px; padding-bottom: 64px; justify-content: flex-start; }
  .nv-stack-card:not(.nv-stack-card-4) > .nv-stack-head { width: auto; }
  .nv-stack-card h3 { overflow-wrap: normal; hyphens: none; }
  .nv-stack-desc-1, .nv-stack-desc-2, .nv-stack-desc-3 { position: static; margin: 0; flex: 0 0 auto; width: 100%; max-width: none; }
}
@media (min-width: 901px) and (max-width: 1149px) {
  .nv-stack-card:not(.nv-stack-card-4) > .nv-stack-head h3 { white-space: nowrap; }
  .nv-stack-card { height: auto; min-height: 0; align-items: flex-start; position: relative; top: auto; margin-top: 0; margin-left: 0; }
  .nv-stack-title { position: relative; top: auto; height: auto; }
  .nv-stack-gap { height: 24px; }
  .nv-stack-spacer { height: 16px; }
}
@media (max-width: 900px) {
  .nv-stack-card { margin-left: 0; flex-direction: column; height: auto; min-height: 320px; margin-bottom: 0; box-shadow: 0 -12px 40px rgba(0,0,0,0.45); position: relative; top: auto; margin-top: 0; }
  .nv-stack-card-1 { box-shadow: 0 -12px 40px rgba(0,0,0,0.45); }
  .nv-stack-spacer { height: 16px; }
  .nv-stack-desc-grid { grid-template-columns: 1fr; font-size: var(--nv-fs-body); margin-left: 0; gap: 24px; }
  .nv-stack-gap { height: 24px; }
  .nv-stack-head { width: auto; }
  .nv-stack-card h3 { font-size: var(--nv-fs-card); }
  .nv-stack-title { position: relative; top: auto; height: auto; background: #060a09; }
}
