/* ================= Interva ERP ================= */

/* ---------- Hero ---------- */
/* svh = alto visible real: en Chrome/Android descuenta la barra de direcciones (en escritorio es igual a vh). */
.nv-erp-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px 24px; }
.nv-erp-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.nv-erp-hero-overlay { position: absolute; inset: 0; z-index: 0; background: rgba(6,10,9,0.4); pointer-events: none; }
.nv-erp-hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.nv-erp-hero-content img { width: clamp(240px, 26vw, 380px); height: auto; display: block; }
.nv-erp-hero-content p { margin: 0; font-weight: 600; font-size: var(--nv-fs-card); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-heading); text-wrap: balance; }

/* ---------- ¿Qué es Interva ERP? ---------- */
.nv-qe { background: #FAFCFB; padding: 0 var(--nv-gutter) clamp(48px, 6vw, 96px); }
.nv-qe-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 72px; }
.nv-qe-grid { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.nv-qe-grid img { width: 100%; height: auto; display: block; }
.nv-qe-text { display: flex; flex-direction: column; gap: 24px; }
.nv-qe-text h2 { margin: 0; font-weight: 700; font-size: var(--nv-fs-title); letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; color: #293155; text-wrap: balance; }
.nv-qe-text h2 span { color: #73B3E6; }
.nv-qe-text p { margin: 0; font-size: var(--nv-fs-body); line-height: 1.6; color: #060a09; text-wrap: pretty; }
.nv-qe-text strong, .nv-sc-left strong { font-weight: 700; color: #293155; }
.nv-qe-spacer { height: 50vh; }
@media (max-width: 1150px) {
  .nv-qe-pin { position: relative; height: auto; padding: clamp(64px, 9vw, 128px) 0 0; }
  .nv-qe-spacer { height: 0; }
  .nv-qe-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1149px) {
  .nv-qe-grid { row-gap: 48px; }
  .nv-qe { padding-bottom: 40px; }
}

/* ---------- Nuestros módulos ---------- */
.nv-mod {
  /* Mínimo 340 px: en laptops bajas (≈ 560–625 px visibles) la lista y la imagen no caben en menos. */
  --nv-mod-h: clamp(340px, calc(100vh - 300px), 420px);
  --nv-mod-top: max(96px, calc((100vh - 92px - var(--nv-mod-h)) / 2 + 24px));
  background: #FAFCFB; padding: clamp(32px, 4vw, 56px) var(--nv-gutter) clamp(64px, 9vw, 128px);
}
.nv-erp-wrap { display: flow-root; margin-bottom: var(--nv-mod-h); }
.nv-erp-title { position: sticky; top: var(--nv-mod-top); z-index: 2; max-width: 1280px; margin: 0 auto; height: 92px; padding: 24px 0 0; font-weight: 700; font-size: var(--nv-fs-title); letter-spacing: 0.05em; line-height: var(--lh-tight); text-transform: uppercase; color: #73B3E6; text-align: center; text-wrap: balance; }
.nv-erp-stack { max-width: 1280px; margin: 0 auto calc(-1 * var(--nv-mod-h)); display: flex; flex-direction: column; gap: 40vh; }
.nv-erp-card {
  position: sticky; top: calc(var(--nv-mod-top) + 92px); height: var(--nv-mod-h);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 4vw, 56px) clamp(32px, 7vw, 104px); border-radius: 16px;
  background: linear-gradient(315deg, #060a09 0%, #060a09 45%, #293155 100%);
  box-shadow: 0 -4px 14px rgba(41,49,85,0.12);
  scroll-margin-top: 100px;
}
.nv-erp-card ~ .nv-erp-card { box-shadow: none; }
.nv-erp-text { display: flex; flex-direction: column; gap: 16px; }
.nv-erp-num { font-family: var(--font-mono); font-size: var(--nv-fs-body); letter-spacing: 0.08em; color: #73B3E6; }
.nv-erp-text h3 { margin: 0; font-weight: 700; font-size: var(--nv-fs-card); letter-spacing: 0.02em; text-transform: uppercase; color: #C8E4FF; white-space: nowrap; line-height: 1; }
.nv-erp-text ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.nv-erp-text li { display: flex; gap: 12px; align-items: baseline; font-size: var(--nv-fs-body); line-height: 1.45; color: #FAFCFB; }
.nv-erp-text li > span:first-child { font-family: var(--font-mono); font-size: var(--nv-fs-body); color: #73B3E6; flex: none; min-width: 28px; }
.nv-erp-text li > span:last-child { text-wrap: pretty; }
.nv-erp-nav { margin: 4px 0 0; line-height: 1; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: #73B3E6; }
.nv-erp-nav a { color: #73B3E6; text-decoration: none; }
.nv-erp-nav a:hover { color: #A8F3D0; }
.nv-erp-img { width: 100%; height: 100%; min-height: 0; align-self: stretch; border-radius: 12px; overflow: hidden; }
.nv-erp-img img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
@media (max-width: 900px) {
  .nv-erp-title { position: relative; top: auto; height: auto; padding-bottom: 24px; }
  .nv-erp-wrap, .nv-erp-stack { margin-bottom: 0; }
  .nv-erp-stack { gap: 24px; }
  .nv-erp-card { position: relative; top: auto; height: auto; grid-template-columns: minmax(0, 1fr); }
  .nv-erp-img { height: auto; aspect-ratio: 16 / 10; }
}

/* ---------- Tranquilidad ---------- */
.nv-erp-final { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; display: grid; place-items: center; background: #060a09; }
.nv-erp-final-bg { position: absolute; left: 0; right: 0; top: -30%; bottom: -30%; will-change: transform; }
.nv-erp-final-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nv-erp-final-overlay { position: absolute; inset: 0; background: rgba(6,10,9,0.45); pointer-events: none; }
.nv-erp-final p { position: relative; margin: 0; max-width: 760px; padding: 0 clamp(24px, 4vw, 56px); font-weight: 400; font-size: var(--nv-fs-title); letter-spacing: 0.05em; line-height: var(--lh-tight); color: #FAFCFB; text-align: center; text-wrap: balance; }
.nv-erp-final strong { font-weight: 700; color: #73B3E6; }
.nv-erp-final strong.nv-t-title { color: #C8E4FF; }
.nv-br-tq { display: none; }
/* Celular: más interlineado y menos tracking; tres líneas por sentido. */
@media (max-width: 899px) {
  .nv-erp-final p { line-height: 1.5; letter-spacing: 0.02em; }
  .nv-erp-final-bg img { object-position: 25% center; }
  /* Siempre dos líneas: "LA PLATAFORMA TE PERMITE" (≈ 16.3 × la fuente, en mayúsculas) / "GESTIONAR MÚLTIPLES". */
  .nv-plat .nv-plat-title .nv-plat-h { line-height: 1.4; letter-spacing: 0.03em; text-wrap: wrap; font-size: min(var(--nv-fs-title), calc((100vw - 2 * var(--nv-gutter)) / 16.6)); }
  .nv-plat-h span { white-space: nowrap; }
  .nv-br-tq { display: inline; }
}

/* ---------- Plataforma ---------- */
.nv-plat { position: relative; background: #FAFCFB; padding: 0 var(--nv-gutter) clamp(64px, 9vw, 128px); }
.nv-plat-title { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; z-index: 0; pointer-events: none; }
.nv-plat-h { margin: 0; max-width: 900px; font-weight: 700; font-size: var(--nv-fs-title); letter-spacing: 0.05em; line-height: var(--lh-tight); text-transform: uppercase; color: #233c72; text-align: center; text-wrap: balance; transform-origin: center; will-change: transform, opacity; transition: transform 180ms linear, opacity 180ms linear; }
.nv-plat-h span { color: #73B3E6; }
.nv-plat-grid { position: relative; z-index: 1; max-width: 1080px; margin: 60vh auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.nv-plat-card { display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 18px; border-radius: 16px; background: linear-gradient(160deg, #C8E4FF 0%, #C8E4FF 60%, #BED1F4 100%); box-shadow: 0 4px 14px rgba(41,49,85,0.12); }
.nv-plat-img { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; }
.nv-plat-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.nv-plat-edge { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 12px; padding: 2px; background: linear-gradient(135deg, rgba(142,147,208,0.7) 0%, rgba(168,176,224,0.5) 50%, rgba(200,228,255,0.6) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.nv-plat-card p { margin: 0 6px; font-weight: 700; font-size: var(--nv-fs-body); line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; justify-content: center; color: #293155; text-align: center; text-wrap: pretty; }
@media (max-width: 900px) { .nv-plat-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* ---------- Propiedades para el éxito ---------- */
.nv-prop { position: relative; background: radial-gradient(ellipse 60% 70% at 20% 0%, #293155 0%, rgba(41,49,85,0) 70%), radial-gradient(ellipse 60% 60% at 95% 100%, #293155 0%, rgba(41,49,85,0) 70%), #060a09; padding: clamp(48px, 6vw, 96px) var(--nv-gutter); }
.nv-prop-wrap { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 2fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.nv-prop-title { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.nv-prop-title svg { width: 38%; height: auto; align-self: flex-end; display: block; }
.nv-prop-title h2 { margin: 0; text-align: right; line-height: 1.25; color: #FAFCFB; }
.nv-prop-title .nv-prop-w1 { display: block; font-weight: 300; font-size: var(--nv-fs-title); letter-spacing: 0.01em; }
.nv-prop-w2 { display: flex; justify-content: flex-end; align-items: flex-start; gap: 0.5em; margin-top: 0.1em; }
.nv-prop-w2 > span:first-child { font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1; padding-top: 0.14em; }
.nv-prop-w2 > span:last-child { font-weight: 800; font-size: var(--nv-fs-title); line-height: 1; color: #73B3E6; }

.nv-prop-svg { display: block; width: 100%; height: auto; }
.nv-hex-shape { transition: fill 200ms cubic-bezier(.2,.8,.2,1); }
.nv-hex--A .nv-hex-shape { fill: url(#nvHexA); }
.nv-hex--B .nv-hex-shape { fill: url(#nvHexB); }
.nv-hex--C .nv-hex-shape { fill: url(#nvHexC); }
.nv-hex-line { stroke: #73B3E6; }
.nv-hex-head { fill: #73B3E6; }
.nv-hex text { font-family: var(--font-body); font-weight: 700; font-size: 31px; fill: #FAFCFB; }
.nv-hex:hover .nv-hex-shape { fill: url(#nvHexG); }
.nv-hex:hover .nv-hex-line { stroke: #A8F3D0; }
.nv-hex:hover .nv-hex-head { fill: #A8F3D0; }

.nv-prop-mob { display: none; flex-direction: column; gap: 32px; }
.nv-prop-mob h2 { margin: 0; text-align: center; line-height: 1.05; color: #FAFCFB; }
.nv-prop-mob .nv-prop-w1 { display: block; font-weight: 300; font-size: calc(var(--nv-fs-title) * 1.45); }
.nv-prop-w2m { font-weight: 700; font-size: var(--nv-fs-title); }
.nv-prop-w3m { font-weight: 800; font-size: calc(var(--nv-fs-title) * 1.45); color: #73B3E6; }
.nv-prop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.nv-hexbtn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; min-height: 44px; font-family: var(--font-body); }
.nv-hexbtn-shape { display: block; width: 88px; aspect-ratio: 126 / 143; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background 200ms cubic-bezier(.2,.8,.2,1); }
.nv-hexbtn.nv-hex--A .nv-hexbtn-shape { background: linear-gradient(135deg, #233c72, #73B3E6); }
.nv-hexbtn.nv-hex--B .nv-hexbtn-shape { background: linear-gradient(135deg, #293155, #8E93D0); }
.nv-hexbtn.nv-hex--C .nv-hexbtn-shape { background: linear-gradient(135deg, #C8E4FF, #73B3E6); }
.nv-hexbtn-label { font-weight: 700; font-size: var(--nv-fs-card); line-height: 1.3; color: #FAFCFB; text-align: center; text-wrap: balance; }
.nv-hexbtn:hover .nv-hexbtn-shape, .nv-hexbtn[aria-pressed="true"] .nv-hexbtn-shape { background: linear-gradient(135deg, #A8F3D0, #69CEAE); }
.nv-hexbtn:hover .nv-hexbtn-label, .nv-hexbtn[aria-pressed="true"] .nv-hexbtn-label { color: #A8F3D0; }

@media (min-width: 901px) {
  .nv-prop { height: 170vh; padding-top: 0; padding-bottom: 0; }
  .nv-prop-wrap { position: sticky; top: 0; height: 100vh; padding-top: 68px; align-content: center; }
}
@media (max-width: 900px) {
  .nv-prop-svg, .nv-prop-title { display: none; }
  .nv-prop-wrap { display: block; }
  .nv-prop-mob { display: flex; gap: 56px; }
  .nv-prop { padding-top: 96px; padding-bottom: 96px; }
}

/* ---------- ¿Por qué las empresas usan Interva ERP? ---------- */
.nv-sc { background: #FAFCFB; padding: clamp(64px, 9vw, 128px) var(--nv-gutter); }
.nv-sc-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.nv-sc-left { position: sticky; top: 140px; height: min(520px, calc(100vh - 200px)); padding: clamp(24px, 3vw, 48px) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.nv-sc-head { display: flex; flex-direction: column; gap: 16px; }
.nv-sc-eyebrow { font-family: var(--font-mono); font-size: var(--nv-fs-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #233c72; }
.nv-sc-head h2 { margin: 0; font-weight: 700; font-size: var(--nv-fs-title); letter-spacing: 0.05em; line-height: var(--lh-tight); text-transform: uppercase; color: #293155; text-wrap: balance; }
.nv-sc-head h2 span { color: #73B3E6; transition: filter 200ms cubic-bezier(.2,.8,.2,1); }
.nv-sc-head h2 span:hover { filter: brightness(1.1); }
.nv-sc-left p { margin: 0; max-width: 560px; font-size: var(--nv-fs-body); line-height: 1.6; color: #060a09; text-wrap: pretty; }
.nv-sc-stack { display: flex; flex-direction: column; gap: 40vh; }
.nv-sc-card { position: sticky; top: 140px; height: min(520px, calc(100vh - 200px)); padding: clamp(28px, 4vw, 56px); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; box-shadow: 0 -4px 14px rgba(41,49,85,0.12); }
.nv-sc-card > div { display: flex; flex-direction: column; gap: 16px; }
.nv-sc-num { font-weight: 500; font-size: clamp(28px, 3vw, 44px); line-height: 1; color: inherit; }
.nv-sc-card h3 { margin: 0; font-weight: 700; font-size: var(--nv-fs-card); line-height: 1.15; text-wrap: pretty; color: inherit; }
.nv-sc-card p { margin: 0; font-size: var(--nv-fs-body); line-height: 1.6; text-wrap: pretty; color: inherit; }
.nv-sc-spacer { height: 1px; }
@media (max-width: 900px) {
  .nv-sc-grid { grid-template-columns: minmax(0, 1fr); }
  .nv-sc-left, .nv-sc-card { position: relative; top: auto; height: auto; }
  .nv-sc-card { min-height: 360px; }
  .nv-sc-stack { gap: 24px; }
  .nv-sc-spacer { display: none; }
}

/* ---------- Ajustes solo celular: "¿Por qué las empresas usan Interva ERP?" ---------- */
@media (max-width: 899px) {
  .nv-sc .nv-sc-head h2 { line-height: 1.35; letter-spacing: 0.03em; }
  /* Título y texto llegan al margen derecho: título a ancho completo y texto justificado con división silábica. */
  .nv-sc .nv-sc-card h3 { line-height: 1.35; text-wrap: wrap; }
  .nv-sc .nv-sc-card p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: wrap; }
  .nv-sc .nv-sc-card { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 389px) {
  .nv-sc .nv-sc-card { padding-left: 16px; padding-right: 16px; }
}
