/* ============================================================
   NordSur — style.css  (REVISIÓN ESTÉTICA · azul corporativo)
   Stack vanilla. Firma: red viva (Vanta NET) que teje los servicios.
   Paleta: navy #00072B + azul brillante #001FCC. Alternancia luz/oscuro.
   Marca: león vectorial (currentColor, se adapta a fondo claro/oscuro).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* azules base */
  --navy: #00072B;          /* azul corporativo casi negro */
  --navy-2: #050E3A;        /* un punto más alto, para superficies oscuras */
  --surface-dark: #0A1647;  /* tarjeta sobre fondo oscuro */
  --blue: #001FCC;          /* azul brillante de acento */
  --blue-bright: #2A47FF;   /* hover / highlight, derivado más luminoso */
  --blue-tint: #E8ECFF;     /* tint muy claro para fondos suaves en claro */
  --blue-tint-2: #D4DBFF;   /* tint para bordes/sellos en claro */

  /* neutros */
  --white: #FFFFFF;
  --paper: #F6F7FD;         /* blanco roto para secciones claras alternas */
  --ink-strong: #00072B;    /* texto principal sobre claro = navy */
  --ink-mute: #3A4673;      /* texto secundario sobre claro */

  /* gradiente firma */
  --grad: linear-gradient(120deg, #001FCC 0%, #2A47FF 55%, #00072B 100%);
  --grad-rev: linear-gradient(120deg, #00072B 0%, #001FCC 100%);
  --grad-soft: linear-gradient(120deg, rgba(0, 31, 204, .14), rgba(42, 71, 255, .10));

  /* tema OSCURO (por defecto: body es oscuro) */
  --bg: var(--navy);
  --text: #EEF1FF;
  --text-dim: #9AA6D6;
  --accent: var(--blue-bright);   /* sobre oscuro el azul brillante luce mejor */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --card: var(--surface-dark);
  --card-2: var(--navy-2);
  --icon-bg: rgba(42, 71, 255, .16);
  --seal-line: var(--line-strong);
  --net-stroke: #2A47FF;          /* red viva sobre oscuro: azul brillante */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-eyebrow: .8rem;
  --fs-body: 1.05rem;
  --fs-lead: clamp(1.12rem, .9rem + .8vw, 1.4rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);
  --fs-display: clamp(3rem, 1.5rem + 7vw, 7rem);

  --maxw: 1180px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -30px rgba(0, 0, 0, .85);
  --glow: 0 18px 50px -20px rgba(0, 31, 204, .65);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- Tema CLARO: aplicado por bloque ---------- */
/* Cualquier .section.light o .panel-light redefine los tokens locales
   para que TODOS los componentes anidados se vean bien sobre blanco
   sin tener que duplicar reglas. */
.light {
  --bg: var(--paper);
  --text: var(--ink-strong);
  --text-dim: var(--ink-mute);
  --accent: var(--blue);
  --line: rgba(0, 7, 43, .12);
  --line-strong: rgba(0, 7, 43, .22);
  --card: var(--white);
  --card-2: var(--paper);
  --icon-bg: var(--blue-tint);
  --seal-line: var(--blue-tint-2);
  --net-stroke: #001FCC;          /* red viva sobre claro: azul oscuro/brillante */
  --grad-soft: linear-gradient(120deg, rgba(0, 31, 204, .10), rgba(42, 71, 255, .06));
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 22px 50px -32px rgba(0, 7, 43, .25);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }

/* ---------- Focus visible (azul brillante) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -200px;
  left: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-family: var(--font-display);
  font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; background: var(--bg); color: var(--text); }
/* alternancia: bloques oscuros y claros. .section--alt = ligera variación dentro del mismo tema */
.section--alt { background: var(--card-2); }
.light.section--alt { background: var(--white); }
.measure { max-width: 68ch; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--center::before { display: none; }

.lead { font-size: var(--fs-lead); color: var(--text-dim); }
h2.section-title { font-size: var(--fs-h2); margin-top: 14px; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .lead { margin-top: 18px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* sobre claro, el gradiente firma sigue legible (arranca en azul oscuro) */
.light .grad-text {
  background: linear-gradient(120deg, #001FCC 0%, #2A47FF 60%, #00072B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   BUTTONS — sistema azul sólido + 2 efectos hover (JackCuthbert)
   Reposo: fondo azul principal #001FCC sólido, texto blanco, SIN gradiente.
   Dos efectos reutilizables, derivados 1:1 del pen pjZzGE y adaptados a
   botón sólido azul:
     · .btn--ostentiferous  (OSTENTIFEROUS / .shrink-border): un anillo exterior
       escalado encoge hasta encajar; el borde base se desvanece.
     · .btn--xenization     (XENIZATION / .material-bubble): círculo Material que
       se expande desde un punto y rellena el botón (ripple), overflow:hidden.
   Tokens de efecto:
     --btn-bg      fondo sólido en reposo (azul principal)
     --btn-fg      texto
     --btn-ring    color del anillo OSTENTIFEROUS
     --btn-ripple  color del círculo XENIZATION
   ============================================================ */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-ring: var(--blue-bright);
  --btn-ripple: var(--navy);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;          /* área táctil ≥44px */
  padding: 13px 26px;
  border: 3px solid transparent;   /* base del pen: borde transparente */
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -.01em;
  isolation: isolate;        /* contiene los z-index de los pseudos por botón */
  transition: color .5s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: translateY(3px); }   /* gesto "press" del pen */

/* ---- variante base sólida (sustituye al antiguo gradiente) ---- */
.btn--primary {
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 10px 30px -12px rgba(0, 31, 204, .55);
}

/* el texto y el icono van SIEMPRE por encima de los pseudo-elementos */
.btn > * { position: relative; z-index: 2; }

/* ============================================================
   OSTENTIFEROUS — anillo exterior que encoge hasta encajar
   Adaptado a botón sólido: el anillo vive FUERA del botón (inset negativo)
   para que se vea sobre el fondo azul; arranca escalado y encoge en hover.
   ============================================================ */
.btn--ostentiferous { overflow: visible; }
/* anillo base: marco que rodea el botón en reposo y se desvanece en hover */
.btn--ostentiferous::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid transparent;     /* invisible en reposo, el borde lo da ::after */
  border-radius: inherit;
  opacity: 0;
  z-index: 1;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
  pointer-events: none;
}
/* anillo "amplio" que encoge para encajar en hover (equivale al ::after del pen) */
.btn--ostentiferous::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid var(--btn-ring);
  border-radius: inherit;
  opacity: 0;
  z-index: 1;
  transform: scaleX(1.14) scaleY(1.34);   /* arranca expandido, como el pen */
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  pointer-events: none;
}
.btn--ostentiferous:hover::after,
.btn--ostentiferous:focus-visible::after {
  opacity: 1;
  transform: scaleX(1) scaleY(1);          /* encoge hasta encajar */
}
.btn--ostentiferous:hover,
.btn--ostentiferous:focus-visible {
  box-shadow: 0 12px 34px -14px rgba(0, 31, 204, .7);
}

/* ============================================================
   XENIZATION — ripple Material: un círculo se expande y rellena el botón
   Adaptado a botón sólido azul: la burbuja es navy (contraste sobre el azul),
   z-index por DEBAJO del texto (z:1) y por ENCIMA del fondo. overflow:hidden.
   ============================================================ */
.btn--xenization { overflow: hidden; }
.btn--xenization::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;            /* centrado en el botón */
  background: var(--btn-ripple);
  border-radius: 50%;
  opacity: 0;
  /* z-index:-1 con isolation:isolate + fondo sólido => la burbuja queda POR ENCIMA
     del fondo del botón pero POR DEBAJO del texto en flujo (aunque el texto sea un
     nodo suelto sin envolver). Antes a z:1 tapaba el texto. */
  z-index: -1;
  transform: scale(.05);
  transform-origin: center;
  transition: transform .45s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.btn--xenization:hover::after,
.btn--xenization:focus-visible::after {
  opacity: 1;
  transform: scale(1);                   /* el círculo crece y rellena el botón */
}
.btn--xenization:hover,
.btn--xenization:focus-visible {
  box-shadow: 0 12px 34px -14px rgba(0, 31, 204, .7);
}
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  width: fit-content;
}
.link-cta .arrow { color: var(--accent); transition: transform .25s var(--ease); }
.link-cta:hover { color: var(--accent); }
.link-cta:hover .arrow { transform: translateX(5px); }

/* ============================================================
   HEADER  (siempre oscuro: navy translúcido)
   ============================================================ */
/* Header siempre navy: sobre el nuevo hero blanco sube opacidad para leer como
   barra sólida y añade sombra suave que lo despega del fondo claro. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 7, 43, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px -22px rgba(0, 7, 43, .9);
  color: #EEF1FF;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
/* Marca: león PNG (navy sobre blanco) sobre chip claro para leer en fondo oscuro. */
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; color: #EEF1FF; }
.brand__chip {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: #F6F7FD;
  border-radius: 11px;
  padding: 3px;
  height: 44px; width: 44px;
  box-shadow: 0 2px 10px -4px rgba(0, 7, 43, .55), inset 0 0 0 1px rgba(0, 7, 43, .06);
}
.brand__lion { display: block; height: 100%; width: 100%; object-fit: contain; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; color: #fff; }
.brand__word .grad-text {
  background: linear-gradient(120deg, #2A47FF 0%, #6E83FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 6px; align-items: center; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #9AA6D6;
  font-weight: 500;
  font-size: .98rem;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav a[aria-current="page"] { color: #fff; }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-pill); padding: 3px; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 34px;
  font-family: var(--font-display); font-weight: 500; font-size: .85rem;
  color: #9AA6D6; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.lang-switch a[aria-current="true"] { color: #fff; background: var(--grad); }
.lang-switch a:not([aria-current="true"]):hover { color: #fff; }

/* panel de menú móvil oculto por defecto (sólo aparece bajo 760px) */
.mobile-menu { display: none; }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: var(--r-sm);
  color: #EEF1FF;
  font-family: var(--font-display); font-weight: 500;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   HERO  (CLARO: fondo blanco + Vanta NET azul sobre claro)
   Scope: solo la home. Texto navy, acento gradiente azul legible sobre blanco.
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 7, 43, .10);
  background: var(--paper);
  color: var(--ink-strong);
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(42, 71, 255, .14), transparent 55%),
    radial-gradient(110% 80% at 10% 88%, rgba(0, 31, 204, .10), transparent 55%),
    var(--paper);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0, 31, 204, .20) 1px, transparent 1.4px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 80%);
  opacity: .55;
}
/* scrim claro: velo blanco semitransparente SOLO detrás del texto (izquierda),
   sin desenfoque. Deja ver el Vanta a través; más bajo = más red visible. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(246, 247, 253, .62) 0%, rgba(246, 247, 253, .34) 38%, rgba(246, 247, 253, 0) 72%),
    linear-gradient(180deg, rgba(246, 247, 253, .26) 0%, rgba(246, 247, 253, .04) 42%, rgba(246, 247, 253, .45) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 76%);
  mask-image: linear-gradient(90deg, #000 0%, #000 46%, transparent 76%);
  pointer-events: none;
}
/* En móvil el texto ocupa todo el ancho: velo uniforme y suave (sin máscara). */
@media (max-width: 860px) {
  .hero__scrim {
    background: linear-gradient(180deg, rgba(246, 247, 253, .55) 0%, rgba(246, 247, 253, .3) 45%, rgba(246, 247, 253, .62) 100%);
    -webkit-mask-image: none; mask-image: none;
  }
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(90px, 14vh, 150px); }
.hero__content { max-width: 880px; }
.hero h1 { font-size: var(--fs-h1); margin: 18px 0; max-width: 16ch; color: var(--ink-strong); }
.hero .lead { max-width: 56ch; color: var(--ink-mute); }
.hero .eyebrow { color: var(--blue); }
.hero .eyebrow::before { background: var(--blue); }
/* acento gradiente del hero: arranca y termina en azul (NO en navy) para que
   lea sobre blanco; line-height + padding evitan el clip de descendentes (g, p, j) */
.hero h1 .grad-text {
  background: linear-gradient(120deg, #001FCC 0%, #2A47FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  line-height: 1.12;
  padding-bottom: .12em;
  overflow: visible;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.hero .link-cta { color: var(--ink-strong); }
.hero .link-cta .arrow { color: var(--blue); }
.hero .link-cta:hover { color: var(--blue); }
.hero__micro { margin-top: 18px; color: var(--ink-mute); font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.hero__micro::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px rgba(0, 31, 204, .5); }

/* load sequence */
.hero .anim { opacity: 0; transform: translateY(18px); animation: heroIn .8s var(--ease) forwards; }
.hero .anim-1 { animation-delay: .15s; }
.hero .anim-2 { animation-delay: .30s; }
.hero .anim-3 { animation-delay: .45s; }
.hero .anim-4 { animation-delay: .60s; }
.hero .anim-5 { animation-delay: .75s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* page hero (interior pages) — oscuro con NET tenue (CSS, sin JS) */
.page-hero {
  position: relative;
  padding-block: clamp(110px, 16vh, 180px) clamp(48px, 7vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
  color: #EEF1FF;
  background:
    radial-gradient(100% 120% at 80% -10%, rgba(0, 31, 204, .38), transparent 55%),
    radial-gradient(90% 110% at 0% 110%, rgba(42, 71, 255, .24), transparent 55%),
    var(--navy);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(122, 142, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 142, 255, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(70% 100% at 70% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 100% at 70% 0%, #000, transparent 75%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); margin: 16px 0; max-width: 18ch; color: #fff; }
.page-hero .lead { max-width: 60ch; color: #C2CBF5; }
.page-hero .eyebrow { color: #9AA6D6; }
.page-hero__actions { margin-top: 28px; }
.trust-line { margin-top: 22px; color: #9AA6D6; font-size: .95rem; }

/* ============================================================
   REVEAL on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   CHIPS / supports
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--grad-soft);
  color: var(--text-dim);
  font-size: .92rem;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

.support-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.support {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 26px 24px;
}
.support__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--icon-bg); border: 1px solid var(--line); margin-bottom: 16px; }
.support__icon svg { width: 22px; height: 22px; color: var(--accent); }
.support h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.support p { color: var(--text-dim); font-size: .98rem; }

/* ============================================================
   PROCESS (4 steps)
   ============================================================ */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin-top: 12px; position: relative; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card-2);
  padding: 28px 24px;
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.light .step__num { background: linear-gradient(120deg, #001FCC, #2A47FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: .96rem; }
.process-cta { margin-top: 44px; }

/* ============================================================
   SERVICES grid — FIRMA: red SVG que teje las tarjetas
   ============================================================ */
.services-wrap { position: relative; }
.services-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.services-net path, .services-net line {
  fill: none;
  stroke: url(#netGrad);
  stroke-width: 1.4;
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.2s var(--ease);
  opacity: .6;
}
.services-net.is-in path, .services-net.is-in line { stroke-dashoffset: 0; }
.services-net circle { fill: var(--net-stroke); opacity: 0; transition: opacity .5s var(--ease) .6s; }
.services-net.is-in circle { opacity: .9; }

.services-grid {
  position: relative; z-index: 1;
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.svc-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 26px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.svc-card:hover::before { opacity: 1; }
.svc-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--icon-bg); border: 1px solid var(--line); margin-bottom: 18px; }
.svc-card__icon svg { width: 23px; height: 23px; color: var(--accent); }
.svc-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.svc-card p { color: var(--text-dim); font-size: .95rem; }
.services-cta { margin-top: 44px; }

/* ============================================================
   FULL-STACK / split block
   ============================================================ */
.split { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: 1.05fr .95fr; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__body h2 { font-size: var(--fs-h2); margin: 14px 0 18px; }
.split__body p { color: var(--text-dim); }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin: 28px 0; }
.two-col .support { background: var(--card-2); }
.split__cta { margin-top: 8px; }

.media-frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(0, 31, 204, .45), transparent 60%),
    radial-gradient(100% 100% at 10% 90%, rgba(42, 71, 255, .38), transparent 60%),
    var(--card-2);
  box-shadow: var(--shadow-card);
}
.media-frame::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180, 195, 255, .18) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
  opacity: .6;
}
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   WHY (3 points) + badges
   ============================================================ */
.points { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.point { padding-top: 26px; position: relative; }
.point::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--accent); border-radius: 2px; }
.point h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.point p { color: var(--text-dim); font-size: .98rem; }

.badges { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.badge {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 28px 20px;
}
.badge__seal { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--icon-bg); border: 1px solid var(--seal-line); }
.badge__seal svg { width: 26px; height: 26px; color: var(--accent); }
.badge h3 { font-size: 1.05rem; margin-bottom: 6px; }
.badge p { color: var(--text-dim); font-size: .9rem; }
.proof-note { margin-top: 28px; color: var(--text-dim); font-size: .9rem; text-align: center; font-style: italic; }

/* ---------- Bloque "Our promises": fondo Vanta BIRDS ---------- */
.section--birds { overflow: hidden; }            /* recorta el canvas a la section */
.section--birds > .wrap { position: relative; z-index: 2; }  /* contenido por encima de los pájaros */
.promises-birds {
  position: absolute;
  inset: 0;
  z-index: 1;                 /* sobre el fondo navy del section, bajo el contenido */
  pointer-events: none;
  opacity: 0;                 /* invisible hasta que Vanta arranca */
  transition: opacity 1.2s ease;
}
/* el <canvas> que inyecta Vanta debe llenar el contenedor */
.promises-birds > canvas { display: block; width: 100% !important; height: 100% !important; }
.promises-birds.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .promises-birds { display: none; }   /* sin motion: solo el bloque navy normal */
}
@media (max-width: 479px) {
  .promises-birds { display: none; }   /* móvil: sin coste WebGL, bloque navy normal */
}

/* ============================================================
   VALUES (about) / list
   ============================================================ */
.values { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.value { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 26px 24px; }
.value__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--icon-bg); border: 1px solid var(--line); margin-bottom: 16px; }
.value__icon svg { width: 21px; height: 21px; color: var(--accent); }
.value h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value p { color: var(--text-dim); font-size: .95rem; }

.support-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.support-list li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--grad-soft); color: var(--text-dim); font-size: .92rem;
}
.support-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ============================================================
   LEAD MAGNET
   ============================================================ */
/* Compuestos largos (FI) no deben desbordar en móvil */
h1, h2, h3, .grad-text { overflow-wrap: break-word; }
.leadmagnet { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--grad-soft); padding: clamp(36px, 6vw, 64px); text-align: center; }
.leadmagnet h2 { font-size: var(--fs-h2); max-width: 22ch; margin: 0 auto 16px; }
.leadmagnet p { color: var(--text-dim); max-width: 60ch; margin: 0 auto 28px; }

/* Vanta CELLS: textura celular azul tenue como fondo SOLO de esta tarjeta.
   El canvas se recorta a las esquinas redondeadas vía overflow:hidden del padre.
   backgroundAlpha:0 deja ver el --grad-soft de la tarjeta debajo. */
.cta-cells { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.cta-cells.is-ready { opacity: .32; }       /* sutil: no mata el texto navy ni el botón */
.leadmagnet__inner { position: relative; z-index: 1; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease); }
.faq summary .plus::before { top: 12px; left: 3px; width: 20px; height: 2px; }
.faq summary .plus::after { top: 3px; left: 12px; width: 2px; height: 20px; }
.faq details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__answer { overflow: hidden; }
.faq__answer p { color: var(--text-dim); padding: 0 4px 24px; max-width: 70ch; }

/* ============================================================
   CTA BAND (full bleed gradient azul)
   ============================================================ */
.cta-band { position: relative; background: var(--grad); color: #fff; text-align: center; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px);
  background-size: 34px 34px; opacity: .4; pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 130px); }
.cta-band h2 { font-size: var(--fs-display); color: #fff; max-width: 18ch; margin: 0 auto 18px; line-height: 1; }
.cta-band p { color: rgba(255, 255, 255, .92); max-width: 52ch; margin: 0 auto 32px; font-size: var(--fs-lead); }
/* CTA band: el botón azul sólido NO contrastaría sobre la banda azul.
   Lo invertimos: fondo BLANCO sólido + texto navy, y el efecto se recolorea
   (anillo blanco / ripple navy) para que luzca sobre el gradiente azul.
   El texto pasa a blanco cuando el ripple navy lo cubre (XENIZATION). */
.cta-band .btn {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
  --btn-ring: #fff;
  --btn-ripple: var(--navy);
}
.cta-band .btn--primary {
  background-color: #fff;
  color: var(--navy);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .5);
}
/* sobre banda azul, el ripple navy cubre el botón → el texto debe virar a blanco */
.cta-band .btn--xenization:hover,
.cta-band .btn--xenization:focus-visible { color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.cta-band__secondary { color: #fff; font-family: var(--font-display); font-weight: 500; display: inline-flex; gap: 8px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1.6fr 1fr; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: clamp(26px, 4vw, 44px); }
.form-card h2 { font-size: var(--fs-h3); margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; }
.field .opt { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.light .field input, .light .field textarea, .light .field select { background: var(--paper); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); opacity: .7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 31, 204, .25); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239AA6D6' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.need-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.need-opt { position: relative; }
.need-opt input { position: absolute; opacity: 0; pointer-events: none; }
.need-opt label {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  cursor: pointer; font-size: .92rem; font-weight: 400;
  transition: border-color .2s, background .2s;
}
.need-opt input:checked + label { border-color: var(--accent); background: var(--grad-soft); }
.need-opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.need-opt label::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex-shrink: 0; transition: background .2s, border-color .2s; }
.need-opt input:checked + label::before { background: var(--grad); border-color: transparent; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-dim); margin-bottom: 24px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.form-status { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-sm); font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(0, 31, 204, .14); border: 1px solid var(--accent); }
.form-status.error { background: rgba(255, 80, 80, .12); border: 1px solid #ff5050; }
.form-status strong { color: var(--text); }

.direct-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card-2); padding: clamp(26px, 4vw, 36px); }
.direct-card h2 { font-size: var(--fs-h3); margin-bottom: 22px; }
.direct-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.direct-item:last-child { border-bottom: 0; }
.direct-item__icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; background: var(--icon-bg); border: 1px solid var(--line); }
.direct-item__icon svg { width: 20px; height: 20px; color: var(--accent); }
.direct-item h3 { font-size: 1rem; margin-bottom: 3px; }
.direct-item p, .direct-item a { color: var(--text-dim); font-size: .93rem; }
.direct-item a { text-decoration: underline; text-underline-offset: 3px; }
.pending { color: var(--accent); font-style: italic; opacity: .9; font-size: .9rem; }

/* ============================================================
   FOOTER  (siempre oscuro: navy)
   ============================================================ */
.site-footer { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .10); position: relative; overflow: hidden; color: #EEF1FF; }
.site-footer::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(0, 31, 204, .22), transparent 65%);
  pointer-events: none;
}
.footer-top { position: relative; padding-block: clamp(56px, 8vw, 88px); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #fff; }
.footer-brand .brand__chip { height: 52px; width: 52px; border-radius: 13px; padding: 4px; }
.footer-brand .brand__word { font-size: 1.5rem; }
.footer-tag { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); max-width: 22ch; margin-bottom: 12px; letter-spacing: -.02em; color: #fff; }
.footer-tag .grad-text { background: linear-gradient(120deg, #2A47FF, #6E83FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-cta { margin: 26px 0 48px; }
/* Footer (navy): el azul sólido contrasta; el ripple navy se perdería sobre el
   fondo navy, así que aquí el ripple/anillo van en azul brillante. */
.site-footer .btn {
  --btn-ring: var(--blue-bright);
  --btn-ripple: var(--blue-bright);
}
.footer-cols { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-cols h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #9AA6D6; margin-bottom: 14px; }
.footer-cols p, .footer-cols li { color: #9AA6D6; font-size: .94rem; line-height: 1.7; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .10); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-bottom, .footer-bottom a, .footer-bottom span { color: #9AA6D6; font-size: .86rem; }
.footer-bottom .pending { color: #9AA6D6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services-net { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Nav móvil a partir de 860px: entre ~761 y ~810px el nav desktop (sobre todo
   en FI, palabras largas) desbordaba el viewport y provocaba scroll horizontal.
   Subimos el breakpoint a 860 (mismo punto al que ya colapsa el resto del
   layout) para que el menú hamburguesa entre ANTES de que las herramientas del
   header se salgan. */
@media (max-width: 860px) {
  .primary-nav, .desktop-only { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { margin-left: 0; }
  .site-header__inner { gap: 12px; justify-content: space-between; flex-wrap: nowrap; }
  .header-tools { margin-left: auto; gap: 8px; flex-shrink: 0; }
  .brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .nav-toggle { padding: 0 12px; }

  /* Mobile menu panel: anclado al header (NO overlay fixed — trampa backdrop-filter) */
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .20);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    display: none;
    flex-direction: column;
    padding: 12px clamp(20px, 5vw, 40px) 24px;
    color: #EEF1FF;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a.m-link {
    display: flex; align-items: center;
    min-height: 52px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    font-family: var(--font-display); font-weight: 500; font-size: 1.15rem;
    color: #EEF1FF;
  }
  .mobile-menu .m-lang { display: flex; gap: 8px; margin-top: 18px; }
  .mobile-menu .m-lang a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 48px; border: 1px solid rgba(255, 255, 255, .20); border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 500; color: #EEF1FF;
  }
  .mobile-menu .m-lang a[aria-current="true"] { background: var(--grad); color: #fff; border-color: transparent; }
  .mobile-menu .btn { margin-top: 18px; width: 100%; }

  .support-grid, .points, .values, .two-col, .need-grid { grid-template-columns: 1fr; }
  .hero__actions { gap: 14px; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .services-grid, .badges, .steps { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: column; }
  .cta-band__actions .btn { width: 100%; }
}

/* very small phones */
@media (max-width: 380px) {
  :root { --header-h: 64px; }
  .wrap { padding-inline: 16px; }
  .brand__word { font-size: 1.2rem; }
  .brand__chip { height: 40px; width: 40px; padding: 3px; border-radius: 10px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero .anim { opacity: 1; transform: none; animation: none; }
  .page-hero--lion .anim { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .services-net path, .services-net line { stroke-dashoffset: 0; }
  .services-net circle { opacity: .9; }
  .svc-card:hover, .btn:hover, .btn--primary:hover { transform: none; }
  /* botones: sin animación de efecto; hover simple = leve aclarado */
  .btn--ostentiferous::after,
  .btn--ostentiferous::before,
  .btn--xenization::after { display: none; }
  .btn:hover, .btn:focus-visible { filter: brightness(1.1); }
  .cta-band .btn:hover, .cta-band .btn:focus-visible { filter: brightness(.96); }
}

/* ===== Capa de imagen de fondo (img real bajo el contenido) ===== */
.section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none; user-select: none;
}

/* Full-stack: imagen como fondo tenue del bloque. Ajusta con --fs-bg-opacity. */
.full-stack--bg { position: relative; overflow: hidden; }
.full-stack--bg .section-bg { opacity: var(--fs-bg-opacity, .14); }
.full-stack--bg > .wrap { position: relative; z-index: 1; }
.full-stack--bg .split { display: block; }
.full-stack--bg .split__body { max-width: 880px; }

/* Cara del león como marca de agua: grande, anclada abajo-derecha, muy sutil.
   mix-blend-mode multiply elimina el blanco del PNG y deja solo el navy. */
.full-stack--bg .fullstack-lion {
  position: absolute;
  right: -22%;            /* desplazado a la derecha: solo asoma la parte izquierda de la cara */
  bottom: -14%;
  height: 175%;          /* grande */
  width: auto;
  object-fit: contain;
  opacity: var(--fullstack-lion-opacity, .07);
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 700px) {
  .full-stack--bg .fullstack-lion { height: 95%; right: -28%; bottom: -6%; opacity: .05; }
}

/* CTA band: león de marca como capa de fondo, integrado con mix-blend-mode
   multiply (el blanco del PNG desaparece y queda el león navy en el gradiente).
   Ajusta la intensidad con --cta-lion-opacity. */
.cta-lion {
  position: absolute; top: 50%; right: -2%; transform: translateY(-50%);
  height: 138%; width: auto; object-fit: contain;
  mix-blend-mode: multiply; opacity: var(--cta-lion-opacity, .18);
  z-index: 0; pointer-events: none; user-select: none;
}

/* ============================================================
   LION NET — About HERO: león dibujado por una constelación viva
   (tsParticles polygon-mask) integrado en el HERO BLANCO de About.
   El hero usa .page-hero--lion (fondo claro, scope SOLO About);
   el león convive con el copy en una composición a dos columnas.
   Scope: .page-hero--lion + .lion-net__*; no afecta a otras páginas.
   ============================================================ */

/* --- Hero blanco de About: anula el fondo navy de .page-hero ---------- */
.page-hero--lion {
  color: var(--ink-strong);
  border-bottom: 1px solid rgba(0, 7, 43, .10);
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(42, 71, 255, .14), transparent 55%),
    radial-gradient(110% 80% at 6% 92%, rgba(0, 31, 204, .10), transparent 55%),
    var(--paper);
  padding-block: clamp(40px, 6vh, 72px) clamp(48px, 7vw, 84px);
}
/* sustituye la rejilla navy del ::after por una trama de puntos azules
   tenue, coherente con el hero del index sobre blanco */
.page-hero--lion::after {
  background-image: radial-gradient(rgba(0, 31, 204, .18) 1px, transparent 1.4px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 80% at 70% 30%, #000 30%, transparent 80%);
  opacity: .5;
}
/* texto del hero recoloreado para blanco */
.page-hero--lion .eyebrow { color: var(--blue); }
.page-hero--lion .eyebrow::before { background: var(--blue); }
.page-hero--lion h1 { color: var(--ink-strong); margin: 14px 0 18px; max-width: 16ch; }
.page-hero--lion h1 .grad-text {
  background: linear-gradient(120deg, #001FCC 0%, #2A47FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  line-height: 1.12;
  padding-bottom: .12em;
  overflow: visible;
}
.page-hero--lion .lead { color: var(--ink-mute); max-width: 52ch; }
.page-hero__note { margin-top: 14px; color: var(--ink-mute); max-width: 50ch; font-size: 1.02rem; }
.page-hero--lion .page-hero__actions { margin-top: 30px; }

/* secuencia de carga del hero de About (misma curva que el hero del index) */
.page-hero--lion .anim { opacity: 0; transform: translateY(18px); animation: heroIn .8s var(--ease) forwards; }
.page-hero--lion .anim-1 { animation-delay: .15s; }
.page-hero--lion .anim-2 { animation-delay: .30s; }
.page-hero--lion .anim-3 { animation-delay: .45s; }
.page-hero--lion .anim-4 { animation-delay: .60s; }

/* --- Composición a dos columnas: copy | león ------------------------- */
.lion-net__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.lion-net__copy h2 { font-size: var(--fs-h2); margin: 14px 0 18px; }

/* Lienzo del león: contenedor cuadrado donde vive el canvas tsParticles
   (o el fallback estático). El plugin pinta sobre un <canvas> que rellena
   este contenedor. */
.lion-net__stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
/* (Se retiró el halo radial detrás del león: su borde creaba una mancha
   difuminada visible sobre blanco. El cuerpo lo aporta la silueta fantasma.) */
[data-lion-net], #lion-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.lion-net__stage canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Fallback estático: silueta del logo en NAVY TENUE sobre blanco.
   Visible por defecto; se atenúa a fantasma cuando el canvas está listo. */
.lion-net__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  /* el SVG es navy; sobre blanco lo dejamos como silueta navy sólida y la
     opacidad la controla el estado (.is-ready / .is-static / reduced-motion) */
  /* el SVG ya viene relleno en navy #00072B; solo lo difuminamos */
  filter: blur(var(--lion-ghost-blur, 1.5px));
  opacity: .14;
  pointer-events: none;
  user-select: none;
  transition: opacity .5s ease;
}
/* cuando tsParticles arranca, dejamos la silueta navy MUY tenue de fondo
   (fantasma sutil sobre blanco). Ajusta con --lion-ghost-opacity. */
.lion-net__stage.is-ready .lion-net__fallback { opacity: var(--lion-ghost-opacity, .34); }
/* en modo estático el fallback es la imagen completa: silueta navy tenue,
   legible sobre blanco. Desde 2026-06-20 las partículas corren también en
   MÓVIL (>=360px, ver lion-particles.js MIN_NET_WIDTH); is-static queda
   reservado a: reduced-motion, anchos degenerados (<360px) y fallo de CDN. */
.lion-net__stage.is-static .lion-net__fallback { opacity: .5; }

@media (max-width: 860px) {
  .lion-net__inner { grid-template-columns: 1fr; }
  .lion-net__stage { order: -1; max-width: 360px; margin-bottom: 8px; }
}
@media (max-width: 480px) {
  .lion-net__stage { max-width: 300px; }
}

/* Reduced motion: el fallback estático (navy tenue) es la verdad. */
@media (prefers-reduced-motion: reduce) {
  .lion-net__stage .lion-net__fallback { opacity: .5 !important; }
}

/* ============================================================
   Hero de Services con imagen del PUENTE a pantalla completa
   (scope: .page-hero--bridge). Imagen de fondo + velo oscuro
   para legibilidad del texto blanco; deja el puente visible.
   ============================================================ */
/* .bridge-band comparte TODO con .page-hero--bridge: mismo fondo de puente,
   mismo velo, misma capa de nubes. Se usa en el bloque "Why NordSur?" de About
   (sección interior, título <h2>) sin duplicar estilos. */
.page-hero--bridge,
.bridge-band { min-height: clamp(440px, 72vh, 700px); display: flex; align-items: center; position: relative; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  z-index: 0; pointer-events: none; user-select: none;
}
/* velo: oscurece sobre todo el lado del texto (izquierda) y un poco arriba/abajo,
   manteniendo el brillo del puente a la derecha/centro */
.page-hero--bridge::after,
.bridge-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: none;
  background:
    linear-gradient(90deg, rgba(0,7,43,.9) 0%, rgba(0,7,43,.66) 36%, rgba(0,7,43,.22) 70%, rgba(0,7,43,.42) 100%),
    linear-gradient(180deg, rgba(0,7,43,.55) 0%, rgba(0,7,43,0) 32%, rgba(0,7,43,.5) 100%);
  -webkit-mask-image: none; mask-image: none;
  z-index: 1;
}
.page-hero--bridge .page-hero__inner,
.bridge-band .page-hero__inner { position: relative; z-index: 3; }
@media (max-width: 860px) {
  /* en móvil el texto ocupa todo el ancho: velo más uniforme */
  .page-hero--bridge::after,
  .bridge-band::after {
    background: linear-gradient(180deg, rgba(0,7,43,.78) 0%, rgba(0,7,43,.5) 45%, rgba(0,7,43,.7) 100%);
  }
}

/* Texto del bloque de About sobre el puente: mismo tratamiento que el hero
   (eyebrow/títulos/párrafos en blanco y azul claro legibles sobre navy). */
.bridge-band .page-hero__inner { max-width: 100%; }
.bridge-band .bridge-band__copy { max-width: 60ch; }
.bridge-band .eyebrow { color: #9AA6D6; }
.bridge-band h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin: 12px 0 18px; max-width: 18ch; }
.bridge-band p { color: #C2CBF5; }
.bridge-band p + p { margin-top: 18px; }
.bridge-band p.pending { color: #8c97c8; }

/* ============================================================
   Vanta WAVES MUY translúcido sobre el puente (scope Services).
   Capa de movimiento apenas perceptible: encima de la foto (z0)
   y del velo (z1), por DEBAJO del texto (z3). El puente sigue
   siendo el protagonista. Sin JS / sin WebGL queda invisible
   (transparente) y el hero luce como antes.
   ============================================================ */
.page-hero__waves {
  position: absolute;
  inset: 0;
  z-index: 2;                 /* entre velo (1) y texto (3) */
  pointer-events: none;
  opacity: 0;                 /* invisible hasta que Vanta arranca */
  transition: opacity 1.2s ease;
}
/* el <canvas> que inyecta Vanta debe llenar el contenedor */
.page-hero__waves > canvas { display: block; width: 100% !important; height: 100% !important; }
.page-hero__waves.is-ready { opacity: .5; }   /* translúcido pero más visible */

@media (prefers-reduced-motion: reduce) {
  .page-hero__waves { display: none; }   /* sin motion: solo la foto del puente */
}

/* ============================================================
   INDEX · bloque "What we do" (#services) sobre el PUENTE.
   Reutiliza el patrón compartido (.page-hero__bg / __waves /
   velo) sin duplicar fondo ni efecto: solo añade el scope
   #services.services--bridge a los selectores compartidos y
   ordena el stacking (foto z0 → velo z1 → nubes z2 → contenido).
   El bloque ya era de tema oscuro (.section, navy), así que el
   titular, eyebrow y tarjetas siguen siendo claros sobre navy.
   ============================================================ */
.services--bridge { overflow: hidden; }   /* recorta el canvas de nubes */
/* (Sin puente y sin velo: el bloque mantiene su fondo navy y solo se le
   superpone el efecto de nubes. El contenido va por encima.) */
/* todo el contenido del bloque por encima de las capas nuevas */
.services--bridge > .wrap { position: relative; z-index: 3; }
/* la "red viva" es la firma: se mantiene, solo baja un punto de
   opacidad para no recargar sobre la textura del puente */
/* El cliente no quiere la "red viva" en este bloque: se oculta aquí
   (solo en #services del index; la firma sigue donde aplique). */
.services--bridge .services-net { display: none; }

