/* NAXIA Ops (/naxia-ops/) y NAXIA Growth (/naxia-growth/): estilos de las dos páginas de
   producto (rediseño del 29-10-2026, con /naxia-legal/ como patrón).

   Nada de una tarjeta redondeada tras otra: los servicios van en una rejilla con líneas
   finas, los temas en filas (título a la izquierda, texto a la derecha) y la llamada final
   sobre la seda (js/seda.js). Títulos en Outfit 300, texto en Inter, escala tipográfica
   común de la web (H1 hasta 3.25rem, H2 hasta 2.25rem).

   Movimiento con la escala de transitions.dev: entrar 250 ms, salir 350 ms, apariciones
   500 ms, siempre con la misma curva. Con prefers-reduced-motion no se mueve nada y el
   vídeo de la cabecera se queda quieto (script en línea de cada página). Todo se ve sin
   JavaScript: la única aparición es la de la cabecera, con CSS.

   Colores solo con las variables del tema (--c-*): funcionan en claro y en oscuro.
   El acento es el de toda la web (--c-indigo-400: azul acero en oscuro, tinta en claro), en Ops
   y en Growth; antes Growth iba en esmeralda y no casaba con el resto. */

:root {
  --np-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --np-rapido: 150ms;
  --np-entra: 250ms;
  --np-sale: 350ms;
  --np-aparece: 500ms;
  --np-acento: var(--c-indigo-400);
  --np-tinta: rgb(var(--c-white));
  --np-texto-2: rgb(var(--c-gray-300));
  --np-suave: rgb(var(--c-gray-400));
  --np-tenue: rgb(var(--c-gray-500));
  --np-linea: rgb(var(--c-white) / 0.1);
  --np-linea-fuerte: rgb(var(--c-white) / 0.2);
  --np-papel: rgb(var(--c-black));
  --np-papel-2: rgb(var(--c-superficie-1));
  --np-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --np-cuerpo: 'Inter', system-ui, sans-serif;
}

/* ---------- Base ---------- */
.np { font-family: var(--np-cuerpo); color: var(--np-tinta); }
.np-contenedor { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .np-contenedor { padding-inline: 1.5rem; } }

.np-seccion { position: relative; padding-block: clamp(4.5rem, 9vw, 7rem); background: var(--np-papel); border-top: 1px solid var(--np-linea); }
.np-seccion--2 { background: var(--np-papel-2); }
/* La primera sección sigue a la cabecera, que ya se funde con el fondo: sin línea y más cerca. */
.np-hero + .np-seccion { border-top: 0; padding-top: clamp(3rem, 6vw, 4.5rem); }

.np-h1, .np-h2, .np-servicio-titulo { font-family: var(--np-display); overflow-wrap: break-word; min-width: 0; color: var(--np-tinta); }
.np-h2 { font-weight: 300; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }

.np a:focus-visible, .np button:focus-visible, .np summary:focus-visible { outline: 2px solid rgb(var(--np-acento)); outline-offset: 3px; }

/* Botón principal: uno solo en toda la página, sin flecha pegada. */
.np-boton { display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 999px; padding: 0.85rem 1.6rem; font: 500 0.9375rem/1.25 var(--np-cuerpo); background: rgb(var(--c-white)); color: rgb(var(--c-black)); border: 1px solid rgb(var(--c-white) / 0.2); transition: transform var(--np-sale) var(--np-ease), background-color var(--np-sale) var(--np-ease); }
.np-boton:hover { transform: translateY(-1px); background: rgb(var(--c-white) / 0.88); transition-duration: var(--np-entra); }
.np-boton:active { transform: translateY(0) scale(0.98); transition-duration: var(--np-rapido); }

/* "Ver más" con flecha (receta Learn more hover): el asta crece y la punta avanza. */
.np-mas { display: inline-flex; align-items: center; gap: 0.45rem; color: rgb(var(--np-acento)); font-size: 0.875rem; font-weight: 500; }
.np-mas svg { width: 16px; height: 16px; flex: none; overflow: visible; }
.np-mas path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.np-punta { transition: transform var(--np-sale) var(--np-ease); }
.np-asta { transform-origin: 10px 8px; transform: scaleX(0); transition: transform var(--np-sale) var(--np-ease); }
.np-voz:hover .np-punta { transform: translateX(3px); transition-duration: var(--np-entra); }
.np-voz:hover .np-asta { transform: translateX(3px) scaleX(1); transition-duration: var(--np-entra); }

/* ---------- Cabecera de la página: vídeo de fondo (se queda), título y franja ---------- */
.np-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; background: var(--np-papel); padding-top: clamp(8rem, 15vw, 10.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1024px) { .np-hero { min-height: min(100svh, 56rem); } }
.np-hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; pointer-events: none; }
/* Velo: más denso a la izquierda, donde va el texto, y fundido al fondo de la página abajo. */
.np-hero-velo { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(var(--c-black) / 0.8) 0%, rgb(var(--c-black) / 0.5) 50%, rgb(var(--c-black) / 0.2) 100%),
  linear-gradient(180deg, rgb(var(--c-black) / 0.45) 0%, rgb(var(--c-black) / 0) 30%, rgb(var(--c-black) / 0) 60%, rgb(var(--c-black)) 100%); }
.np-hero > .np-contenedor { flex: 1; display: flex; flex-direction: column; }
.np-hero-texto { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 38rem; }

/* El H1 es el logotipo con el nombre de la línea al lado. */
.np-h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.3em; font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; }
.np-h1-logo { height: 2.1em; width: auto; opacity: 0.92; margin-left: -0.06em; }
.np-h1-nombre { line-height: 1; margin-bottom: 0.05em; }
.np-entrada { margin-top: 1.25rem; max-width: 30rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.6; font-weight: 300; color: var(--np-texto-2); text-wrap: pretty; }
.np-acciones { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Franja con las tres garantías, al pie de la cabecera: filas con líneas finas, sin mayúsculas. */
.np-franja { margin-top: clamp(3.5rem, 8vw, 5.5rem); display: grid; border-top: 1px solid var(--np-linea); }
.np-franja li { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 0; font-size: 0.875rem; color: var(--np-texto-2); }
.np-franja li + li { border-top: 1px solid var(--np-linea); }
.np-franja .material-symbols-outlined { font-size: 20px; color: rgb(var(--np-acento)); }
@media (min-width: 768px) {
  .np-franja { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .np-franja li { padding-block: 1.25rem 0.25rem; }
  .np-franja li + li { border-top: 0; border-left: 1px solid var(--np-linea); padding-left: 1.5rem; }
}

/* Entrada de la cabecera: el título primero y luego el resto, 80 ms entre cada bloque. */
@media (prefers-reduced-motion: no-preference) {
  .np-hero-texto > * { animation: np-sube var(--np-aparece) var(--np-ease) backwards; }
  .np-hero-texto > :nth-child(2) { animation-delay: 80ms; }
  .np-hero-texto > :nth-child(3) { animation-delay: 160ms; }
  .np-franja { animation: np-funde 700ms var(--np-ease) 240ms backwards; }
}
@keyframes np-sube { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } }
@keyframes np-funde { from { opacity: 0; } }

/* ---------- Servicios: rejilla con líneas finas, no tarjetas ---------- */
.np-rejilla { display: grid; border-top: 1px solid var(--np-linea); }
.np-servicio { display: flex; flex-direction: column; min-width: 0; padding: 2rem 0; border-bottom: 1px solid var(--np-linea); }
.np-servicio > .material-symbols-outlined, .np-voz-icono { font-size: 22px; line-height: 1; color: rgb(var(--np-acento)); }
.np-servicio-titulo { margin-top: 1.5rem; font-weight: 400; text-wrap: balance; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.3; letter-spacing: -0.015em; }
.np-servicio-texto { margin-top: 0.65rem; color: var(--np-suave); font-size: 0.9375rem; line-height: 1.65; }
.np-etiqueta { margin-top: auto; padding-top: 1.5rem; font-size: 0.8125rem; line-height: 1.5; color: rgb(var(--np-acento)); }
.np-etiqueta a { text-decoration: underline; text-decoration-color: rgb(var(--np-acento) / 0.35); text-underline-offset: 4px; transition: text-decoration-color var(--np-sale) var(--np-ease); }
.np-etiqueta a:hover { text-decoration-color: rgb(var(--np-acento)); transition-duration: var(--np-entra); }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .np-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-servicio:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--np-linea); }
  .np-servicio:nth-child(even) { padding-left: 2rem; }
}
@media (min-width: 1024px) {
  .np-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .np-servicio { padding: 2.25rem 1.75rem 2.25rem 0; }
  .np-servicio + .np-servicio { padding-left: 1.75rem; border-left: 1px solid var(--np-linea); }
}

/* De Excel al ERP: el dibujo pequeño en el sitio del icono. */
.np-transicion { display: flex; align-items: center; gap: 0.55rem; height: 22px; font-size: 0.75rem; color: var(--np-suave); }
.np-transicion-paso { display: inline-flex; align-items: center; gap: 0.3rem; }
.np-transicion .material-symbols-outlined { font-size: 20px; line-height: 1; }
.np-transicion-paso--destino { color: rgb(var(--np-acento)); }
.np-transicion-flecha.material-symbols-outlined { font-size: 16px; color: var(--np-tenue); }

/* Agentes de voz: fila entera que enlaza a /agentes-de-voz/. */
.np-voz { position: relative; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem 1rem; padding: 2rem 0; transition: background-color var(--np-sale) var(--np-ease); }
/* La línea de abajo, a la medida de la rejilla aunque el fondo del hover sobresalga. */
.np-voz::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--np-linea); }
.np-voz:hover { background: rgb(var(--np-acento) / 0.045); transition-duration: var(--np-entra); }
.np-voz-icono { padding-top: 0.1rem; }
.np-voz .np-servicio-titulo { margin-top: 0; transition: transform var(--np-sale) var(--np-ease); }
.np-voz-texto p { margin-top: 0.5rem; max-width: 46rem; color: var(--np-suave); font-size: 0.9375rem; line-height: 1.65; }
.np-voz .np-mas { grid-column: 2; justify-self: start; }
@media (min-width: 900px) {
  .np-voz { grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; margin-inline: -1rem; padding: 2.25rem 1rem; }
  .np-voz .np-mas { grid-column: 3; }
  .np-voz::after { left: 1rem; right: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .np-voz:hover .np-servicio-titulo { transform: translateX(6px); transition-duration: var(--np-entra); }
}

/* ---------- Contenido ampliado: entrada y temas en filas ---------- */
.np-intro { max-width: 46rem; }
.np-intro p { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.7; color: var(--np-texto-2); text-wrap: pretty; }
.np-intro p + p { margin-top: 1.25rem; }
.np-temas { margin-top: clamp(3.5rem, 7vw, 5rem); border-bottom: 1px solid var(--np-linea); }
.np-tema { display: grid; gap: 1rem; padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 1px solid var(--np-linea); }
.np-tema-texto p { max-width: 40rem; color: var(--np-suave); font-size: 0.9375rem; line-height: 1.75; }
.np-tema-texto p + p { margin-top: 1rem; }
.np-tema-texto strong { color: var(--np-tinta); font-weight: 500; }
@media (min-width: 640px) { .np-tema-texto p { font-size: 1rem; } }
@media (min-width: 1024px) {
  .np-tema, .np-dos { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
}

/* ---------- Preguntas frecuentes (receta Accordion, sobre <details>) ---------- */
.np-dos { display: grid; gap: 2rem; }
.np-acordeones { border-bottom: 1px solid var(--np-linea); }
.np-acordeon { border-top: 1px solid var(--np-linea); }
.np-acordeon > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.2rem 0; cursor: pointer; font-weight: 500; font-size: 0.9375rem; line-height: 1.5; color: var(--np-tinta); transition: color var(--np-entra) var(--np-ease); }
@media (min-width: 640px) { .np-acordeon > summary { font-size: 1rem; } }
.np-acordeon > summary::-webkit-details-marker { display: none; }
.np-acordeon > summary:hover { color: rgb(var(--np-acento)); }
.np-chevron { flex: none; width: 16px; height: 16px; color: var(--np-suave); transition: transform var(--np-entra) var(--np-ease); }
.np-chevron path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.np-acordeon[open] > summary .np-chevron { transform: scaleY(-1); }
.np-acordeon-cuerpo { padding-bottom: 1.4rem; max-width: 44rem; color: var(--np-suave); font-size: 0.9375rem; line-height: 1.75; }
@media (prefers-reduced-motion: no-preference) {
  .np-acordeon::details-content { opacity: 0; transform: translateY(-4px); filter: blur(2px); transition: opacity var(--np-entra) var(--np-ease), transform var(--np-entra) var(--np-ease), filter var(--np-entra) var(--np-ease), content-visibility var(--np-entra) allow-discrete; }
  .np-acordeon[open]::details-content { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Llamada final sobre la seda ----------
   El lienzo (z-index -1 dentro de .seda-zona) tapa este degradado, que solo se ve sin WebGL. */
.np-cierre { padding-block: clamp(4.5rem, 9vw, 7rem); border-top: 1px solid var(--np-linea); background: linear-gradient(140deg, rgb(var(--seda-b)) 0%, rgb(var(--seda-a)) 100%); }
.np-cierre-cuerpo { display: flex; justify-content: center; }
.np-cierre .np-boton { box-shadow: 0 1px 2px rgb(var(--c-black) / 0.12), 0 12px 32px -12px rgb(var(--c-black) / 0.45); }

@media (prefers-reduced-motion: reduce) {
  .np *, .np *::before, .np *::after { transition-duration: 0ms !important; animation: none !important; }
}
