/* CELUMIT · tipografías autoalojadas (Inter y Montserrat, SIL Open Font License).
   Solo los subconjuntos latin y latin-ext: es lo que necesita un sitio en
   castellano. Autoalojarlas elimina la conexión a Google, acelera la carga y
   permite cerrar la política de contenidos. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.1ad231aa.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.260c81a4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.1ad231aa.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.260c81a4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.1ad231aa.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.260c81a4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.d16dfe26.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.311d352d.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.d16dfe26.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.311d352d.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.d16dfe26.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.311d352d.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CELUMIT · Sistema de diseño
   Derivado del Portfolio de Soluciones Tecnológicas (láminas de marca).
   Tipografía: Montserrat (display) + Inter (texto).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --navy-900: #08183a;
  --navy-800: #0a2a5e;
  --navy-700: #123f8c;
  --navy-600: #14418a;
  --blue-600: #1667d6;
  --blue-500: #2f80ed;
  --blue-400: #3e90ff;
  --blue-200: #a9cdfb;
  --blue-050: #eaf2fe;
  --cyan-400: #21d4fd;

  /* Acentos de producto */
  --acc-xoranos: #1667d6;
  --acc-mec: #16a46b;
  --acc-lex: #7b4fd1;
  --acc-globesp: #00b8a9;
  --acc-celusec: #22d3ee;
  --acc-ia: #f0891f;
  --acc-ens: #1667d6;

  /* Neutros */
  --ink: #0d1b30;
  --ink-soft: #3c4c64;
  --muted: #5b6b80;
  --line: #e2eaf4;
  --line-soft: #eef3f9;
  --surface: #ffffff;
  --surface-alt: #f5f8fc;
  --surface-tint: #eef4fc;

  /* Acento activo — lo sobreescriben las páginas de producto */
  --accent: var(--blue-600);
  --accent-soft: rgba(22, 103, 214, .1);

  /* Tipografía */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Geometría */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 2px 8px rgba(10, 42, 94, .06);
  --sh-md: 0 12px 32px rgba(10, 42, 94, .08);
  --sh-lg: 0 28px 70px rgba(10, 42, 94, .12);
  --sh-blue: 0 16px 40px rgba(22, 103, 214, .28);

  /* Ritmo */
  --gap: 28px;
  --section-y: clamp(64px, 8vw, 116px);
  --header-h: 82px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 800;
  /* Reparte las líneas del titular en bloques equilibrados en vez de dejar
     una palabra suelta en la última. */
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }   /* evita la palabra huérfana final */
p:last-child { margin-bottom: 0; }
strong { color: var(--navy-800); font-weight: 600; }

::selection { background: var(--blue-600); color: #fff; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Utilidades de estructura
   -------------------------------------------------------------------------- */
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.container--narrow { width: min(820px, calc(100% - 48px)); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-alt); }
.section--tight { padding-block: clamp(48px, 5vw, 72px); }

.skip-link {
  position: fixed; left: 20px; top: -120px; z-index: 999;
  background: #fff; color: var(--navy-800); font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-sm); box-shadow: var(--sh-md);
  transition: top .2s;
}
.skip-link:focus { top: 20px; }

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

/* Malla de nodos: patrón de fondo heredado de las láminas de marca */
.mesh {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(62,144,255,.16) 0 2px, transparent 2px),
    radial-gradient(circle at 34% 8%,  rgba(62,144,255,.14) 0 3px, transparent 3px),
    radial-gradient(circle at 58% 26%, rgba(62,144,255,.12) 0 2px, transparent 2px),
    radial-gradient(circle at 82% 12%, rgba(62,144,255,.14) 0 3px, transparent 3px),
    radial-gradient(circle at 94% 40%, rgba(62,144,255,.12) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 62%, rgba(62,144,255,.10) 0 2px, transparent 2px);
}

/* Franja diagonal azul del lateral derecho (motivo de las láminas) */
.wedge {
  position: absolute; top: 0; right: 0; bottom: 0; width: 34%;
  pointer-events: none; overflow: hidden;
}
.wedge::before, .wedge::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 55%;
  transform: skewX(-14deg); border-radius: 8px;
}
.wedge::before { right: -14%; background: linear-gradient(180deg, #1c62c8, #0e2f6d); opacity: .9; }
.wedge::after  { right: 22%;  background: linear-gradient(180deg, #2f80ed, #1553ae); opacity: .35; }

/* --------------------------------------------------------------------------
   4. Botones y enlaces de acción
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: linear-gradient(115deg, var(--blue-500), var(--blue-600));
  color: #fff; box-shadow: var(--sh-blue);
  transition: transform .2s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(22,103,214,.36); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .2s; }
.btn:hover .arw { transform: translate(3px, -3px); }

.btn--ghost {
  background: transparent; color: var(--navy-800);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--blue-400); background: var(--blue-050); }

.btn--light { background: #fff; color: var(--navy-800); box-shadow: var(--sh-md); }
.btn--light:hover { box-shadow: var(--sh-lg); }

.btn--onDark {
  background: rgba(255,255,255,.08); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28);
}
.btn--onDark:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

.btn--sm { padding: 11px 20px; font-size: .875rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--accent);
}
.link-arrow .arw { transition: transform .2s; }
.link-arrow:hover .arw { transform: translate(4px, -4px); }
.link-arrow--light { color: var(--cyan-400); }

/* --------------------------------------------------------------------------
   5. Cabecera y navegación
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: height .28s, background .28s, box-shadow .28s;
}
.header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 24, 58, .0); backdrop-filter: blur(0);
  transition: background .28s, backdrop-filter .28s;
}
.header.is-stuck { height: 68px; box-shadow: 0 8px 30px rgba(8,24,58,.18); }
.header.is-stuck::after { background: rgba(8, 24, 58, .92); backdrop-filter: blur(16px); }
/* Páginas de fondo claro: la cabecera arranca ya en sólido */
.header.is-solid::after { background: rgba(8, 24, 58, .96); backdrop-filter: blur(16px); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logotipo: imagen real de marca, no texto compuesto */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.header.is-stuck .brand img { height: 26px; }
@media (max-width: 480px) { .brand img { height: 25px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; color: #d7e5f7;
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: #fff; background: rgba(255,255,255,.09); }
.nav__link[aria-current="page"] { color: var(--cyan-400); }
.nav__caret { width: 10px; height: 10px; transition: transform .2s; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Megamenú */
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(700px, 92vw); background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 14px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.mega__link {
  display: flex; gap: 13px; padding: 12px 13px; border-radius: var(--r-md);
  align-items: flex-start; transition: background .18s;
}
.mega__link:hover { background: var(--surface-alt); }
.mega__ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: var(--mi, var(--blue-600));
}
.mega__ico svg { width: 20px; height: 20px; }
/* `display: block` es imprescindible: son <span> y sin esto el título y la
   descripción se imprimían pegados en la misma línea. */
.mega__t {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .92rem; line-height: 1.3; color: var(--navy-800);
}
.mega__d {
  display: block; margin-top: 4px; font-size: .8rem; line-height: 1.45;
  color: var(--muted);
}
/* Sin `min-width: 0` un texto largo desborda la caja del enlace */
.mega__link > span:last-child { min-width: 0; overflow-wrap: break-word; }
.mega__foot {
  margin-top: 8px; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--surface-alt); display: flex; justify-content: space-between;
  align-items: center; gap: 14px; font-size: .85rem;
}

.nav__cta { margin-left: 8px; }

/* Selector de idioma */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); }
.lang a {
  padding: 5px 11px; border-radius: var(--r-pill); font-size: .78rem;
  font-weight: 700; color: #cfe0f5; letter-spacing: .04em;
}
.lang a[aria-current] { background: #fff; color: var(--navy-800); }

/* Botón hamburguesa */
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.1);
  border-radius: var(--r-sm); cursor: pointer; padding: 0; place-items: center;
}
.burger span {
  display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #cfdcee;
  padding-block: calc(var(--header-h) + clamp(56px, 7vw, 104px)) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(120% 100% at 78% 0%, #17529f 0%, transparent 55%),
    radial-gradient(90% 80% at 8% 100%, #0d2f6d 0%, transparent 60%),
    linear-gradient(165deg, #0b2352 0%, #08183a 60%, #061229 100%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.hero__glow--a { width: 480px; height: 480px; top: -140px; right: -80px; background: rgba(47,128,237,.42); }
.hero__glow--b { width: 380px; height: 380px; bottom: -160px; left: -100px; background: rgba(33,212,253,.18); }

.hero__grid {
  position: relative; display: grid; gap: clamp(40px, 5vw, 64px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center;
}
/* La composición sangra hacia el borde derecho: así la captura se ve a un
   tamaño en el que la interfaz se lee, sin robar espacio al titular. */
.hero__visual { justify-self: stretch; width: auto; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 40ch; margin-top: 22px; color: #b9cbe4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-400);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-400), transparent);
}
.eyebrow--dark { color: var(--blue-600); }
.eyebrow--dark::before { background: linear-gradient(90deg, var(--blue-600), transparent); }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #9fb6d4;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); }

/* Banda inferior del hero con las capacidades */
.hero__strip {
  position: relative; margin-top: clamp(48px, 6vw, 80px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 30px;
}
.hero__strip span {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: #8fa8c8;
}
.hero__strip i { width: 5px; height: 5px; border-radius: 50%; background: rgba(143,168,200,.5); }

/* Visual del hero: escaparate interactivo de plataformas ------------------- */
.showcase { position: relative; width: 118%; }
.showcase__frame {
  position: relative; aspect-ratio: 1280 / 695; border-radius: 14px;
  background: linear-gradient(160deg, #0d2f6d, #08183a);
  box-shadow: 0 34px 76px rgba(3, 12, 30, .58), 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}
.showcase__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: scale(1.015);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
.showcase__slide.is-active { opacity: 1; transform: none; }
.showcase__slide picture, .showcase__slide img { display: block; width: 100%; height: 100%; }
.showcase__slide img { object-fit: cover; object-position: top left; }

.showcase__tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
}
.showcase__tabs button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 12px; border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.06); color: #b9cbe4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}
.showcase__tabs button svg { width: 14px; height: 14px; color: var(--acc); flex: none; }
@media (max-width: 900px) { .showcase__tabs { justify-content: center; } }
.showcase__tabs button:hover { background: rgba(255,255,255,.12); color: #fff; }
.showcase__tabs button[aria-selected="true"] {
  background: rgba(255,255,255,.14); color: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 62%, transparent),
              0 6px 18px color-mix(in srgb, var(--acc) 26%, transparent);
}
.showcase__tabs button[aria-selected="true"] svg { color: var(--acc); }

/* Barra de progreso del cambio automático */
.showcase__frame::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan-400), transparent);
  opacity: .9;
}
.showcase.is-playing .showcase__frame::after { animation: avance 6s linear infinite; }
@keyframes avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   7. Encabezados de sección
   -------------------------------------------------------------------------- */
.head { max-width: 780px; margin-bottom: clamp(38px, 4vw, 58px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head h2 em { font-style: normal; color: var(--accent); }
.head p { font-size: 1.06rem; color: var(--muted); margin-top: 18px; }

.head--split {
  max-width: none; display: grid; gap: 28px 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end;
}
.head--split h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
.head--split p { margin-top: 0; }

/* --------------------------------------------------------------------------
   8. Tarjetas
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.card {
  position: relative; background: #fff; border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sh-sm); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }
.card__num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--line-soft); line-height: 1;
}
.card__ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  color: #fff; margin-bottom: 22px; background: var(--ci, var(--blue-600));
  box-shadow: 0 10px 24px rgba(22,103,214,.24);
}
.card__ico svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .96rem; color: var(--muted); }
.card__list { margin: 20px 0 0; display: grid; gap: 10px; }
.card__list li {
  position: relative; padding-left: 26px; font-size: .92rem; color: var(--ink-soft);
}
.card__list li::before {
  content: ""; position: absolute; left: 1px; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.card > .link-arrow { margin-top: 24px; }
.card__spacer { flex: 1; }

/* Tarjeta compacta de característica */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s, box-shadow .2s;
}
.tile:hover { border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.tile__ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.tile__ico svg { width: 20px; height: 20px; }
.tile b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--navy-800); }
.tile span { display: block; font-size: .87rem; color: var(--muted); margin-top: 3px; }

/* Estadísticas */
.stat { position: relative; text-align: center; padding: 10px 22px; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 3.8vw, 3.1rem); line-height: 1; letter-spacing: -.035em;
  background: linear-gradient(120deg, var(--blue-500), var(--navy-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span {
  display: block; margin-top: 12px; font-size: .87rem; color: var(--muted);
  max-width: 24ch; margin-inline: auto; line-height: 1.5;
}
@media (max-width: 640px) { .stat + .stat::before { display: none; } }

/* Pasos del método */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.step {
  position: relative; padding: 28px 22px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line);
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  color: var(--blue-600); letter-spacing: .08em;
}
.step h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.step p { font-size: .88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Filas de producto
   -------------------------------------------------------------------------- */
.prow {
  display: grid; gap: clamp(32px, 5vw, 68px); align-items: center;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}
.prow + .prow { margin-top: clamp(56px, 7vw, 104px); }
.prow--rev .prow__media { order: -1; }

.plabel {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px;
  border-radius: var(--r-pill); background: var(--accent-soft);
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--accent);
  margin-bottom: 18px;
}
.plabel i {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.plabel i svg { width: 14px; height: 14px; }

.prow h3 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; }
.prow__lead { margin-top: 16px; font-size: 1.02rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 28px; }
.chips span {
  padding: 8px 15px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 500;
  background: var(--surface-alt); color: var(--ink-soft); border: 1px solid var(--line);
}

/* Figura destacada */
.figure { margin: 0; text-align: center; }
.figure picture { display: block; }
.figure img {
  width: 100%; max-width: 760px; height: auto; margin-inline: auto;
  border-radius: var(--r-lg);
}
.figure figcaption {
  margin-top: 20px; font-size: .88rem; color: var(--muted);
  max-width: 60ch; margin-inline: auto;
}
.dark .figure figcaption { color: #a8bfdb; }

/* Captura real de producto: panel suave, sin cromo de navegador */
.shot {
  position: relative; border-radius: var(--r-lg); padding: clamp(18px, 3vw, 34px);
  display: grid; place-items: center; overflow: hidden;
  /* Base casi blanca: las capturas vienen sobre fondo blanco y así no se ve
     el corte del rectángulo. El acento del producto queda como halo de esquina. */
  background:
    radial-gradient(110% 90% at 84% 2%, color-mix(in srgb, var(--accent) 13%, transparent) 0%, transparent 58%),
    linear-gradient(160deg, #fdfeff, #f0f4fa);
  box-shadow: inset 0 0 0 1px rgba(10,42,94,.06);
}
.shot picture { display: contents; }
.shot img {
  width: 100%; max-width: 520px; height: auto; border-radius: 8px;
  filter: drop-shadow(0 16px 30px rgba(10, 42, 94, .16));
}
.section--tint .shot { background:
    radial-gradient(110% 90% at 84% 2%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 58%),
    linear-gradient(160deg, #ffffff, #f4f8fd); }

/* Mockup de navegador */
.screen {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  background: #0d1b30; border: 1px solid rgba(255,255,255,.08);
}
.screen__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: #0a1526; border-bottom: 1px solid rgba(255,255,255,.07);
}
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.screen__bar span {
  margin-left: 10px; font-size: .72rem; color: #7f97b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.screen img { width: 100%; }
/* Maqueta de interfaz: marcador de posición hasta sustituir por captura real */
.mock {
  aspect-ratio: 16/10; display: grid; grid-template-columns: 62px 1fr;
  background: linear-gradient(150deg, #10294f, #0a1830); overflow: hidden;
}
.mock__side {
  padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 11px;
  background: rgba(0,0,0,.28); border-right: 1px solid rgba(255,255,255,.06);
}
.mock__side b { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); opacity: .9; }
.mock__side i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.13); }
.mock__side i:first-of-type { background: var(--accent); opacity: .8; }
.mock__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mock__top { display: flex; align-items: center; justify-content: space-between; }
.mock__top span { width: 38%; height: 11px; border-radius: 4px; background: rgba(255,255,255,.28); }
.mock__top em { width: 74px; height: 22px; border-radius: 999px; background: var(--accent); opacity: .9; }
.mock__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__stats i {
  height: 46px; border-radius: 9px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
}
.mock__stats i:first-child { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.mock__chart {
  flex: 1; min-height: 60px; display: flex; align-items: flex-end; gap: 7px;
  padding: 12px; border-radius: 11px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.mock__chart s { flex: 1; border-radius: 4px 4px 0 0; background: var(--accent); opacity: .55; }
.mock__chart s:nth-child(1) { height: 38%; }
.mock__chart s:nth-child(2) { height: 62%; }
.mock__chart s:nth-child(3) { height: 46%; }
.mock__chart s:nth-child(4) { height: 84%; opacity: .95; }
.mock__chart s:nth-child(5) { height: 55%; }
.mock__chart s:nth-child(6) { height: 72%; }
.mock__chart s:nth-child(7) { height: 40%; }
.mock__chart s:nth-child(8) { height: 66%; }
.mock__rows { display: grid; gap: 7px; }
.mock__rows u { height: 9px; border-radius: 4px; background: rgba(255,255,255,.09); }
.mock__rows u:nth-child(1) { width: 92%; }
.mock__rows u:nth-child(2) { width: 78%; }
.mock__rows u:nth-child(3) { width: 85%; }
.mock__rows u:nth-child(4) { width: 64%; }

/* --------------------------------------------------------------------------
   9b. Panel de demostración tipo SOC
   Es una maqueta declaradamente ficticia, no una captura: sirve donde todavía
   no hay pantallazo real y se mantiene nítida a cualquier tamaño.
   -------------------------------------------------------------------------- */
.soc {
  --soc-acc: var(--accent, #3c5f92);
  aspect-ratio: 1280 / 695; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: 0 26px 60px rgba(3,12,30,.28), 0 0 0 1px rgba(10,42,94,.1);
  background: linear-gradient(160deg, #0b1a33, #07101f);
  container-type: inline-size;
  font-family: var(--font-body);
}
.soc__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 2.4% 3%; background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.soc__bar i { width: 1.6cqw; max-width: 9px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.16); }
.soc__bar span {
  margin-left: 1.5cqw; font-size: 1.7cqw; letter-spacing: .08em; text-transform: uppercase;
  color: #7f97b8;
}
.soc__bar em {
  margin-left: auto; font-style: normal; font-size: 1.5cqw; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #6ee7a8;
  padding: .5cqw 1.4cqw; border-radius: 999px; background: rgba(110,231,168,.14);
}
.soc__body { flex: 1; display: grid; grid-template-columns: 9% 1fr; min-height: 0; }
.soc__side {
  padding: 3% 0; display: flex; flex-direction: column; align-items: center; gap: 8%;
  background: rgba(0,0,0,.22); border-right: 1px solid rgba(255,255,255,.06);
}
.soc__side b { width: 46%; aspect-ratio: 1; border-radius: 22%; background: var(--soc-acc); }
.soc__side u { width: 40%; height: 3.5cqw; max-height: 7px; border-radius: 3px; background: rgba(255,255,255,.12); }
.soc__main { padding: 2.6% 3%; display: flex; flex-direction: column; gap: 2.6%; min-height: 0; }

.soc__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6%; }
.soc__kpis > div {
  padding: 1.6% 2%; border-radius: 8px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.soc__kpis small {
  display: block; font-size: 1.35cqw; letter-spacing: .1em; text-transform: uppercase;
  color: #7d95b6;
}
.soc__kpis strong {
  display: block; margin-top: .5cqw; font-family: var(--font-display);
  font-size: 3.1cqw; font-weight: 800; color: #eaf2fc; line-height: 1;
}
.soc__kpis .is-alto { border-color: rgba(255,138,128,.35); background: rgba(255,99,84,.1); }
.soc__kpis .is-alto strong { color: #ff9d90; }

.soc__cols { flex: 1; display: grid; grid-template-columns: 1.55fr 1fr; gap: 2%; min-height: 0; }
.soc__chart {
  display: flex; align-items: flex-end; gap: 1.4%; padding: 3%;
  border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.soc__chart s { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--soc-acc); opacity: .62; }
.soc__chart s.is-alto { background: #ff6354; opacity: .95; }
.soc__alerts {
  display: flex; flex-direction: column; justify-content: space-between; padding: 3%;
  border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.soc__alerts > div { display: flex; align-items: center; gap: 4%; }
.soc__alerts i { width: 1.5cqw; max-width: 8px; aspect-ratio: 1; border-radius: 50%; flex: none; }
.soc__alerts u { height: 1.4cqw; max-height: 7px; border-radius: 3px; background: rgba(255,255,255,.14); }
.soc__alerts .is-crit i { background: #ff5245; box-shadow: 0 0 0 .5cqw rgba(255,82,69,.22); }
.soc__alerts .is-crit u { width: 86%; background: rgba(255,255,255,.26); }
.soc__alerts .is-alto i { background: #ff9d3d; }
.soc__alerts .is-alto u { width: 72%; }
.soc__alerts .is-medio i { background: #ffd23d; }
.soc__alerts .is-medio u { width: 64%; }
.soc__alerts .is-bajo i { background: #5ad1a0; }
.soc__alerts .is-bajo u { width: 50%; }

.soc__graph {
  position: relative; padding: 2% 3%; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: var(--soc-acc);
}
.soc__graph svg { width: 100%; height: auto; display: block; }
.soc__graph circle { fill: var(--soc-acc); opacity: .75; }
.soc__graph .nodo-alerta { fill: #ff6354; opacity: 1; }
.soc__graph span {
  position: absolute; right: 3%; bottom: 8%; font-size: 1.3cqw;
  letter-spacing: .1em; text-transform: uppercase; color: #6d86a8;
}

/* Dentro del escaparate del hero ocupa la lámina entera */
.showcase__mock { position: absolute; inset: 0; }
.showcase__mock .soc {
  width: 100%; height: 100%; aspect-ratio: auto;
  border-radius: 0; box-shadow: none;
}

/* Logotipo del producto en la cabecera de su página */
.pagehead__logo { margin: 0 0 20px; }
.pagehead__logo.is-plain { margin-bottom: 26px; }
.pagehead__logo img {
  height: 92px; width: auto; padding: 13px; border-radius: 20px;
  background: #fff; box-shadow: 0 14px 34px rgba(3,12,30,.35);
}
/* Ya viene en blanco: no necesita tarjeta detrás */
.pagehead__logo.is-plain img {
  height: 62px; padding: 0; background: none; border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 22px rgba(3, 12, 30, .45));
}
@media (max-width: 640px) {
  .pagehead__logo img { height: 68px; }
  .pagehead__logo.is-plain img { height: 48px; }
}

/* --------------------------------------------------------------------------
   10. Ecosistema / sectores / tecnologías
   -------------------------------------------------------------------------- */
.hexcard {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.hexcard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.hexcard__hex {
  width: 60px; aspect-ratio: 1; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--ci, var(--blue-600)); color: #fff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hexcard__hex svg { width: 26px; height: 26px; }
.hexcard h3 { font-size: 1.05rem; }
a.hexcard { display: block; }
a.hexcard:hover h3 { color: var(--blue-600); }
.hexcard__soon {
  position: absolute; top: 14px; right: 14px; padding: 4px 11px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; background: var(--surface-alt); color: var(--muted);
}
.hexcard p { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.techs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.tech {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 16px; text-align: center;
}
.tech b { display: block; font-family: var(--font-display); font-size: .9rem; color: var(--navy-800); }
.tech span { display: block; font-size: .78rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   11. Bandas oscuras, CTA y "por qué"
   -------------------------------------------------------------------------- */
.dark {
  position: relative; overflow: hidden; color: #c3d4e9;
  background:
    radial-gradient(100% 120% at 85% 0%, #17529f 0%, transparent 55%),
    linear-gradient(160deg, #0b2352, #08183a);
}
.dark h2, .dark h3 { color: #fff; }
.dark h2 em { font-style: normal; color: var(--cyan-400); }
.dark .head p { color: #a8bfdb; }

.ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 34px; padding: 22px 34px; border-radius: var(--r-pill);
  background: linear-gradient(100deg, #0e2f6d, #143f8c);
  box-shadow: var(--sh-lg);
}
/* En cuanto la banda parte en varias líneas, el radio de píldora deforma los
   extremos: se pasa a rejilla con esquinas normales. */
@media (max-width: 1080px) {
  .ribbon {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px; border-radius: var(--r-lg); padding: 24px 26px;
  }
  .ribbon li { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .ribbon { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; padding: 22px; }
  .ribbon li { font-size: .84rem; }
}
@media (max-width: 420px) { .ribbon { grid-template-columns: 1fr; } }
.ribbon li { display: flex; align-items: center; gap: 10px; color: #dbe8f8; font-size: .9rem; font-weight: 500; }
.ribbon svg { width: 19px; height: 19px; color: var(--cyan-400); }

.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(38px, 5vw, 64px);
  display: grid; gap: 30px; grid-template-columns: minmax(0,1.15fr) auto; align-items: center;
  background:
    radial-gradient(90% 130% at 88% 10%, #1f63c4 0%, transparent 58%),
    linear-gradient(140deg, #0d2f6d, #08183a);
  box-shadow: var(--sh-lg);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 78%, rgba(33,212,253,.14) 0 2px, transparent 2px),
    radial-gradient(circle at 42% 24%, rgba(33,212,253,.10) 0 3px, transparent 3px),
    radial-gradient(circle at 68% 86%, rgba(33,212,253,.10) 0 2px, transparent 2px);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cta p { color: #b5c9e4; margin-top: 14px; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 22px; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--blue-200); box-shadow: var(--sh-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  translate: 0 -70%; rotate: 45deg; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq p { padding: 0 0 20px; font-size: .95rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12b. Dolores del cliente
   -------------------------------------------------------------------------- */
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 30px; transition: border-color .2s, box-shadow .2s;
}
.pain:hover { border-color: var(--blue-200); box-shadow: var(--sh-md); }
.pain__q {
  position: relative; margin: 0 0 18px; padding-left: 34px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem;
  color: var(--navy-800); line-height: 1.35;
}
.pain__q::before {
  content: "“"; position: absolute; left: 0; top: -4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem; line-height: 1; color: var(--blue-200);
}
.pain__a { display: flex; gap: 13px; align-items: flex-start; }
.pain__a > span {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid;
  place-items: center; background: var(--accent-soft); color: var(--accent);
}
.pain__a > span svg { width: 18px; height: 18px; }
.pain__a p { margin: 0; font-size: .94rem; color: var(--muted); }
.dark .pain { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.dark .pain__q { color: #fff; }
.dark .pain__q::before { color: var(--cyan-400); }
.dark .pain__a p { color: #a8bfdb; }
.dark .pain__a > span { background: rgba(33,212,253,.14); color: var(--cyan-400); }

/* --------------------------------------------------------------------------
   13. Formulario de contacto
   -------------------------------------------------------------------------- */
.contact {
  display: grid; gap: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start;
}
.contact__aside .head { margin-bottom: 28px; }
.contact__data { display: grid; gap: 14px; margin-top: 28px; }
.contact__data a, .contact__data span {
  display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-soft);
}
.contact__data svg { width: 18px; height: 18px; color: var(--blue-600); flex: none; }
.contact__legal {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .84rem; line-height: 1.6; color: var(--muted);
}
.contact__legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.contact__legal a:hover { color: var(--navy-800); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--sh-md); display: grid; gap: 18px;
}
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form label { display: grid; gap: 7px; font-size: .87rem; font-weight: 600; color: var(--navy-800); }
.form input, .form select, .form textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-alt); font-size: .95rem; font-weight: 400; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
}
.form textarea { resize: vertical; min-height: 120px; }
.form .form__check {
  display: flex; align-items: flex-start; gap: 11px; font-size: .85rem;
  font-weight: 400; color: var(--muted);
}
.form .form__check input {
  width: 19px; height: 19px; margin-top: 2px; accent-color: var(--blue-600); flex: none;
}
.form__check a { color: var(--blue-600); text-decoration: underline; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; }

.alert { padding: 15px 18px; border-radius: var(--r-sm); font-size: .92rem; }
.alert--ok { background: #e7f7ef; color: #12704a; box-shadow: inset 0 0 0 1px #b7e6cf; }
.alert--err { background: #fdecec; color: #a12727; box-shadow: inset 0 0 0 1px #f3c4c4; }

/* --------------------------------------------------------------------------
   14. Migas y páginas de texto
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative; overflow: hidden; color: #c3d4e9;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 56px) 60px;
  background:
    radial-gradient(110% 140% at 82% 0%, #17529f 0%, transparent 58%),
    linear-gradient(160deg, #0b2352, #08183a);
}
/* Franja diagonal azul del lateral derecho: el motivo de las láminas de marca */
.pagehead::after {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%;
  right: -6%; width: 26%; pointer-events: none;
  transform: skewX(-13deg);
  background: linear-gradient(180deg, rgba(47,128,237,.5), rgba(14,47,109,.18));
  border-radius: 10px;
}
.pagehead::before {
  content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%;
  right: 16%; width: 12%; pointer-events: none;
  transform: skewX(-13deg);
  background: linear-gradient(180deg, rgba(33,212,253,.22), transparent);
  border-radius: 10px;
}
@media (max-width: 760px) { .pagehead::after, .pagehead::before { display: none; } }
.pagehead h1 { color: #fff; max-width: 20ch; }
.pagehead p { margin-top: 20px; max-width: 62ch; color: #a8bfdb; font-size: 1.06rem; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #8fa8c8; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.crumbs li { display: flex; gap: 8px; }
.crumbs [aria-current] { color: var(--cyan-400); }

.prose h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.prose p, .prose li { font-size: .98rem; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.prose a { color: var(--blue-600); text-decoration: underline; }
.prose .note {
  padding: 16px 20px; border-radius: var(--r-md); background: var(--surface-alt);
  border-left: 3px solid var(--blue-600); font-size: .92rem; margin: 0 0 1em;
}

/* --------------------------------------------------------------------------
   15. Pie
   -------------------------------------------------------------------------- */
.footer { background: #08183a; color: #93aecd; padding-block: clamp(52px, 6vw, 76px) 28px; }
.footer__top {
  display: grid; gap: 36px; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__about p {
  margin-top: 18px; max-width: 44ch;
  font-size: .92rem; line-height: 1.65;
  /* `pretty` reparte el último renglón: sin esto la columna quedaba con
     una palabra suelta al final y el bloque se veía descuadrado. */
  text-wrap: pretty; hyphens: auto;
}
.footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer__links { display: grid; gap: 11px; font-size: .92rem; }
.footer__links a:hover { color: var(--cyan-400); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  align-items: center; padding-top: 26px; font-size: .82rem;
}
.footer__bottom > span { max-width: 62ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a:hover { color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badges span {
  padding: 6px 12px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; color: #b9cee8; background: rgba(255,255,255,.07);
}

/* --------------------------------------------------------------------------
   16. Cookies
   -------------------------------------------------------------------------- */
.cookies {
  position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 200;
  width: min(680px, calc(100% - 32px)); display: none; gap: 18px; align-items: center;
  padding: 18px 22px; border-radius: var(--r-md); background: #fff;
  box-shadow: var(--sh-lg); font-size: .88rem; color: var(--muted);
}
.cookies.is-open { display: flex; }
.cookies a { color: var(--blue-600); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Animación de entrada
   -------------------------------------------------------------------------- */
/* Entrada: solo `opacity` y `transform`, que el compositor resuelve sin
   recalcular diseño. Curva de salida suave, sin rebote. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: translate3d(0, 0, 0); }

/* Micro-interacciones coherentes en todo el sitio */
.card, .hexcard, .tile, .pain, .tech, .step {
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              box-shadow .28s ease, border-color .28s ease;
}
.tech:hover, .step:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.shot img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
@media (hover: hover) {
  .prow:hover .shot img { transform: translateY(-6px) scale(1.015); }
}
.mega__link, .btn, .link-arrow, .nav__link { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .shot img { transform: none; }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) { .showcase { width: 108%; } }

/* Portátil pequeño */
@media (max-width: 1080px) {
  .grid--4, .grid--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .techs { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .head--split { grid-template-columns: 1fr; align-items: start; }
  .prow { gap: 36px; }
}

/* Tablet: dos columnas antes de caer a una sola. El salto de tres a una
   dejaba tarjetas larguísimas y mucho hueco lateral. */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: 100%; margin-inline: auto; }
  .showcase { width: 100%; }
  .grid--3, .grid--4, .grid--6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .techs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .prow { grid-template-columns: 1fr; }
  .prow--rev .prow__media { order: 0; }
  .shot img { max-width: 400px; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column;
    align-items: stretch; gap: 4px; padding: 18px; background: #08183a;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(4,12,30,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 12px; font-size: 1rem; justify-content: space-between; }
  .mega {
    position: static; width: auto; translate: none; transform: none; opacity: 1;
    visibility: visible; box-shadow: none; background: rgba(255,255,255,.05);
    padding: 6px; display: none; margin-bottom: 6px;
  }
  .nav__item.is-open .mega { display: block; }
  .mega__grid { grid-template-columns: 1fr; }
  .mega__link:hover { background: rgba(255,255,255,.07); }
  .mega__t { color: #fff; }
  .mega__d { color: #9db6d6; }
  .mega__foot { background: rgba(255,255,255,.06); color: #9db6d6; }
  .nav__cta { margin: 10px 0 0; }
  .lang { align-self: flex-start; margin-top: 10px; }
  .header:has(.nav.is-open)::after { background: rgba(8,24,58,.96); backdrop-filter: blur(16px); }
  .contact { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__strip { gap: 10px 18px; }
  .hero__strip span { font-size: .72rem; letter-spacing: .1em; }
  .container, .container--narrow { width: calc(100% - 36px); }
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
  .grid--2.grid--keep, .grid--4.grid--keep { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .techs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .shot { padding: 16px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .card { padding: 26px; }
  .cookies { flex-direction: column; align-items: stretch; text-align: center; }
}

/* --------------------------------------------------------------------------
   19. Tira de marcas («Confían en nosotros»)
   -------------------------------------------------------------------------- */
.logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px clamp(28px, 5vw, 64px);
}
.logos__item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 14px 6px; opacity: .6; filter: grayscale(1);
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.logos__item:hover { opacity: 1; filter: none; transform: translateY(-2px); }
/* Logotipo real y marca tipográfica comparten caja para que la fila cuadre */
.logos__item img {
  max-height: 46px; max-width: 190px; width: auto; height: auto;
  object-fit: contain;
}
.logos__item b {
  display: flex; align-items: center; min-height: 46px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.34rem;
  letter-spacing: -.01em; color: var(--navy-800); line-height: 1;
}
.logos__item span {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.dark .logos__item b { color: #fff; }
.dark .logos__item span { color: #9fb6d4; }
@media (max-width: 640px) {
  .logos { gap: 12px 26px; }
  .logos__item b { font-size: 1.1rem; }
}

/* --------------------------------------------------------------------------
   20. Móvil: ajuste fino
   El grueso de la maqueta ya cae a una columna en la sección 18. Aquí se
   corrige lo que en una pantalla estrecha se lee o se toca mal: escala
   tipográfica, ritmo vertical, zonas de toque y los efectos de ratón.
   -------------------------------------------------------------------------- */

/* Sin ratón no hay «hover»: en una pantalla táctil el efecto se queda pegado
   después del toque y parece un fallo de la página. */
@media (hover: none) {
  .card:hover, .hexcard:hover, .tile:hover, .pain:hover,
  .tech:hover, .step:hover, .btn:hover, .logos__item:hover {
    transform: none;
  }
  .btn:hover { box-shadow: var(--sh-blue); }
  /* Los logotipos de cliente se ven ya a color: nadie va a pasar el ratón. */
  .logos__item { opacity: 1; filter: none; }
}

@media (max-width: 640px) {
  /* Ritmo vertical: la portada pasaba de veinte mil píxeles de alto. */
  :root { --section-y: clamp(54px, 11vw, 76px); --gap: 18px; }

  /* Escala tipográfica propia. `balance` reparte bien un titular ancho, pero
     a 360 px deja pirámides de tres y cuatro renglones: mejor `pretty`. */
  h1, h2, h3, h4 { text-wrap: pretty; }
  h1 { font-size: clamp(2rem, 8.2vw, 2.7rem); }
  h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  h3 { font-size: 1.1rem; }
  .head--split h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  .cta h2 { font-size: clamp(1.5rem, 6.2vw, 1.95rem); }
  .prow h3 { font-size: clamp(1.5rem, 6.2vw, 1.9rem); }
  .head { margin-bottom: 30px; }
  .head p { font-size: 1rem; margin-top: 14px; }
  .hero__lead { font-size: 1.02rem; margin-top: 18px; }
  .prose h2 { font-size: 1.32rem; margin-top: 34px; }

  /* Zonas de toque: las llamadas a la acción ocupan el ancho, así el pulgar
     no tiene que apuntar y las dos opciones pesan lo mismo. */
  .hero__actions, .pagehead__actions, .cta__actions { gap: 10px; }
  .hero__actions .btn, .pagehead__actions .btn, .cta__actions .btn { width: 100%; }
  .btn { padding: 15px 22px; }
  .footer__links a, .footer__legal a, .contact__data a { display: inline-block; padding-block: 4px; }
  .showcase__tabs button { padding: 10px 13px; font-size: .76rem; }

  /* Por debajo de 16 px iOS amplía la página al enfocar un campo. */
  .form input, .form select, .form textarea { font-size: 16px; padding: 14px 15px; }

  /* Tarjetas cortas: dos por fila ahorran media pantalla de arrastre. */
  .grid--hex { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .hexcard { padding: 22px 14px; }
  .hexcard__hex { width: 48px; margin-bottom: 14px; }
  .hexcard__hex svg { width: 21px; height: 21px; }
  .hexcard h3 { font-size: .95rem; }
  .hexcard p { font-size: .82rem; }

  /* La tira de marcas caía en una columna de cuatro logotipos sueltos. */
  .logos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
  .logos__item { padding: 12px 4px; }
  .logos__item img { max-height: 38px; max-width: 100%; }

  /* Respiración interna: menos margen dentro de cada pieza. */
  .card { padding: 24px 22px; }
  .pain { padding: 24px 22px; }
  .tile { padding: 18px; }
  .faq details { padding: 2px 18px; }
  .prow + .prow { margin-top: 52px; }
  .cta { padding: 34px 24px; border-radius: var(--r-lg); }
  .pagehead { padding-block: calc(var(--header-h) + 38px) 44px; }

  /* Pie: el texto de la empresa arriba y las tres listas de enlaces en dos
     columnas, en vez de cuatro bloques apilados. */
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 20px; }
  .footer__about { grid-column: 1 / -1; }

  /* Aviso de cookies: al borde y respetando la barra inferior del sistema. */
  .cookies {
    width: calc(100% - 20px); bottom: max(10px, env(safe-area-inset-bottom));
    padding: 16px 18px; gap: 12px;
  }

  /* Un correo o una URL larga no deben ensanchar la página. */
  .contact__data a, .prose a { overflow-wrap: anywhere; }

  /* La maqueta del SOC se dibuja en porcentajes del ancho: a 360 px la
     rotulación se quedaba en cuatro píxeles. */
  .soc__bar span { font-size: max(8px, 1.7cqw); }
  .soc__bar em, .soc__graph span, .soc__kpis small { font-size: max(7px, 1.4cqw); }
}

/* Tableta: en una fila no caben los cuatro logotipos de cliente —lo que manda
   el ancho es el rótulo de debajo, no la imagen— y el cuarto se quedaba solo
   en un renglón. Dos por fila reparten el bloque. */
@media (max-width: 900px) {
  .logos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; }
  .logos__item img { max-height: 42px; max-width: 165px; }
}

/* Pantallas muy estrechas (iPhone SE y equivalentes) */
@media (max-width: 380px) {
  .container, .container--narrow { width: calc(100% - 28px); }
  .card { padding: 21px 18px; }
  .showcase__tabs button { font-size: .72rem; padding: 9px 11px; }
  .badges span { font-size: .68rem; padding: 5px 10px; }
  .hero__strip span { font-size: .68rem; }
}
