/* Nexhub · landing. Paleta e Inter según Brandbook v1.1. */
@font-face {
  font-family: "Inter";
  src: url("/fuentes/inter-latin-wght.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul-profundo: #081d2e;
  --azul-profundo-2: #0c2740;
  --azul-tech: #0d6efd;
  --azul-tech-texto: #0a5ad1;
  --verde: #00c896;
  --azul-claro: #e6f4ff;
  --gris: #94a3b8;
  --gris-texto: #4a5a6e;
  --blanco: #ffffff;
  --linea: #d7e3ef;
  --linea-oscura: rgba(230, 244, 255, .14);
  --degradado: linear-gradient(100deg, var(--azul-tech) 0%, #1196d8 50%, var(--verde) 100%);
  --fuente: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1180px;
  --barra: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--barra); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blanco); color: var(--azul-profundo);
  font-family: var(--fuente); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }

.contenedor { width: min(var(--ancho), 100% - 2 * max(20px, 4vw)); margin-inline: auto; }
.antetitulo {
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul-tech-texto); margin-bottom: 16px;
}

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; }
.marca__simbolo { width: 40px; height: auto; }
.marca__nombre { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 16px; text-decoration: none; text-align: center;
  border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s;
}
.boton--acento { background: var(--verde); color: var(--azul-profundo); }
.boton--acento:hover { background: #2fd8ab; }
.boton--contorno { border-color: rgba(230, 244, 255, .35); color: var(--blanco); }
.boton--contorno:hover { border-color: var(--blanco); }
.boton--chico { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.boton--grande { min-height: 56px; padding: 16px 34px; font-size: 17px; }

/* Barra */
.barra {
  position: sticky; top: 0; z-index: 20;
  background: var(--azul-profundo); color: var(--blanco);
  border-bottom: 1px solid var(--linea-oscura);
}
.barra__fila { height: var(--barra); display: flex; align-items: center; gap: 32px; }
.barra__marca { text-decoration: none; margin-right: auto; }
.barra__nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.barra__nav a { color: rgba(230, 244, 255, .78); text-decoration: none; padding: 6px 0; }
.barra__nav a:hover { color: var(--blanco); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--azul-profundo); color: var(--blanco); }
.hero__rejilla { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero__contenido { padding-block: clamp(80px, 11vw, 140px) clamp(72px, 9vw, 112px); }
.hero__grafico { width: 100%; height: auto; }
.hero__visual { position: relative; }
.hero__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__visual--activo .hero__grafico { visibility: hidden; }
.hero__fases { display: none; position: absolute; left: 0; right: 0; bottom: -6px; justify-content: center; gap: 6px 22px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(230, 244, 255, .38); }
.hero__visual--activo .hero__fases { display: flex; }
.hero__fases li { display: flex; align-items: center; gap: 8px; transition: color .5s; }
.hero__fases li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background-color .5s, box-shadow .5s; }
.hero__fases li.activa { color: var(--blanco); }
.hero__fases li.activa::before { background: var(--verde); box-shadow: 0 0 0 4px rgba(0, 200, 150, .18); }
.grafico__panel rect { fill: rgba(230, 244, 255, .03); stroke: rgba(230, 244, 255, .14); }
.grafico__panel path, .grafico__ejes path { fill: none; stroke: rgba(230, 244, 255, .08); }
.grafico__serie { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; animation: trazar 2.2s ease-out both; }
.grafico__punto { fill: var(--verde); }
.grafico__red path { fill: none; stroke: rgba(230, 244, 255, .22); }
.grafico__red circle { fill: var(--azul-claro); fill-opacity: .7; }
.grafico__pulso { fill: none; stroke: var(--verde); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulso 3.2s ease-out infinite; }
@keyframes trazar { from { stroke-dashoffset: 420; } }
@keyframes pulso { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hero .antetitulo { color: var(--verde); }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; max-width: 15ch; margin-bottom: 28px; }
.hero__texto { font-size: clamp(18px, 1.8vw, 21px); color: rgba(230, 244, 255, .82); max-width: 46ch; margin-bottom: 40px; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px; }

/* Facetas angulares, derivadas del trazo de la N */
.hero__facetas { position: absolute; inset: 0; pointer-events: none; }
.hero__facetas span { position: absolute; top: -10%; height: 130%; right: -6%; width: 14%; background: var(--degradado); opacity: .14; transform: skewX(-28deg); }

.concepto { position: relative; z-index: 1; border-top: 1px solid var(--linea-oscura); }
.concepto__lista { display: grid; grid-template-columns: repeat(3, 1fr); }
.concepto__lista li { padding: 26px 0; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.concepto__lista li + li { padding-left: 32px; border-left: 1px solid var(--linea-oscura); }
.concepto__lista li::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--degradado); flex: none; }

/* Secciones */
.seccion { padding-block: clamp(80px, 10vw, 128px); }
.seccion--superficie { background: var(--azul-claro); }
.seccion h2 { margin-bottom: 48px; }

/* Qué resolvemos */
.problemas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linea); }
.problema { padding: 32px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.problema + .problema { padding-left: 28px; border-left: 1px solid var(--linea); }
.problema__icono { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--azul-claro); fill: none; stroke: var(--azul-tech-texto); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.problema h3 { font-size: 19px; }
.problema p { color: var(--gris-texto); font-size: 16px; }

/* Servicios: filas, no tarjetas */
.servicios { border-top: 1px solid #c5d9ec; }
.servicio {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 32px;
  padding-block: 30px; border-bottom: 1px solid #c5d9ec; align-items: baseline;
}
.servicio__num { font-size: 15px; font-weight: 600; color: var(--azul-tech-texto); font-variant-numeric: tabular-nums; }
.servicio h3 { font-size: 21px; }
.servicio p { color: var(--gris-texto); }

/* Proceso */
.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
.etapa { position: relative; padding: 28px 24px 30px; border-radius: 12px; background: var(--blanco); border: 1px solid var(--linea); }
.etapa:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -15px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--azul-tech); border-right: 2px solid var(--azul-tech); transform: translateY(-50%) rotate(45deg);
}
.etapa__paso { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-tech-texto); margin-bottom: 12px; }
.etapa h3 { margin-bottom: 8px; }
.etapa p { color: var(--gris-texto); font-size: 16px; }
.etapa:last-child { background: var(--azul-profundo); color: var(--blanco); border-color: var(--azul-profundo); }
.etapa:last-child .etapa__paso { color: var(--verde); }
.etapa:last-child p { color: rgba(230, 244, 255, .8); }
.respaldo { margin-top: 40px; padding: 26px 30px; border-radius: 12px; background: var(--azul-claro); font-size: 18px; line-height: 1.6; max-width: 900px; border-left: 4px solid; border-image: var(--degradado) 1; }

/* Contacto */
.contacto { position: relative; overflow: hidden; background: var(--azul-profundo); color: var(--blanco); text-align: center; }
.contacto::before, .contacto::after { content: ""; position: absolute; top: -20%; height: 140%; width: 12%; background: var(--degradado); }
.contacto::before { left: -3%; opacity: .2; transform: skewX(28deg); }
.contacto::after { right: -3%; opacity: .2; transform: skewX(-28deg); }
.contacto__caja { position: relative; z-index: 1; padding-block: clamp(88px, 11vw, 136px); max-width: 760px; }
.contacto h2 { margin: 0 auto 20px; font-size: clamp(32px, 4.4vw, 52px); max-width: 18ch; }
.contacto p { color: rgba(230, 244, 255, .82); font-size: 19px; max-width: 52ch; margin: 0 auto 40px; }
.contacto__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Página 404 */
.pagina-error { min-height: 100vh; display: grid; align-items: center; }

/* Pie */
.pie { background: #06141f; color: var(--gris); font-size: 14px; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.pie a { color: var(--gris); }
.marca--pie .marca__nombre { color: var(--blanco); font-size: 18px; }
.marca--pie .marca__simbolo { width: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
  .grafico__serie, .grafico__pulso { animation: none; }
}

@media (max-width: 960px) {
  .hero__rejilla { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { max-width: 560px; margin-bottom: 40px; }
  .problemas { grid-template-columns: 1fr 1fr; }
  .problema:nth-child(3) { padding-left: 0; border-left: 0; }
  .problema:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .servicio { grid-template-columns: 48px minmax(0, 1fr); }
  .servicio p { grid-column: 2; }
  .etapas { grid-template-columns: 1fr 1fr; }
  .etapa::after { display: none; }
}

@media (max-width: 760px) {
  .barra__nav { display: none; }
  .concepto__lista { grid-template-columns: 1fr; }
  .concepto__lista li { padding: 16px 0; }
  .concepto__lista li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--linea-oscura); }
  .hero__facetas { opacity: .6; }
}

@media (max-width: 520px) {
  .hero__visual { display: none; }
  .problemas { grid-template-columns: 1fr; }
  .problema, .problema + .problema { padding: 24px 0 20px; border-left: 0; }
  .problema + .problema { border-top: 1px solid var(--linea); }
  .respaldo { padding: 22px; font-size: 17px; }
  body { font-size: 16px; }
  .marca__nombre { font-size: 20px; }
  .marca__simbolo { width: 34px; }
  .acciones .boton { flex: 1 1 100%; }
  .servicio { grid-template-columns: 1fr; padding-block: 24px; }
  .servicio p { grid-column: auto; }
  .etapas { grid-template-columns: 1fr; }
  .contacto__acciones .boton { width: 100%; }
}
