/* AIMA OS — sitio público.
   Único archivo con hexadecimales de marca: la paleta del brand-brief del Ecosistema.
   Tipografía y estructura tomadas de apple.com (medidas el 2026-09-09):
   SF Pro Display ≥ 20 px, SF Pro Text por debajo, titulares en 600, escala 80/64/56/28/21/17/14/12.
   Regla de la casa: el fondo está vivo. Nunca retículas ni patrones estáticos. */

:root {
  --obsidian: #06080F;
  --midnight: #0D1220;
  --panel:    #0F1526;
  --indigo:   #4F46E5;
  --indigo-2: #7C6CF7;
  --violet:   #3B0764;
  --violet-2: #6D28D9;
  --cyan:     #06B6D4;
  --text:     #F5F5F7;
  --dim:      #9AA3B8;
  --faint:    #737C91;

  /* SF Pro en los equipos de Apple (fuente del sistema); Inter en el resto. */
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --textfont: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 44px);
  --tile-r: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--textfont);
  font-size: 17px; line-height: 1.2353; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ---------- La escala de Apple ---------- */
.t-hero    { font-family: var(--display); font-size: clamp(56px, 7.5vw, 96px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.t-64      { font-family: var(--display); font-size: clamp(40px, 5.2vw, 64px); line-height: 1.0625; font-weight: 600; letter-spacing: -0.009em; }
.t-56      { font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.0714; font-weight: 600; letter-spacing: -0.005em; }
.t-40      { font-family: var(--display); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.t-28      { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1428; font-weight: 600; letter-spacing: .007em; }
.t-24      { font-family: var(--display); font-size: 24px; line-height: 1.1666; font-weight: 600; letter-spacing: .009em; }
.t-21      { font-family: var(--display); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.1904; font-weight: 400; letter-spacing: .011em; }
.t-21b     { font-family: var(--display); font-size: clamp(19px, 1.6vw, 21px); line-height: 1.1904; font-weight: 600; letter-spacing: .011em; }
.t-19      { font-family: var(--display); font-size: 19px; line-height: 1.21; font-weight: 600; letter-spacing: .012em; }
.t-17      { font-family: var(--textfont); font-size: 17px; line-height: 1.2353; font-weight: 400; letter-spacing: -0.022em; }
.t-14      { font-family: var(--textfont); font-size: 14px; line-height: 1.4286; font-weight: 400; letter-spacing: -0.016em; }
.t-12      { font-family: var(--textfont); font-size: 12px; line-height: 1.3333; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow   { font-family: var(--textfont); font-size: 14px; line-height: 1.4286; font-weight: 600; letter-spacing: -0.016em; color: var(--cyan); }
.eyebrow.v { color: #B39DFF; }
.dim { color: var(--dim); }
.grad { background: linear-gradient(90deg, var(--indigo-2) 0%, #9D8CFF 40%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link { color: var(--cyan); text-decoration: none; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--panel); padding: 8px 12px; }

/* ---------- El fondo vivo ---------- */
#bg { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.aurora { position: fixed; inset: -25%; z-index: 0; pointer-events: none; filter: blur(80px); opacity: .8; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.aurora .a1 { width: 60vw; height: 60vw; left: 0; top: 5%; background: radial-gradient(circle, rgba(79,70,229,.55) 0%, rgba(79,70,229,0) 60%); animation: drift1 28s ease-in-out infinite alternate; }
.aurora .a2 { width: 42vw; height: 42vw; right: 5%; top: 15%; background: radial-gradient(circle, rgba(6,182,212,.42) 0%, rgba(6,182,212,0) 60%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 55vw; height: 55vw; left: 25%; bottom: 0; background: radial-gradient(circle, rgba(109,40,217,.5) 0%, rgba(59,7,100,0) 62%); animation: drift3 34s ease-in-out infinite alternate; }
.aurora .a4 { width: 34vw; height: 34vw; right: 20%; bottom: 20%; background: radial-gradient(circle, rgba(124,108,247,.4) 0%, rgba(124,108,247,0) 60%); animation: drift2 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(22vw, 14vh, 0) scale(1.25); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-18vw, 24vh, 0) scale(.85); } }
@keyframes drift3 { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-14vw, -22vh, 0) scale(.9); } }

.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Barra de 44 px, como la de Apple ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  background: rgba(6,8,15,.72);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  transition: background .3s;
}
.top.solid { background: rgba(6,8,15,.86); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 8px; flex: none; margin-right: 18px; text-decoration: none; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.brand img { width: 22px; height: 25px; }
.brand span { color: var(--dim); font-weight: 400; }
.nav { display: flex; gap: 26px; }
.nav a { font-family: var(--textfont); font-size: 12px; letter-spacing: -0.01em; color: rgba(245,245,247,.8); text-decoration: none; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav .nav-login { color: var(--cyan); }
@media (max-width: 860px) { .nav { gap: 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; } }

/* ---------- Portada tipo keynote ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px var(--gutter) 80px; overflow: hidden; }
.hero-hex { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(84vh, 84vw); transform: translate(-50%, -50%); opacity: .22; mix-blend-mode: screen; will-change: transform; animation: hexIn 2.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hexIn { from { opacity: 0; transform: translate(-50%,-50%) scale(.8) rotate(-8deg); } to { opacity: .22; transform: translate(-50%,-50%) scale(1) rotate(0); } }
.hero-rings { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(120vh, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124,108,247,.2); animation: ring 7s ease-out infinite; }
.hero-rings i:nth-child(2) { animation-delay: 2.3s; }
.hero-rings i:nth-child(3) { animation-delay: 4.6s; }
@keyframes ring { 0% { transform: scale(.25); opacity: 0; } 20% { opacity: .9; } 100% { transform: scale(1.05); opacity: 0; } }
.hero-inner { display: grid; gap: 14px; justify-items: center; will-change: transform, opacity; }
.hero .eyebrow { opacity: 0; animation: up 1s .3s ease both; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(88px, 20vw, 280px); line-height: .9; letter-spacing: -0.035em;
  display: flex; gap: .14em; justify-content: center; color: #fff;
  text-shadow: 0 0 80px rgba(124,108,247,.45), 0 0 30px rgba(6,182,212,.15);
}
.hero h1 span { display: inline-block; opacity: 0; animation: word 1.4s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 span:nth-child(2) { animation-delay: .18s; }
@keyframes word { from { opacity: 0; transform: translateY(.25em) scale(.96); filter: blur(12px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero .tag { font-family: var(--display); font-size: clamp(19px, 2vw, 28px); line-height: 1.14; font-weight: 600; letter-spacing: .007em; color: var(--dim); opacity: 0; animation: up 1s .9s ease both; }
.hero .lead { font-family: var(--display); font-size: clamp(21px, 2.4vw, 32px); font-weight: 600; letter-spacing: .005em; opacity: 0; animation: up 1s 1.15s ease both; }
.hero .cta-row { display: flex; gap: 22px; align-items: center; margin-top: 10px; opacity: 0; animation: up 1s 1.4s ease both; }
.hero .cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--faint); opacity: 0; animation: up 1s 1.8s ease both; }
.hero .cue::after { content: ""; display: block; width: 1px; height: 36px; margin: 8px auto 0; background: linear-gradient(var(--cyan), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 980px; background: var(--cyan); color: #04121A; text-decoration: none; font-family: var(--textfont); font-size: 17px; font-weight: 400; letter-spacing: -0.022em; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { background: #22C7E3; transform: translateY(-1px); box-shadow: 0 10px 40px rgba(6,182,212,.35); }
.btn.white { background: #fff; color: var(--obsidian); }

/* ---------- La declaración: las palabras se encienden con el scroll ---------- */
.statement { position: relative; z-index: 1; min-height: 88svh; display: grid; place-items: center; padding: 10vh var(--gutter); text-align: center; }
.statement p { max-width: 24ch; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.015em; }
.statement .w { display: inline-block; opacity: .14; transition: opacity .25s linear; will-change: opacity; }
.statement .w.hi { color: var(--cyan); }

/* ---------- Secciones y tarjetas a todo el ancho ---------- */
.sec { position: relative; z-index: 1; padding: clamp(48px, 7vw, 100px) 0; }
.sec-head { display: grid; gap: 12px; max-width: 880px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; justify-items: center; }
.sec-head .sub { color: var(--dim); max-width: 56ch; }
.sec-head .sub strong { color: var(--text); font-weight: 600; }

.tile {
  border-radius: var(--tile-r);
  background: linear-gradient(160deg, rgba(20,26,46,.78), rgba(10,14,28,.6));
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  padding: clamp(24px, 3.5vw, 48px);
}
.tile.pad-lg { padding: clamp(36px, 5vw, 72px); }
.tiles { display: grid; gap: 12px; }
.tiles.c2 { grid-template-columns: repeat(2, 1fr); }
.tiles.c3 { grid-template-columns: repeat(3, 1fr); }
.tiles.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tiles.c3, .tiles.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles.c2, .tiles.c3, .tiles.c4 { grid-template-columns: 1fr; } }
.tile.hover { transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .4s; }
.tile.hover:hover { transform: translateY(-6px); border-color: rgba(124,108,247,.45); }

.quote { position: relative; padding: 22px 26px 22px 62px; border-radius: 20px; background: rgba(13,18,32,.55); border: 1px solid rgba(255,255,255,.07); }
.quote::before { content: "“"; position: absolute; left: 18px; top: 0; font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 600; color: var(--indigo-2); }
.quote b { color: var(--cyan); font-weight: 600; }

.hex { position: relative; display: grid; place-items: center; width: 54px; height: 60px; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, rgba(124,108,247,.7), rgba(59,7,100,.6)); }
.hex::before { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: var(--midnight); }
.hex > * { position: relative; font-family: var(--textfont); font-size: 12px; font-weight: 600; color: var(--cyan); }
.hex.cy { background: linear-gradient(160deg, rgba(6,182,212,.8), rgba(79,70,229,.6)); }

.closer { margin-top: 12px; display: flex; gap: 18px; align-items: center; border-radius: 980px; padding: 18px 26px; }
.closer b { color: var(--cyan); font-weight: 600; }
.closer .hex { width: 40px; height: 44px; }
@media (max-width: 700px) { .closer { border-radius: var(--tile-r); } }

/* ---------- Qué no es ---------- */
.not b { display: block; margin-bottom: 8px; text-decoration: line-through; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.not p { color: var(--dim); }
.is { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; border-color: rgba(124,108,247,.55); background: linear-gradient(120deg, rgba(79,70,229,.3), rgba(6,182,212,.1)); box-shadow: 0 0 120px rgba(79,70,229,.25) inset, 0 40px 100px rgba(0,0,0,.35); }
@media (max-width: 900px) { .is { grid-template-columns: 1fr; } }
.is .eyebrow { display: block; margin-bottom: 10px; }
.is p { color: var(--dim); }
.strip > .tile { display: flex; gap: 16px; align-items: center; }
.strip .t { color: var(--cyan); font-weight: 600; }
.strip .s { color: var(--dim); }

/* ---------- Tres niveles: historia pegajosa ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.story-vis { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.stack { position: relative; width: 440px; height: 440px; perspective: 1400px; }
.plane {
  position: absolute; left: 50%; top: 50%; width: 400px; height: 240px; margin: -120px 0 0 -200px;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(160deg, rgba(20,26,46,.9), rgba(10,14,28,.75));
  transform: rotateX(58deg) rotateZ(-34deg) translateZ(var(--z));
  transition: transform .9s cubic-bezier(.2,.7,.2,1), border-color .6s, box-shadow .6s, opacity .6s;
  display: grid; align-content: end; padding: 22px; opacity: .55;
}
.plane .n { font-family: var(--display); font-size: 56px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: rgba(255,255,255,.25); }
.plane b { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .009em; }
.plane small { color: var(--dim); }
.plane.p1 { --z: 175px; } .plane.p2 { --z: 0px; } .plane.p3 { --z: -175px; }
.stack[data-active="1"] .p1, .stack[data-active="2"] .p2, .stack[data-active="3"] .p3 { opacity: 1; border-color: rgba(6,182,212,.8); box-shadow: 0 0 0 1px rgba(6,182,212,.3), 0 40px 90px rgba(79,70,229,.45), 0 0 60px rgba(6,182,212,.25); transform: rotateX(58deg) rotateZ(-34deg) translateZ(calc(var(--z) + 44px)); }
.stack[data-active="1"] .p1 .n, .stack[data-active="2"] .p2 .n, .stack[data-active="3"] .p3 .n { color: var(--cyan); }
.step-block { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.step-block p.body { color: var(--dim); max-width: 46ch; }
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story-vis { position: relative; top: auto; height: 380px; }
  .stack { width: 300px; height: 300px; }
  .plane { width: 260px; height: 160px; margin: -80px 0 0 -130px; padding: 16px; }
  .plane.p1 { --z: 110px; } .plane.p3 { --z: -110px; }
  .step-block { min-height: 0; padding: 24px 0; }
}

/* ---------- Radial de ecosistemas, a todo el ancho ---------- */
.radial-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.radial-wrap::-webkit-scrollbar { display: none; }
.radial { min-width: 760px; max-width: 1100px; margin: 0 auto; }
.tile.radial-tile { padding: clamp(8px, 1.5vw, 20px) clamp(8px, 2vw, 28px) 18px; }
.radial svg { width: 100%; height: auto; display: block; overflow: visible; }
.radial text { font-family: var(--display); fill: var(--text); font-size: 19px; font-weight: 600; letter-spacing: .012em; }
.radial .sub { font-family: var(--textfont); fill: var(--dim); font-size: 14px; font-weight: 400; letter-spacing: -0.016em; }
.radial .lbl { font-family: var(--textfont); font-size: 13px; font-weight: 600; fill: var(--cyan); }
.radial .lbl.g { fill: #B39DFF; }
.radial .node { transition: opacity .3s; }
.radial svg:hover .node { opacity: .4; }
.radial svg .node:hover { opacity: 1; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 14px 0 20px; color: var(--dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.eco { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 20px 22px; }
.eco .k { color: var(--cyan); font-weight: 600; padding-top: 2px; }
.eco .k.g { color: #B39DFF; }
.eco b { display: block; }
.eco span { color: var(--dim); }

/* ---------- Un ecosistema por dentro ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.tab { padding: 10px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 980px; background: rgba(13,18,32,.5); color: var(--dim); cursor: pointer; transition: all .3s; font-family: var(--textfont); font-size: 14px; letter-spacing: -0.016em; }
.tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.tab[aria-selected="true"] { color: #fff; border-color: rgba(124,108,247,.9); background: linear-gradient(120deg, rgba(79,70,229,.5), rgba(6,182,212,.22)); box-shadow: 0 0 40px rgba(79,70,229,.35); }
.panel { display: none; animation: up .6s ease both; }
.panel.on { display: block; }
.anat { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr) minmax(0,.9fr); gap: 12px; align-items: start; }
@media (max-width: 960px) { .anat { grid-template-columns: 1fr; } }
.anat .mission { margin: 12px 0 18px; color: var(--dim); }
.anat .mission b { color: var(--text); font-weight: 600; }
.roles { display: grid; gap: 10px; }
.role { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(13,18,32,.6); }
.role b { display: block; }
.role span { color: var(--dim); }
.role.lead { border-color: rgba(124,108,247,.7); box-shadow: 0 0 40px rgba(79,70,229,.2); }
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.jobs li { padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(15,21,38,.6); transition: border-color .3s, background .3s; }
.jobs li:hover { border-color: rgba(6,182,212,.5); background: rgba(15,21,38,.9); }
.jobs li b { display: block; color: var(--cyan); margin-bottom: 4px; }
.jobs li span { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 7px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 980px; color: var(--dim); }
.side h4 { color: var(--cyan); margin: 0 0 10px; }
.side > div + div { margin-top: 22px; }
.kpis li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.kpis li span { color: var(--dim); }

/* ---------- Brain y flujo ---------- */
.flow-wrap { position: relative; padding-top: 26px; }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.step { position: relative; padding: 24px 18px 22px 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(13,18,32,.6); backdrop-filter: blur(10px); min-height: 160px; transition: background .3s; }
.step:hover { background: rgba(20,26,46,.9); }
.step:first-child { border-radius: var(--tile-r) 0 0 var(--tile-r); }
.step:last-child { border-radius: 0 var(--tile-r) var(--tile-r) 0; }
.step + .step { border-left: 0; }
.step::after { content: ""; position: absolute; right: -10px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%) rotate(45deg); border-top: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); background: #0f1526; z-index: 2; }
.step:last-child::after { display: none; }
.step .who { display: block; margin-bottom: 8px; color: var(--cyan); font-weight: 600; }
.step b { display: block; margin-bottom: 4px; }
.step p { color: var(--dim); }
.flow-line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: linear-gradient(90deg, transparent, var(--indigo-2), var(--cyan), transparent); opacity: .6; }
.pulse { position: absolute; top: 6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 22px 6px rgba(6,182,212,.85); animation: travel 6s linear infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 10px); } }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; gap: 8px; } .step, .step:first-child, .step:last-child { border-radius: 16px; border: 1px solid rgba(255,255,255,.08); } .step::after { display: none; } .flow-line, .pulse { display: none; } .flow-wrap { padding-top: 0; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.brain { margin-top: 12px; }
.brain .tile h3 { margin: 8px 0; }
.brain .tile p { color: var(--dim); }

/* ---------- Gobernanza y carrera ---------- */
.gov h3 { margin: 8px 0 14px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 18px 0; }
.vs > div { padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.vs .x { color: var(--faint); }
.vs b { display: block; color: var(--cyan); margin-bottom: 4px; }
.verdict { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(124,108,247,.6); background: rgba(79,70,229,.16); }
.ladder { display: grid; margin-top: 12px; }
.rung { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07); }
.rung .n { font-family: var(--display); font-weight: 600; font-size: 24px; color: #9D8CFF; }
.rung b { display: block; }
.rung span { color: var(--dim); }

/* ---------- Método ---------- */
.phase { display: grid; gap: 10px; }
.phase .letter { font-family: var(--display); font-size: 88px; font-weight: 600; letter-spacing: -0.03em; line-height: .9; }
.phase p { color: var(--dim); }

/* ---------- Casos ---------- */
.case ul.ecos { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.case .ecos li::before { display: none; }
.ecos li { padding: 5px 10px; border-radius: 980px; border: 1px solid rgba(6,182,212,.45); color: var(--cyan); font-weight: 600; }
.ecos li.g { border-color: rgba(179,157,255,.45); color: #B39DFF; }
.rol { display: block; color: var(--cyan); font-weight: 600; font-size: 12px; line-height: 1.33; margin-bottom: 3px; }
.rol.g { color: #B39DFF; }
.case { display: grid; gap: 12px; align-content: start; }
.case p { color: var(--dim); }
.case ul { display: grid; gap: 8px; margin-top: 4px; }
.case li { padding-left: 16px; position: relative; }
.case li::before { content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px; background: var(--indigo-2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.case .note { color: var(--faint); border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; }

/* ---------- Cierre ---------- */
.end { position: relative; z-index: 1; min-height: 90svh; display: grid; place-items: center; padding: 12vh var(--gutter); text-align: center; overflow: hidden; }
.end h2 { font-family: var(--display); font-size: clamp(48px, 8.5vw, 120px); font-weight: 600; letter-spacing: -0.02em; line-height: .95; }
.end p { margin: 22px auto 0; max-width: 46ch; color: var(--dim); }
.end .cta-row { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.contact { margin-top: 22px; color: var(--dim); display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.contact a { color: var(--text); text-decoration: none; }

footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.06); padding: 22px var(--gutter); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); }

/* ---------- Revelado al hacer scroll (opacidad y desplazamiento, como Apple) ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform 1s cubic-bezier(.25,.1,.25,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 span, .hero .eyebrow, .hero .tag, .hero .lead, .hero .cue, .hero .cta-row { opacity: 1; }
  .statement .w { opacity: 1; }
  #bg { display: none; }
}
