/* Gribo · sitio institucional (es-AR) · versión visual Runlyx: oscuro, brillo violeta, tarjetas de vidrio. Marca: violeta #7C3AED, azul #3B82F6. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url(../fonts/plus-jakarta-400.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(../fonts/plus-jakarta-500.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(../fonts/plus-jakarta-600.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(../fonts/plus-jakarta-700.ttf) format('truetype'); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #0B1020;
  --bg-2: #111733;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #ECECF3;
  --muted: #9C9DB2;
  --dim: #848597;
  --violet: #7C3AED;
  --lilac: #EEEBFB;
  --blue: #3B82F6;
  --teal: #2DD4BF;
  --grad: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  --grad-text: linear-gradient(100deg, #7C3AED 0%, #3B82F6 100%);
  --mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 20px; letter-spacing: -.02em; }
em { font-style: normal; }
h1 em, h2 em, .eco-close em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
strong { color: #fff; font-weight: 600; }
::selection { background: rgba(124,58,237,.45); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.solid, body.menu-open .site-header { background: rgba(11,16,32,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 26px; height: auto; }
#menu { display: flex; align-items: center; gap: 30px; }
#menu a:not(.btn) { text-decoration: none; color: #D6D6E2; font-size: 15px; font-weight: 500; transition: color .2s; }
#menu a:not(.btn):hover { color: #fff; }
#menu .btn { margin-left: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn i { display: block; width: 18px; height: 1.5px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
body.menu-open .menu-btn i:nth-of-type(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-btn i:nth-of-type(2) { opacity: 0; }
body.menu-open .menu-btn i:nth-of-type(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--b); font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(124,58,237,.35) inset, 0 8px 24px -8px rgba(124,58,237,.7); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124,58,237,.6) inset, 0 10px 34px -6px rgba(124,58,237,.9); transform: translateY(-1px); }
.btn-light { background: #F2F2F7; color: #0B1020; box-shadow: 0 1px 0 #fff inset, 0 8px 30px -10px rgba(255,255,255,.35); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); --b: var(--line-2); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { --b: rgba(124,58,237,.45); color: #EEEBFB; background: rgba(124,58,237,.06); }
.btn-outline:hover { --b: var(--lilac); background: rgba(124,58,237,.14); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Piezas comunes ---------- */
.pill-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.03); font: 500 12px/1 var(--mono); color: #B9BACB; letter-spacing: .02em; }
.pill-tag span { color: var(--lilac); }
.mono-meta { font: 12px/1.4 var(--mono); color: var(--dim); letter-spacing: .04em; margin: 22px 0 0; }
.mono-tag { font: 12px/1 var(--mono); color: var(--muted); }
.lead, .sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); }
.sub { margin-top: 14px; }
.lead strong { font-weight: 600; }
.accent-line { color: #fff; font-weight: 600; padding-left: 14px; border-left: 2px solid var(--violet); }
.strong-line { color: #fff; font-weight: 500; }

main > section { position: relative; padding: clamp(80px, 10vw, 140px) 0; isolation: isolate; }
main > section + section::before { content: ''; position: absolute; top: 0; left: 50%; width: min(1120px, 100% - 40px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin: 0; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 40px; }
.split-head > p { color: var(--muted); margin: 0; }

.card { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -40px rgba(0,0,0,.8); color: #C9CAD8; }
.card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #fff; margin-bottom: 14px; }
.card h3 small { flex-basis: 100%; font: 12px/1 var(--mono); color: var(--dim); letter-spacing: .02em; }
.ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(124,58,237,.3); background: rgba(124,58,237,.12); }
.ico svg { width: 18px; height: 18px; fill: none; stroke: var(--lilac); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bento-60 { grid-template-columns: 1.35fr 1fr; }

/* ---------- Brillos de fondo ---------- */
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow::before { content: ''; position: absolute; inset: 0; }
.glow-hero::before { background: radial-gradient(40% 55% at 50% 38%, rgba(124,58,237,.30), transparent 70%), radial-gradient(30% 40% at 62% 46%, rgba(59,130,246,.14), transparent 70%), radial-gradient(28% 40% at 36% 50%, rgba(59,130,246,.16), transparent 70%); }
.glow-center::before { background: radial-gradient(45% 50% at 50% 50%, rgba(124,58,237,.16), transparent 70%); }
.glow-side::before { background: radial-gradient(35% 45% at 85% 30%, rgba(59,130,246,.12), transparent 70%), radial-gradient(35% 45% at 10% 80%, rgba(124,58,237,.12), transparent 70%); }
.glow-bottom::before { background: radial-gradient(55% 60% at 50% 100%, rgba(124,58,237,.30), transparent 70%), radial-gradient(30% 40% at 60% 100%, rgba(59,130,246,.14), transparent 70%); }
.streaks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); -webkit-mask: radial-gradient(45% 60% at 50% 45%, #000, transparent 75%); mask: radial-gradient(45% 60% at 50% 45%, #000, transparent 75%); }
.glow-bottom .streaks { -webkit-mask: radial-gradient(55% 70% at 50% 100%, #000, transparent 75%); mask: radial-gradient(55% 70% at 50% 100%, #000, transparent 75%); }

/* ---------- 01 · Hero ---------- */
.hero { min-height: min(100svh, 960px); display: flex; flex-direction: column; justify-content: center; padding: 130px 0 0 !important; text-align: center; }
.hero-body { display: flex; flex-direction: column; align-items: center; padding-bottom: 70px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 70px); max-width: 15.5em; letter-spacing: -.045em; line-height: 1.04; }
.hero h1 em.select { position: relative; display: inline; padding: 0 .08em; color: #fff; -webkit-text-fill-color: #fff; background: rgba(124,58,237,.2); box-shadow: 0 0 0 1.5px #7C3AED; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { max-width: 600px; margin: 26px auto 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.cursor { position: absolute; display: inline-flex; align-items: center; gap: 4px; pointer-events: none; }
.cursor b { font: 500 13px/1 var(--sans); padding: 7px 12px; border-radius: 999px; color: #fff; border: 1px solid var(--line-2); background: rgba(20,21,30,.85); white-space: nowrap; }
.cursor svg { width: 16px; height: 16px; fill: rgba(255,255,255,.12); stroke: #B9BACB; stroke-width: 1.2; }
.cursors .c1 { top: 2%; left: 18%; }
.cursors .c1 b { background: #6D28D9; border-color: #7C3AED; }
.cursors .c1 svg { transform: scaleX(-1) rotate(90deg); fill: #7C3AED; stroke: #7C3AED; margin-top: 26px; margin-left: -6px; }
.cursors .c2 { top: -3%; right: 8%; }
.cursors .c2 svg { transform: scaleX(-1); }
.cursors .c3 { top: 52%; left: 4%; }
.cursors .c3 svg { transform: scaleX(-1) rotate(-10deg); margin-top: -18px; }
.cursors { position: absolute; inset: 0; pointer-events: none; }
.onscreen .cursors .c1 { animation: drift1 9s ease-in-out infinite; }
.onscreen .cursors .c2 { animation: drift2 11s ease-in-out infinite; }
.onscreen .cursors .c3 { animation: drift3 10s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(26px, 14px); } }
@keyframes drift2 { 50% { transform: translate(-30px, 22px); } }
@keyframes drift3 { 50% { transform: translate(22px, -18px); } }

.intro { opacity: 0; transform: translateY(16px); filter: blur(6px); animation: intro .9s var(--ease) forwards; }
.hero-body > .intro:nth-child(2) { animation-delay: .05s; }
.hero-body > .intro:nth-child(3) { animation-delay: .15s; }
.hero-body > .intro:nth-child(4) { animation-delay: .3s; }
.hero-body > .intro:nth-child(5) { animation-delay: .42s; }
.hero-body > .intro:nth-child(6) { animation-delay: .52s; }
@keyframes intro { to { opacity: 1; transform: none; filter: none; } }

.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 64px; }
.onscreen .marquee-track { animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; color: #5D5F75; white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee span::after { content: '✦'; font-size: 12px; color: var(--violet); }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .intro { opacity: 1; transform: none; filter: none; animation: none; }
.bento > .reveal:nth-child(2), .cards3 > .reveal:nth-child(2), .people > .reveal:nth-child(2), .two-col .card:nth-child(2) { transition-delay: .1s; }
.cards3 > .reveal:nth-child(3), .people > .reveal:nth-child(3) { transition-delay: .2s; }
.people > .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- 02 · Tensión ---------- */
.quote-card { position: relative; margin: 0; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(124,58,237,.14), rgba(59,130,246,.05) 60%, transparent); font-size: clamp(22px, 2.8vw, 34px); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; color: #fff; overflow: hidden; }
.quote-card .q { position: absolute; right: 22px; top: -18px; font-size: 160px; line-height: 1; color: rgba(124,58,237,.18); font-family: Georgia, serif; }
.tension-after { max-width: 640px; margin: 36px 0 0 auto; color: var(--muted); font-size: 17px; }
.tension-after p { margin: 0; }

/* ---------- 03 · Ecosistema ---------- */
.window { position: relative; margin-top: 26px; border-radius: 12px; border: 1px solid var(--line-2); background: #0B1020; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 50px -30px rgba(124,58,237,.6); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3A3B4A; }
.win-bar span { margin-left: auto; font: 11px/1 var(--mono); color: var(--dim); }
.win-lines { margin: 0; padding: 16px 16px 18px 46px; font: 13px/2 var(--mono); color: #B4B5C6; counter-reset: ln; list-style: none; }
.win-lines li { counter-increment: ln; position: relative; min-height: 2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-lines li::before { content: counter(ln); position: absolute; left: -32px; width: 20px; text-align: right; color: #45475A; }
.win-lines em { color: #6E7088; }
.win-lines b { color: var(--teal); font-weight: 500; }
.win-lines .arrow { color: var(--lilac); }
.caret { display: inline-block; width: 7px; height: 15px; margin-left: 3px; vertical-align: -2px; background: var(--lilac); }
.onscreen .caret { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cursor.in-win { right: 18%; bottom: 22px; }
.onscreen .cursor.in-win { animation: drift3 8s ease-in-out infinite; }
.cursor.in-win b { background: #6D28D9; border-color: #7C3AED; }

.status-list { margin-top: 26px; border-radius: 12px; border: 1px solid var(--line-2); background: #0B1020; padding: 6px 14px 10px; }
.status-head { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: #fff; font-size: 14px; }
.pill { font: 500 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(124,58,237,.35); color: var(--lilac); background: rgba(124,58,237,.1); }
.status-list ul { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: #E2E2EC; }
.status-list li:last-child { border-bottom: 0; }
.status-list li > span { flex: 1; }
.card-know, .card-tools { display: flex; flex-direction: column; }
.card-know .app, .card-tools .app { margin-top: auto; }
/* Qué hacemos: un card por fila, texto + muestra lado a lado; Herramientas invierte el orden */
.ecosystem .bento { grid-template-columns: 1fr; gap: 24px; }
.ecosystem .card-know, .ecosystem .card-tools { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px clamp(28px, 5vw, 64px); padding: clamp(24px, 3.5vw, 44px); }
.ecosystem .card-tools { grid-template-columns: 1.1fr 1fr; }
.ecosystem .card-tools .card-copy { order: 2; }
.ecosystem .card-copy h3 { font-size: clamp(22px, 2.4vw, 28px); }
.ecosystem .card-copy p { font-size: 16.5px; }
.ecosystem .card-copy .strong-line { margin-bottom: 0; }
.ecosystem .card .app { margin: 0; }
/* Desalineados a propósito: Conocimiento se corre a la izquierda y Herramientas a la derecha (ritmo en zigzag) */
.ecosystem .card-know, .ecosystem .card-tools { width: 92%; }
.ecosystem .card-know { justify-self: start; }
.ecosystem .card-tools { justify-self: end; }

/* Cursor de la marca (solo con mouse; ver js/main.js) */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9998; pointer-events: none; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
/* Flecha de la marca: punta en la posición del mouse */
.cur-dot { width: 22px; height: 22px; border-radius: 0; transition: opacity .2s; will-change: transform; }
/* Rendimiento: los bloques animados repintan solo su propia área */
.story-stage, .card, .tab-panel, .featured, .glow-card { contain: layout paint; }
.cur-dot svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 2px 1.5px; transition: transform .2s var(--ease), filter .2s; filter: drop-shadow(0 0 6px rgba(124,58,237,.75)); }
.cur-dot path { fill: url(#curg); stroke: #EEEBFB; stroke-width: 1.4; stroke-linejoin: round; }
.cur-ring { display: none; }
/* Sobre enlaces y botones: la flecha crece un poco y brilla en azul; al hacer clic, se presiona */
.cur-dot.hot svg { transform: scale(1.18) rotate(-8deg); filter: drop-shadow(0 0 10px rgba(59,130,246,.95)); }
.cur-dot.down svg { transform: scale(.88); }
.cur-dot.out { opacity: 0; }
.cur-out .cur-dot, .cur-out .cur-ring { opacity: 0; }
@media (max-width: 860px) {
  .ecosystem .card-know, .ecosystem .card-tools { grid-template-columns: 1fr; }
  .ecosystem .card-tools .card-copy { order: 0; }
  .ecosystem .card-know, .ecosystem .card-tools { width: 100%; }
}

/* Mini app: imita la plataforma real de Gribo (barra, riel de íconos, capítulo en degradé, lecciones) */
.app { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: #0B1020; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -30px rgba(124,58,237,.7); font-size: 12px; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #111733; }
.app-bar img { width: 16px; }
.app-bar b { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.app-search { flex: 1; display: flex; align-items: center; gap: 6px; margin-left: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: #6E7392; white-space: nowrap; overflow: hidden; }
.app-search svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.app-user { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #7C3AED; color: #fff; font-weight: 700; font-size: 11px; flex: none; }
.app-body { display: flex; }
.app-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-right: 1px solid var(--line); background: #0B1020; }
.app-rail svg { width: 30px; height: 30px; padding: 7px; border-radius: 8px; fill: none; stroke: #8187A8; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-rail svg.on { background: linear-gradient(135deg, #7C3AED, #3B82F6); stroke: #fff; }
.app-main { flex: 1; min-width: 0; padding: 12px 14px 14px; }
.app-crumb { margin: 0 0 4px; color: #3B82F6; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-crumb span { color: var(--dim); }
.app-title { margin: 0 0 8px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
.app-progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); margin-bottom: 12px; overflow: hidden; }
.app-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7C3AED, #3B82F6); transition: width 1.4s var(--ease) .3s; }
.in .app-progress span { width: 42%; }
.app-alert { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #BFDBFE; }
.app-alert i { width: 7px; height: 7px; border-radius: 50%; background: #60A5FA; flex: none; }
.chap { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px 10px 0 0; background: linear-gradient(100deg, #6D28D9, #7C3AED 55%, #2563EB); color: #fff; }
.chap em { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.12); font-style: normal; font-weight: 700; font-size: 11px; flex: none; }
.chap b { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 600; }
.chap small { color: rgba(255,255,255,.75); font-size: 11px; }
.chap-soft { background: linear-gradient(100deg, rgba(109,40,217,.55), rgba(37,99,235,.35)); }
.lessons { list-style: none; margin: 0; padding: 4px 8px 6px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(255,255,255,.02); }
.lessons li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.lessons li:last-child { border-bottom: 0; }
.lessons li > div { flex: 1; min-width: 0; }
.lessons span { display: block; color: #E6E7F2; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lessons small { color: #7C8099; font-size: 11px; }
.lessons i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #4ADE80; flex: none; position: relative; }
.lessons li.done i::after { content: ''; position: absolute; left: 4.5px; top: 3.5px; width: 6px; height: 3.5px; border-left: 1.5px solid #4ADE80; border-bottom: 1.5px solid #4ADE80; transform: rotate(-45deg); }
.lessons em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(34,197,94,.15); color: #4ADE80; flex: none; }
.lessons li.now { background: rgba(124,58,237,.16); border-radius: 8px; box-shadow: inset 2px 0 0 #7C3AED; }
.lessons li.now i { border-color: #7C3AED; }
.lessons li.now em { background: rgba(167,139,250,.18); color: #EEEBFB; }
.onscreen .lessons li.now i { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(167,139,250,.6); } 100% { box-shadow: 0 0 0 7px rgba(167,139,250,0); } }
.lessons li.todo i { border-color: #4B4F66; }
.lessons li.todo em { background: rgba(255,255,255,.06); color: var(--muted); }
/* Mini dashboard de ejemplo (card Herramientas) */
.tool-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tool-title span { font: 500 10px/1 var(--mono); padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.mini-kpis p { margin: 0; padding: 8px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(238,235,251,.04); display: grid; gap: 3px; min-width: 0; }
.mini-kpis small { color: #7C8099; font-size: 10px; line-height: 1.2; }
.mini-kpis b { color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.mini-kpis em { font-style: normal; font-size: 10.5px; font-weight: 600; }
.mini-kpis .up { color: #4ADE80; } .mini-kpis .warn { color: #FCD34D; }
.mini-chart { padding: 9px 10px 6px; border-radius: 9px; border: 1px solid var(--line); background: rgba(238,235,251,.03); }
.mini-chart small { color: #fff; font-size: 11px; font-weight: 600; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; margin-top: 8px; }
.mini-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3B82F6, #7C3AED); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.mini-bars i:nth-child(6) { box-shadow: 0 0 14px rgba(124,58,237,.8); }
.in .mini-bars i { transform: scaleY(1); }
.in .mini-bars i:nth-child(2) { transition-delay: .06s; } .in .mini-bars i:nth-child(3) { transition-delay: .12s; } .in .mini-bars i:nth-child(4) { transition-delay: .18s; } .in .mini-bars i:nth-child(5) { transition-delay: .24s; } .in .mini-bars i:nth-child(6) { transition-delay: .3s; } .in .mini-bars i:nth-child(7) { transition-delay: .36s; }
.mini-days { display: flex; gap: 6px; margin-top: 4px; }
.mini-days span { flex: 1; text-align: center; font: 9px/1 var(--mono); color: #6E7392; }
.mini-alert { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: rgba(252,211,77,.08); border: 1px solid rgba(252,211,77,.3); color: #FDE68A; font-size: 11.5px; }
.mini-alert b { color: #FDE68A; }
.mini-alert i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #FCD34D; }
.onscreen .mini-alert i { animation: pulseY 2s infinite; }
@keyframes pulseY { 70% { box-shadow: 0 0 0 7px rgba(252,211,77,0); } 0% { box-shadow: 0 0 0 0 rgba(252,211,77,.6); } }
.app .cursor.in-win { right: 30%; bottom: 6px; }
.bento > *, .two-col > *, .cards3 > *, .people > * { min-width: 0; }
.app-search { min-width: 0; }
.card-know .strong-line, .card-tools .strong-line { margin-bottom: 26px; }
.av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 600 11px/1 var(--mono); font-style: normal; color: #0B1020; }
.a1 { background: #EEEBFB; } .a2 { background: #3B82F6; } .a3 { background: #FCD34D; } .a4 { background: #F0ABFC; }
.status-list em { font-size: 12px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }
.status-list em.ok { color: #99F6E4; border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.eco-close { margin: clamp(48px, 6vw, 80px) 0 0; text-align: center; font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: #fff; }

/* ---------- 04 · Principio ---------- */
.ask-list { list-style: none; margin: 0; padding: 0; }
.ask-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); color: #E6E6EF; }
.ask-list li:last-child { border-bottom: 0; }
.ask-list li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) scale(0); transform-origin: center; transition: transform .4s var(--ease); }
.in .ask-list li::before { transform: rotate(-45deg) scale(1); }
.in .ask-list li:nth-child(2)::before { transition-delay: .12s; }
.in .ask-list li:nth-child(3)::before { transition-delay: .24s; }
.in .ask-list li:nth-child(4)::before { transition-delay: .36s; }

/* ---------- 05 · Criterio (pestañas) ---------- */
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
/* Pestañas con aspecto de botón: la activa en degradé de marca; barra inferior marca el tiempo hasta la siguiente */
.tab { position: relative; overflow: hidden; flex: 1 1 0; min-height: 52px; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(124,58,237,.45); background: rgba(124,58,237,.1); color: #EEEBFB; font: 600 15px/1 var(--sans); cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .15s; }
.tab span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: rgba(124,58,237,.3); font: 600 11px/1 var(--mono); color: #fff; vertical-align: middle; }
.tab::before { content: '›'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: rgba(238,235,251,.5); transition: transform .2s; }
.tab:hover { background: rgba(124,58,237,.22); border-color: #7C3AED; color: #fff; }
.tab:hover::before { transform: translate(3px, -50%); }
.tab:active { transform: scale(.98); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -12px rgba(124,58,237,.9); }
.tab[aria-selected="true"] span { background: rgba(255,255,255,.25); }
.tab[aria-selected="true"]::before { color: #fff; }
.tab::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255,255,255,.85); }
.tabs-on .tab::after { width: calc(var(--p, 0) * 100%); transition: width .15s linear; }
/* Pestañas fijadas al scrollear (solo escritorio, ver js/main.js) */
.tabs-track { position: relative; }
.pinned { position: sticky; }
.tab-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px 48px; align-items: center; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); }
.tab-panel + .tab-panel { margin-top: 16px; }
.js-tabs .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel.enter { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.tab-text .n { font: 13px/1 var(--mono); color: var(--lilac); }
.tab-text h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 12px 0; color: #fff; }
.tab-text p { color: var(--muted); font-size: 17px; margin: 0; }
.tab-panel .window { margin: 0; }
/* Antes → Gribo → resultado: mini escena animada por criterio (se reinicia al mostrar cada pestaña) */
.tab-panel { grid-template-columns: .75fr 2fr; }
.flowx { display: grid; grid-template-columns: 1fr 84px 1.25fr; align-items: center; gap: 10px; }
.fx-before, .fx-after { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.fx-before { position: relative; background: rgba(238,235,251,.025); display: flex; flex-wrap: wrap; gap: 7px; align-content: flex-start; }
.fx-after { background: linear-gradient(160deg, rgba(124,58,237,.2), rgba(59,130,246,.1)); border-color: rgba(124,58,237,.55); box-shadow: 0 20px 50px -25px rgba(124,58,237,.8); }
.cmp-tag { flex-basis: 100%; margin: 0 0 4px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fx-after .cmp-tag { color: #EEEBFB; margin-bottom: 10px; }
.cmp-note { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fx-after .cmp-note { color: #EEEBFB; font-weight: 500; margin-top: 12px; }
.mess { padding: 7px 10px; border-radius: 8px; border: 1px dashed rgba(238,235,251,.2); color: #8A8DA6; font-size: 13px; transform: rotate(var(--r)); }
.fx-mid { position: relative; height: 44px; }
.fx-mid::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, rgba(238,235,251,.15), #7C3AED, #3B82F6); }
.fx-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 35%, #1B2350, #0B1020 70%); border: 1px solid rgba(124,58,237,.8); box-shadow: 0 0 30px rgba(124,58,237,.7); }
.fx-core img { width: 22px; }
.fx-dot { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #EEEBFB; box-shadow: 0 0 10px #7C3AED; }
.onscreen .fx-dot { animation: dotRun 1.6s linear infinite; }
@keyframes dotRun { to { left: calc(100% - 8px); } }
.rv-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; color: #fff; font-size: 14px; font-weight: 600; }
.rv-h em { font: 500 10px/1 var(--mono); font-style: normal; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
/* Entender: barras + filas de lectura */
.hb { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; margin: 0 0 7px; font-size: 13px; color: #EEEBFB; }
.hb i { height: 10px; width: 0; border-radius: 5px; background: var(--grad); }
.hb:first-of-type i { box-shadow: 0 0 14px rgba(124,58,237,.8); }
.rv-row { display: flex; justify-content: space-between; margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(11,16,32,.45); font-size: 13px; color: var(--muted); opacity: 0; }
.rv-row b { color: #fff; } .rv-row b.up { color: #4ADE80; }
/* Trabajar: tareas que se completan solas */
.tk { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; padding: 8px 10px; border-radius: 8px; background: rgba(11,16,32,.45); font-size: 13px; color: #EEEBFB; }
.tk span { flex: 1; }
.tk i { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(238,235,251,.3); }
.tk i::after { content: ''; position: absolute; left: 3px; top: 1.5px; width: 6px; height: 3.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); }
.tk em { font: 600 10.5px/1 var(--mono); font-style: normal; padding: 4px 7px; border-radius: 6px; background: rgba(59,130,246,.15); color: #93C5FD; opacity: 0; }
.tk em.you { background: rgba(124,58,237,.25); color: #EEEBFB; }
/* Decidir: opciones comparadas, una elegida por vos */
.op { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 10px; margin: 0 0 7px; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; background: rgba(11,16,32,.45); font-size: 13px; color: #EEEBFB; }
.op i { height: 8px; width: 0; border-radius: 4px; background: rgba(238,235,251,.3); }
.op.pick i { background: var(--grad); }
.rv-foot { margin: 10px 0 0; font-size: 12.5px; color: #EEEBFB; opacity: 0; }
/* Disparo: la sección entra en pantalla (.in) y cada pestaña al mostrarse reinicia sus animaciones */
.criteria.in .mess { animation: messIn .5s var(--ease) backwards; }
.criteria.in .mess:nth-of-type(2) { animation-delay: .1s; } .criteria.in .mess:nth-of-type(3) { animation-delay: .2s; } .criteria.in .mess:nth-of-type(4) { animation-delay: .3s; }
@keyframes messIn { from { opacity: 0; transform: translate(-12px, 8px) rotate(calc(var(--r) * 3)); } }
.criteria.in .hb i { animation: barW .9s var(--ease) forwards; animation-delay: .7s; }
.criteria.in .hb:nth-of-type(3) i { animation-delay: .85s; } .criteria.in .hb:nth-of-type(4) i { animation-delay: 1s; }
@keyframes barW { to { width: var(--w); } }
.criteria.in .rv-row { animation: rowIn .4s var(--ease) forwards; animation-delay: 1.5s; }
.criteria.in .rv-row:last-of-type { animation-delay: 1.75s; }
.criteria.in .tk i { animation: tkDone .3s forwards; animation-delay: calc(.8s + var(--d) * .45s); }
.criteria.in .tk i::after { animation: tkTick .25s forwards; animation-delay: calc(.85s + var(--d) * .45s); }
.criteria.in .tk em { animation: fadeIn .3s forwards; animation-delay: calc(.9s + var(--d) * .45s); }
@keyframes tkDone { to { border-color: #7C3AED; background: var(--grad); } }
@keyframes tkTick { to { transform: rotate(-45deg) scale(1); } }
.criteria.in .op i { animation: barW .9s var(--ease) forwards; animation-delay: .7s; }
.criteria.in .op.pick { animation: pick .4s 2s forwards; }
.criteria.in .rv-foot { animation: fadeIn .4s 2.3s forwards; }
@media (max-width: 640px) {
  .flowx { grid-template-columns: 1fr; }
  .fx-mid { height: 56px; width: 44px; justify-self: center; }
  .fx-mid::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(rgba(238,235,251,.15), #7C3AED, #3B82F6); }
  .fx-dot { left: 50%; margin-left: -4px; top: 0; margin-top: 0; }
  .onscreen .fx-dot { animation-name: dotDown; }
  @keyframes dotDown { to { top: calc(100% - 8px); } }
}

/* Encabezados de sección centrados: etiqueta, título y texto debajo */
.section-head, .split-head { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 1080px; margin-inline: auto; gap: 16px; }
.section-head > div, .split-head > div { display: flex; flex-direction: column; align-items: center; }
/* Solo el título va centrado; los textos van justificados en una columna de lectura */
.section-head .lead, .split-head > p, .tension-after { width: 100%; max-width: 820px; text-align: justify; hyphens: auto; }
.section-head .status-chip { justify-self: center !important; }
.tension-after { margin: 40px auto 0; }

/* 07 · Obra: la herramienta se construye por etapas (sin fechas ni porcentajes inventados) */
.card-build { display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.bd-h { display: flex; justify-content: space-between; align-items: center; margin: 0; color: #fff; font-size: 19px; }
.bd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(252,211,77,.35); background: rgba(252,211,77,.08); color: #FDE68A; font: 500 12px/1 var(--mono); }
.bd-chip i { width: 7px; height: 7px; border-radius: 50%; background: #FCD34D; }
.onscreen .bd-chip i { animation: pulseY 2s infinite; }
.bp { position: relative; padding: 14px; border-radius: 14px; border: 1px solid rgba(59,130,246,.3); background: linear-gradient(rgba(59,130,246,.08) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, rgba(59,130,246,.08) 1px, transparent 1px) 0 0 / 18px 18px, #0B1020; }
.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 70px 96px 40px; gap: 8px; }
.bk { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 9px 10px; border-radius: 10px; border: 1.5px dashed rgba(238,235,251,.22); color: var(--muted); font: 500 11.5px/1.2 var(--sans); overflow: hidden; }
.bk.b1 { grid-column: 1; } .bk.b2 { grid-column: 2 / 4; } .bk.b3 { grid-column: 1 / 3; } .bk.b4 { grid-column: 3; } .bk.b5 { grid-column: 1 / 4; }
.bk.done { border-style: solid; border-color: rgba(124,58,237,.5); background: linear-gradient(180deg, rgba(27,35,80,.9), rgba(17,23,51,.95)); color: #fff; }
.bk.done::after { content: ''; height: 26px; background: linear-gradient(90deg, #7C3AED 0 14%, transparent 14% 20%, #3B82F6 20% 34%, transparent 34% 40%, #7C3AED 40% 60%, transparent 60% 66%, #3B82F6 66% 86%, transparent 86%); -webkit-mask: linear-gradient(transparent 0 30%, #000 30%); mask: linear-gradient(transparent 0 30%, #000 30%); opacity: .85; }
.bk.b1.done::after { height: 18px; background: none; border-bottom: 2px solid #3B82F6; -webkit-mask: none; mask: none; }
.bk.now { border-color: rgba(252,211,77,.6); color: #FDE68A; }
.bk.now::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(252,211,77,.14) 50%, transparent 70%); background-size: 200% 100%; }
.onscreen .bk.now::before { animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bk.now::after { content: 'Construyendo…'; font: 500 10.5px/1 var(--mono); color: #FCD34D; }
.bk.todo::after { content: 'Pendiente'; font: 500 10.5px/1 var(--mono); color: var(--dim); }
.bp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bp-cats span { padding: 5px 9px; border-radius: 7px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #DBEAFE; font-size: 11.5px; }
.bp-cursor { left: 62%; top: 52%; z-index: 2; }
.bp-cursor b { background: #6D28D9; border-color: #7C3AED; }
.onscreen .bp-cursor { animation: drift3 6s ease-in-out infinite; }
.stages { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stages::before { content: ''; position: absolute; left: 10%; right: 10%; top: 11px; height: 2px; background: rgba(238,235,251,.12); }
.stages::after { content: ''; position: absolute; left: 10%; top: 11px; height: 2px; width: 0; background: var(--grad); }
.in .stages::after { animation: stW 1.4s var(--ease) .4s forwards; }
@keyframes stW { to { width: 40%; } }
.stages li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12px; color: var(--dim); counter-increment: st; }
.stages li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(238,235,251,.2); background: #0B1020; font: 600 10px/1 var(--mono); color: var(--muted); }
.stages li.ok { color: #EEEBFB; }
.stages li.ok::before { content: '✓'; border-color: #7C3AED; background: var(--grad); color: #fff; }
.stages li.cur { color: #FDE68A; font-weight: 600; }
.stages li.cur::before { border-color: #FCD34D; color: #FCD34D; }
.onscreen .stages li.cur::before { animation: pulseY 2s infinite; }
@media (max-width: 640px) {
  .bp-grid { grid-template-rows: 60px 80px 36px; }
  .stages li { font-size: 10px; }
}

/* ---------- 06 · Estado actual ---------- */
.status-chip { justify-self: end; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(45,212,191,.3); background: rgba(45,212,191,.06); color: #99F6E4; font: 500 13px/1 var(--mono); }
.status-chip i, .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,212,191,.6); }
.onscreen .status-chip i, .onscreen .badge i { animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-col .card { font-size: 17px; }
.two-col .card p:first-child { color: #fff; }
.two-col .card p:last-child { margin: 0; }

/* ---------- Producto disponible (tarjeta destacada) ---------- */
/* Foto a la izquierda, encuadrada en la persona (lado derecho de la imagen) para no cortarla */
.featured { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; border-radius: 22px; overflow: hidden; border: 1px solid rgba(124,58,237,.45); background: linear-gradient(160deg, rgba(124,58,237,.30), rgba(17,23,51,.55) 45%, rgba(12,13,19,.95)); box-shadow: 0 0 0 1px rgba(124,58,237,.25), 0 40px 120px -40px rgba(124,58,237,.75); }
.featured::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #EEEBFB, transparent); }
.featured-media { position: relative; min-height: 340px; overflow: hidden; order: 2; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.in .featured-media img, .featured.in .featured-media img { transform: scale(1); }
.featured-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, transparent 60%, rgba(17,23,51,.85)); }
.featured-body { padding: clamp(26px, 4vw, 48px); }
.featured-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.35); color: #99F6E4; font: 500 12px/1 var(--mono); }
.featured h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.featured-body > p { color: #C9CAD8; }
.checks { list-style: none; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line-2); }
.checks li { position: relative; padding: 7px 0 7px 30px; color: #ECECF3; }
.checks li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* ---------- 07 · Herramientas (órbita) ---------- */
.bento-tools { grid-template-columns: 1fr 1.1fr; }
.card-tools-text h2 { margin-bottom: 22px; }
.card-tools-text p { color: var(--muted); }
.card-tools-text p:nth-of-type(5) { color: #fff; font-weight: 600; }
.card-tools-text .btn { margin-top: 10px; }
.card-hub { overflow: hidden; background: radial-gradient(70% 60% at 50% 100%, rgba(124,58,237,.28), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.hub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.hub-stats p { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.hub-stats small { display: block; color: var(--muted); font-size: 13px; }
.hub-stats b { font-size: 20px; font-weight: 600; color: #fff; }
.hub-stats b.building { font-size: 15px; color: #FCD34D; }
.orbit { position: relative; width: 100%; aspect-ratio: 1.25; margin-top: 18px; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(124,58,237,.18); transform: translate(-50%, -50%); }
.r1 { width: 20%; aspect-ratio: 1; background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%); }
.r2 { width: 40%; aspect-ratio: 1; }
.r3 { width: 64%; aspect-ratio: 1; border-color: rgba(124,58,237,.28); box-shadow: 0 0 60px rgba(124,58,237,.25) inset; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 42px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 18px rgba(124,58,237,.6)); }
.spin { position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.onscreen .spin { animation: spin 60s linear infinite; }
.node { position: absolute; display: grid; justify-items: center; gap: 6px; width: 90px; margin: -22px 0 0 -45px; }
.onscreen .node { animation: counter 60s linear infinite; }
.node svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.25) inset; }
.node b { font: 500 11px/1 var(--mono); color: #C9CAD8; background: rgba(11,16,32,.7); padding: 3px 6px; border-radius: 6px; }
/* 5 nodos sobre el círculo (cada 72°, empezando arriba) */
.n1 { left: 50%; top: 0; } .n2 { left: 97.6%; top: 34.5%; } .n3 { left: 79.4%; top: 90.5%; } .n4 { left: 20.6%; top: 90.5%; } .n5 { left: 2.4%; top: 34.5%; }
.n1 svg { background: linear-gradient(135deg, #F97316, #C2410C); }
.n2 svg { background: linear-gradient(135deg, #38BDF8, #1D4ED8); }
.n3 svg { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.n4 svg { background: linear-gradient(135deg, #F472B6, #BE185D); }
.n5 svg { background: linear-gradient(135deg, #2DD4BF, #0F766E); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes counter { from { rotate: 0deg; } to { rotate: -360deg; } }

/* ---------- 08 · Coherencia (lista tipo FAQ) ---------- */
.num-list { list-style: none; counter-reset: q; margin: 0; padding: 6px 0; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.num-list li { counter-increment: q; position: relative; display: flex; align-items: center; gap: 18px; padding: 20px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; color: #E2E2EC; cursor: default; transition: background .25s, color .25s; }
.num-list li:last-child { border-bottom: 0; }
.num-list li::before { content: counter(q, decimal-leading-zero); font: 13px/1 var(--mono); color: var(--dim); transition: color .25s; }
.num-list li::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(-45deg); transition: transform .25s var(--ease), border-color .25s; flex: none; }
.num-list li:hover, .num-list li:focus-visible { background: rgba(124,58,237,.1); color: #fff; outline: none; }
.num-list li:hover::before, .num-list li:focus-visible::before { color: var(--lilac); }
.num-list li:hover::after, .num-list li:focus-visible::after { border-color: var(--lilac); transform: rotate(-45deg) translate(3px, 3px); }
.list-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 40px; margin-top: 26px; color: var(--muted); }
.list-foot p { margin: 0; }
.list-foot .accent-line { max-width: 520px; }

/* ---------- 09 · Posicionamiento ---------- */
.glow-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; padding: clamp(28px, 5vw, 60px); border-radius: 24px; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, rgba(124,58,237,.7), rgba(255,255,255,.06) 40%, rgba(59,130,246,.5)) border-box; border: 1px solid transparent; overflow: hidden; }
.glow-card::before { content: ''; position: absolute; width: 60%; aspect-ratio: 1; left: -20%; top: -40%; background: radial-gradient(circle, rgba(124,58,237,.22), transparent 65%); pointer-events: none; }
.pos-text { color: var(--muted); position: relative; }
.pos-q { margin: 22px 0 0; padding: 16px 18px; border-radius: 12px; background: #0B1020; border: 1px solid var(--line-2); font: 14px/1.7 var(--mono); color: #EEEBFB; }

/* ---------- 10 · Responsabilidad ---------- */
.resp-grid { display: grid; grid-template-columns: .82fr 1.38fr; gap: 40px 56px; align-items: center; }
@media (min-width: 1025px) { .resp-grid { width: min(1280px, 100% - 40px); } }
.resp-body h2 { margin-bottom: 26px; }
.resp-body .huge { display: block; margin-top: 8px; font-size: 1.45em; }
.resp-body p { color: var(--muted); }
.photo-frame { position: relative; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(124,58,237,.6); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,16,32,.7)), linear-gradient(120deg, rgba(124,58,237,.25), transparent 50%); }
.photo-frame .cursor { left: 12%; bottom: 14%; z-index: 1; }
.photo-frame .cursor b { background: #6D28D9; border-color: #7C3AED; }
.onscreen .photo-frame .cursor { animation: drift1 9s ease-in-out infinite; }

/* ---------- 11 · Principios ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.cards3 .card { transition: transform .3s var(--ease), border-color .3s, opacity .8s var(--ease); }
.cards3 .card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.35); }
.cards3 dt { margin: 20px 0 10px; font-size: 22px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.cards3 dd { margin: 0; color: var(--muted); }

/* ---------- 12 · Transparencia ---------- */
.transp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; margin-bottom: 48px; }
.transp-text { color: var(--muted); font-size: 17px; }
.transp-text p:first-child { color: #E6E6EF; }

/* ---------- 13 · Fundadores ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 20px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s, opacity .8s var(--ease); }
.person:hover { border-color: rgba(124,58,237,.4); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(124,58,237,.6); }
.photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 30%, rgba(196,181,253,.35), transparent 70%), linear-gradient(160deg, #111733, #111733); font: 600 clamp(36px, 4vw, 52px)/1 var(--sans); letter-spacing: -.03em; color: rgba(255,255,255,.85); }
.person:nth-child(2) .photo { background: radial-gradient(80% 60% at 50% 30%, rgba(125,211,252,.3), transparent 70%), linear-gradient(160deg, #111733, #111733); }
.person:nth-child(3) .photo { background: radial-gradient(80% 60% at 50% 30%, rgba(167,139,250,.35), transparent 70%), linear-gradient(160deg, #111733, #111733); }
.person:nth-child(4) .photo { background: radial-gradient(80% 60% at 50% 30%, rgba(153,246,228,.25), transparent 70%), linear-gradient(160deg, #111733, #111733); }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,16,32,.55)); pointer-events: none; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s var(--ease); }
.person:hover .photo img { transform: scale(1.04); }
.photo.has-photo span { display: none; }
.person-info { padding: 0 8px; }
.person h3 { font-size: clamp(19px, 1.7vw, 22px); color: #fff; }
.role { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.person .tag { position: absolute; top: 24px; left: 24px; z-index: 1; font: 500 12px/1 var(--mono); padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(124,58,237,.45); color: #EEEBFB; background: rgba(15,12,35,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.person .person-more { margin: auto 8px 0; }
.person .tag.team { color: #99F6E4; border-color: rgba(45,212,191,.35); background: rgba(45,212,191,.08); }
.person-more { margin-top: auto; }
.found-cta { margin: 40px 0 0; text-align: center; }

/* ---------- 14 · Visión ---------- */
.vision-quote { margin: 20px auto 0; max-width: 980px; text-align: center; font-size: clamp(26px, 3.8vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.14; color: #fff; }
.vision-quote em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 15 · Cierre (conocimiento + herramientas → tu decisión) ---------- */
.closing { text-align: center; overflow: hidden; }
/* Del ruido a la claridad: escenario de 6 escenas (pantalla saturada → errores → mapa → conocimiento + herramientas → panel → decisión). */
.story { width: min(1120px, 100% - 40px); margin: 0 auto; text-align: left; }
.story-sec { padding-top: clamp(36px, 4.5vw, 60px) !important; overflow: hidden; }
.story-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.story-head .pill-tag { margin: 0; }
.story-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.story-steps button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.story-steps button span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.06); font: 600 10px/1 var(--mono); }
.story-steps button:hover { color: #fff; border-color: var(--line-2); }
.story-steps button[aria-pressed="true"] { color: #fff; border-color: rgba(124,58,237,.7); background: rgba(124,58,237,.16); }
.story-steps button[aria-pressed="true"] span { background: var(--grad); }
.story-stage { position: relative; height: 540px; border-radius: 24px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(55% 60% at 50% 50%, rgba(124,58,237,.18), transparent 70%), radial-gradient(40% 50% at 85% 20%, rgba(59,130,246,.12), transparent 70%), #0D1330; box-shadow: 0 50px 100px -50px rgba(124,58,237,.6); }
.story-stage::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(238,235,251,.03) 0 1px, transparent 1px 10px); -webkit-mask: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask: radial-gradient(60% 70% at 50% 50%, #000, transparent); }
.story-cap { margin: 18px 0 0; text-align: center; color: #fff; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; letter-spacing: -.01em; transition: opacity .3s; }
.story-cap.swap { opacity: 0; }

/* Mini visualizaciones reutilizadas en ventanas y paneles */
.v-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.v-grid i { height: 9px; border-radius: 2px; background: rgba(30,37,80,.14); }
.v-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.v-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #3B82F6, #7C3AED); }
.v-bars i:nth-child(1) { height: 35%; } .v-bars i:nth-child(2) { height: 55%; } .v-bars i:nth-child(3) { height: 45%; } .v-bars i:nth-child(4) { height: 75%; } .v-bars i:nth-child(5) { height: 62%; } .v-bars i:nth-child(6) { height: 92%; }
.v-bars.sm { height: 26px; width: 60px; }
.v-lines { display: grid; gap: 5px; flex: 1; }
.v-lines i { height: 5px; border-radius: 3px; background: rgba(30,37,80,.18); }
.v-lines i:nth-child(2) { width: 82%; } .v-lines i:nth-child(3) { width: 64%; } .v-lines i:nth-child(4) { width: 72%; }
.v-rows { display: grid; gap: 6px; }
.v-rows i { height: 10px; border-radius: 3px; background: linear-gradient(90deg, #7C3AED 0 10px, rgba(30,37,80,.14) 10px); }
.v-donut { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #111733 52%, transparent 54%), conic-gradient(#3B82F6 0 62%, #7C3AED 62% 85%, rgba(238,235,251,.25) 85%); }
.v-donut.sm { width: 28px; height: 28px; flex: none; }
.v-spark { width: 100%; height: 36px; }
.v-spark polyline { fill: none; stroke: #3B82F6; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Escenas 1–2: pantalla saturada. Pestañas arriba; ventanas con --x/--y (%) y --i (orden de aparición). */
.tabstrip { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; gap: 3px; height: 40px; padding: 8px 10px 0; background: rgba(11,16,32,.85); border-bottom: 1px solid var(--line-2); overflow: hidden; transition: opacity .5s; }
.tb { flex: 0 1 118px; min-width: 0; padding: 7px 10px; border-radius: 8px 8px 0 0; background: #1B2350; border: 1px solid var(--line); border-bottom: 0; color: #C9CBDD; font: 500 11px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb:first-child { background: #26306A; color: #fff; }
[data-scene="1"] .tb { animation: tabIn .25s var(--ease) backwards; animation-delay: calc(var(--i) * .17s); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } }
[data-scene="2"] .tb::before { content: '⚠ '; color: #F87171; }
.win { --x: 50; --y: 50; --s: 1; position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 1; width: 270px; border-radius: 12px; overflow: hidden; background: #F4F6FC; color: #1E2550; box-shadow: 0 24px 44px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.35) inset; transform: translate(-50%, -50%) scale(var(--s)); transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--ease), opacity .6s; }
.wbar { display: flex; align-items: center; gap: 5px; margin: 0; padding: 8px 10px; background: #E1E5F3; font: 600 12px/1 var(--sans); }
.wbar i { width: 7px; height: 7px; border-radius: 50%; background: #F87171; flex: none; }
.wbar i:nth-child(2) { background: #FBBF24; } .wbar i:nth-child(3) { background: #4ADE80; }
.wbar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win > :not(.wbar) { display: grid; margin: 12px 14px 16px; min-height: 64px; align-content: start; }
.win > .v-bars { display: flex; }
.win > .v-spark { display: block; width: calc(100% - 20px); }
.v-chat { gap: 5px; }
.v-chat i { width: 70%; height: 11px; border-radius: 6px; background: rgba(30,37,80,.14); }
.v-chat i:nth-child(even) { justify-self: end; width: 55%; background: rgba(34,197,94,.35); }
[data-scene="1"] .win { animation: winIn .4s var(--ease) backwards; animation-delay: calc(var(--i) * .18s + .5s); }
@keyframes winIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }
/* Escena 2: todo da error y aparece el botón de Gribo */
.win::after { content: '⚠ ' attr(data-err); position: absolute; left: 0; right: 0; top: 28px; bottom: 0; display: grid; place-items: center; padding: 6px; background: rgba(254,226,226,.94); color: #B91C1C; font: 600 12px/1.2 var(--sans); text-align: center; opacity: 0; }
[data-scene="2"] .win { animation: shake .35s ease-in-out calc(var(--i) * .1s) 2, dim .5s 1.9s forwards; }
[data-scene="2"] .win::after { animation: fadeIn .25s forwards; animation-delay: calc(var(--i) * .1s); }
[data-scene="2"] .wbar { background: #FCA5A5; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
@keyframes dim { to { filter: brightness(.45) blur(1px); } }
.org-btn { position: absolute; left: 50%; top: 54%; z-index: 5; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 15px 24px; border-radius: 14px; background: var(--grad); color: #fff; font: 600 17px/1 var(--sans); white-space: nowrap; box-shadow: 0 0 0 8px rgba(124,58,237,.2), 0 24px 70px rgba(124,58,237,.75); opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.org-btn img { width: 22px; filter: brightness(10); }
[data-scene="2"] .org-btn { animation: btnIn .5s var(--ease) 2s forwards, press .3s 3.6s; }
@keyframes btnIn { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes press { 50% { scale: .9; } }
.org-cursor { right: 6%; bottom: 4%; z-index: 6; opacity: 0; }
.org-cursor b { background: #6D28D9; border-color: #7C3AED; }
[data-scene="2"] .org-cursor { animation: fadeIn .2s 2.3s forwards, toBtn 1.1s var(--ease) 2.4s forwards; }
@keyframes toBtn { to { right: 36%; bottom: 36%; } }
/* Escenas 3–6: la pantalla se limpia (todo se recoge al centro) */
[data-scene="3"] .win, [data-scene="4"] .win, [data-scene="5"] .win, [data-scene="6"] .win, [data-scene="7"] .win { left: 50%; top: 50%; --s: .15; opacity: 0; }
[data-scene="3"] .tabstrip, [data-scene="4"] .tabstrip, [data-scene="5"] .tabstrip, [data-scene="6"] .tabstrip, [data-scene="7"] .tabstrip { opacity: 0; }
.flows, .ck-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drawl { to { stroke-dashoffset: 0; } }
.hub { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1B2350, #0B1020 70%); border: 1px solid rgba(124,58,237,.8); box-shadow: 0 0 0 10px rgba(124,58,237,.12), 0 0 60px rgba(124,58,237,.8); opacity: 0; transform: translate(-50%, -50%) scale(.5); transition: opacity .5s, transform .6s var(--ease); }
.hub img { width: 30px; }
.hub3 { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .3s; }

/* Capas de escenas 3–7 */
.layer { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .6s, transform .7s var(--ease), visibility .6s; }
[data-scene="3"] .l3, [data-scene="4"] .l4, [data-scene="5"] .l5, [data-scene="6"] .l6, [data-scene="7"] .l7 { opacity: 1; visibility: visible; transform: none; transition-delay: .35s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
.col-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; color: #fff; font: 600 13px/1 var(--sans); }
.col-t b { font: 600 11px/1 var(--mono); padding: 4px 8px; border-radius: 999px; background: rgba(239,68,68,.18); color: #FCA5A5; }

/* Escena 3: cada pantalla se procesa (✓) y cae en Ventas / Costos / Operación */
.flows path { fill: none; stroke: rgba(124,58,237,.55); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.flows path.out { stroke: rgba(59,130,246,.55); }
[data-scene="3"] .flows path { animation: drawl .9s var(--ease) .4s forwards; }
[data-scene="3"] .flows path.out { animation-delay: .9s; }
@keyframes drawl { to { stroke-dashoffset: 0; } }
.flows .pt { fill: #EEEBFB; filter: drop-shadow(0 0 6px #7C3AED); }
.flows .pt.b { filter: drop-shadow(0 0 6px #3B82F6); }
.inbox { position: absolute; left: 3%; top: 7%; bottom: 7%; width: 27%; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(11,16,32,.7); display: flex; flex-direction: column; gap: 5px; }
.ich { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(238,235,251,.05); border: 1px solid var(--line); color: #D6D8E8; font: 500 11.5px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.ich i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; font: 700 10px/1 var(--sans); font-style: normal; color: #fff; }
.k-x { background: #7C3AED; } .k-c { background: #3B82F6; } .k-o { background: #6D28D9; }
.ich::after { content: '✓'; position: absolute; right: 8px; color: #4ADE80; font-weight: 700; opacity: 0; }
[data-scene="3"] .ich { animation: done .4s var(--ease) forwards; animation-delay: calc(1.2s + var(--d) * .22s); }
[data-scene="3"] .ich::after { animation: fadeIn .2s forwards; animation-delay: calc(1.25s + var(--d) * .22s); }
@keyframes done { 40% { background: rgba(124,58,237,.35); border-color: #7C3AED; transform: translateX(6px); } to { opacity: .45; transform: none; } }
.hub3 { opacity: 1; transform: translate(-50%, -50%); }
.onscreen [data-scene="3"] .hub3 { animation: hubSpin 1.2s ease-in-out infinite; }
@keyframes hubSpin { 50% { box-shadow: 0 0 0 16px rgba(124,58,237,.08), 0 0 80px rgba(124,58,237,1); } }
.groups { position: absolute; right: 3%; top: 7%; bottom: 7%; width: 27%; display: flex; flex-direction: column; gap: 10px; }
.grp { flex: 1; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(124,58,237,.5); background: rgba(124,58,237,.1); display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.grp.g-c { border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.08); }
.grp.g-o { border-color: rgba(238,235,251,.3); background: rgba(238,235,251,.05); }
.grp p { flex-basis: 100%; display: flex; justify-content: space-between; margin: 0 0 4px; }
.grp p b { color: #fff; font-size: 13px; }
.grp p em { font: 10px/1.6 var(--mono); color: var(--muted); font-style: normal; }
.grp span { padding: 4px 8px; border-radius: 6px; background: #111733; border: 1px solid var(--line-2); color: #EEEBFB; font-size: 11px; opacity: 0; transform: scale(.7); }
[data-scene="3"] .grp span { animation: rowIn .35s var(--ease) forwards; animation-delay: calc(1.6s + var(--d) * .22s); }

/* Escena 4: conocimiento paso a paso */
.kn { position: absolute; inset: 7% 5%; display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; }
.kn-path, .kn-lesson { padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(27,35,80,.85), rgba(13,19,48,.95)); }
.ico-s { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 7px; background: var(--grad); }
.ico-s svg { width: 14px; fill: none; stroke: #fff; stroke-width: 1.8; }
.kn-path .col-t { justify-content: flex-start; font-size: 15px; margin-bottom: 16px; }
.kn-path ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kn-path ol::before { content: ''; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(#7C3AED, #3B82F6); transform: scaleY(0); transform-origin: top; }
[data-scene="4"] .kn-path ol::before { animation: grow 1.6s var(--ease) .5s forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.kn-path li { position: relative; display: flex; align-items: center; gap: 14px; opacity: .25; }
.kn-path li b { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid rgba(238,235,251,.25); background: #0B1020; color: #fff; font: 600 12px/1 var(--mono); }
.kn-path li span { color: #fff; font-weight: 600; font-size: 14px; }
.kn-path li small { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; font-size: 12px; }
[data-scene="4"] .kn-path li { animation: stepOn .4s var(--ease) forwards; animation-delay: calc(.5s + var(--d) * .4s); }
[data-scene="4"] .kn-path li b { animation: stepDot .4s forwards; animation-delay: calc(.5s + var(--d) * .4s); }
@keyframes stepOn { to { opacity: 1; } }
@keyframes stepDot { to { border-color: #7C3AED; background: var(--grad); box-shadow: 0 0 18px rgba(124,58,237,.7); } }
.kl-top { display: flex; justify-content: space-between; margin: 0 0 6px; font: 500 11px/1 var(--mono); color: #3B82F6; }
.kl-top em { font-style: normal; color: var(--muted); }
.kl-title { margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.kl-text { display: grid; gap: 8px; margin-bottom: 14px; }
.kl-text i { height: 7px; width: 0; border-radius: 4px; background: rgba(238,235,251,.18); }
[data-scene="4"] .kl-text i { animation: typeW .5s var(--ease) forwards; animation-delay: calc(1.2s + var(--d) * .25s); }
@keyframes typeW { to { width: var(--w); } }
.kl-key { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid #7C3AED; background: rgba(124,58,237,.14); color: #EEEBFB; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(6px); }
.kl-key b { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
[data-scene="4"] .kl-key { animation: rowIn .5s var(--ease) 2.3s forwards; }
.kl-foot { display: flex; align-items: center; gap: 12px; margin: 0; }
.kl-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(238,235,251,.1); overflow: hidden; }
.kl-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
[data-scene="4"] .kl-bar i { animation: fillW 2.6s var(--ease) 1s forwards; }
@keyframes fillW { to { width: 100%; } }
.kl-foot em { font-style: normal; font-size: 12px; font-weight: 600; color: #4ADE80; opacity: 0; }
[data-scene="4"] .kl-foot em { animation: fadeIn .3s 3.6s forwards; }

/* Escena 5: herramientas pieza por pieza */
.tl { position: absolute; inset: 6% 5%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 12px; }
.tl-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin: 0; color: #fff; font-size: 16px; }
.tl-h span { font: 500 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tw { position: relative; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(238,235,251,.2); background: rgba(238,235,251,.02); }
.tw > * { opacity: 0; }
[data-scene="5"] .tw { animation: snap .5s var(--ease) forwards; animation-delay: calc(.5s + var(--d) * .55s); }
[data-scene="5"] .tw > * { animation: fadeIn .35s forwards; animation-delay: calc(.75s + var(--d) * .55s); }
@keyframes snap { 0% { transform: scale(.94); } 60% { transform: scale(1.02); } to { transform: none; border-style: solid; border-color: rgba(124,58,237,.5); background: linear-gradient(180deg, rgba(27,35,80,.85), rgba(13,19,48,.95)); box-shadow: 0 20px 40px -24px rgba(124,58,237,.8); } }
.tw-t { margin: 0 0 10px; font: 600 11px/1 var(--mono); letter-spacing: .04em; color: #EEEBFB; }
.tw-a { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.tw-a .tw-t { flex-basis: 100%; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(238,235,251,.06); border: 1px solid var(--line); color: #fff; font-size: 12px; }
.src::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 8px #4ADE80; }
.tw-big { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.tw-big b { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.tw-big small { color: var(--muted); font-size: 12px; }
.tw-bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.tw-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#3B82F6, #7C3AED); transform: scaleY(0); transform-origin: bottom; }
.tw-bars i:nth-child(1) { height: 40%; } .tw-bars i:nth-child(2) { height: 52%; } .tw-bars i:nth-child(3) { height: 47%; } .tw-bars i:nth-child(4) { height: 66%; } .tw-bars i:nth-child(5) { height: 58%; } .tw-bars i:nth-child(6) { height: 80%; }
[data-scene="5"] .tw-bars i { animation: barUp .6s var(--ease) forwards; animation-delay: 1.6s; }
@keyframes barUp { to { transform: scaleY(1); } }
.sim { position: relative; display: block; height: 6px; margin: 12px 4px 16px; border-radius: 3px; background: rgba(238,235,251,.12); }
.sim::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 30%; border-radius: 3px; background: var(--grad); }
.sim i { position: absolute; left: 30%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #7C3AED; transform: translate(-50%, -50%); box-shadow: 0 0 14px rgba(124,58,237,.9); }
[data-scene="5"] .sim i { animation: knob 1.2s var(--ease) 2.3s forwards; }
[data-scene="5"] .sim::before { animation: knobW 1.2s var(--ease) 2.3s forwards; }
@keyframes knob { to { left: 66%; } }
@keyframes knobW { to { width: 66%; } }
.sim-out { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.sim-out small { color: var(--muted); font-size: 12px; }
.sim-out b { display: grid; color: #fff; font-size: 20px; }
.sim-out b span { grid-area: 1 / 1; }
.p2 { opacity: 0; }
[data-scene="5"] .p1 { animation: fadeOut .3s 3.1s forwards; }
[data-scene="5"] .p2 { animation: fadeIn .3s 3.1s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.al { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; padding: 8px 10px; border-radius: 9px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35); color: #DBEAFE; font-size: 12.5px; }
.al i { width: 7px; height: 7px; border-radius: 50%; background: #3B82F6; flex: none; }
.al.warn { background: rgba(252,211,77,.08); border-color: rgba(252,211,77,.35); color: #FDE68A; }
.al.warn i { background: #FCD34D; }
[data-scene="5"] .tw-d .al { opacity: 0; transform: translateX(14px); animation: rowIn .4s var(--ease) forwards; }
[data-scene="5"] .tw-d .al:nth-of-type(2) { animation-delay: 2.6s; } [data-scene="5"] .tw-d .al:nth-of-type(3) { animation-delay: 3s; }

/* Escena 6: aplicación práctica (los números cuentan desde 0 vía js/main.js) */
.dash { position: absolute; inset: 6% 5%; padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(27,35,80,.85), rgba(13,19,48,.95)); display: flex; flex-direction: column; gap: 12px; }
.dash-h { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; }
.dash-h b { margin-right: auto; }
.dash-h .tag { font: 500 11px/1 var(--mono); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(238,235,251,.06); border: 1px solid var(--line); }
.seg i { padding: 5px 10px; border-radius: 6px; font: 500 11.5px/1 var(--sans); font-style: normal; color: var(--muted); }
.seg i.on { background: var(--grad); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis p { position: relative; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(238,235,251,.04); display: grid; gap: 4px; opacity: 0; transform: translateY(10px); overflow: hidden; }
.kpis small { color: var(--muted); font-size: 11px; }
.kpis b { color: #fff; font-size: clamp(13px, 1.5vw, 19px); font-weight: 700; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 12px; color: #4ADE80; }
.kpis .hl { border-color: rgba(124,58,237,.8); background: rgba(124,58,237,.18); box-shadow: 0 0 30px -8px rgba(124,58,237,.8); }
.kspark { position: absolute; right: 10px; bottom: 10px; width: 46%; height: 22px; }
.kspark polyline { fill: none; stroke: #3B82F6; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 300; stroke-dashoffset: 300; }
.kpis .hl .kspark polyline { stroke: #EEEBFB; }
[data-scene="6"] .kpis p { animation: rowIn .5s var(--ease) forwards; }
[data-scene="6"] .kpis p:nth-child(2) { animation-delay: .1s; } [data-scene="6"] .kpis p:nth-child(3) { animation-delay: .2s; } [data-scene="6"] .kpis p:nth-child(4) { animation-delay: .3s; }
[data-scene="6"] .kspark polyline { animation: drawl 1.2s var(--ease) .8s forwards; }
.dash-b { flex: 1; min-height: 0; display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.chart, .insight, .goal { position: relative; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(238,235,251,.03); min-height: 0; }
.chart small, .insight small { color: #fff; font-size: 12px; font-weight: 600; }
.chart small span { margin-left: 6px; font-weight: 400; color: var(--muted); }
.chart svg { position: absolute; left: 12px; bottom: 12px; top: 36px; width: calc(100% - 24px); height: calc(100% - 48px); overflow: visible; }
.chart .gridl { stroke: rgba(238,235,251,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#ga); opacity: 0; }
.chart polyline { fill: none; stroke: #7C3AED; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; filter: drop-shadow(0 0 8px rgba(124,58,237,.9)); }
.chart .vguide { stroke: rgba(238,235,251,.25); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; opacity: 0; }
.chart .hot { fill: #EEEBFB; stroke: #7C3AED; stroke-width: 3; vector-effect: non-scaling-stroke; opacity: 0; }
[data-scene="6"] .chart polyline { animation: drawl 1.8s var(--ease) .6s forwards; }
[data-scene="6"] .chart .area { animation: fadeIn .8s 1.6s forwards; }
[data-scene="6"] .chart .vguide, [data-scene="6"] .chart .hot, [data-scene="6"] .tip { animation: fadeIn .4s 2.3s forwards; }
.onscreen [data-scene="6"] .chart .hot { animation: fadeIn .4s 2.3s forwards, hotPulse 1.4s 2.7s infinite; }
@keyframes hotPulse { 50% { stroke-width: 7; } }
.tip { position: absolute; left: 62%; top: 18%; padding: 6px 10px; border-radius: 8px; background: rgba(124,58,237,.4); border: 1px solid rgba(124,58,237,.9); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; transform: translateX(-50%); }
.side { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-height: 0; }
.goal { display: flex; align-items: center; gap: 12px; }
.goal svg { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.goal circle { fill: none; stroke-width: 5; }
.g-bg { stroke: rgba(238,235,251,.1); }
.g-fg { stroke: url(#ga); stroke: #7C3AED; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; filter: drop-shadow(0 0 4px rgba(124,58,237,.9)); }
[data-scene="6"] .g-fg { animation: ring 1.6s var(--ease) .8s forwards; }
@keyframes ring { to { stroke-dashoffset: 18; } }
.goal b { display: block; color: #fff; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.goal small { color: var(--muted); font-size: 12px; }
.insight p { margin: 8px 0 0; color: #EEEBFB; font-size: 13px; line-height: 1.45; opacity: 0; }
[data-scene="6"] .insight p { animation: fadeIn .6s 2.6s forwards; }
.insight { border-color: rgba(124,58,237,.4); background: rgba(124,58,237,.08); }

/* Escena 7: la decisión es humana */
.decide { position: absolute; left: 50%; top: 50%; width: min(540px, 88%); padding: 18px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(27,35,80,.9), rgba(13,19,48,.95)); transform: translate(-50%, -50%); }
.dec-h { display: flex; gap: 12px; margin-bottom: 12px; }
.dec-h > i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid rgba(59,130,246,.5); color: #3B82F6; font: 700 20px/1 var(--sans); font-style: normal; }
.dec-h b { display: block; color: #fff; font-size: 15px; }
.dec-h small, .opt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.opt { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(238,235,251,.03); }
.opt b { color: #fff; font-size: 14px; font-weight: 600; }
.opt > i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(238,235,251,.35); position: relative; }
.opt > i::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; transform: scale(0); }
[data-scene="7"] .o1 { animation: pick .4s 2s forwards; }
[data-scene="7"] .o1 > i { animation: pickRing .4s 2s forwards; }
[data-scene="7"] .o1 > i::after { animation: pickDot .3s 2.05s forwards; }
@keyframes pick { to { border-color: rgba(124,58,237,.9); background: rgba(124,58,237,.2); box-shadow: 0 0 30px -6px rgba(124,58,237,.9); } }
@keyframes pickRing { to { border-color: #fff; background: #7C3AED; } }
@keyframes pickDot { to { transform: scale(1); } }
.dec-btn { margin: 12px 0 0; padding: 12px; border-radius: 10px; text-align: center; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; }
.dec-cursor { right: -6%; bottom: -14%; z-index: 4; }
.dec-cursor b { background: #6D28D9; border-color: #7C3AED; }
[data-scene="7"] .dec-cursor { animation: toOpt 1.5s var(--ease) .6s forwards, tap .25s 2s; }
@keyframes toOpt { to { right: 4%; bottom: 62%; } }
@keyframes tap { 50% { scale: .85; } }
.closing-body h2 { max-width: 15em; margin: 0 auto; }
.closing-body .sub { margin: 18px 0 14px; color: #fff; }
.closing-body > p.reveal:not(.sub):not(.pill-tag):not(.mono-meta) { max-width: 620px; margin-inline: auto; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.foot-title { margin: 0 0 14px; font: 500 12px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col > a { text-decoration: none; color: #C9CAD8; font-size: 15px; width: fit-content; transition: color .2s; }
.foot-col > a:hover { color: #fff; }
.social { display: flex; flex-direction: column; gap: 10px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #C9CAD8; font-size: 15px; width: fit-content; transition: color .2s; }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.small { margin: 0; font-size: 13px; color: var(--dim); text-decoration: none; }
a.small:hover { color: #fff; }

/* ---------- Diálogos ---------- */
dialog { max-width: min(560px, 100% - 32px); padding: 0; border: 0; background: transparent; color: var(--text); }
dialog::backdrop { background: rgba(11,16,32,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .3s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.course-dialog { position: relative; padding: 34px 30px 28px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(170deg, rgba(124,58,237,.18), #0B1020 45%); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.course-dialog .eyebrow { font: 12px/1 var(--mono); color: var(--lilac); }
.course-dialog h2 { font-size: 30px; margin: 12px 0 14px; }
.course-dialog p, .course-dialog li { color: #C9CAD8; }
.course-dialog ul { padding-left: 20px; }
.pending-link { font-size: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(252,211,77,.08); border: 1px solid rgba(252,211,77,.25); color: #FDE68A !important; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.dialog-close:hover { background: rgba(255,255,255,.08); }
.person-dialog-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.person-dialog-head h2 { font-size: 24px; margin: 0; }
.person-dialog-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person-dialog-photo[hidden] { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 0; aspect-ratio: 16 / 9; order: 0; }
  .featured-media img { object-position: center; }
  .featured-media::after { background: linear-gradient(180deg, transparent 65%, rgba(17,23,51,.85)); }
  .bento-tools, .resp-grid { grid-template-columns: 1fr; }
  .tab-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  #menu { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: rgba(11,16,32,.97); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  body.menu-open #menu { opacity: 1; visibility: visible; transform: none; }
  #menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  #menu .btn { margin: 18px 0 0; min-height: 48px; }
  .section-head, .split-head, .glow-card, .transp-grid, .cards3 { grid-template-columns: 1fr; }
  .bento-60 { grid-template-columns: 1fr 1fr; }

  .tension-after { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .bento, .bento-60, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 110px !important; }
  .hero-body { padding-bottom: 54px; }
  .cursors .c1, .cursors .c2 { display: none; }
  .cursors .c3 { top: auto; bottom: 4%; left: auto; right: 2%; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .tab-list { flex-direction: column; }
  .tab { flex: none; text-align: left; }
  .people { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 1 / 1; }
  .app-rail { display: none; }
  .hub-stats { grid-template-columns: 1fr; }
  .orbit { aspect-ratio: 1.1; }
  .node { width: 72px; margin-left: -36px; }
  .node svg { width: 38px; height: 38px; padding: 8px; }
  .featured-top { flex-wrap: wrap; }
  .win-lines { font-size: 12px; padding-left: 40px; }
  .quote-card .q { font-size: 110px; }
  .story { width: calc(100% - 32px); }
  .story-steps button { min-height: 32px; padding: 0 10px; font-size: 0; gap: 0; }
  .story-steps button span { font-size: 10px; width: 22px; height: 22px; }
  .story-stage { height: 480px; border-radius: 18px; }
  .tabstrip { height: 32px; padding: 6px 6px 0; } .tb { padding: 6px 7px; font-size: 9.5px; }
  .win { width: 150px; } .wbar { padding: 5px 6px; font-size: 8.5px; } .wbar i { width: 5px; height: 5px; }
  .win > :not(.wbar) { margin: 7px 7px 8px; } .win::after { top: 19px; font-size: 10px; }
  .org-btn { padding: 12px 16px; font-size: 14px; }
  .v-bars { height: 26px; }
  .inbox, .groups { width: 40%; padding: 8px; top: 4%; bottom: 4%; } .groups { padding: 0; gap: 6px; }
  .ich { font-size: 9.5px; padding: 4px 5px; gap: 5px; } .ich i { width: 14px; height: 14px; font-size: 8px; }
  .grp { padding: 7px; gap: 3px; } .grp p b { font-size: 11px; } .grp p em { display: none; } .grp span { font-size: 9px; padding: 3px 5px; }
  .hub3 { width: 44px; height: 44px; } .hub3 img { width: 22px; } .col-t { font-size: 11px; }
  .kn { inset: 4%; grid-template-columns: 1fr; gap: 8px; } .kn-path, .kn-lesson { padding: 12px; }
  .kn-path ol { gap: 6px; } .kn-path li b { width: 28px; height: 28px; } .kn-path li small, .kl-text:last-of-type { display: none; }
  .kn-path li span { font-size: 12px; } .kn-path ol::before { left: 13px; } .kl-title { font-size: 15px; margin-bottom: 8px; } .kl-key { font-size: 11.5px; padding: 8px 10px; margin-bottom: 8px; }
  .tl { inset: 4%; gap: 8px; } .tw { padding: 10px; } .tw-big b { font-size: 20px; } .tw-big { flex-wrap: wrap; gap: 2px 8px; }
  .src { font-size: 10px; padding: 4px 6px; } .al { font-size: 10.5px; padding: 6px 7px; } .sim-out b { font-size: 15px; } .tw-t { font-size: 9.5px; }
  .dash { inset: 4%; padding: 12px; gap: 8px; } .seg { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 6px; } .kpis p { padding: 7px 9px; }
  .dash-b { grid-template-columns: 1fr; } .side { display: none; }
  .opt { padding: 8px 10px; } .dec-h small { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .intro { opacity: 1; transform: none; filter: none; }
}
/* 14 · Visión: la idea de fondo va en una tarjeta de cita (un solo título por sección) */
.vision-card { max-width: 980px; margin: 36px auto 0; font-size: clamp(20px, 2.3vw, 28px); }
.vision-card em { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Transiciones de títulos: palabra por palabra sube y aparece; el destaque en degradé recibe un brillo que lo recorre una vez */
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.split .huge.w { display: block; }
.reveal.in .split .w, .split.reveal.in .w { opacity: 1; transform: none; }
/* Brillo que recorre el destaque en degradé cada 3,5 s (solo con la sección en pantalla).
   Los dos extremos del fondo muestran violeta → azul, así el reinicio del ciclo no se nota. */
.split em.w, .hero .gt { background-image: linear-gradient(100deg, #7C3AED 0%, #3B82F6 40%, #EEEBFB 50%, #7C3AED 60%, #3B82F6 100%); background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.split em.w { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.onscreen .reveal.in .split em.w, .onscreen .split.reveal.in em.w { animation: sweep 3.5s ease-in-out 1s infinite; }
.onscreen .hero .gt { animation: sweep 3.5s ease-in-out 1.2s infinite; }
@keyframes sweep { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }

/* Secciones en "noche elevada" (#111733 de la paleta): degradé corto (140 px) en los bordes + brillo y textura en el centro, como el resto del sitio */
.tone-sec { background: radial-gradient(45% 55% at 50% 45%, rgba(124,58,237,.15), transparent 70%), radial-gradient(35% 45% at 88% 22%, rgba(59,130,246,.10), transparent 70%), linear-gradient(180deg, rgba(17,23,51,0) 0, rgba(17,23,51,.6) 140px, rgba(17,23,51,.6) calc(100% - 140px), rgba(17,23,51,0) 100%), #0B1020; }
/* Textura de líneas finas (la misma del hero), desvanecida hacia los bordes para que no se note el límite de la sección */
.tone-sec::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(238,235,251,.03) 0 1px, transparent 1px 10px); -webkit-mask: radial-gradient(50% 55% at 50% 45%, #000, transparent 75%); mask: radial-gradient(50% 55% at 50% 45%, #000, transparent 75%); }
.tone-sec::before, .tone-sec + section::before { display: none; }