/* La portada (el resto del sitio lleva el cascarón común, shell.css). La cara de KAIA: los tokens de
   apps/web/src/core/theme/tokens.css (claro de serie, oscuro si el sistema lo pide), Sora en los
   títulos y la pila del sistema en el cuerpo. */
:root {
  --bg: #fdfdfb; --hover: #f1f1ef; --hair: rgba(0,0,0,.06); --hair2: rgba(0,0,0,.1);
  --txt: #252523; --txt2: #585856; --mut: #666664; --accent: #0e7cd9; --accent2: #0a5fa6;
  --m-idp: #0e7cd9; --m-automate: #bd7a2c; --m-knowledge: #3c8a5f; --m-agentic: #4b66a8;
  --panel: #fdfdfb; --raised: #ffffff; --sh-2: 0 1px 2px rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e1c; --hover: #2c2b27; --hair: rgba(255,255,255,.08); --hair2: rgba(255,255,255,.12);
    --txt: #ece9e3; --txt2: #b3b1a8; --mut: #9d9b92; --accent: #4da3e8; --accent2: #7bbcf0;
    --m-idp: #4da3e8; --m-automate: #e2a857; --m-knowledge: #5fcf95; --m-agentic: #88a0c8;
    --panel: #1f1e1c; --raised: #252422; --sh-2: 0 2px 10px #0005;
    color-scheme: dark;
  }
}
:root {
  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px; --radius-lg: 13px;
  --accent-text: var(--accent2);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-soft-hover: color-mix(in srgb, var(--accent) 22%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --focus-ring: color-mix(in srgb, var(--accent) 80%, transparent);
  --m-idp-soft: color-mix(in srgb, var(--m-idp) 12%, transparent);
  --m-automate-soft: color-mix(in srgb, var(--m-automate) 14%, transparent);
  --m-knowledge-soft: color-mix(in srgb, var(--m-knowledge) 14%, transparent);
  --m-agentic-soft: color-mix(in srgb, var(--m-agentic) 14%, transparent);
  --neutro-soft: color-mix(in srgb, var(--mut) 14%, transparent);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.55 var(--body); overflow-wrap: anywhere; }
a { color: var(--accent-text); text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--txt); letter-spacing: -.01em; overflow-wrap: normal; }
.envoltura { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* El logotipo animado del front, tal cual (apps/web/src/core/BrandMark.tsx y theme/kaia.css): el
   aura respira, la órbita gira y sus tres puntos laten. Sin animación si el sistema pide menos movimiento. */
.logotipo { display: block; color: var(--accent); overflow: visible; }  /* el azul base de la marca (#0E7CD9; en oscuro, su --accent) */
.heroe .logotipo { width: min(560px, 86vw); height: auto; margin: 0 auto; }
.brandmark .bm-aura, .brandmark .bm-orbit { transform-box: fill-box; transform-origin: 50% 50%; }
.brandmark .bm-aura { animation: bm-breathe 7s ease-in-out infinite; }
.brandmark .bm-orbit { animation: ui-giro 26s linear infinite; }
.brandmark .bm-d1 { animation: bm-pulse 3.2s ease-in-out infinite; }
.brandmark .bm-d2 { animation: bm-pulse 3.2s ease-in-out 0.5s infinite; }
.brandmark .bm-d3 { animation: bm-pulse 3.2s ease-in-out 1s infinite; }
@keyframes bm-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes bm-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.95; } }
@keyframes ui-giro { to { transform: rotate(360deg); } }

/* El fondo, de atrás adelante: el cielo (el azulado de las auras y las dos órbitas), la red de
   partículas (portada.js, transparente y sin recoger el ratón) y el contenido. */
.cielo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; color: var(--accent); }
.cielo > * { position: absolute; will-change: transform, opacity; }
.cielo .aura { border-radius: 50%; filter: blur(40px);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); }
.cielo .a1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -30vmax; animation: aura 22s ease-in-out infinite; }
.cielo .a2 { width: 60vmax; height: 60vmax; right: -24vmax; bottom: -28vmax; animation: aura 26s ease-in-out -9s infinite; }
.cielo .a3 { width: 38vmax; height: 38vmax; left: 30%; top: 26%; opacity: .5; animation: aura 30s ease-in-out -4s infinite; }
.cielo .orbita svg { width: 100%; height: 100%; display: block; }
.cielo .o1 { width: 92vmax; height: 92vmax; left: calc(50% - 46vmax); top: calc(42% - 46vmax); opacity: .22;
  animation: ui-giro 140s linear infinite; }
.cielo .o2 { width: 60vmax; height: 60vmax; left: calc(50% - 30vmax); top: calc(42% - 30vmax); opacity: .16;
  animation: ui-giro 95s linear infinite reverse; }
@keyframes aura { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; } 50% { transform: translate(3vmax, 2vmax) scale(1.08); opacity: .6; } }
.red { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; contain: strict; background: transparent; }
.portada main, .portada .pie { position: relative; z-index: 1; }
.heroe { text-align: center; padding: 36px 0 8px; }
.heroe p { font-size: 19px; color: var(--txt2); max-width: 640px; margin: 8px auto 0; line-height: 1.5; }
.heroe .entrar { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; }
.heroe .entrar svg { width: 18px; height: 18px; }
.heroe .entrar:hover { background: var(--accent2); text-decoration: none; }

/* Los cuatro módulos: una franja sobre el fondo, sin tarjetas; cada uno lleva a su capítulo del
   informe. La baldosa lleva el aura del emblema en el tinte de cada módulo. */
.modulos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 52px 0 0; }
.modulo { display: block; color: var(--txt); padding: 4px 4px 8px; border-radius: var(--radius-lg); text-decoration: none; }
.modulo:hover { text-decoration: none; }
.modulo h2 { font-size: 19px; font-weight: 600; margin: 18px 0 6px; }
.modulo p { margin: 0; color: var(--txt2); font-size: 14.5px; }
.modulo p b { color: var(--txt); font-weight: 600; }
.modulo .conocer { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; font-weight: 600;
  color: var(--m-texto); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.modulo .conocer svg { width: 15px; height: 15px; }
.modulo:hover .conocer, .modulo:focus-visible .conocer { opacity: 1; transform: none; }
.modulo.sin-enlace .conocer { display: none; }  /* sin rol que abra el informe: el módulo, solo texto */
.baldosa { position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  color: var(--m); background: linear-gradient(150deg, color-mix(in srgb, var(--m) 18%, var(--raised)), var(--raised) 78%);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--m) 40%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--m) 16%, transparent);
  transition: box-shadow .25s ease, transform .25s ease; }
.modulo[href]:hover .baldosa { transform: translateY(-3px);
  box-shadow: 0 14px 36px -6px color-mix(in srgb, var(--m) 55%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--m) 26%, transparent); }
.baldosa .aura { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.baldosa .anillo { transform-box: view-box; transform-origin: 50% 50%; }
.modulo[href]:hover .baldosa .anillo { animation: ui-giro 9s linear infinite; }
.baldosa .icono-m { position: relative; width: 30px; height: 30px; stroke-width: 1.8; }
.modulo.knowledge { --m: var(--m-knowledge); } .modulo.agentic { --m: var(--m-agentic); }
.modulo.idp { --m: var(--m-idp); } .modulo.automate { --m: var(--m-automate); }
.modulo { --m-texto: color-mix(in srgb, var(--m) 78%, var(--txt)); }

/* Los cuatro bloques: la entrada al sitio, como navegación (2×2, título grande, su icono y la flecha) */
.aqui { margin: 64px 0 0; }
.aqui > h2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
  margin: 0 0 14px; font-family: var(--body); }
.bloques { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bloque { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 24px;
  border-radius: 16px; border: 1px solid var(--hair2); background: var(--raised); color: var(--txt); text-decoration: none;
  box-shadow: var(--sh-2); transition: border-color .2s, box-shadow .2s, transform .2s; }
.bloque:hover { border-color: var(--accent-line); transform: translateY(-2px); text-decoration: none;
  box-shadow: 0 14px 32px -14px color-mix(in srgb, var(--accent) 45%, transparent); }
.bloque .b-icono { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); }
.bloque .b-icono svg { width: 24px; height: 24px; }
.bloque b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.bloque span.l { display: block; margin-top: 4px; color: var(--txt2); font-size: 14.5px; line-height: 1.45; }
.bloque .flecha { width: 22px; height: 22px; color: var(--accent-text); transition: transform .2s; }
.bloque:hover .flecha { transform: translateX(4px); }
.bloque:hover b { color: var(--accent-text); }

/* La barra de arriba es la del cascarón (shell.css): el mismo logotipo y la misma cuenta que en todo el
   sitio. Aquí, solo que quede por encima del fondo animado. */
.portada .page { position: relative; z-index: 2; }

/* El pie: Teknei a la izquierda, KAIA a la derecha, en gris */
.pie { margin-top: 56px; border-top: 1px solid var(--hair2); }
.pie .envoltura { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 26px; color: var(--mut); font-size: 13px; }
.portada .pie { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); }
.teknei { display: inline-flex; color: var(--txt); }
.teknei svg { height: 34px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .brandmark .bm-aura, .brandmark .bm-orbit, .brandmark .bm-d1, .brandmark .bm-d2, .brandmark .bm-d3,
  .modulo:hover .baldosa .anillo, .cielo > * { animation: none !important; }
  .baldosa, .bloque, .bloque .flecha, .modulo .conocer { transition: none; transform: none !important; }
}
@media (max-width: 960px) { .modulos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .envoltura { padding: 0 16px; }
  .heroe { padding: 32px 0 4px; } .heroe p { font-size: 17px; }
  .modulos, .bloques { grid-template-columns: 1fr; }
  .modulos { margin-top: 32px; gap: 22px; }
  .modulo .conocer { opacity: 1; transform: none; }
  .bloque { padding: 18px; gap: 14px; }
  .teknei svg { height: 28px; }
}
