/* =========================================================
   Novagentis · Home — Platinum Tech (Manual de Marca v5.4)
   Mobile-first.
   ========================================================= */

:root {
  /* Paleta oficial + auxiliares (ficha Platinum Tech v5.4) */
  --novagentis-midnight: #0B1526;
  --novagentis-ice: #F4F8FC;
  --novagentis-steel: #68788C;
  --novagentis-silver: #C2CCD6;
  --novagentis-white: #FFFFFF;
  --novagentis-text-dark: #344153;

  /* Estados de interfaz — PENDIENTE DE VALIDAR POR MARCA.
     La ficha no define colores de error/éxito; se usan tonos sobrios con contraste AA. */
  --state-error: #B42318;
  --state-error-bg: #FEF3F2;
  --state-success: #1E7A46;

  /* Acento azul cobalto — Aprobado: Paleta Platinum Tech v5.5, sección 7 (acento de interfaz web).
     Uso: complemento del titular del hero y botones. Contraste con blanco 8,3:1 (AAA). */
  --accent-cobalt: #1F4E8C;
  --accent-cobalt-hover: #173D6E;
  --accent-cobalt-tint: #E8EEF6;

  /* Derivados técnicos (no son colores nuevos de marca: mezclas de la paleta) */
  --midnight-hover: #1C2A40;
  --line: var(--novagentis-silver);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 20px;
  /* Relleno vertical de cada sección (el espacio entre contenidos es el doble).
     --section-y-edge: un poco más de aire en los extremos (salida del hero e invitación final). */
  --section-y: 56px;
  --section-y-edge: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 80px; --section-y-edge: 96px; --header-h: 76px; }
}
@media (min-width: 1200px) {
  :root { --section-y: 96px; --section-y-edge: 120px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--novagentis-white);
  color: var(--novagentis-text-dark);
  font-family: var(--font-body);
  font-size: 1rem;           /* 16 px mínimo */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--novagentis-midnight); color: var(--novagentis-white);
  padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Foco visible y consistente */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--novagentis-midnight);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible { outline-color: var(--novagentis-white); }

/* ---------- Tipografía ---------- */
.display, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--novagentis-midnight);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.6rem); line-height: 1.14; }
.h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.6rem); line-height: 1.2; }
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--novagentis-midnight);
}
.eyebrow {
  font-size: 0.8125rem;           /* etiqueta en mayúsculas; acompaña texto ≥16 px */
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--novagentis-steel);
  margin-bottom: 18px;
}
/* Etiqueta pequeña sobre el título de cada sección (nombres de sección del copy) */
.section-label { margin-bottom: 14px; }
.section-label::before {
  content: ""; display: inline-block; width: 22px; height: 1.5px; margin-right: 10px;
  vertical-align: middle; background: currentColor; opacity: .7;
}
.section--dark .section-label { color: var(--novagentis-silver); }
.eyebrow--plain { text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }
/* Celular: ningún texto por debajo de 16 px (requisito de accesibilidad).
   En las etiquetas en mayúsculas se reduce el espaciado entre letras para compensar el tamaño. */
@media (max-width: 767px) {
  .eyebrow:not(.eyebrow--plain) { font-size: 1rem; letter-spacing: 0.07em; }
}
.lead { font-size: 1.0625rem; line-height: 1.65; max-width: 38em; }
@media (min-width: 768px) { .lead { font-size: 1.1875rem; } }
.section-intro { font-size: 1.0625rem; max-width: 34em; margin-top: 16px; } /* ~60–65 caracteres por línea */
.support { font-size: 1rem; color: var(--novagentis-steel); margin-top: 14px; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--accent-cobalt);
  --btn-fg: var(--novagentis-white);
  --btn-bd: var(--accent-cobalt);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 21, 38, .12), 0 4px 14px -6px rgba(11, 21, 38, .35);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-cobalt-hover); --btn-bd: var(--accent-cobalt-hover); transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(11, 21, 38, .14), 0 10px 22px -10px rgba(31, 78, 140, .55); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(11, 21, 38, .2); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--accent-cobalt); --btn-bd: var(--accent-cobalt);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--accent-cobalt-tint); --btn-fg: var(--accent-cobalt-hover); --btn-bd: var(--accent-cobalt-hover); box-shadow: none; }
/* Sobre la franja azul medianoche: botón blanco con texto cobalto */
.btn--light {
  --btn-bg: var(--novagentis-white); --btn-fg: var(--accent-cobalt); --btn-bd: var(--novagentis-white);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .6);
}
.btn--light:hover { --btn-bg: var(--accent-cobalt-tint); --btn-fg: var(--accent-cobalt-hover); --btn-bd: var(--accent-cobalt-tint); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: .85; transform: none; }

/* Enlaces con flecha */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--novagentis-midnight); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-arrow span:first-child { border-bottom: 1px solid var(--novagentis-silver); transition: border-color .2s var(--ease); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
/* Enlaces a páginas que aún no existen: ocultos hasta tenerlas */
.link-arrow[data-pending][hidden] { display: none; }
.link-arrow:hover span:first-child { border-color: var(--novagentis-midnight); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Logo (recortes del logotipo maestro, sin alterar colores) ----------
   Imagen fuente cuadrada. Recorte de símbolo y de logotipo tipográfico vía overflow. */
.logo-crop { display: block; position: relative; overflow: hidden; flex: none; }
.logo-crop img { position: absolute; max-width: none; mix-blend-mode: multiply; }
/* Símbolo: x 355–910, y 330–725 de 1254 px */
.logo-crop--mark { --h: 34px; height: var(--h); width: calc(var(--h) * 555 / 395); }
.logo-crop--mark img { width: calc(var(--h) * 1254 / 395); left: calc(var(--h) * -355 / 395); top: calc(var(--h) * -330 / 395); }
/* Logotipo tipográfico: x 128–1128, y 760–940 */
.logo-crop--word { --h: 22px; height: var(--h); width: calc(var(--h) * 1000 / 180); }
.logo-crop--word img { width: calc(var(--h) * 1254 / 180); left: calc(var(--h) * -128 / 180); top: calc(var(--h) * -760 / 180); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--novagentis-white);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--novagentis-silver); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; border-radius: 8px; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 12px; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.menu-toggle:hover { background: var(--novagentis-ice); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--novagentis-midnight);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Navegación móvil: panel desplegable */
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--novagentis-white);
  border-bottom: 1px solid var(--novagentis-silver);
  padding: 8px var(--gutter) 24px;
  box-shadow: 0 24px 40px -24px rgba(11, 21, 38, .25);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-list a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 1.125rem; font-weight: 500; color: var(--novagentis-midnight); text-decoration: none;
  border-bottom: 1px solid var(--novagentis-ice);
}
.nav-list a:hover { color: var(--novagentis-steel); }
.nav-actions { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.nav-actions .btn { width: 100%; min-height: 52px; font-size: 1rem; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; color: var(--novagentis-silver); }
.lang-btn {
  min-width: 44px; min-height: 44px; padding: 0 8px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 0.9375rem; color: var(--novagentis-steel);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-btn:hover { color: var(--novagentis-midnight); background: var(--novagentis-ice); }
.lang-btn[aria-pressed="true"] { color: var(--novagentis-midnight); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 28px;
    max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a {
    min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
    font-size: 0.9375rem; color: var(--novagentis-text-dark); position: relative;
  }
  .nav-list a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px;
    background: var(--novagentis-midnight); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list a:hover { color: var(--novagentis-midnight); }
  .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--novagentis-midnight); }
  .nav-actions { flex-direction: row; align-items: center; padding: 0; gap: 16px; }
  .nav-actions .btn { width: auto; min-height: 44px; font-size: 0.9375rem; white-space: nowrap; }
}
/* Escritorio angosto: compactar el menú para que el CTA no se parta */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav { gap: 16px; }
  .nav-list { gap: 0; }
  .nav-list a { padding: 0 9px; }
  .nav-list a::after { left: 9px; right: 9px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding-inline: 16px; font-size: 0.875rem; }
  .lang-btn { min-width: 40px; padding: 0 6px; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 var(--section-y-edge); overflow: hidden; }
/* Fondo azul muy suave, sin bordes: se funde con el blanco de la sección siguiente */
.hero {
  background:
    linear-gradient(180deg, transparent 62%, #FFFFFF 100%),
    radial-gradient(70% 85% at 100% 0%, rgba(147, 190, 240, .42), transparent 70%),
    radial-gradient(55% 60% at 0% 100%, rgba(178, 210, 247, .30), transparent 72%),
    linear-gradient(165deg, #FFFFFF 0%, #F3F8FE 100%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy .lead { margin-top: 20px; }
/* Titular en dos niveles: frase principal + complemento (mismo copy aprobado) */
.hero-title__main, .hero-title__sub { display: block; }
.hero-title__main { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem); line-height: 1.08; }
.hero-title__sub {
  margin-top: 10px; font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.3;
  color: var(--accent-cobalt);
}
.hero-actions { margin-top: 32px; }
/* Señales de confianza bajo el CTA del hero */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--novagentis-text-dark); }
@media (min-width: 1024px) { .trust { gap: 8px 16px; } .trust li { font-size: .9375rem; } }
.trust svg {
  flex: none; width: 18px; height: 18px; padding: 5px; box-sizing: content-box; border-radius: 50%;
  background: var(--novagentis-ice); border: 1px solid var(--novagentis-silver);
  fill: none; stroke: var(--novagentis-midnight); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hero-actions .btn { width: 100%; }
@media (min-width: 560px) { .hero-actions .btn { width: auto; } }

@media (min-width: 1024px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
#contacto { padding: var(--section-y-edge) 0; }
.section--ice { background: var(--novagentis-ice); }
/* Transiciones más suaves: las secciones celestes entran con un leve degradado desde el blanco.
   Cuando la sección siguiente es blanca (Beneficios, Soluciones), también salen con degradado. */
.section--ice {
  background: linear-gradient(180deg, var(--novagentis-white) 0, var(--novagentis-ice) 140px);
}
#soluciones.section--ice {
  background: linear-gradient(180deg,
    var(--novagentis-white) 0, var(--novagentis-ice) 140px,
    var(--novagentis-ice) calc(100% - 140px), var(--novagentis-white) 100%);
}
.section--dark { background: var(--novagentis-midnight); color: var(--novagentis-silver); }
.section--dark .h2 { color: var(--novagentis-white); }
.section--dark .section-intro { color: var(--novagentis-silver); }
.section--dark .support { color: var(--novagentis-silver); }
.section-head { margin-bottom: 40px; max-width: 760px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }
.section-head--split { max-width: none; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 900px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .section-head--split .h2 { max-width: 640px; }
}

.grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.icon { width: 32px; height: 32px; fill: none; stroke: var(--novagentis-midnight); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

/* Beneficios con más presencia: ícono en recuadro medianoche, línea superior de acento y elevación al pasar */
/* Ícono en círculo doble (eco de la órbita del logo): círculo blanco con borde plata
   dentro de un anillo blanco azulado. Solo colores de la paleta oficial. */

/* Tarjetas de servicios */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px 22px; border: 1px solid var(--novagentis-silver); border-radius: var(--radius);
  background: var(--novagentis-white);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (min-width: 768px) { .card { padding: 36px 32px 28px; } }
.card:hover, .card:focus-within {
  border-color: var(--novagentis-midnight); transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(11, 21, 38, .45);
}
.card-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--novagentis-steel);
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--novagentis-silver);
}
/* Tarjetas con imagen arriba (estilo 10APEX) */
.card--media { overflow: hidden; }
.card-media {
  margin: -28px -24px 24px; aspect-ratio: 3 / 2; overflow: hidden;
  background: linear-gradient(180deg, var(--accent-cobalt-tint), var(--novagentis-ice));
  border-bottom: 1px solid var(--novagentis-silver);
}
@media (min-width: 768px) { .card-media { margin: -36px -32px 28px; } }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-title { font-size: 1.25rem; }
.card p { margin-top: 12px; flex: 1; }
.card-link { margin-top: 24px; align-self: flex-start; }
/* Toda la tarjeta clicable sin romper la semántica */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--novagentis-midnight); outline-offset: 3px; }

/* Soluciones integrales: esquema */
.solutions-grid { display: grid; gap: 8px; }
.solutions-grid .section-head .link-arrow { margin-top: 24px; }
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .solutions-grid .section-head { margin-bottom: 0; } }
.solutions-grid .section-head .link-arrow { margin-top: 20px; }

/* Diagrama de solución integral: centro y cuatro componentes en cruz */
@media (min-width: 1024px) { .solutions-grid { grid-template-columns: 0.82fr 1.18fr; gap: 48px; } }
.solution-diagram {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". a ." "b core c" ". d .";
  gap: 8px; margin: 24px 0 0; padding: 10px; list-style: none; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--novagentis-white), var(--accent-cobalt-tint));
}
.dia-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; padding: 10px 4px; border-radius: var(--radius); background: var(--novagentis-white);
  box-shadow: 0 14px 28px -18px rgba(31, 78, 140, .45); color: var(--novagentis-midnight);
  font-weight: 600; font-size: .8125rem; line-height: 1.3; text-align: center; overflow-wrap: anywhere;
}
.dia-node svg { width: 46px; height: 46px; filter: drop-shadow(0 6px 6px rgba(31, 78, 140, .28)); }
.dia-a { grid-area: a; } .dia-b { grid-area: b; } .dia-c { grid-area: c; } .dia-d { grid-area: d; }
.dia-core { grid-area: core; background: var(--accent-cobalt); color: var(--novagentis-white); }
@media (min-width: 600px) { .solution-diagram { gap: 12px; padding: 24px; } .dia-node { min-height: 128px; padding: 12px; font-size: 1rem; } }
@media (min-width: 1024px) { .solution-diagram { margin-top: 0; } }
.stack-list { display: flex; flex-direction: column; align-items: stretch; }
.stack-node {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--novagentis-silver); border-radius: var(--radius-sm);
  background: var(--novagentis-white);
  font-weight: 600; font-size: 1.0625rem; color: var(--novagentis-midnight);
}
.stack-num { font-family: var(--font-display); font-weight: 700; color: var(--novagentis-steel); font-size: 1rem; min-width: 24px; }
.stack-plus {
  align-self: center; position: relative;
  display: grid; place-items: center; width: 32px; height: 40px;
  font-size: 1.25rem; color: var(--novagentis-steel);
}
.stack-plus::before, .stack-plus::after { content: ""; position: absolute; left: 50%; width: 1px; height: 8px; background: var(--novagentis-silver); }
.stack-plus::before { top: 0; } .stack-plus::after { bottom: 0; }
.stack-node:last-child { background: var(--novagentis-midnight); border-color: var(--novagentis-midnight); color: var(--novagentis-white); }
.stack-node:last-child .stack-num { color: var(--novagentis-silver); }

/* Metodología — diagrama de flujo: nodos circulares unidos por flechas y retorno 06 → 01 */
.flow { --gap: 32px; position: relative; padding: 0 0 38px 26px; }
.flow-track { display: flex; flex-direction: column; gap: var(--gap); }
.flow-node { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 18px; align-content: start; min-height: 76px; }
.flow-icon {
  grid-row: span 3; position: relative; z-index: 1;
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--novagentis-silver); background: var(--novagentis-white);
  transition: background-color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* Iconos a color: el círculo se mantiene claro en todos los estados */
.flow-icon::before { content: ""; width: 70%; height: 70%; background: center / contain no-repeat; }
.flow-icon--diagnosticar::before { background-image: url("assets/metodo-diagnosticar.webp"); }
.flow-icon--priorizar::before { background-image: url("assets/metodo-priorizar.webp"); }
.flow-icon--disenar::before { background-image: url("assets/metodo-disenar.webp"); }
.flow-icon--implementar::before { background-image: url("assets/metodo-implementar.webp"); }
.flow-icon--medir::before { background-image: url("assets/metodo-medir.webp"); }
.flow-icon--optimizar::before { background-image: url("assets/metodo-optimizar.webp"); }
.flow-num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--novagentis-steel); line-height: 1.3; }
.flow-title { margin: 2px 0 0; font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--novagentis-midnight); }
.flow-desc { margin-top: 4px; font-size: 1rem; line-height: 1.5; color: var(--novagentis-text-dark); }

/* Estados: recorrido y paso activo */
.flow-node.is-done .flow-icon { border-color: var(--accent-cobalt); }
.flow-node.is-active .flow-icon, .flow-node:hover .flow-icon {
  background: var(--accent-cobalt-tint); border-color: var(--accent-cobalt);
  box-shadow: 0 0 0 6px var(--novagentis-white), 0 0 0 9px var(--accent-cobalt), 0 18px 28px -12px rgba(31, 78, 140, .55);
}

/* Conectores con flecha (móvil y tablet: verticales) */
.flow-link {
  position: absolute; left: 37px; top: 84px; bottom: calc(8px - var(--gap)); width: 2px;
  background: var(--novagentis-steel); transition: background-color .45s var(--ease);
}
.flow-link::after {
  content: ""; position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px;
  border-right: 2px solid var(--novagentis-steel); border-bottom: 2px solid var(--novagentis-steel);
  transform: rotate(45deg); transition: border-color .45s var(--ease);
}
.flow-node.is-done .flow-link { background: var(--accent-cobalt); }
.flow-node.is-done .flow-link::after { border-color: var(--accent-cobalt); }
.flow-pulse { position: absolute; left: -2px; top: 0; width: 6px; height: 35%; border-radius: 6px; background: var(--accent-cobalt); opacity: 0; }
.flow-link.is-flowing .flow-pulse { animation: flow-v .9s var(--ease) forwards; }
@keyframes flow-v { 0% { top: 0; opacity: 1; } 100% { top: 65%; opacity: 0; } }

/* Retorno 06 → 01 (móvil y tablet: por el margen izquierdo) */
.flow-node:last-child::after {
  content: ""; position: absolute; left: 37px; top: 84px; bottom: -30px; border-left: 2px dashed var(--novagentis-steel);
}
.flow-return {
  position: absolute; left: 4px; top: 37px; bottom: 7px; width: 61px; pointer-events: none;
  border-left: 2px dashed var(--novagentis-steel); border-bottom: 2px dashed var(--novagentis-steel);
  border-radius: 0 0 0 14px;
}
.flow-return::before { content: ""; position: absolute; left: -2px; top: 0; width: 18px; border-top: 2px dashed var(--novagentis-steel); }
.flow-return::after {
  content: ""; position: absolute; left: 10px; top: -3px; width: 7px; height: 7px;
  border-top: 2px solid var(--novagentis-steel); border-right: 2px solid var(--novagentis-steel); transform: rotate(45deg);
}
.flow-return-pulse { display: none; }

/* Escritorio: seis nodos en fila, flechas horizontales y retorno por debajo */
@media (min-width: 1100px) {
  .flow { --node: 120px; padding: 10px 0 56px; }
  .flow-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .flow-node { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 10px; }
  .flow-icon { width: var(--node); height: var(--node); margin-bottom: 22px; }
  .flow-title { font-size: 1.0625rem; }
  .flow-desc { font-size: 0.9375rem; }
  .flow-link {
    left: calc(50% + var(--node) / 2 + 10px); top: calc(var(--node) / 2 - 1px); bottom: auto;
    width: calc(100% - var(--node) - 20px); height: 2px;
  }
  .flow-link::after { left: auto; right: 0; bottom: -3px; transform: rotate(-45deg); }
  .flow-pulse { left: 0; top: -2px; width: 35%; height: 6px; }
  .flow-link.is-flowing .flow-pulse { animation-name: flow-h; }
  @keyframes flow-h { 0% { left: 0; opacity: 1; } 100% { left: 65%; opacity: 0; } }

  .flow-node:last-child::after { content: none; }
  .flow-return {
    left: calc(100% / 12); right: calc(100% / 12); top: auto; bottom: 0; width: auto; height: 38px;
    border-right: 2px dashed var(--novagentis-steel); border-radius: 0 0 16px 16px;
  }
  .flow-return::before { content: none; }
  .flow-return::after { left: -5px; top: -1px; transform: rotate(-45deg); }
  .flow-return-pulse { display: block; position: absolute; bottom: -4px; right: 0; width: 14%; height: 6px; border-radius: 6px; background: var(--novagentis-midnight); opacity: 0; }
  .flow-return.is-flowing .flow-return-pulse { animation: flow-back 1.2s var(--ease) forwards; }
  @keyframes flow-back { 0% { right: 0; opacity: 1; } 100% { right: 86%; opacity: 0; } }
}
.footnote { margin-top: 32px; color: var(--novagentis-steel); font-size: 1rem; }

/* ¿Por qué? */
/* Imagen de apoyo bajo el texto: comprensión del negocio antes de la tecnología */
.why-figure {
  margin: 28px 0 0; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--novagentis-silver);
  box-shadow: 0 24px 48px -32px rgba(11, 21, 38, .45);
}
.why-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
/* Tinte de marca sobre las fotos realistas: un poco menos de saturación y velo medianoche,
   para que conversen con los renders 3D del resto del sitio. */
.why-figure { position: relative; }
.why-figure img { filter: saturate(.88) contrast(1.02); transition: transform .6s var(--ease); }
.why-figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 78, 140, .06), rgba(11, 21, 38, .14));
}
.why-figure:hover img { transform: scale(1.03); }
/* Problemas y beneficios: título arriba; debajo, imagen y pares alineados */
.problems-grid > .why-figure { margin-bottom: 0; }
@media (min-width: 1024px) {
  .problems-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "texto ." "imagen pares"; gap: 32px 64px; align-items: center; }
  .problems-grid > .section-head { grid-area: texto; margin: 0; }
  .problems-grid > .why-figure { grid-area: imagen; margin: 0; }
  .problems-grid > .pairs { grid-area: pares; margin: 0; }
}

/* Experiencia en claro: datos y tarjetas */
.xp { background: #F3F6FA; }
.xp-data { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 28px 0 0; padding: 20px 0; list-style: none; border-block: 1px solid var(--novagentis-silver); }
.xp-data b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.1; color: var(--accent-cobalt); }
.xp-data li:last-child b { font-size: 1.375rem; line-height: 1.8; }
.xp-data span { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--novagentis-text-dark); }
.xp-cards { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.xp-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--novagentis-white); border: 1px solid #D3E1F4; border-radius: var(--radius); }
.xp-cards svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--accent-cobalt); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xp-cards .h3 { font-size: 1.0625rem; }
.xp-cards p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 900px) {
  .xp-data { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; padding: 28px 0; }
  .xp-data b { font-size: 3rem; }
  .xp-data li:last-child b { font-size: 1.75rem; line-height: 1.9; }
  .xp-cards { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
  .xp-cards li { padding: 24px; }
}

/* Servicios en celular: carrusel horizontal deslizable (se ve una tarjeta y parte de la siguiente) */
@media (max-width: 767px) {
  .cards {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
    scroll-padding-inline: var(--gutter); scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .cards .card { flex: 0 0 84%; scroll-snap-align: start; }
  .cards .card-media { aspect-ratio: 16 / 9; }
  .cards .card:hover, .cards .card:focus-within { transform: none; }
}

/* Botón fijo en celular (< 1024 px) */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--novagentis-silver);
  box-shadow: 0 -12px 28px -20px rgba(11, 21, 38, .45);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 50px; }
@media (max-width: 1023px) { .site-footer { padding-bottom: 96px; } }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* Invitación final: textura sutil y título más grande (cierre de la página) */
#contacto {
  background:
    radial-gradient(circle at 1px 1px, rgba(194, 204, 214, .08) 1px, transparent 0) 0 0 / 24px 24px,
    radial-gradient(700px 420px at 88% 12%, rgba(31, 78, 140, .5), transparent 70%),
    radial-gradient(520px 360px at 0% 100%, rgba(31, 78, 140, .25), transparent 70%),
    var(--novagentis-midnight);
}
@media (min-width: 1024px) {
  #final-title { font-size: clamp(2.25rem, 1.6rem + 1.2vw, 2.75rem); line-height: 1.14; }
}

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
.faq-list { border-top: 1px solid var(--novagentis-silver); }
/* Escritorio: título arriba a todo el ancho y preguntas en dos columnas (4 + 4);
   cada columna se abre por su cuenta, sin mover la otra. */
@media (min-width: 1024px) {
  .faq-grid .section-head { margin-bottom: 40px; }
  .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; border-top: 0; }
  .faq-col { border-top: 1px solid var(--novagentis-silver); }
}
.faq { border-bottom: 1px solid var(--novagentis-silver); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 4px;
  font-weight: 600; font-size: 1.0625rem; color: var(--novagentis-midnight);
  border-radius: 8px; transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--novagentis-silver);
  background:
    linear-gradient(var(--novagentis-midnight), var(--novagentis-midnight)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--novagentis-midnight), var(--novagentis-midnight)) center / 1.5px 10px no-repeat;
  transition: transform .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.faq summary:hover::after { border-color: var(--novagentis-midnight); background-color: var(--novagentis-white); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; max-width: 46em; }
.faq[open] .faq-a { animation: faq-in .3s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Invitación final + formulario */
.final-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .final-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; } .final-copy { position: sticky; top: calc(var(--header-h) + 40px); } }
.final-copy .btn { margin-top: 32px; width: 100%; }
@media (min-width: 560px) { .final-copy .btn { width: auto; } }
.alternatives { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 20px; }
.alternatives .sep { color: var(--novagentis-steel); }
.alt-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px;
  color: var(--novagentis-white); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(194, 204, 214, .5); text-underline-offset: 5px; border-radius: 6px;
  transition: text-decoration-color .2s var(--ease);
}
.alt-link:hover { text-decoration-color: var(--novagentis-white); }
.alt-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.form-card {
  background: var(--novagentis-white); color: var(--novagentis-text-dark);
  border-radius: calc(var(--radius) + 4px); padding: 28px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-card :focus-visible { outline-color: var(--novagentis-midnight); }
.form-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; font-size: 1.375rem; line-height: 1.3; }
.form-intro { margin-top: 10px; }
#contact-form { margin-top: 28px; display: grid; gap: 20px; }

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; color: var(--novagentis-midnight); font-size: 1rem; }
.req { font-weight: 400; color: var(--novagentis-steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--novagentis-steel); border-radius: var(--radius-sm);
  background: var(--novagentis-white); color: var(--novagentis-midnight); font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--novagentis-steel); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--novagentis-midnight); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--novagentis-midnight); box-shadow: 0 0 0 3px rgba(11, 21, 38, .18);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--novagentis-midnight); border-bottom: 1.5px solid var(--novagentis-midnight);
  transform: translateY(-70%) rotate(45deg);
}
.field select { appearance: none; padding-right: 44px; cursor: pointer; }
.field.has-error input, .field.has-error textarea { border-color: var(--state-error); background: var(--state-error-bg); }
.field.has-error input:focus-visible, .field.has-error textarea:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--state-error); font-size: 1rem; font-weight: 500; }
.field-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--state-error); color: var(--novagentis-white); font-size: .75rem; font-weight: 700;
}
.field-error[hidden] { display: none; }
.privacy { font-size: 1rem; color: var(--novagentis-steel); }
.privacy a { color: var(--novagentis-midnight); text-underline-offset: 3px; }
/* Área de toque de 44 px sin cambiar el aspecto: relleno vertical invisible en el enlace en línea */
.privacy a { padding: 12px 2px; margin: -12px -2px; }
.privacy a:hover { text-decoration-thickness: 2px; }

.form-alert {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px;
  padding: 14px 16px; border: 1px solid var(--state-error); border-left-width: 4px; border-radius: var(--radius-sm);
  background: var(--state-error-bg); color: var(--state-error); font-weight: 500;
}
.form-alert[hidden] { display: none; }
.form-alert svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; margin-top: 1px; }

/* Cargando */
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--novagentis-white);
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Éxito */
.form-success { text-align: left; }
.form-success[hidden] { display: none; }
.success-icon { width: 48px; height: 48px; fill: none; stroke: var(--state-success); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.form-success p { margin-top: 12px; }
.success-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
@media (min-width: 560px) { .success-actions { flex-direction: row; flex-wrap: wrap; } }
.form-success .support { color: var(--novagentis-steel); }
.form-success:not([hidden]) { animation: faq-in .4s var(--ease); }

/* ---------- Pie ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--novagentis-silver); color: var(--novagentis-steel); }
.footer-grid { display: grid; gap: 32px; }
.footer-tagline { margin-top: 16px; font-size: 1rem; max-width: 30em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a, .footer-contact a, .footer-legal a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--novagentis-text-dark);
  text-decoration: none; border-radius: 6px;
}
.footer-nav a { padding: 0 10px 0 0; }
.footer-nav a:hover, .footer-contact a:hover, .footer-legal a:hover { color: var(--novagentis-midnight); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact li { min-height: 44px; display: block; }
.footer-contact a { display: inline-flex; }
.lang-btn--text { min-width: 0; padding: 0 6px; font-weight: 500; font-size: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 24px; border-top: 1px solid var(--novagentis-silver); font-size: 1rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
  .footer-nav { flex-direction: column; }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------- Aparición al hacer scroll (sutil) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Celular: mínimo 16 px también en el selector de idioma y los números del diagrama.
   Va al final del archivo para prevalecer sobre las reglas base de esos componentes. */
@media (max-width: 767px) {
  .lang-btn, .flow-num { font-size: 1rem; }
}

/* ---------- Hero: escena del proceso (antes / entra Novagentis / después) ---------- */
.scene { width: 100%; max-width: 520px; margin: 0 auto; min-width: 0; }
.scene-window { border: 1px solid var(--novagentis-silver); border-radius: 18px; background: var(--novagentis-white); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(11,21,38,.38); }
.scene-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; background: var(--novagentis-midnight); color: var(--novagentis-white); }
.scene-dots { display: inline-flex; gap: 5px; }
.scene-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.scene-name { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
.scene-badge { margin-left: auto; padding: 3px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .75rem; }
.scene-steps { list-style: none; margin: 0; padding: 16px 16px 4px; }
.scene-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--novagentis-silver); border-radius: 12px; transition: border-color .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease); }
.scene-step:not(:last-child)::after { content: ""; position: absolute; left: 30px; top: 100%; width: 2px; height: 11px; background: var(--novagentis-silver); }
.scene-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-cobalt-tint); color: var(--accent-cobalt); transition: background-color .5s var(--ease), color .5s var(--ease); }
.scene svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scene-icon svg { width: 20px; height: 20px; }
.scene-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.scene-text b { font-size: .9375rem; font-weight: 600; color: var(--novagentis-midnight); }
.scene-text span { font-size: .8125rem; color: var(--novagentis-text-dark); }
.scene-check { display: grid; place-items: center; flex: none; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--state-success); color: #fff; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.scene-check svg { width: 16px; height: 16px; stroke-width: 2.4; }
/* Animación: solo cuando el script la activa; sin JS o con movimiento reducido se ve completa. */
.scene.is-animated .scene-step { opacity: .5; }
.scene.is-animated .scene-check { opacity: 0; transform: scale(.5); }
.scene.is-animated .scene-step.is-done { opacity: 1; }
.scene.is-animated .scene-step.is-done .scene-check { opacity: 1; transform: none; }
.scene.is-animated .scene-step.is-current { opacity: 1; border-color: var(--accent-cobalt); box-shadow: 0 0 0 4px var(--accent-cobalt-tint); }
.scene.is-animated .scene-step.is-current .scene-icon { background: var(--accent-cobalt); color: #fff; }
@media (min-width: 1024px) { .scene { max-width: none; } }

/* Antes / entra Novagentis / después */
.scene-status { display: grid; margin: 0; padding: 14px 16px 0; text-align: center; font-size: .8125rem; font-weight: 600; }
.scene-status span { grid-area: 1 / 1; opacity: 0; transition: opacity .4s var(--ease); }
.scene-status--before { color: var(--state-error); }
.scene-status--enter { color: var(--accent-cobalt); }
.scene-status--after { color: var(--state-success); }
.scene-status .scene-status--after { opacity: 1; }
.scene-body { position: relative; }
.scene-step { transition-duration: .7s; }
.scene-step:not(:last-child)::after { transition: opacity .4s var(--ease); }
.scene-texts { display: grid; min-width: 0; }
.scene-texts > .scene-text { grid-area: 1 / 1; transition: opacity .4s var(--ease); }
.scene-text--before { opacity: 0; }
.scene-mark { position: relative; display: block; flex: none; overflow: hidden; width: 38px; aspect-ratio: 555 / 395; }
.scene-mark img { position: absolute; max-width: none; height: auto; width: calc(100% * 1254 / 555); left: calc(100% * -355 / 555); top: calc(100% * -330 / 395); }
.scene-hub { position: absolute; left: 50%; top: 42%; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 18px 44px -14px rgba(11,21,38,.45); opacity: 0; transform: translate(-50%, -50%) scale(.6); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.scene-hub > svg { position: absolute; inset: 6px; width: 120px; height: 120px; }
.scene .scene-hub-ring { stroke: var(--novagentis-silver); stroke-width: 1.5; }
.scene .scene-hub-spin { fill: var(--accent-cobalt); stroke: none; transform-origin: 60px 60px; animation: scene-spin 1.6s linear infinite; }
.scene-hub .scene-mark { width: 74px; }
@keyframes scene-spin { to { transform: rotate(360deg); } }
.scene-signature { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border-top: 1px solid var(--novagentis-silver); font-size: .875rem; line-height: 1.35; color: var(--novagentis-midnight); transition: background-color .5s var(--ease); }

.scene.is-animated .scene-status .scene-status--after { opacity: 0; }
.scene.is-animated[data-phase="before"] .scene-status--before,
.scene.is-animated[data-phase="enter"] .scene-status--enter,
.scene.is-animated[data-phase="after"] .scene-status--after { opacity: 1; }
.scene.is-animated[data-phase="before"] .scene-step,
.scene.is-animated[data-phase="enter"] .scene-step { opacity: 1; border-style: dashed; background: var(--novagentis-ice); }
.scene.is-animated[data-phase="before"] .scene-step:nth-child(1) { transform: translateX(-9px) rotate(-2deg); }
.scene.is-animated[data-phase="before"] .scene-step:nth-child(2) { transform: translateX(10px) rotate(1.6deg); }
.scene.is-animated[data-phase="before"] .scene-step:nth-child(3) { transform: translateX(-6px) rotate(1.4deg); }
.scene.is-animated[data-phase="before"] .scene-step:nth-child(4) { transform: translateX(8px) rotate(-1.8deg); }
.scene.is-animated[data-phase="before"] .scene-step::after,
.scene.is-animated[data-phase="enter"] .scene-step::after { opacity: 0; }
.scene.is-animated[data-phase="before"] .scene-icon,
.scene.is-animated[data-phase="enter"] .scene-icon { background: #fff; color: var(--novagentis-steel); }
.scene.is-animated[data-phase="before"] .scene-text--before,
.scene.is-animated[data-phase="enter"] .scene-text--before { opacity: 1; }
.scene.is-animated[data-phase="before"] .scene-text--after,
.scene.is-animated[data-phase="enter"] .scene-text--after { opacity: 0; }
.scene.is-animated[data-phase="enter"] .scene-hub { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scene.is-animated[data-phase="enter"] .scene-signature { background: var(--accent-cobalt-tint); }
.scene.is-animated.is-complete .scene-signature { background: var(--accent-cobalt-tint); }

/* Capacidades bajo la ventana: se iluminan con su paso */
.scene-body .scene-steps { padding-bottom: 8px; }
.scene-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.scene-tags li { text-align: center;padding: 6px 12px; border: 1px solid var(--accent-cobalt); border-radius: 999px; background: var(--accent-cobalt-tint); color: var(--accent-cobalt); font-size: .875rem; font-weight: 600; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.scene.is-animated .scene-tags li { border-color: var(--novagentis-silver); background: var(--novagentis-white); color: var(--novagentis-text-dark); }
.scene.is-animated .scene-tags li.is-on { border-color: var(--accent-cobalt); background: var(--accent-cobalt-tint); color: var(--accent-cobalt); }

/* Problema → beneficio */
.pairs { display: grid; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; }
.pair { padding: 16px 0; border-top: 1px solid var(--novagentis-silver); }
.pair-problem { margin: 0 0 4px; font-size: .875rem; font-weight: 600; color: var(--novagentis-steel); }
.pair-problem::after { content: " →"; color: var(--accent-cobalt); }
.pair .h3 { color: var(--accent-cobalt); }
.pair .h3 + p { margin-top: 4px; }
@media (min-width: 640px) { .pairs { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (min-width: 1024px) { .pairs { margin-top: 0; } }

/* Franja con foto: rompe el ritmo de tarjetas */
.why-band { position: relative; isolation: isolate; background: var(--accent-cobalt); color: var(--novagentis-white); }
.why-band .why-figure { position: absolute; inset: 0; z-index: -1; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.why-band .why-figure img { filter: grayscale(1); transform: none; }
.why-band .why-figure::after { background: rgba(23, 61, 110, .9); }
.why-band .section-head { position: static; max-width: 820px; margin: 0 auto; text-align: center; }
.why-band .section-label { justify-content: center; color: var(--novagentis-white); }
.why-band .h2 { color: var(--novagentis-white); font-size: clamp(1.875rem, 4.5vw, 3rem); line-height: 1.15; }
.why-band .section-intro { color: var(--novagentis-ice); margin-left: auto; margin-right: auto; }
.why-band .why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0 0; }
.why-band .why-item { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .4); }
.why-band .why-item .h3 { color: var(--novagentis-white); font-size: 1rem; }
.why-band .why-item p { margin-top: 6px; color: var(--novagentis-ice); font-size: .875rem; }
@media (min-width: 1024px) {
  .why-band .why-list { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
}

/* Contacto: qué pasa después */
.next-steps { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.next-steps .h3 { color: var(--novagentis-white); }
.next-steps ol { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 14px; }
.next-steps li { position: relative; padding-left: 44px; counter-increment: paso; }
.next-steps li::before { content: counter(paso); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--novagentis-silver); color: var(--novagentis-white); font-weight: 700; font-size: .875rem; }
.next-steps b { display: block; color: var(--novagentis-white); }
.next-steps span { display: block; color: var(--novagentis-silver); font-size: .9375rem; }

/* La ilustración de Problemas conserva su luz: sin velo ni desaturación */
#problemas .why-figure img { filter: none; }
#problemas .why-figure::after { content: none; }

/* Diagrama con el acabado de las imágenes: vidrio claro, volumen y fondo con curvas */
.dia-defs { position: absolute; }
.solution-diagram {
  position: relative; isolation: isolate; overflow: hidden; gap: 16px; padding: 14px; border-radius: 18px;
  border: 1px solid var(--novagentis-silver); box-shadow: 0 30px 60px -40px rgba(31, 78, 140, .55);
  background:
    radial-gradient(120% 90% at 108% -18%, rgba(147, 190, 240, .62) 0 46%, transparent 46.4%),
    radial-gradient(110% 80% at 92% -6%, rgba(178, 210, 247, .42) 0 60%, transparent 60.4%),
    radial-gradient(70% 55% at -8% 108%, rgba(178, 210, 247, .4) 0 60%, transparent 60.4%),
    linear-gradient(160deg, #FBFDFF, #E4EEFB);
}
.dia-node {
  position: relative; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .95);
  background: linear-gradient(150deg, rgba(255, 255, 255, .97), rgba(235, 243, 253, .82));
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(147, 190, 240, .35), 0 18px 28px -18px rgba(31, 78, 140, .55);
}
.dia-core {
  border-color: rgba(255, 255, 255, .55); background: linear-gradient(150deg, #3A72BC, #1F4E8C 55%, #173D6E);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 6px rgba(255, 255, 255, .7), 0 24px 36px -18px rgba(23, 61, 110, .75);
}
/* Uniones de cada componente con el centro */
.dia-a::after, .dia-b::after, .dia-c::after, .dia-d::after {
  content: ""; position: absolute; background: #4C8BD6; border-radius: 3px;
}
.dia-a::after, .dia-d::after { left: calc(50% - 2px); width: 4px; height: 18px; }
.dia-b::after, .dia-c::after { top: calc(50% - 2px); height: 4px; width: 18px; }
.dia-a::after { top: 100%; }
.dia-d::after { bottom: 100%; }
.dia-b::after { left: 100%; }
.dia-c::after { right: 100%; }
@media (min-width: 600px) {
  .solution-diagram { gap: 26px; padding: 30px; }
  .dia-node svg { width: 56px; height: 56px; }
  .dia-a::after, .dia-d::after { height: 28px; }
  .dia-b::after, .dia-c::after { width: 28px; }
}

/* Página de texto legal */
.legal-main { padding-top: 32px; padding-bottom: 64px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal-date { margin: 8px 0 0; color: var(--novagentis-steel); font-size: .9375rem; }
.legal h2 { margin: 28px 0 8px; font-size: 1.125rem; color: var(--novagentis-midnight); }
.legal p a { color: var(--accent-cobalt); text-decoration: underline; overflow-wrap: anywhere; }
.legal-back { margin-top: 40px; }

/* Contacto directo (sustituye al formulario mientras no envíe) */
.form-card[hidden], .alt-link[hidden], .alternatives .sep[hidden] { display: none; }
.direct-card { display: grid; gap: 12px; padding: 28px 24px; border-radius: var(--radius); background: var(--novagentis-white); color: var(--novagentis-text-dark); }
.direct-card .h3 { color: var(--novagentis-midnight); }
.direct-card p { margin: 0; }
.direct-card .btn { margin: 4px 0 0; text-align: center; justify-content: center; }
.direct-data { font-weight: 600; color: var(--novagentis-midnight); overflow-wrap: anywhere; }
.direct-note { font-size: .875rem; color: var(--novagentis-steel); }
.direct-note a { color: var(--novagentis-midnight); text-decoration: underline; }
@media (min-width: 1024px) { .direct-card { padding: 36px; align-self: center; } }
