/* Estrato · estratosoluciones.com
   Tema oscuro único (marca tecnológica premium). Tokens semánticos derivados de la
   paleta de la plataforma de clientes. */

@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #060b18;
  --bg-2: #0a1324;
  --surface: #0e1a31;
  --surface-2: #0b1528;
  --text: #eaf1fc;
  --muted: #a3b3cc;
  --border: rgba(141, 182, 255, .14);
  --border-strong: #5a7095;
  --primary: #5b95ff;
  --primary-deep: #2f6fed;
  --on-primary: #ffffff;
  --primary-soft: rgba(91, 149, 255, .14);
  --link: #8db6ff;
  --cyan: #4cc9f0;
  --indigo: #8b9bff;
  --ok: #6fd39c;
  --ok-soft: rgba(111, 211, 156, .14);
  --warn: #f0bd66;
  --warn-soft: rgba(240, 189, 102, .14);

  /* Las cuatro capas (logotipo e ilustración) */
  --l1: #cfe0ff;
  --l2: #8db6ff;
  --l3: #5b95ff;
  --l4: #2f6fed;

  --grad-text: linear-gradient(100deg, #8db6ff 0%, #4cc9f0 35%, #5b95ff 65%, #b4c2ff 100%);
  --grad-border: linear-gradient(140deg, rgba(141, 182, 255, .5), rgba(141, 182, 255, .08) 38%, rgba(141, 182, 255, .05) 62%, rgba(76, 201, 240, .38));
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
  --shadow-glow: 0 0 0 1px rgba(91, 149, 255, .25), 0 20px 60px -20px rgba(47, 111, 237, .55);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --wrap: 1180px;
  --gutter: 16px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
.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;
}
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  /* Transparente: el fondo lo pone <html>, así la red global (z-index: -1) queda visible detrás del contenido */
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: rgba(91, 149, 255, .4); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--primary-deep); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Texto blanco sobre #2f6fed → #1d4ed8: contraste ≥ 4.6:1 */
.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, #2f6fed, #1d4ed8);
  box-shadow: 0 0 0 1px rgba(141, 182, 255, .35) inset, 0 10px 30px -8px rgba(47, 111, 237, .75), 0 0 40px -10px rgba(76, 201, 240, .5);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(186, 212, 255, .6) inset, 0 14px 40px -8px rgba(47, 111, 237, .95), 0 0 60px -6px rgba(76, 201, 240, .65);
  transform: translateY(-1px);
}
.btn-primary .icon { transition: transform .2s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-secondary {
  color: var(--text); background: rgba(14, 26, 49, .55); border-color: rgba(141, 182, 255, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--primary); background: rgba(91, 149, 255, .14); }

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--primary-soft); }

.btn-inverse { background: #ffffff; color: #0b3a8f; box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .5), 0 0 50px -10px rgba(255, 255, 255, .55); }
.btn-inverse:hover { background: #eaf1ff; transform: translateY(-1px); }
.btn-inverse:focus-visible { outline-color: #ffffff; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 24, .55);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled { background: rgba(6, 11, 24, .82); border-bottom-color: var(--border); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; max-width: none; flex: none; filter: drop-shadow(0 0 10px rgba(91, 149, 255, .55)); }
.logo-mark .s1 { fill: var(--l1); }
.logo-mark .s2 { fill: var(--l2); }
.logo-mark .s3 { fill: var(--l3); }
.logo-mark .s4 { fill: var(--l4); }
.brand-name { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; }

.nav-desktop, .header-actions { display: none; }
.nav-desktop ul { display: flex; gap: 2px; list-style: none; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 999px; color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-desktop a:hover { color: var(--text); background: var(--primary-soft); }
.nav-desktop abbr { text-decoration: none; }
.header-actions { gap: 8px; margin-left: auto; }

/* Menú móvil: <details>, funciona sin JavaScript */
.nav-mobile { margin-left: auto; }
.nav-mobile > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(141, 182, 255, .35); border-radius: 999px; background: rgba(14, 26, 49, .6); color: var(--text);
  font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: rgba(6, 11, 24, .97); border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.nav-mobile-panel ul { list-style: none; }
.nav-mobile-panel li + li { border-top: 1px solid var(--border); }
.nav-mobile-panel ul a { display: flex; align-items: center; min-height: 52px; color: var(--text); font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.nav-mobile-actions { display: grid; gap: 12px; margin-top: 16px; }

@media (min-width: 1100px) {
  .nav-desktop { display: block; }
  .header-actions { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Secciones ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--link); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--primary)); box-shadow: 0 0 12px var(--cyan); }

.section { position: relative; padding-block: 80px; isolation: isolate; overflow-x: clip; }
@media (min-width: 768px) { .section { padding-block: 120px; } }

/* Línea luminosa entre secciones, con un destello que la recorre */
.section::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, transparent, rgba(191, 241, 255, .95), transparent) no-repeat,
    linear-gradient(90deg, transparent, rgba(91, 149, 255, .55) 30%, rgba(76, 201, 240, .55) 70%, transparent);
  background-size: 22% 100%, 100% 100%;
  background-position: -30% 0, 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .section::after { animation: sweep 7s ease-in-out infinite; }
}
@keyframes sweep { 0% { background-position: -30% 0, 0 0; } 60%, 100% { background-position: 130% 0, 0 0; } }

.section-alt {
  background:
    radial-gradient(50rem 26rem at 100% 0%, rgba(47, 111, 237, .14), transparent 70%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(76, 201, 240, .08), transparent 70%),
    rgba(10, 19, 36, .5);
}

/* Red de datos global: un solo lienzo fijo detrás del contenido; su paleta y su movimiento cambian
   según la sección visible (script.js). El hero, la sección de IA y la banda final tienen fondo propio. */
.bg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }

/* Velo oscuro detrás de los títulos de sección: el texto conserva su contraste sobre la red animada */
.section-head { position: relative; }
.section-head::before {
  content: ""; position: absolute; inset: -40px -60px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 11, 24, .78), rgba(6, 11, 24, .45) 60%, transparent);
}

.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  font-weight: 760; letter-spacing: -.035em; line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 30%, #a9c3f5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.section-head p + p { margin-top: 12px; }

/* ---------- Superficie "vidrio" con borde degradado y brillo que sigue al puntero ---------- */
.card, .pains li, .layer, .step, .cert, .faq details, .proof li, .mock {
  --mx: 50%; --my: 0%;
  border: 1px solid transparent;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 149, 255, calc(var(--glow) * .22)), transparent 60%) padding-box,
    linear-gradient(180deg, rgba(18, 33, 61, .92), rgba(10, 19, 37, .92)) padding-box,
    var(--grad-border) border-box;
  box-shadow: var(--shadow);
  transition: --glow .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) {
  .card:hover, .pains li:hover, .layer:hover, .step:hover, .cert:hover, .faq details:hover, .proof li:hover {
    --glow: 1;
    box-shadow: var(--shadow-glow);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 0;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse 120% 80% at 50% 0%, #0b1838 0%, var(--bg) 70%); }
.net {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  /* Más tenue detrás del texto, plena del lado de la ilustración */
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 40%, #000 70%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .45) 40%, #000 70%);
}
@media (max-width: 959px) { .net { -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35) 55%, #000 80%); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35) 55%, #000 80%); } }
.hero-gridlines {
  position: absolute; inset: -64px 0 0;
  background-image:
    linear-gradient(rgba(141, 182, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 182, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.a1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -35vmax; background: radial-gradient(circle, rgba(47, 111, 237, .55), transparent 62%); }
.a2 { width: 60vmax; height: 60vmax; right: -25vmax; top: -10vmax; background: radial-gradient(circle, rgba(76, 201, 240, .32), transparent 62%); }
.a3 { width: 55vmax; height: 55vmax; left: 25%; bottom: -35vmax; background: radial-gradient(circle, rgba(99, 102, 241, .35), transparent 62%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--bg)); }

.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; flex: 1; padding-bottom: 48px; }

/* Píldora dividida: chip de acento "IA" + texto corto; siempre en una línea (también a 320 px) */
.pill {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%; white-space: nowrap;
  padding: 5px 18px 5px 5px; border-radius: 999px;
  border: 1px solid rgba(141, 182, 255, .32); background: rgba(14, 26, 49, .65);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #dbe7ff; font-size: .875rem; font-weight: 650; letter-spacing: .01em;
  box-shadow: 0 0 30px -10px rgba(76, 201, 240, .6);
}
.pill-chip {
  display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px;
  background: linear-gradient(135deg, #2f6fed, #1d4ed8 55%, #0e7490);
  color: #ffffff; font-size: .8125rem; font-weight: 800; letter-spacing: .06em;
  box-shadow: 0 0 0 1px rgba(191, 241, 255, .35) inset, 0 0 0 0 rgba(76, 201, 240, .7);
}
.pill-text { overflow: hidden; text-overflow: ellipsis; }
.lead-tag { color: #eaf1fc; font-weight: 650; }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 1.2rem + 6.4vw, 5.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -.045em;
}
.h1-a { background: linear-gradient(180deg, #ffffff 40%, #b9cdf3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-b {
  display: inline-block; padding-bottom: .08em;
  background: var(--grad-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(76, 201, 240, .35));
}
@media (forced-colors: active) { .h1-a, .h1-b, .section-head h2 { color: CanvasText; background: none; } }

.lead { margin-top: 24px; max-width: 37rem; color: #b8c6dc; font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem); line-height: 1.65; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.proof { display: grid; gap: 12px; margin-top: 40px; list-style: none; max-width: 44rem; }
@media (min-width: 560px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof li { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 16px 18px; border-radius: var(--radius); overflow: hidden; }
.proof li::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--primary), transparent);
  box-shadow: 0 0 14px rgba(76, 201, 240, .8);
}
.proof-icon {
  width: 40px; height: 40px; padding: 9px; margin-bottom: 6px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 111, 237, .45), rgba(76, 201, 240, .15));
  border: 1px solid rgba(141, 182, 255, .35); color: #e6f6ff;
  box-shadow: 0 0 24px -6px rgba(76, 201, 240, .7);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.proof strong { display: block; font-size: 1.0625rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; color: #ffffff; }
.proof span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; }
@media (min-width: 560px) and (max-width: 1099px) { .proof strong { font-size: 1rem; } }

.art-halo {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, .45), rgba(76, 201, 240, .12) 45%, transparent 70%);
  filter: blur(20px);
}

@media (min-width: 960px) {
  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; padding-bottom: 64px; }
}


@media (prefers-reduced-motion: no-preference) {
  .aurora { animation: drift 22s ease-in-out infinite alternate; }
  .a2 { animation-duration: 28s; animation-direction: alternate-reverse; }
  .a3 { animation-duration: 32s; }
  .h1-b { animation: shimmer 8s ease-in-out infinite alternate; }
  .pill-chip { animation: chip-ping 2.6s var(--ease) infinite; }
  .art-halo { animation: breathe 6s ease-in-out infinite; }
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes chip-ping { 0% { box-shadow: 0 0 0 1px rgba(191, 241, 255, .35) inset, 0 0 0 0 rgba(76, 201, 240, .7); } 80%, 100% { box-shadow: 0 0 0 1px rgba(191, 241, 255, .35) inset, 0 0 0 9px rgba(76, 201, 240, 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(76, 201, 240, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(76, 201, 240, 0); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(69px); opacity: 0; } }

/* ---------- Marquesina de tecnologías ---------- */
.marquee {
  position: relative; overflow: hidden; padding-block: 22px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(6, 11, 24, .55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 12px; padding-right: 12px; list-style: none; }
.marquee li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(141, 182, 255, .2);
  color: #c9d6ec; font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  background: rgba(14, 26, 49, .6);
}
.marquee li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.marquee li.tech::before { content: none; }
.marquee li.tech img { width: 22px; height: 22px; flex: none; opacity: .95; }
.marquee li.tech-text::before { content: ""; }
.credentials { margin-top: 40px; text-align: center; color: var(--muted); font-size: 1.0625rem; text-wrap: balance; }
.credentials strong { color: #e6eeff; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee ul[aria-hidden] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Retos ---------- */
.pains { display: grid; gap: 16px; list-style: none; counter-reset: pain; }
.pains li { position: relative; padding: 28px 24px 26px; border-radius: var(--radius-lg); counter-increment: pain; }
.pains li::before {
  content: "0" counter(pain); display: block; margin-bottom: 20px;
  font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pains h3 { font-size: 1.1875rem; font-weight: 700; }
.pains p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pains { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Inteligencia artificial ---------- */
.section-ai {
  background:
    radial-gradient(60rem 30rem at 15% 10%, rgba(76, 201, 240, .12), transparent 70%),
    radial-gradient(50rem 30rem at 90% 60%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(40rem 24rem at 50% 100%, rgba(47, 111, 237, .14), transparent 70%),
    var(--bg);
}
.section-head-wide { max-width: 52rem; }
.cards.cards-ai { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.cards-ai { grid-template-columns: repeat(2, 1fr); } .cards.cards-ai > .card:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1100px) { .cards.cards-ai { grid-template-columns: repeat(4, 1fr); } }
.cards-ai .card { padding: 26px 22px; }
.card h3 { margin-top: 20px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.cards-ai .card > p { margin-bottom: 0; font-size: .9688rem; }

.ai-band {
  position: relative; overflow: hidden; margin-top: 40px; padding: 32px 24px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(76, 201, 240, .14), transparent 70%) padding-box,
    linear-gradient(135deg, rgba(23, 43, 86, .95), rgba(12, 22, 44, .95)) padding-box,
    linear-gradient(120deg, rgba(76, 201, 240, .6), rgba(91, 149, 255, .25) 40%, rgba(139, 155, 255, .55)) border-box;
  box-shadow: var(--shadow-glow);
}
.ai-band-head h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 760; letter-spacing: -.025em; }
.ai-band-head p { margin-top: 8px; color: var(--muted); max-width: 40rem; }
.ai-steps { list-style: none; display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 860px) { .ai-band { padding: 40px; } .ai-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.ai-steps li { position: relative; }
.ai-step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(76, 201, 240, .35), rgba(47, 111, 237, .35));
  border: 1px solid rgba(141, 182, 255, .45); color: #e6f6ff; font-weight: 800; font-size: .9375rem;
  box-shadow: 0 0 20px -4px rgba(76, 201, 240, .7);
}
.ai-steps h4 { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; }
.ai-steps p { margin-top: 6px; color: var(--muted); font-size: .9688rem; }

.platforms { margin-top: 56px; text-align: center; }
.platforms-title { font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.platform-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.platform {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 22px;
  border-radius: 16px; border: 1px solid rgba(141, 182, 255, .18); background: rgba(14, 26, 49, .6);
  color: #e6edf8; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.platform:hover { border-color: rgba(141, 182, 255, .45); box-shadow: 0 0 30px -10px rgba(91, 149, 255, .6); }
.platform img { width: 28px; height: 28px; flex: none; opacity: .92; }
.platform small { display: inline; margin-left: 4px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.platform-text { letter-spacing: -.01em; }
.platforms-note { margin-top: 18px; color: var(--muted); font-size: .8125rem; }

/* ---------- Servicios ---------- */
.pillar + .pillar { margin-top: 56px; }
.pillar-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 1.3125rem; font-weight: 750; letter-spacing: -.015em; }
.pillar-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 111, 237, .35), rgba(76, 201, 240, .15));
  border: 1px solid rgba(141, 182, 255, .35);
  color: #dbe7ff; font-size: .8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 24px -6px rgba(76, 201, 240, .55);
}

.cards { display: grid; gap: 16px; list-style: none; }
@media (min-width: 720px) and (max-width: 1023px) { .cards { grid-template-columns: repeat(2, 1fr); } .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius-lg); transform-style: preserve-3d; }
.card-icon {
  width: 52px; height: 52px; padding: 13px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 111, 237, .4), rgba(76, 201, 240, .12));
  border: 1px solid rgba(141, 182, 255, .3);
  color: #dbe7ff; box-shadow: 0 0 30px -8px rgba(76, 201, 240, .6);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card h4 { margin-top: 22px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.card > p { margin-top: 10px; margin-bottom: 22px; color: var(--muted); font-size: 1rem; }

.checks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.card .checks { padding-top: 20px; border-top: 1px solid var(--border); margin-top: auto; }
.checks li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.5; color: #d5e0f2; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(76, 201, 240, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdcf7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks-lg li { font-size: 1.0625rem; }

/* ---------- Enfoque ---------- */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .split .section-head { margin-bottom: 0; }
  .split-reverse > :first-child { order: 2; }
}

.layers { list-style: none; display: grid; gap: 14px; }
.layer { position: relative; display: grid; gap: 4px; padding: 22px 24px 22px 34px; border-radius: var(--radius); overflow: hidden; }
.layer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--c); box-shadow: 0 0 18px 2px var(--c);
}
.layer.l1 { --c: var(--l1); }
.layer.l2 { --c: var(--l2); margin-left: 14px; }
.layer.l3 { --c: var(--l3); margin-left: 28px; }
.layer.l4 { --c: var(--l4); margin-left: 10px; }
.layer h3 { font-size: 1.1875rem; font-weight: 750; }
.layer p { color: var(--muted); font-size: 1rem; }
@media (max-width: 479px) { .layer.l2, .layer.l3, .layer.l4 { margin-left: 0; } }

/* ---------- Método ---------- */
.steps { list-style: none; display: grid; gap: 16px; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius-lg); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, .18), 0 0 30px -4px rgba(76, 201, 240, .7);
}
.step h3 { margin-top: 18px; font-size: 1.1875rem; font-weight: 750; }
.step > p { margin-top: 8px; color: var(--muted); font-size: .9875rem; }
.step .deliverable { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(141, 182, 255, .3); color: var(--text); font-size: .9375rem; }
.deliverable span { font-weight: 700; color: var(--cyan); }

@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .steps::before {
    content: ""; position: absolute; left: 6%; right: 6%; margin-top: 48px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--cyan), var(--primary), transparent);
    opacity: .5; filter: blur(.5px);
  }
  .steps::after {
    content: ""; position: absolute; left: 6%; right: 6%; top: 0; margin-top: 47px; height: 4px; border-radius: 4px;
    background: linear-gradient(90deg, transparent, #bff1ff, transparent) no-repeat;
    background-size: 14% 100%; background-position: -20% 0;
    filter: drop-shadow(0 0 6px #4cc9f0);
  }
  .steps { position: relative; }
}

@media (prefers-reduced-motion: no-preference) {
  .steps::after { animation: connector 5s linear infinite; }
  .step-num { animation: step-glow 5s ease-in-out infinite; }
  .step:nth-child(2) .step-num { animation-delay: 1s; }
  .step:nth-child(3) .step-num { animation-delay: 2s; }
  .step:nth-child(4) .step-num { animation-delay: 3s; }
  .step:nth-child(5) .step-num { animation-delay: 4s; }
}
@keyframes connector { from { background-position: -20% 0; } to { background-position: 120% 0; } }
@keyframes step-glow {
  0%, 30%, 100% { box-shadow: 0 0 0 4px rgba(47, 111, 237, .18), 0 0 30px -4px rgba(76, 201, 240, .7); }
  12% { box-shadow: 0 0 0 7px rgba(76, 201, 240, .35), 0 0 44px 2px rgba(76, 201, 240, .95); }
}

/* ---------- Plataforma (maqueta ilustrativa) ---------- */
.mock-figure { position: relative; margin: 0; }
.mock-figure::before {
  content: ""; position: absolute; inset: -10% -6%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, .35), transparent 65%); filter: blur(30px);
}
.mock-figure figcaption { margin-top: 14px; color: var(--muted); font-size: .875rem; }
.mock { overflow: hidden; border-radius: var(--radius-lg); font-size: .9375rem; box-shadow: var(--shadow-glow); }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(6, 11, 24, .6); border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4d6e; }
.mock-dots i:first-child { background: #5b95ff; }
.mock-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; background: rgba(141, 182, 255, .08); color: var(--muted); font-size: .8125rem;
}
.mock-body { display: grid; gap: 16px; padding: 20px; }
.mock-head { display: grid; gap: 4px; }
.mock-head strong { font-size: 1.0625rem; }
.mock-kicker { color: var(--cyan); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mock-progress-label { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.mock-progress { display: block; height: 6px; border-radius: 6px; background: rgba(141, 182, 255, .12); overflow: hidden; }
.mock-progress span { display: block; width: 37.5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-deep), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
.mock-phases { list-style: none; display: grid; gap: 6px; }
.mock-phases li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(6, 11, 24, .35); }
.mock-phases b { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; border-radius: 6px; background: rgba(141, 182, 255, .1); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.mock-phases em { margin-left: auto; padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.mock-phases em::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.mock-phases .is-ok em { background: var(--ok-soft); color: var(--ok); }
.mock-phases .is-review { border-color: rgba(91, 149, 255, .7); background: rgba(91, 149, 255, .1); box-shadow: 0 0 20px -6px rgba(91, 149, 255, .6); }
.mock-phases .is-review em { background: var(--warn-soft); color: var(--warn); }
.mock-phases .is-wait { color: var(--muted); }
.mock-phases .is-wait em { background: rgba(141, 182, 255, .08); color: var(--muted); }
.mock-summary { display: grid; gap: 8px; padding: 16px; border-radius: var(--radius); background: rgba(6, 11, 24, .45); border: 1px solid var(--border); }
.sk { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, rgba(141, 182, 255, .12), rgba(141, 182, 255, .25), rgba(141, 182, 255, .12)); background-size: 200% 100%; }
.sk-80 { width: 80%; }
.sk-60 { width: 60%; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.8s linear infinite alternate; } }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.mock-btn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .8125rem; font-weight: 600; }
.mock-btn-primary { background: linear-gradient(135deg, #2f6fed, #1d4ed8); border-color: transparent; color: #fff; box-shadow: 0 0 20px -6px rgba(47, 111, 237, .9); }

/* ---------- Certificaciones ---------- */
.certs { --cols: 2; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (min-width: 640px) { .certs { --cols: 3; } }
@media (min-width: 960px) { .certs { --cols: 4; } }
@media (min-width: 1160px) { .certs { --cols: 6; } }
.cert {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 14px) / var(--cols));
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 22px 12px 20px; border-radius: var(--radius);
}
.cert img { width: 92px; height: 92px; margin-bottom: 14px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); transition: transform .35s var(--ease); }
.cert:hover img { transform: translateY(-4px) scale(1.05); }
.cert-name { font-size: .875rem; font-weight: 650; line-height: 1.35; }
.cert-issuer { color: var(--muted); font-size: .8125rem; }

/* ---------- Preguntas ---------- */
.faq-wrap { display: grid; gap: 0; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); }
.faq details[open] { --glow: .7; }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 58px;
  padding: 16px 56px 16px 22px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.0625rem; line-height: 1.4; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: #cfe0ff; }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 40rem; }

/* ---------- Llamado final: banda aurora ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: 88px; color: #ffffff; }
.cta-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(115deg, #0b3a8f, #1d4ed8 45%, #3730a3 80%, #0b3a8f);
}
.cta-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
}
/* Colores oscuros y saturados: el texto blanco conserva ≥ 4.5:1 sobre cualquier punto de la banda */
.cta-blob { position: absolute; border-radius: 50%; }
.cta-blob.b1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -40vmax; background: radial-gradient(circle, rgba(79, 70, 229, .75), transparent 62%); }
.cta-blob.b2 { width: 60vmax; height: 60vmax; right: -25vmax; bottom: -35vmax; background: radial-gradient(circle, rgba(30, 58, 138, .9), transparent 62%); }
.cta-blob.b3 { width: 45vmax; height: 45vmax; right: -10vmax; top: -25vmax; background: radial-gradient(circle, rgba(76, 201, 240, .22), transparent 62%); }
.cta-conic {
  position: absolute; width: 120vmax; height: 120vmax; left: 50%; top: 50%; margin: -60vmax 0 0 -60vmax; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, rgba(139, 155, 255, .16) 25%, transparent 35% 60%, rgba(56, 120, 255, .18) 72%, transparent 85%);
}
@media (prefers-reduced-motion: no-preference) {
  .cta-blob.b1 { animation: drift 14s ease-in-out infinite alternate; }
  .cta-blob.b2 { animation: drift 18s ease-in-out infinite alternate-reverse; }
  .cta-blob.b3 { animation: drift 11s ease-in-out infinite alternate; }
  .cta-conic { animation: spin 40s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-inner { display: grid; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.cta p { margin-top: 14px; color: #f2f6ff; font-size: 1.125rem; max-width: 36rem; }
.cta-actions { display: grid; gap: 16px; justify-items: start; }
.cta-mail { color: #ffffff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.cta-mail:focus-visible { outline-color: #ffffff; }
@media (min-width: 960px) {
  .cta { padding-block: 112px; }
  .cta-inner { grid-template-columns: 1fr auto; gap: 64px; }
  .cta-actions { justify-items: center; }
}

/* ---------- Pie ---------- */
.site-footer { padding-block: 64px 32px; background: #04080f; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-grid > :last-child { grid-column: 1 / -1; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 22rem; font-size: .9375rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } .footer-brand, .footer-grid > :last-child { grid-column: auto; } }
.footer-title { margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; }
.site-footer li { font-size: .9375rem; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.site-footer li a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; padding-block: 8px; }
.site-footer li a:hover { color: var(--link); text-decoration: underline; }
.footer-legal { display: grid; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
@media (min-width: 720px) { .footer-legal { grid-auto-flow: column; justify-content: space-between; } }

/* ---------- Fondos vivos por sección ----------
   Todo se anima con transform u opacity (o fondos de 1-4 px de alto) para no repintar áreas grandes.
   Las animaciones de las secciones fuera de pantalla se pausan desde script.js (clase .is-live). */
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-retos { --c1: rgba(47, 111, 237, .24); --c2: rgba(76, 201, 240, .13); }
.fx-ia { --c1: rgba(99, 102, 241, .3); --c2: rgba(76, 201, 240, .18); --c3: rgba(47, 111, 237, .22); }
.fx-servicios { --c1: rgba(47, 111, 237, .26); --c2: rgba(139, 92, 246, .15); }
.fx-enfoque { --c1: rgba(76, 201, 240, .15); --c2: rgba(47, 111, 237, .22); }
.fx-metodo { --c1: rgba(99, 102, 241, .22); --c2: rgba(76, 201, 240, .15); }
.fx-plataforma { --c1: rgba(47, 111, 237, .24); --c2: rgba(76, 201, 240, .15); }
.fx-certificaciones { --c1: rgba(139, 155, 255, .2); --c2: rgba(47, 111, 237, .22); }
.fx-preguntas { --c1: rgba(76, 201, 240, .13); --c2: rgba(99, 102, 241, .18); }

/* Manchas de aurora con un acento de color distinto en cada sección */
.glow { position: absolute; width: max(58%, 440px); aspect-ratio: 1; border-radius: 50%; }
.glow.g1 { left: -18%; top: -22%; background: radial-gradient(circle, var(--c1), transparent 64%); }
.glow.g2 { right: -18%; bottom: -26%; background: radial-gradient(circle, var(--c2), transparent 64%); }
.glow.g3 { left: 30%; top: 30%; width: max(45%, 360px); background: radial-gradient(circle, var(--c3), transparent 64%); }

/* Rejilla técnica que avanza lentamente (se traslada un periodo exacto: el ciclo no salta) */
.fx-grid {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 0%, transparent 75%);
}
.fx-grid::before, .fx-floor::before {
  content: ""; position: absolute; inset: -64px 0 0;
  background-image:
    linear-gradient(rgba(141, 182, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 182, 255, .08) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Piso en perspectiva para la sección de IA */
.fx-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 55%; overflow: hidden;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.fx-floor::before {
  background-image:
    linear-gradient(rgba(76, 201, 240, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 149, 255, .22) 1px, transparent 1px);
}

/* Lienzo de red neuronal de la sección de IA: tenue detrás del título, pleno detrás de las tarjetas */
.ai-net {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .3) 22%, #000 42%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .3) 22%, #000 42%, #000 82%, transparent 100%);
}

/* Haces de luz que cruzan la sección en diagonal */
.fx-lines { position: absolute; inset: 0; overflow: hidden; transform: rotate(-12deg) scale(1.3); }
.fx-lines b {
  position: absolute; left: 0; width: 38%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 201, 240, .75), rgba(191, 241, 255, .9), transparent);
  box-shadow: 0 0 10px rgba(76, 201, 240, .5);
  transform: translateX(-120%); opacity: .8;
}
.fx-lines b:nth-child(1) { top: 18%; }
.fx-lines b:nth-child(2) { top: 42%; width: 28%; }
.fx-lines b:nth-child(3) { top: 66%; width: 44%; }
.fx-lines b:nth-child(4) { top: 86%; width: 24%; }

/* Brillo cónico que gira detrás del título */
.fx-conic {
  position: absolute; width: min(760px, 120%); aspect-ratio: 1; left: -10%; top: 50%; margin-top: min(-380px, -60%);
  border-radius: 50%; filter: blur(50px); opacity: .9;
  background: conic-gradient(from 0deg, transparent 0 10%, rgba(91, 149, 255, .3) 20%, transparent 32% 48%, rgba(76, 201, 240, .22) 60%, transparent 70% 82%, rgba(139, 155, 255, .26) 92%, transparent);
}

/* Campo de estrellas en dos capas que se desplazan a distinta velocidad */
.fx-stars { position: absolute; left: 0; right: 0; top: 0; bottom: -420px; }
.fx-stars.s1 {
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1px 1px at 90px 140px, rgba(207, 224, 255, .7), transparent),
    radial-gradient(1.3px 1.3px at 160px 60px, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 220px 200px, rgba(191, 241, 255, .7), transparent),
    radial-gradient(1.1px 1.1px at 60px 230px, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 130px 250px, rgba(207, 224, 255, .6), transparent);
  background-size: 260px 260px;
}
.fx-stars.s2 {
  background-image:
    radial-gradient(1.8px 1.8px at 50px 80px, rgba(76, 201, 240, .9), transparent),
    radial-gradient(1.6px 1.6px at 300px 210px, rgba(141, 182, 255, .9), transparent),
    radial-gradient(1.8px 1.8px at 180px 360px, rgba(191, 241, 255, .85), transparent),
    radial-gradient(1.5px 1.5px at 380px 40px, rgba(139, 155, 255, .8), transparent);
  background-size: 420px 420px; opacity: .8;
}
.fx-stars, .fx-certificaciones .glow { -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .glow.g1 { animation: drift 22s ease-in-out infinite alternate; }
  .glow.g2 { animation: drift 27s ease-in-out infinite alternate-reverse; }
  .glow.g3 { animation: drift 19s ease-in-out infinite alternate; }
  .fx-grid::before { animation: grid-flow 9s linear infinite; }
  .fx-floor::before { animation: grid-flow 4s linear infinite; }
  .fx-lines b { animation: beam 9s cubic-bezier(.4, 0, .2, 1) infinite; }
  .fx-lines b:nth-child(2) { animation-delay: 2.2s; animation-duration: 11s; }
  .fx-lines b:nth-child(3) { animation-delay: 4.6s; animation-duration: 10s; }
  .fx-lines b:nth-child(4) { animation-delay: 6.8s; animation-duration: 12s; }
  .fx-conic { animation: spin 36s linear infinite; }
  .fx-stars.s1 { animation: stars-1 70s linear infinite, twinkle 4s ease-in-out infinite alternate; }
  .fx-stars.s2 { animation: stars-2 110s linear infinite, twinkle 6s ease-in-out infinite alternate-reverse; }

  /* Paralaje al desplazarse, sin JavaScript, donde el navegador lo soporta (usa "translate" para no chocar con "transform") */
  @supports (animation-timeline: view()) {
    .glow.g1, .glow.g2, .glow.g3 {
      animation-name: drift, parallax; animation-duration: 22s, 1ms; animation-timing-function: ease-in-out, linear;
      animation-iteration-count: infinite, 1; animation-direction: alternate, normal; animation-fill-mode: none, both;
      animation-timeline: auto, view();
    }
    .glow.g2 { animation-duration: 27s, 1ms; animation-direction: alternate-reverse, reverse; }
  }
}
@keyframes grid-flow { from { transform: translateY(0); } to { transform: translateY(64px); } }
@keyframes beam { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(380%); } }
@keyframes stars-1 { to { transform: translateY(-260px); } }
@keyframes stars-2 { to { transform: translateY(-420px); } }
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
@keyframes parallax { from { translate: 0 70px; } to { translate: 0 -70px; } }

/* Secciones fuera de pantalla: animaciones en pausa (la clase la pone script.js) */
.fx-live .section:not(.is-live) .fx *,
.fx-live .section:not(.is-live)::after,
.fx-live .section:not(.is-live) .steps::after,
.fx-live .section:not(.is-live) .step-num,
.fx-live .cta:not(.is-live) .cta-bg *,
.fx-live .hero:not(.is-live) .aurora,

/* ---------- Aparición al desplazarse ----------
   Solo con JavaScript activo y sin movimiento reducido; sin JS todo es visible. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease), --glow .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s; }
  .reveal.in { opacity: 1; translate: 0 0; }
}

/* ---------- 404 ---------- */
.notfound-title { margin-top: 12px; font-size: clamp(2rem, 1.4rem + 3vw, 3rem); font-weight: 800; letter-spacing: -.03em; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .hero-bg, .marquee, .mock-figure, .cta-actions, .cta-bg, .platform img, .fx, .bg-net { display: none; }
  body, .section, .hero, .cta { background: #fff; color: #000; }
  .h1-a, .h1-b, .section-head h2, .proof strong { color: #000; background: none; }
}

/* Texto que va directo sobre la red animada (fuera de tarjetas): halo oscuro que asegura el contraste
   aunque un pulso pase por detrás */
.section-head p, .section-head .eyebrow, .mock-figure figcaption, .split .checks li, .platforms-note, .pillar-title {
  text-shadow: 0 0 6px rgba(6, 11, 24, .95), 0 1px 14px rgba(6, 11, 24, .9);
}

/* =====================================================================
   v6 · Título de IA, micro-interacciones, diagrama de capas, tablero,
   recursos gratuitos y página del checklist
   ===================================================================== */

/* ---------- Título destacado de la sección de IA (única aparición de la frase) ---------- */
.ia-title { font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.1rem) !important; line-height: 1.04 !important; letter-spacing: -.04em !important; }
.ia-title-em {
  background: var(--grad-text); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(76, 201, 240, .45));
}
@media (prefers-reduced-motion: no-preference) { .ia-title-em { animation: shimmer 7s ease-in-out infinite alternate; } }

/* ---------- Tarjetas: barrido del borde, ícono animado y resultado que se revela ---------- */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(127, 220, 247, .95) 50%, transparent 65%);
  background-size: 300% 100%; background-position: 100% 0;
  -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);
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .card:hover::before, .card:focus-within::before { animation: border-sweep 1.4s var(--ease) both; }
}
@keyframes border-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.card-icon { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover .card-icon, .card:focus-within .card-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  box-shadow: 0 0 0 1px rgba(127, 220, 247, .45), 0 0 34px -4px rgba(76, 201, 240, .9);
}

.card-more { margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(141, 182, 255, .28); display: grid; gap: 10px; }
.card-outcome { color: #e6edf8; font-size: .9375rem; font-weight: 600; line-height: 1.45; }
.card-outcome span { color: var(--cyan); font-weight: 700; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px;
  color: #bfe9ff; font-weight: 650; font-size: .9375rem; text-decoration: none;
}
.card-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.card-link:hover { text-decoration: underline; }
.card-link:hover .icon, .card-link:focus-visible .icon { transform: translateX(4px); }
/* Con puntero: el resultado aparece al pasar o al enfocar con teclado (el espacio ya está reservado, no hay saltos).
   En pantallas táctiles se muestra siempre. */
@media (hover: hover) and (pointer: fine) {
  .card-more { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .card:hover .card-more, .card:focus-within .card-more { opacity: 1; transform: none; }
}

/* ---------- Diagrama interactivo de capas ---------- */
.stack { display: grid; gap: 18px; }
.stack-diagram { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 16px; }
@media (max-width: 479px) { .stack-diagram { grid-template-columns: minmax(0, 1fr) 52px; gap: 14px; } }
.stack-layers { display: grid; gap: 24px; }
.stack-layer {
  position: relative; display: grid; gap: 2px; width: 100%; text-align: left; cursor: pointer;
  padding: 16px 18px 16px 24px; border-radius: var(--radius); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(18, 33, 61, .94), rgba(10, 19, 37, .94)) padding-box, var(--grad-border) border-box;
  color: var(--text); font: inherit; box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.stack-layer::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 5px 5px 0;
  background: var(--c); box-shadow: 0 0 14px 1px var(--c); opacity: .75; transition: opacity .3s var(--ease);
}
.sl-negocio { --c: var(--l1); } .sl-informacion { --c: var(--l2); } .sl-sistemas { --c: var(--l3); } .sl-tecnologia { --c: var(--l4); }
.layer-name { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.01em; }
.layer-sub { color: var(--muted); font-size: .875rem; }
.stack-layer:hover { transform: translateX(3px); }
.stack-layer.is-active {
  background: linear-gradient(180deg, rgba(30, 56, 104, .96), rgba(14, 28, 56, .96)) padding-box,
              linear-gradient(120deg, var(--c), rgba(76, 201, 240, .7)) border-box;
  box-shadow: 0 0 0 1px rgba(127, 220, 247, .25), 0 18px 44px -18px rgba(76, 201, 240, .75);
}
.stack-layer.is-active::before { opacity: 1; }
.stack-layer.is-linked { background: linear-gradient(180deg, rgba(22, 40, 74, .95), rgba(12, 22, 44, .95)) padding-box, linear-gradient(120deg, rgba(141, 182, 255, .6), rgba(76, 201, 240, .45)) border-box; }

/* Conector de cada capa con la columna de IA */
.port { position: absolute; right: -16px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: rgba(141, 182, 255, .3); }
.port::after { content: ""; position: absolute; left: -5px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: rgba(141, 182, 255, .55); }
.stack-layer.is-active .port, .stack[data-active="ia"] .port, .stack-layer.is-linked .port { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.stack-layer.is-active .port::after, .stack[data-active="ia"] .port::after { background: #bff1ff; box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 479px) { .port { right: -14px; width: 14px; } }

/* Flujo de datos entre capas: sube de la base hacia el negocio */
.link { position: absolute; left: 0; right: 0; top: 100%; height: 24px; pointer-events: none; }
.link i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(141, 182, 255, .22); transition: background .3s var(--ease); }
.link i:nth-child(1) { left: 22%; } .link i:nth-child(2) { left: 50%; } .link i:nth-child(3) { left: 78%; }
.link i::after {
  content: ""; position: absolute; left: -2px; bottom: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #9fe6ff; box-shadow: 0 0 8px #4cc9f0; opacity: .55;
}
.stack-layer.link-on .link i { background: rgba(76, 201, 240, .65); box-shadow: 0 0 8px rgba(76, 201, 240, .5); }
.stack-layer.link-on .link i::after { opacity: 1; }

/* Columna de IA que atraviesa todas las capas */
.stack-ai {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-radius: 18px; border: 1px solid transparent; cursor: pointer; color: #ffffff; font: inherit;
  background: linear-gradient(180deg, rgba(47, 111, 237, .5), rgba(79, 70, 229, .45), rgba(14, 116, 144, .45)) padding-box,
              linear-gradient(180deg, rgba(127, 220, 247, .8), rgba(139, 155, 255, .55)) border-box;
  box-shadow: 0 0 30px -10px rgba(76, 201, 240, .6);
  transition: box-shadow .3s var(--ease);
}
.stack-ai .icon { width: 22px; height: 22px; }
.stack-ai .layer-name { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; }
.stack-ai.is-active, .stack-ai:hover { box-shadow: 0 0 0 1px rgba(191, 241, 255, .5), 0 0 46px -4px rgba(76, 201, 240, .9); }
.ai-pulse i { position: absolute; left: 0; right: 0; height: 35%; top: 0; background: linear-gradient(transparent, rgba(191, 241, 255, .35), transparent); transform: translateY(-110%); }

/* Panel con la explicación de la capa */
.stack-panel {
  min-height: 12.5rem; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: radial-gradient(26rem 12rem at 100% 0%, rgba(76, 201, 240, .12), transparent 70%) padding-box,
              linear-gradient(180deg, rgba(18, 33, 61, .95), rgba(10, 19, 37, .95)) padding-box,
              linear-gradient(120deg, rgba(76, 201, 240, .55), rgba(91, 149, 255, .2) 45%, rgba(139, 155, 255, .45)) border-box;
  box-shadow: var(--shadow);
}
.stack-kicker { color: var(--cyan); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stack-title { margin-top: 6px; font-size: 1.375rem; font-weight: 760; letter-spacing: -.02em; }
.stack-role { margin-top: 8px; color: #c9d6ec; font-size: 1rem; }
.stack-value { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(141, 182, 255, .28); color: #e6edf8; font-size: .9688rem; }
.stack-value > span:first-child { color: var(--cyan); font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .link i::after { animation: data-rise 1.8s linear infinite; }
  .link i:nth-child(2)::after { animation-delay: .6s; }
  .link i:nth-child(3)::after { animation-delay: 1.2s; }
  .ai-pulse i { animation: ai-scan 3.2s ease-in-out infinite; }
  .ai-pulse i:nth-child(2) { animation-delay: 1.6s; }
}
@keyframes data-rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }
@keyframes ai-scan { from { transform: translateY(-110%); } to { transform: translateY(320%); } }

/* ---------- Maqueta del portal tipo tablero ---------- */
.dash { display: grid; gap: 16px; padding: 18px; font-size: .875rem; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-head strong { display: block; margin-top: 2px; font-size: 1.0625rem; }
.dash-ring {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: conic-gradient(#4cc9f0 0 37.5%, rgba(141, 182, 255, .16) 0);
  box-shadow: 0 0 22px -6px rgba(76, 201, 240, .8);
}
.dash-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #0e1a31; }
.dash-ring b, .dash-ring small { position: relative; line-height: 1.05; }
.dash-ring b { font-size: .9375rem; }
.dash-ring small { color: var(--muted); font-size: .625rem; }
.dash-timeline { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-timeline li { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: .6875rem; text-align: center; }
.dash-timeline li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: rgba(141, 182, 255, .2); }
.dash-timeline li:first-child::before { display: none; }
.dash-timeline i { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(141, 182, 255, .4); background: #0e1a31; }
.dash-timeline .is-ok::before { background: var(--ok); }
.dash-timeline .is-ok i { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 10px rgba(111, 211, 156, .6); }
.dash-timeline .is-review::before { background: linear-gradient(90deg, var(--ok), var(--cyan)); }
.dash-timeline .is-review i { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(76, 201, 240, .2), 0 0 14px rgba(76, 201, 240, .8); }
.dash-timeline .is-ok span, .dash-timeline .is-review span { color: #dbe7ff; }
@media (max-width: 479px) { .dash-timeline span { display: none; } }
.dash-grid { display: grid; gap: 12px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } .dash-summary { grid-row: span 2; } }
.dash-card { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(6, 11, 24, .5); border: 1px solid var(--border); }
.dash-summary p { color: #d5e0f2; line-height: 1.5; }
.dash-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.dash-check::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061024' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dash-approval dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dash-approval dl div:first-child { grid-column: 1 / -1; }
.dash-approval dt { color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dash-approval dd { margin: 0; font-weight: 650; font-size: .8125rem; }
.dash-acta { justify-self: start; }
.dash-msg { padding: 8px 10px; border-radius: 10px; background: rgba(141, 182, 255, .08); color: #d5e0f2; font-size: .8125rem; line-height: 1.45; }
.dash-msg b { display: block; color: var(--cyan); font-size: .75rem; }
.dash-msg-client { margin-left: 16px; background: rgba(76, 201, 240, .08); }

/* ---------- Recursos gratuitos ---------- */
.fx-recursos { --c1: rgba(99, 102, 241, .22); --c2: rgba(76, 201, 240, .16); }
.resources { display: grid; gap: 20px; }
@media (min-width: 1024px) { .resources { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.quiz, .res-card {
  padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(18, 33, 61, .95), rgba(10, 19, 37, .95)) padding-box,
              linear-gradient(130deg, rgba(76, 201, 240, .6), rgba(91, 149, 255, .15) 40%, rgba(139, 155, 255, .5)) border-box;
  box-shadow: var(--shadow-glow);
}
@media (min-width: 640px) { .quiz, .res-card { padding: 32px; } }
.res-tag { color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quiz-head h3, .res-card h3 { margin-top: 8px; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 760; letter-spacing: -.02em; line-height: 1.2; }
.quiz-head > p:not(.res-tag):not(.privacy), .res-card > p:not(.res-tag):not(.privacy) { margin-top: 10px; color: #c9d6ec; }
.privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: #c9d6ec; font-size: .875rem; }
.privacy .icon { width: 18px; height: 18px; color: var(--cyan); margin-top: 1px; }
.res-card .checks { margin-top: 16px; }
.res-card .btn { margin-top: 22px; }

.quiz-form { margin-top: 24px; }
.quiz-progress { height: 6px; border-radius: 6px; background: rgba(141, 182, 255, .14); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--primary-deep), var(--cyan)); box-shadow: 0 0 12px var(--cyan); transition: width .35s var(--ease); }
.quiz-form:not(.is-stepper) .quiz-progress { display: none; }
.quiz-count { margin-top: 10px; color: var(--muted); font-size: .875rem; min-height: 1.4em; }
.q { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.quiz-form.is-stepper .q { display: none; }
.quiz-form.is-stepper .q.is-current { display: block; }
.q legend { display: flex; align-items: flex-start; gap: 12px; padding: 0; margin-bottom: 14px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.q legend:focus { outline: none; }
.q-num {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; font-size: .875rem; font-weight: 800;
  box-shadow: 0 0 18px -4px rgba(76, 201, 240, .8);
}
.q-opts { display: grid; gap: 8px; }
@media (min-width: 640px) { .q-opts { grid-template-columns: 1fr 1fr; } }
.q-opt { position: relative; display: block; cursor: pointer; }
.q-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.q-opt span {
  position: relative; display: flex; align-items: center; min-height: 52px; height: 100%;
  padding: 12px 14px 12px 44px; border-radius: 12px;
  border: 1px solid rgba(141, 182, 255, .28); background: rgba(6, 11, 24, .45); color: #dbe7ff; font-size: .9688rem; line-height: 1.4;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.q-opt span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid rgba(141, 182, 255, .6); background: transparent; transition: all .2s var(--ease);
}
.q-opt:hover span { border-color: rgba(141, 182, 255, .55); }
.q-opt input:checked + span { border-color: var(--cyan); background: rgba(76, 201, 240, .12); color: #ffffff; }
.q-opt input:checked + span::before { border-color: var(--cyan); background: radial-gradient(circle, #bff1ff 0 35%, transparent 40%); box-shadow: 0 0 10px rgba(76, 201, 240, .7); }
.q-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.quiz-error { margin-top: 14px; padding: 10px 14px; border-left: 3px solid #f08a80; border-radius: 8px; background: rgba(240, 138, 128, .1); color: #ffc4bd; font-size: .9375rem; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quiz-form:not(.is-stepper) [data-quiz="prev"], .quiz-form:not(.is-stepper) [data-quiz="next"] { display: none; }
.quiz-nav [hidden] { display: none; }
.quiz-noscript { margin-top: 12px; color: var(--muted); }

.quiz-result { margin-top: 24px; }
.quiz-level {
  margin-top: 6px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-level:focus { outline: none; }
.quiz-meter { margin-top: 12px; height: 10px; border-radius: 10px; background: rgba(141, 182, 255, .14); overflow: hidden; }
.quiz-meter span { display: block; height: 100%; width: calc(var(--score, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, #2f6fed, #4cc9f0, #b4c2ff); box-shadow: 0 0 14px rgba(76, 201, 240, .7); transition: width .8s var(--ease); }
.quiz-pct { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.quiz-summary { margin-top: 12px; color: #dbe7ff; font-size: 1.0625rem; }
.quiz-recs-title { margin-top: 20px; font-size: 1.0625rem; font-weight: 750; }
.quiz-recs { margin-top: 10px; padding-left: 0; list-style: none; counter-reset: rec; display: grid; gap: 10px; }
.quiz-recs li { position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: rgba(6, 11, 24, .45); border: 1px solid var(--border); color: #dbe7ff; counter-increment: rec; }
.quiz-recs li::before {
  content: counter(rec); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(76, 201, 240, .18); color: #bff1ff; font-weight: 800; font-size: .8125rem;
}
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Página del checklist ---------- */
.checklist-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 639px) {
  .checklist-actions .btn { width: 44px; padding: 0; }
  .checklist-actions .btn span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.checklist { padding-top: 56px; }
.checklist-h1 {
  margin-top: 14px; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 30%, #a9c3f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.checklist-progress { margin-top: 14px; color: var(--cyan); font-weight: 700; min-height: 1.5em; }
.checklist-groups { display: grid; gap: 16px; }
@media (min-width: 960px) { .checklist-groups { grid-template-columns: 1fr 1fr; } }
.check-group {
  padding: 22px 22px 12px; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(18, 33, 61, .95), rgba(10, 19, 37, .95)) padding-box, var(--grad-border) border-box;
  box-shadow: var(--shadow);
}
.check-group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 1.1875rem; font-weight: 750; }
.check-group ul { list-style: none; }
.check-group li + li { border-top: 1px solid var(--border); }
.check-group label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; color: #dbe7ff; }
.check-group input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #4cc9f0; cursor: pointer; }
.check-group input:checked + span { color: #ffffff; }
.checklist-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 28px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(115deg, rgba(11, 58, 143, .95), rgba(29, 78, 216, .9), rgba(55, 48, 163, .9)) padding-box,
              linear-gradient(120deg, rgba(127, 220, 247, .6), rgba(139, 155, 255, .4)) border-box;
}
.checklist-cta h2 { font-size: 1.5rem; font-weight: 780; letter-spacing: -.02em; }
.checklist-cta p { margin-top: 6px; color: #f2f6ff; }
.print-only { display: none; }
.site-footer-mini { padding-block: 24px; }
.site-footer-mini .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }

@media print {
  .bg-net, .fx, .checklist-actions, .checklist-cta .btn, .privacy, .skip { display: none !important; }
  .section-head::before, .section::after { display: none !important; }
  .check-group input { accent-color: #000; }
  .site-header { display: block !important; position: static; background: none; border: 0; }
  .site-header .brand-name { color: #000; }
  .checklist { padding-top: 0; }
  .checklist-h1, .ia-title-em { background: none !important; color: #000 !important; }
  .check-group, .checklist-cta, .stack-panel, .quiz, .res-card, .dash-card { background: #fff !important; border: 1px solid #999 !important; box-shadow: none !important; color: #000; }
  .check-group label, .check-group input:checked + span, .checklist-cta p, .section-head p { color: #000 !important; text-shadow: none !important; }
  .check-group { break-inside: avoid; }
  .pillar-num { background: none; border: 1px solid #999; color: #000; box-shadow: none; }
  .checklist-progress { display: none; }
  .print-only { display: block; margin-top: 24px; color: #000; font-size: .8125rem; }
  .site-footer-mini { display: none; }
  * { text-shadow: none !important; }
}

/* ---------- Casos de éxito: cuadrícula tipo bento ---------- */
.fx-casos { --c1: rgba(91, 149, 255, .22); --c2: rgba(251, 191, 120, .1); }
.cases { display: grid; gap: 16px; }
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .case-wide { grid-column: span 2; } }
.case { padding: 26px 24px; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-sector {
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(141, 182, 255, .3);
  background: rgba(6, 11, 24, .45); color: #cfe0ff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.case h3 { margin-top: 18px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.3; }
.case-dl { display: grid; gap: 10px; margin: 14px 0 0; }
.case-dl div { display: grid; gap: 2px; align-content: start; }
.case-dl dt { color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-dl dd { margin: 0; color: #c9d6ec; font-size: .9688rem; line-height: 1.55; }
.case-dl div:last-child dd { color: #ffffff; font-weight: 600; }
@media (min-width: 1100px) {
  .case-wide .case-dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; }
}
.case-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(141, 182, 255, .28); }
.case-facts li {
  padding: 8px 14px; border-radius: 12px; border: 1px solid rgba(76, 201, 240, .35);
  background: rgba(76, 201, 240, .08); color: #e6f6ff; font-size: .875rem; font-weight: 600;
  box-shadow: 0 0 18px -8px rgba(76, 201, 240, .7);
}

/* =====================================================================
   v9 · Privacidad de IA, ofertas para empezar, formulario del diagnóstico
   y aviso de privacidad
   ===================================================================== */

/* ---------- "Tu información es tuya" ---------- */
.trust {
  display: grid; gap: 20px; margin-top: 40px; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: radial-gradient(28rem 14rem at 0% 0%, rgba(111, 211, 156, .12), transparent 70%) padding-box,
              linear-gradient(180deg, rgba(18, 33, 61, .95), rgba(10, 19, 37, .95)) padding-box,
              linear-gradient(120deg, rgba(111, 211, 156, .6), rgba(91, 149, 255, .2) 45%, rgba(76, 201, 240, .5)) border-box;
  box-shadow: var(--shadow);
}
@media (min-width: 960px) { .trust { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); align-items: center; gap: 40px; padding: 36px 40px; } }
.trust-head { display: flex; align-items: flex-start; gap: 16px; }
.trust-icon {
  flex: none; width: 56px; height: 56px; padding: 13px; border-radius: 16px; color: #e6fff1;
  background: linear-gradient(135deg, rgba(31, 122, 80, .55), rgba(14, 116, 144, .35));
  border: 1px solid rgba(111, 211, 156, .45); box-shadow: 0 0 30px -8px rgba(111, 211, 156, .7);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.trust-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.trust-head p { margin-top: 6px; color: #c9d6ec; }
.trust-list { list-style: none; display: grid; gap: 12px; }
.trust-list li { position: relative; padding-left: 30px; color: #c9d6ec; font-size: .9688rem; line-height: 1.55; }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(111, 211, 156, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd39c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.trust-list strong { color: #ffffff; }

/* ---------- Ofertas para empezar (reversión de riesgo) ---------- */
.offers { margin-top: 40px; }
.offers-head h3 { margin-top: 6px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.offer-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 860px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.offer {
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 12px; padding: 30px 26px 28px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background: radial-gradient(24rem 14rem at 100% 0%, rgba(76, 201, 240, .16), transparent 70%) padding-box,
              linear-gradient(160deg, rgba(23, 45, 92, .96), rgba(12, 22, 44, .96)) padding-box,
              linear-gradient(130deg, rgba(127, 220, 247, .85), rgba(91, 149, 255, .3) 45%, rgba(139, 155, 255, .7)) border-box;
  box-shadow: var(--shadow-glow);
}
.offer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, rgba(191, 241, 255, .08) 50%, transparent 60%);
  background-size: 300% 100%; background-position: 100% 0;
}
@media (prefers-reduced-motion: no-preference) { .offer::after { animation: offer-sheen 7s ease-in-out infinite; } .offer:nth-child(2)::after { animation-delay: 3.5s; } }
@keyframes offer-sheen { 0%, 40% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
.offer-badge {
  justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #061024; background: linear-gradient(135deg, #7fdcf7, #8db6ff);
}
.offer-badge-safe { background: linear-gradient(135deg, #6fd39c, #7fdcf7); }
.offer-icon {
  width: 48px; height: 48px; padding: 11px; border-radius: 14px; color: #e6f6ff;
  background: linear-gradient(135deg, rgba(47, 111, 237, .5), rgba(76, 201, 240, .2)); border: 1px solid rgba(141, 182, 255, .4);
  box-shadow: 0 0 28px -6px rgba(76, 201, 240, .8);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.offer h4 { font-size: 1.3125rem; font-weight: 780; letter-spacing: -.02em; line-height: 1.25; }
.offer p { color: #c9d6ec; }
.offer p strong { color: #ffffff; }
.offer .btn { justify-self: start; margin-top: 6px; white-space: normal; text-align: left; }

/* ---------- Formulario del diagnóstico completo ---------- */
.lead-form {
  margin-top: 24px; padding: 22px; border-radius: var(--radius); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(23, 45, 92, .7), rgba(10, 19, 37, .7)) padding-box,
              linear-gradient(130deg, rgba(76, 201, 240, .7), rgba(139, 155, 255, .4)) border-box;
}
.lead-title { font-size: 1.1875rem; font-weight: 780; letter-spacing: -.015em; }
.lead-sub { margin-top: 4px; color: #c9d6ec; font-size: .9375rem; }
.lead-fields { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .lead-fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .9375rem; color: #e6edf8; }
.req { color: #7fdcf7; }
.opt { color: var(--muted); font-weight: 500; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #6c81a6; background: rgba(6, 11, 24, .7); color: #ffffff; font: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(76, 201, 240, .35); }
.input[aria-invalid="true"] { border-color: #f08a80; }
.field-error { color: #ffb4ab; font-size: .875rem; }
.consent { margin-top: 16px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: #dbe7ff; font-size: .9375rem; }
.consent-label input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #4cc9f0; cursor: pointer; }
.consent-label a { color: #bfe9ff; }
.lead-hint { margin-top: 10px; color: var(--muted); font-size: .8125rem; }
.lead-form .btn { margin-top: 16px; }
.lead-form .btn[disabled] { opacity: .65; cursor: progress; }
.lead-status:empty { display: none; }
.lead-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .9375rem; }
.lead-status.is-ok { border-left: 3px solid var(--ok); background: rgba(111, 211, 156, .1); color: #d6f5e3; }
.lead-status.is-error { border-left: 3px solid #f08a80; background: rgba(240, 138, 128, .1); color: #ffd2cc; }
.lead-status a { color: #ffffff; }
/* Campo trampa para robots: fuera de la pantalla, no oculto con display para que los robots lo llenen */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.quiz-result .privacy a { color: #bfe9ff; }
.footer-legal a { color: var(--text); }

/* ---------- Aviso de privacidad ---------- */
.legal-wrap { max-width: 52rem; }
.legal { display: grid; gap: 14px; }
.legal section {
  padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(18, 33, 61, .95), rgba(10, 19, 37, .95)) padding-box, var(--grad-border) border-box;
}
.legal h2 { font-size: 1.1875rem; font-weight: 750; letter-spacing: -.01em; }
.legal p, .legal li { color: #c9d6ec; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal strong { color: #ffffff; }
.legal a { color: #bfe9ff; }
.legal-date { margin-top: 10px; color: var(--cyan); font-weight: 700; }
@media print {
  .legal section { background: #fff !important; border: 1px solid #999 !important; break-inside: avoid; }
  .legal p, .legal li, .legal strong, .legal h2 { color: #000 !important; }
  .legal a { color: #000 !important; }
}
@media (max-width: 479px) { .quiz { padding: 22px 18px; } .lead-form { padding: 18px 16px; margin-inline: -4px; } }
.legal h2 { margin-bottom: 10px; }
.section-head .legal-date { color: var(--cyan); font-size: 1rem; }

/* =====================================================================
   v13 · Globo del hero, diagrama de flujo hacia la IA, servicios en
   cuadrícula bento, encabezados con luz y botón con brillo
   ===================================================================== */

/* ---------- Hero: globo de puntos ----------
   La esfera (fondo, borde y brillo) es CSS: se ve aunque no haya JavaScript.
   El lienzo solo dibuja los continentes, los arcos y los pulsos. */
.hero .net { opacity: .5; }
.hero-globe { position: relative; width: 100%; aspect-ratio: 1; pointer-events: none; }
.globe-halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, .42) 0%, rgba(76, 201, 240, .14) 42%, transparent 66%);
}
.globe-fallback {
  position: absolute; inset: 9%; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(91, 149, 255, .30), transparent 55%),
    radial-gradient(circle at 50% 50%, #0b1a3a 0%, #081329 62%, #050b19 100%);
  box-shadow:
    inset 0 0 0 1px rgba(141, 182, 255, .22),
    inset -18px -24px 60px -10px rgba(2, 6, 16, .9),
    inset 10px 12px 50px -18px rgba(127, 220, 247, .45),
    0 0 80px -10px rgba(76, 201, 240, .35);
}
.globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }

/* Móvil y tableta: el globo queda detrás del texto, atenuado y sin interacción */
@media (max-width: 959px) {
  .hero-globe {
    position: absolute; z-index: -1; top: 0; right: -42%;
    width: min(122vw, 680px); opacity: .42;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  }
}
@media (min-width: 640px) and (max-width: 959px) { .hero-globe { right: -28%; top: -4%; opacity: .38; } }
/* Escritorio: a la derecha del texto, un poco más grande que su columna; se puede girar arrastrando */
@media (min-width: 960px) {
  .hero-globe { width: min(660px, 124%); justify-self: start; margin-block: -24px; pointer-events: auto; }
  .hero-globe .globe { cursor: grab; }
  .hero-globe .globe.is-dragging { cursor: grabbing; }
}
@media (prefers-reduced-motion: no-preference) {
  .globe-halo { animation: breathe 7s ease-in-out infinite; }
}
.fx-live .hero:not(.is-live) .globe-halo,
.fx-live .hero:not(.is-live) .btn-shine::after,
.fx-live .cta:not(.is-live) .btn-shine::after { animation-play-state: paused; }

/* ---------- Botón principal con brillo ---------- */
.btn-shine { overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .38) 48%, rgba(191, 241, 255, .2) 54%, transparent 68%);
  transform: translateX(-130%);
}
.btn-inverse.btn-shine::after { background: linear-gradient(105deg, transparent 32%, rgba(76, 201, 240, .28) 48%, rgba(139, 155, 255, .2) 54%, transparent 68%); }
.btn-primary.btn-shine { background: linear-gradient(135deg, #2f6fed, #1d4ed8); }
@media (prefers-reduced-motion: no-preference) {
  .btn-shine::after { animation: btn-shine 5s cubic-bezier(.4, 0, .2, 1) 1.2s infinite; }
}
@keyframes btn-shine { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }

/* ---------- Encabezado con luz (efecto lámpara sutil) ---------- */
.section-head.lamp::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -8px; top: -34px; width: min(30rem, 92%); height: 170px;
  background:
    linear-gradient(90deg, transparent, rgba(127, 220, 247, .95) 22%, rgba(91, 149, 255, .85) 60%, transparent) 0 0 / 100% 2px no-repeat,
    radial-gradient(ellipse 50% 100% at 38% 0%, rgba(76, 201, 240, .2), rgba(47, 111, 237, .08) 45%, transparent 72%);
  transform-origin: 30% 0;
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .section-head.lamp.reveal::after { transform: scaleX(.25); opacity: 0; transition: transform 1.3s var(--ease) .15s, opacity 1.3s var(--ease) .15s; }
  .section-head.lamp.reveal.in::after { transform: none; opacity: 1; }
}

/* ---------- IA: diagrama de flujo (tus sistemas → IA → resultados) ---------- */
.flow {
  position: relative; margin: 0 0 48px; padding: 24px 16px 20px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background:
    radial-gradient(34rem 18rem at 50% 50%, rgba(47, 111, 237, .16), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(14, 26, 49, .82), rgba(8, 15, 31, .88)) padding-box,
    linear-gradient(120deg, rgba(76, 201, 240, .55), rgba(91, 149, 255, .14) 40%, rgba(139, 155, 255, .45)) border-box;
  box-shadow: var(--shadow-glow);
}
@media (min-width: 640px) { .flow { padding: 32px 28px 24px; } }
.flow-stage { position: relative; display: grid; gap: 52px; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-col, .flow-hub { position: relative; z-index: 1; min-width: 0; }
.flow-label { margin-bottom: 12px; color: var(--cyan); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.flow-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 44px; }
.flow-node {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid rgba(141, 182, 255, .24);
  background: linear-gradient(180deg, #12213d, #0b1527);
  color: #e6edf8; font-size: .875rem; font-weight: 650; line-height: 1.3;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9);
}
.flow-node abbr { text-decoration: none; }
.flow-icon {
  flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(47, 111, 237, .45), rgba(76, 201, 240, .14));
  border: 1px solid rgba(141, 182, 255, .35); color: #dff4ff;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.flow-node-out .flow-icon { background: linear-gradient(135deg, rgba(79, 70, 229, .5), rgba(139, 155, 255, .16)); border-color: rgba(180, 194, 255, .4); }

.flow-hub { display: grid; place-items: center; justify-self: center; width: 148px; aspect-ratio: 1; }
.flow-hub-core {
  position: relative; z-index: 1; display: grid; place-items: center; align-content: center; gap: 4px;
  width: 128px; aspect-ratio: 1; border-radius: 50%; text-align: center;
  background: radial-gradient(circle at 35% 30%, #1f3f7d, #0d1d3d 60%, #081329);
  box-shadow: 0 0 0 1px rgba(127, 220, 247, .55), 0 0 40px -6px rgba(76, 201, 240, .8), inset 0 0 30px -8px rgba(127, 220, 247, .6);
}
.flow-hub-core .logo-mark { width: 30px; height: 30px; }
.flow-hub-core strong { font-size: .9375rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.flow-hub-core small { max-width: 96px; color: #c9d6ec; font-size: .6875rem; line-height: 1.25; }
.flow-hub-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(127, 220, 247, .9) 75%, rgba(139, 155, 255, .8) 88%, transparent);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
  mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%);
}
.flow-hub::before, .flow-hub::after {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px solid rgba(127, 220, 247, .55); opacity: 0;
}
.flow figcaption { position: relative; z-index: 1; max-width: 46rem; margin: 22px auto 0; color: var(--muted); font-size: .9375rem; text-align: center; }

/* Trazos (los crea script.js según la posición real de cada tarjeta) */
.flow-base { fill: none; stroke: rgba(141, 182, 255, .2); stroke-width: 1.5; }
.flow-beam { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .14 1.2; stroke-dashoffset: .14; opacity: 0; }
.flow-beam.flow-in { stroke: #8fe3fb; }
.flow-beam.flow-out { stroke: #c3cdff; }
.flow-glow { fill: none; stroke-width: 7; stroke-linecap: round; stroke-dasharray: .14 1.2; stroke-dashoffset: .14; opacity: 0; }
.flow-glow.flow-in { stroke: rgba(76, 201, 240, .28); }
.flow-glow.flow-out { stroke: rgba(139, 155, 255, .28); }

@media (min-width: 900px) {
  .flow { padding: 36px 32px 28px; }
  .flow-stage { grid-template-columns: minmax(0, 14.5rem) minmax(40px, 1fr) auto minmax(40px, 1fr) minmax(0, 14.5rem); gap: 0; align-items: center; }
  .flow-in { grid-column: 1; }
  .flow-hub { grid-column: 3; width: 176px; }
  .flow-hub-core { width: 150px; }
  .flow-hub-core strong { font-size: 1.0625rem; }
  .flow-out { grid-column: 5; }
  .flow-list { grid-template-columns: 1fr; gap: 10px; }
  .flow-label { text-align: left; }
  .flow-node { font-size: .9375rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .flow-beam, .flow-glow { opacity: 1; animation: flow-run 3.6s cubic-bezier(.45, .05, .55, .95) infinite; animation-delay: calc(var(--i, 0) * -.6s); }
  .flow-beam.flow-out, .flow-glow.flow-out { animation-delay: calc(var(--i, 0) * -.9s - 1.8s); }
  .flow-hub-ring { animation: spin 6s linear infinite; }
  .flow-hub::before { animation: hub-ping 2.4s ease-out infinite; }
  .flow-hub::after { animation: hub-ping 2.4s ease-out 1.2s infinite; }
  .flow-in .flow-node { animation: node-send 3.6s ease-in-out infinite; }
  .flow-out .flow-node { animation: node-get 3.6s ease-in-out infinite; }
  .flow-in li:nth-child(1) { animation-delay: 0s; } .flow-in li:nth-child(2) { animation-delay: -.6s; } .flow-in li:nth-child(3) { animation-delay: -1.2s; }
  .flow-in li:nth-child(4) { animation-delay: -1.8s; } .flow-in li:nth-child(5) { animation-delay: -2.4s; } .flow-in li:nth-child(6) { animation-delay: -3s; }
  .flow-out li:nth-child(1) { animation-delay: -1.8s; } .flow-out li:nth-child(2) { animation-delay: -2.7s; } .flow-out li:nth-child(3) { animation-delay: -3.6s; } .flow-out li:nth-child(4) { animation-delay: -4.5s; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-base { stroke: rgba(127, 220, 247, .45); }
  .flow-hub-ring { transform: rotate(40deg); }
}
@keyframes flow-run { from { stroke-dashoffset: .14; } to { stroke-dashoffset: -1; } }
@keyframes hub-ping { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes node-send {
  0%, 12% { border-color: rgba(127, 220, 247, .75); box-shadow: 0 0 22px -6px rgba(76, 201, 240, .8); }
  30%, 100% { border-color: rgba(141, 182, 255, .24); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9); }
}
@keyframes node-get {
  0%, 70% { border-color: rgba(141, 182, 255, .24); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9); }
  84%, 92% { border-color: rgba(180, 194, 255, .8); box-shadow: 0 0 22px -6px rgba(139, 155, 255, .85); }
  100% { border-color: rgba(141, 182, 255, .24); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .9); }
}

/* ---------- Servicios: cuadrícula bento con borde que sigue al puntero ---------- */
.bento { list-style: none; display: grid; gap: 16px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .b-wide { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento .b-wide-lg { grid-column: span 2; }
  .bento .b-tall { grid-row: span 2; }
}

.bento-card {
  --x: -1000px; --y: -1000px;
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18, 33, 61, .94), rgba(9, 17, 34, .96)) padding-box,
    linear-gradient(160deg, rgba(141, 182, 255, .34), rgba(141, 182, 255, .07) 40%, rgba(141, 182, 255, .05) 65%, rgba(76, 201, 240, .26)) border-box;
  box-shadow: var(--shadow);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
/* Borde luminoso: un degradado radial en la posición del puntero, recortado al anillo del borde */
.bento-card::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(191, 241, 255, .95), rgba(91, 149, 255, .5) 35%, transparent 70%);
  -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 .4s var(--ease);
}
/* Reflejo interior suave en la misma posición */
.bento-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--x) var(--y), rgba(91, 149, 255, .12), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.bento.is-pointer .bento-card::before, .bento.is-pointer .bento-card::after { opacity: 1; }
.bento-card:hover { box-shadow: var(--shadow-glow); }
.bento-card:focus-within { box-shadow: 0 0 0 1px rgba(127, 220, 247, .6), var(--shadow-glow); }

.bento-viz {
  position: relative; z-index: 1; display: grid; place-items: center; height: 168px; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(47, 111, 237, .22), transparent 70%),
    linear-gradient(rgba(141, 182, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(141, 182, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
    rgba(6, 11, 24, .45);
}
.bento-viz svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.bento-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
@media (min-width: 640px) { .bento-body { padding: 26px 26px 26px; } }
.bento-kicker { display: flex; align-items: center; gap: 10px; color: #c9d6ec; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.bento-kicker .pillar-num { width: 30px; height: 30px; border-radius: 9px; font-size: .75rem; }
.bento-card h3 { margin-top: 14px; font-size: 1.3125rem; font-weight: 760; letter-spacing: -.02em; line-height: 1.25; }
.bento-desc { margin-top: 10px; margin-bottom: 20px; color: var(--muted); font-size: 1rem; }
.bento-card .checks { padding-top: 18px; border-top: 1px solid var(--border); margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  .bento-card .card-more { opacity: .55; transform: none; }
  .bento-card:hover .card-more, .bento-card:focus-within .card-more { opacity: 1; }
}

@media (min-width: 1100px) {
  .bento .b-wide, .bento .b-wide-lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
  .bento .b-wide .bento-viz, .bento .b-wide-lg .bento-viz { order: 2; height: auto; min-height: 100%; border-bottom: 0; border-left: 1px solid var(--border); }
  .bento .b-tall .bento-viz { height: 300px; }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .bento .b-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .bento .b-wide .bento-viz { order: 2; height: auto; min-height: 100%; border-bottom: 0; border-left: 1px solid var(--border); }
}

/* Micro-animaciones. Regla común: el estilo base es el cuadro final (lo que se ve con movimiento reducido);
   los fotogramas clave solo agregan el movimiento. */
.bento-viz svg * { transform-box: fill-box; transform-origin: center; }

/* IA: conversación con un asistente */
.viz-chat { height: 220px; }
.chat { display: flex; flex-direction: column; gap: 8px; width: min(100%, 360px); padding: 16px 18px; }
.bubble { display: block; max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: .8125rem; line-height: 1.4; }
.bubble-in { align-self: flex-start; background: rgba(141, 182, 255, .14); border: 1px solid rgba(141, 182, 255, .2); color: #e6edf8; border-bottom-left-radius: 4px; }
.bubble-out { justify-self: end; background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #ffffff; border-bottom-right-radius: 4px; box-shadow: 0 8px 24px -10px rgba(47, 111, 237, .9); }
.bubble-out b { display: block; margin-bottom: 2px; color: #cfeeff; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.chat-slot { display: grid; justify-items: end; }
.chat-slot > * { grid-area: 1 / 1; }
.bubble-typing { align-self: end; display: inline-flex; gap: 4px; padding: 10px 12px; background: rgba(47, 111, 237, .35); opacity: 0; }
.bubble-typing i { width: 6px; height: 6px; border-radius: 50%; background: #dff4ff; }

/* Estrategia: gráfica que se dibuja hacia la meta */
.chart-grid { fill: none; stroke: rgba(141, 182, 255, .12); stroke-width: 1; }
.chart-goal { fill: none; stroke: rgba(111, 211, 156, .6); stroke-width: 1.5; stroke-dasharray: 4 5; }
.chart-area { fill: url(#vz-area); }
.chart-line { fill: none; stroke: #7fdcf7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart-dot { fill: #e6faff; }
.chart-ring { fill: none; stroke: #7fdcf7; stroke-width: 1.5; opacity: .5; }
.viz-chart svg, .viz-layers svg, .viz-cloud svg, .viz-steps svg { padding: 16px 20px; }

/* Arquitectura: capas que se ordenan */
.lay polygon { fill: rgba(12, 24, 48, .92); stroke: var(--c); stroke-width: 1.6; }
.lay-0 { --c: var(--l1); --a: 10; } .lay-1 { --c: var(--l2); --a: 6; } .lay-2 { --c: var(--l3); --a: 3; } .lay-3 { --c: var(--l4); --a: 0; }
.lay-beam { fill: none; stroke: rgba(76, 201, 240, .45); stroke-width: 1.5; stroke-dasharray: 2 4; }
.lay-dot { fill: #bff1ff; opacity: 0; }

/* Nube: información que sube */
.cloud-shape { fill: rgba(91, 149, 255, .1); stroke: #8db6ff; stroke-width: 2; stroke-linejoin: round; }
.cloud-rack rect { fill: rgba(14, 26, 49, .95); stroke: rgba(141, 182, 255, .45); stroke-width: 1.2; }
.cloud-bits .bit { fill: #7fdcf7; opacity: .85; }

/* Seguridad: escudo con candado y verificación */
.ping { fill: none; stroke: rgba(76, 201, 240, .5); stroke-width: 1.2; opacity: .2; transform: scale(.75); }
.shield-body { fill: rgba(47, 111, 237, .2); stroke: #8db6ff; stroke-width: 2; stroke-linejoin: round; }
.shield-scan { fill: rgba(127, 220, 247, .22); opacity: 0; }
.lock-body { fill: #0e1a31; stroke: #cfeeff; stroke-width: 2; }
.lock-shackle { fill: none; stroke: #cfeeff; stroke-width: 2.4; stroke-linecap: round; }
.shield-check { fill: none; stroke: #6fd39c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.keys rect { fill: rgba(141, 182, 255, .14); }
.keys .key-fill { fill: rgba(111, 211, 156, .75); transform-origin: left center; }

/* Continuidad: pulso constante y disponibilidad */
.ecg-base { fill: none; stroke: rgba(111, 211, 156, .28); stroke-width: 2; stroke-linejoin: round; }
.ecg-run { fill: none; stroke: #8ff0bd; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .22 1.3; stroke-dashoffset: -.3; }
.uptime rect { fill: rgba(111, 211, 156, .6); }
.viz-pulse svg { padding: 18px 20px; }

/* Automatización: una tarea que avanza sola por cada paso */
.st-line { fill: none; stroke: rgba(141, 182, 255, .28); stroke-width: 2; }
.st circle { fill: #0e1a31; stroke: rgba(111, 211, 156, .85); stroke-width: 2; }
.st path { fill: none; stroke: #6fd39c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.st-token { fill: #bff1ff; opacity: 0; }

/* Aplicaciones: una interfaz que se arma */
.app-win { display: flex; flex-direction: column; width: min(86%, 360px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid rgba(141, 182, 255, .32); background: rgba(6, 11, 24, .8); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.app-bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.app-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a4d6e; }
.app-bar i:first-child { background: #5b95ff; }
.app-body { flex: 1; display: grid; grid-template-columns: 24% minmax(0, 1fr); gap: 8px; padding: 8px; min-height: 0; }
.app-side { display: grid; align-content: start; gap: 6px; padding: 6px; border-radius: 6px; background: rgba(141, 182, 255, .08); }
.app-side b { display: block; height: 6px; border-radius: 3px; background: rgba(141, 182, 255, .3); }
.app-side b:first-child { background: rgba(127, 220, 247, .7); }
.app-main { display: grid; grid-template-rows: 12px minmax(0, 1fr) minmax(0, 1.3fr); gap: 7px; min-height: 0; }
.app-head { display: block; width: 55%; border-radius: 4px; background: rgba(141, 182, 255, .22); }
.app-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.app-cards span { display: block; border-radius: 6px; background: linear-gradient(135deg, rgba(47, 111, 237, .45), rgba(76, 201, 240, .15)); border: 1px solid rgba(141, 182, 255, .25); }
.app-chart { display: flex; align-items: flex-end; gap: 5px; padding: 6px; border-radius: 6px; background: rgba(141, 182, 255, .07); }
.app-chart b { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #7fdcf7, #2f6fed); }
.app-chart b:nth-child(1) { height: 35%; } .app-chart b:nth-child(2) { height: 55%; } .app-chart b:nth-child(3) { height: 42%; }
.app-chart b:nth-child(4) { height: 70%; } .app-chart b:nth-child(5) { height: 60%; } .app-chart b:nth-child(6) { height: 82%; } .app-chart b:nth-child(7) { height: 95%; }

@media (prefers-reduced-motion: no-preference) {
  .bubble.b1 { animation: chat-b1 14s var(--ease) infinite; }
  .bubble-typing { animation: chat-typing 14s ease infinite; }
  .bubble-typing i { animation: typing-dot 1s ease-in-out infinite; }
  .bubble-typing i:nth-child(2) { animation-delay: .15s; } .bubble-typing i:nth-child(3) { animation-delay: .3s; }
  .bubble.b2 { animation: chat-b2 14s var(--ease) infinite; }
  .bubble.b3 { animation: chat-b3 14s var(--ease) infinite; }
  .bubble.b4 { animation: chat-b4 14s var(--ease) infinite; }
  .bubble.b5 { animation: chat-b5 14s var(--ease) infinite; }
  .chat-status.b6 { animation: chat-b6 14s var(--ease) infinite; }
  .chat-avatar::after { animation: ping 2.6s var(--ease) infinite; }

  .chart-line { animation: chart-draw 7s var(--ease) infinite; }
  .chart-area { animation: chart-fill 7s ease infinite; }
  .chart-dot { animation: chart-dot 7s var(--ease) infinite; }
  .chart-ring { animation: chart-ring 7s ease-out infinite; }

  .lay { animation: lay-float 5s ease-in-out infinite; }
  .lay-1 { animation-delay: -.4s; } .lay-2 { animation-delay: -.8s; } .lay-3 { animation-delay: -1.2s; }
  .lay-dot { animation: lay-rise 2.5s ease-in infinite; }

  .cloud-bits .bit { animation: bit-rise 3s ease-in infinite; }
  .cloud-bits .k2 { animation-delay: -.6s; } .cloud-bits .k3 { animation-delay: -1.2s; } .cloud-bits .k4 { animation-delay: -1.8s; } .cloud-bits .k5 { animation-delay: -2.4s; }
  .cloud-shape { animation: cloud-glow 3s ease-in-out infinite; }

  .ping { animation: ping-ring 3.6s ease-out infinite; }
  .ping.p2 { animation-delay: -1.2s; } .ping.p3 { animation-delay: -2.4s; }
  .shield-scan { animation: shield-scan 3.6s ease-in-out infinite; }
  .shield-check { animation: shield-check 3.6s var(--ease) infinite; }
  .keys .key-fill { animation: key-fill 3.6s var(--ease) infinite; }

  .ecg-run { animation: ecg-run 3.2s linear infinite; }
  .uptime rect:nth-child(3n) { animation: uptime 2.4s ease-in-out infinite; }
  .uptime rect:nth-child(3n + 1) { animation: uptime 2.4s ease-in-out -.8s infinite; }
  .uptime rect:nth-child(5n) { animation: uptime 2.4s ease-in-out -1.6s infinite; }

  .st-token { animation: st-token 4s cubic-bezier(.6, 0, .4, 1) infinite; }
  .st { animation: st-on 4s ease infinite; }
  .st2 { animation-delay: .97s; } .st3 { animation-delay: 1.95s; } .st4 { animation-delay: 2.92s; }

  .ap { animation: app-build 6s var(--ease) infinite; }
  .ap2 { animation-delay: .15s; } .ap3 { animation-delay: .3s; } .ap4 { animation-delay: .4s; } .ap5 { animation-delay: .5s; } .ap6 { animation-delay: .65s; }
  .app-chart b { animation: app-bar 6s var(--ease) .7s infinite; transform-origin: bottom; }
}
@keyframes chat-b1 { 0%, 3% { opacity: 0; transform: translateY(8px); } 7%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-typing { 0%, 10% { opacity: 0; } 13%, 24% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes chat-b2 { 0%, 26% { opacity: 0; transform: translateY(8px) scale(.96); } 30%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-b3 { 0%, 46% { opacity: 0; transform: translateY(8px); } 50%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-b4 { 0%, 58% { opacity: 0; transform: translateY(8px); } 62%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-b5 { 0%, 70% { opacity: 0; transform: translateY(8px) scale(.96); } 74%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-b6 { 0%, 80% { opacity: 0; transform: scale(.9); } 84%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes typing-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes chart-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 88% { stroke-dashoffset: 0; opacity: 1; } 96% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes chart-fill { 0%, 25% { opacity: 0; } 50%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes chart-dot { 0%, 42% { opacity: 0; transform: scale(.2); } 48%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; } }
@keyframes chart-ring { 0%, 46% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes lay-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--a) * -1px)); } }
@keyframes lay-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-98px); opacity: 0; } }
@keyframes bit-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-56px) scale(.6); opacity: 0; } }
@keyframes cloud-glow { 0%, 100% { fill: rgba(91, 149, 255, .08); } 50% { fill: rgba(91, 149, 255, .2); } }
@keyframes ping-ring { 0% { transform: scale(.45); opacity: .7; } 100% { transform: scale(1.05); opacity: 0; } }
@keyframes shield-scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 55% { transform: translateY(112px); opacity: 1; } 62%, 100% { transform: translateY(112px); opacity: 0; } }
@keyframes shield-check { 0%, 50% { stroke-dashoffset: 1; } 66%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes key-fill { 0% { transform: scaleX(0); } 55%, 92% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ecg-run { from { stroke-dashoffset: .22; } to { stroke-dashoffset: -1.3; } }
@keyframes uptime { 0%, 100% { fill: rgba(111, 211, 156, .6); } 50% { fill: rgba(143, 240, 189, .95); } }
@keyframes st-token { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 74% { transform: translateX(220px); opacity: 1; } 84%, 100% { transform: translateX(220px); opacity: 0; } }
@keyframes st-on {
  0% { opacity: .35; } 4% { opacity: 1; } 60% { opacity: 1; } 75%, 100% { opacity: .35; }
}
@keyframes app-build { 0% { opacity: 0; transform: translateY(6px) scale(.97); } 10%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes app-bar { 0% { transform: scaleY(0); } 14%, 82% { transform: scaleY(1); } 92%, 100% { transform: scaleY(0); } }

/* Pausa fuera de pantalla (la clase .is-live la pone script.js) */
.fx-live .section:not(.is-live) .bento-viz *,
.fx-live .section:not(.is-live) .flow *,
.fx-live .section:not(.is-live) .flow-hub::before,
.fx-live .section:not(.is-live) .flow-hub::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .bubble-typing { display: none; }
}
@media print {
  .hero-globe, .flow-svg, .bento-viz { display: none; }
  .bento-card, .flow-node { background: #fff !important; color: #000; border: 1px solid #999 !important; }
}

/* Ajustes v13 tras revisión visual */
.flow-label { display: table; margin-inline: auto; padding: 3px 12px; border-radius: 999px; background: #0b1630; border: 1px solid rgba(76, 201, 240, .25); }
.flow-node span { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 899px) {
  .flow-node { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 10px 12px; font-size: .8125rem; }
  .flow-icon { width: 28px; height: 28px; padding: 6px; border-radius: 9px; }
}
@media (min-width: 900px) { .flow-label { margin-inline: 0; } }
.bubble-typing { align-self: start; }
@media (min-width: 1100px) {
  .bento .b-wide .bento-body, .bento .b-wide-lg .bento-body { justify-content: center; }
  .bento .b-wide .checks, .bento .b-wide-lg .checks { margin-top: 0; }
  .b-ia .chat { width: min(100%, 400px); gap: 10px; }
  .b-ia .bubble { font-size: .875rem; }
}
@media (max-width: 959px) {
  .hero .lead { text-shadow: 0 0 6px rgba(6, 11, 24, .95), 0 1px 14px rgba(6, 11, 24, .9); }
}
@media (min-width: 1100px) {
  .bento .b-tall .bento-viz { flex: 1 1 auto; height: auto; min-height: 300px; }
}

/* Ajustes v14: conversación completa en la tarjeta de IA */
.viz-chat { height: auto; min-height: 220px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid rgba(141, 182, 255, .16); font-size: .8125rem; color: #e6edf8; }
.chat-head b { font-weight: 700; }
.chat-head em { margin-left: auto; font-style: normal; font-size: .75rem; color: #6fd39c; }
.chat-avatar { position: relative; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #4cc9f0, #2f6fed); box-shadow: 0 0 14px rgba(76, 201, 240, .55); }
.chat-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #6fd39c; border: 2px solid #0b1630; }
.chat > .bubble-out { align-self: flex-end; }
.bubble-file { display: flex; align-items: center; gap: 8px; background: rgba(47, 111, 237, .22); border: 1px solid rgba(127, 220, 247, .35); box-shadow: none; color: #dff4ff; font-weight: 600; }
.bubble-file::before { content: ""; flex: none; width: 14px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, #7fdcf7, #2f6fed); }
.chat-status { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: rgba(111, 211, 156, .12); border: 1px solid rgba(111, 211, 156, .35); color: #bff0d4; font-size: .75rem; font-weight: 650; }
.chat-status::before { content: "✓"; color: #6fd39c; font-weight: 800; }
@media (max-width: 1099px) { .chat { width: min(100%, 420px); } }
