/* SCALAVLE · Web general v3
   Minimalista y animada: fondo casi negro, mucho aire, degradados azules con grano en secciones clave.
   Inter Display (títulos/cifras) + Inter (cuerpo). Cyan solo como acento. */

:root {
  color-scheme: dark;
  --bg: #04060B;
  --bg2: #070B14;
  --card: #0A0F1A;
  --raised: #0E1524;
  --hover: #131C2F;
  --line: rgba(234, 243, 255, .08);
  --line2: rgba(234, 243, 255, .14);
  --line3: rgba(234, 243, 255, .24);
  --ink: #F2F6FC;
  --soft: #B4C3D8;
  --body: #8FA3BD;
  --mute: #63748C;
  --cyan: #00C6FF;
  --cyan2: #00EAFF;
  --blue: #2E7BFF;
  --blue2: #1E4FD1;
  --navy: #16386B;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --radius: 20px;
  --wrap: 1240px;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background-color: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(0, 198, 255, .3); color: #fff; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; font-variation-settings: "opsz" 32; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 6.6rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.accent { color: var(--cyan); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 32; }

/* Texto con degradado que se desplaza (azules de marca) */
.grad, .gtext {
  background: linear-gradient(100deg, #FFFFFF 0%, #9FD8FF 22%, #00C6FF 40%, #2E7BFF 58%, #9FD8FF 78%, #FFFFFF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradFlow 9s ease-in-out infinite alternate;
}
@keyframes gradFlow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Grano fino sobre toda la página */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; background-image: var(--grain); }
.bg-fallback, #bg { display: none; }

/* ---------- Barra superior ---------- */
.promo { position: relative; z-index: 30; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--soft); background: var(--bg); }
.promo .wrap { display: flex; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.promo b { color: var(--ink); font-weight: 600; }
.promo a { color: var(--cyan); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.promo a svg { width: 14px; height: 14px; }
.badge-new { display: inline-flex; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--cyan); padding: 3px 8px; border-radius: 999px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; transition: background .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(4, 6, 11, .72); border-bottom-color: var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 36px; width: auto; display: block; }
.nav { display: none; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 15, 26, .5); }
.nav a { font-size: 14px; color: var(--soft); padding: 8px 16px; border-radius: 999px; transition: color .3s, background .3s; }
.nav a:hover { color: #fff; background: rgba(234, 243, 255, .06); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (min-width: 1040px) { .nav, .header-cta { display: flex; } .menu-btn { display: none; } }
.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 20px 16px; display: flex; flex-direction: column; gap: 2px; transform: translateY(-100%); transition: transform .7s var(--ease); visibility: hidden; }
.mobile-nav.open { transform: none; visibility: visible; }
.mobile-nav .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav .logo-img { height: 32px; }
.mobile-nav a.link { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; color: #fff; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 28px; }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .35s var(--ease), border-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease); white-space: nowrap; overflow: hidden; }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-accent { background: var(--cyan); color: var(--bg); }
.btn-accent:hover { background: var(--cyan2); box-shadow: 0 10px 40px -10px rgba(0, 198, 255, .7); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line2); color: #fff; background: rgba(234, 243, 255, .03); }
.btn-ghost:hover { border-color: var(--line3); background: rgba(234, 243, 255, .07); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Secciones ---------- */
section { position: relative; padding: 96px 0; }
@media (min-width: 720px) { section { padding: 140px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.section-head { max-width: 820px; margin-bottom: 64px; }
.section-head p { margin-top: 22px; font-size: 18px; line-height: 1.65; max-width: 640px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--body); }

/* ---------- Degradado con grano (firma visual) ---------- */
.gsec { position: relative; isolation: isolate; overflow: hidden; }
.orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .9; will-change: transform; }
.orb.o1 { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(22, 56, 107, .95) 0, rgba(22, 56, 107, 0) 68%); animation: drift1 22s ease-in-out infinite alternate; }
.orb.o2 { width: 48vw; height: 48vw; max-width: 720px; max-height: 720px; right: -14vw; top: 4vw; background: radial-gradient(circle, rgba(46, 123, 255, .55) 0, rgba(46, 123, 255, 0) 68%); animation: drift2 26s ease-in-out infinite alternate; }
.orb.o3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: 34vw; bottom: -16vw; background: radial-gradient(circle, rgba(0, 198, 255, .32) 0, rgba(0, 198, 255, 0) 68%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vw, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vw, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(-6vw, -8vw, 0) scale(1.15); } }
.gsec::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; }
.gsec .fade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }

/* Panel con degradado (bandas de cifras y cierre) */
.gpanel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; border: 1px solid var(--line2); background: #060A14; }
.gpanel .orb.o1 { left: -20%; top: -60%; width: 900px; height: 900px; }
.gpanel .orb.o2 { right: -25%; top: -20%; width: 700px; height: 700px; }
.gpanel .orb.o3 { left: 30%; bottom: -60%; width: 600px; height: 600px; }
.gpanel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .18; mix-blend-mode: overlay; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; min-height: 0; }
@media (min-width: 720px) { .hero { padding-top: 150px; } }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 600px; margin-top: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 56px; font-size: 14px; color: var(--soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan); }

/* Título que entra palabra por palabra (máscara) */
[data-words] .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
[data-words] .wi { display: inline-block; transform: translateY(105%); animation: wordUp 1.1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes wordUp { to { transform: none; } }
.js-off [data-words] .wi { transform: none; animation: none; }

/* ---------- Manifiesto: palabras que se encienden con el scroll ---------- */
.manifesto p { font-family: var(--display); font-size: clamp(1.7rem, 3.8vw, 3.1rem); line-height: 1.18; letter-spacing: -0.035em; font-weight: 500; color: var(--ink); max-width: 22ch; font-variation-settings: "opsz" 32; }
@media (min-width: 900px) { .manifesto p { max-width: 26ch; } }
.manifesto .mw { opacity: .16; transition: opacity .5s ease; }
.manifesto .mw.lit { opacity: 1; }
.manifesto .mw.hl.lit { color: var(--cyan); }

/* ---------- Tarjetas ---------- */
.card { position: relative; background: rgba(10, 15, 26, .55); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s; }
.card:hover { border-color: var(--line3); transform: translateY(-4px); background: rgba(14, 21, 36, .7); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--cyan); margin-bottom: 22px; }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: #fff; font-weight: 600; font-size: 14px; }
.card .more svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag { font-size: 12.5px; color: var(--soft); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 11px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.card-feature { display: grid; gap: 28px; padding: 36px; }
@media (min-width: 900px) { .card-feature { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 52px; } }
.chip-new { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bg); background: var(--cyan); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }

/* ---------- Filas de unidades (texto + interfaz animada) ---------- */
.urows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.urow { display: grid; gap: 40px; padding: 64px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 960px) { .urow { grid-template-columns: 1fr 1.05fr; gap: 80px; padding: 96px 0; } }
.urow .u-num { font-family: var(--display); font-size: 13px; color: var(--mute); letter-spacing: .14em; margin-bottom: 26px; display: block; }
.urow .u-logo { height: 58px; width: auto; margin-bottom: 26px; }
.urow h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; margin-bottom: 16px; }
.urow p { font-size: 17px; line-height: 1.65; max-width: 520px; }
.urow .btn { margin-top: 30px; }

/* Mini interfaces animadas */
.mock { position: relative; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(14, 21, 36, .9), rgba(7, 11, 20, .9)); padding: 22px; min-height: 340px; overflow: hidden; isolation: isolate; }
.mock::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 123, 255, .35), transparent 65%); filter: blur(30px); z-index: -1; }
.mock-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); margin-bottom: 18px; }
.mock-top b { color: var(--soft); font-weight: 600; font-size: 13px; }
.mock-ex { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(4, 6, 11, .5); }
.kpi span { display: block; font-size: 11.5px; color: var(--mute); margin-bottom: 6px; }
.kpi b { font-family: var(--display); font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--ink); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi b.accent { color: var(--cyan); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(4, 6, 11, .5); }
.chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(46, 123, 255, .35)); transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.is-in .chart i { transform: scaleY(1); }
.chans { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.chans span { font-size: 11.5px; color: var(--soft); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }

.flow { display: grid; gap: 14px; position: relative; padding-left: 4px; }
.flow::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 1px; background: linear-gradient(180deg, var(--cyan), rgba(46, 123, 255, .2)); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease) .2s; }
.is-in .flow::before { transform: scaleY(1); }
.node { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(4, 6, 11, .7); opacity: 0; transform: translateX(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.is-in .node { opacity: 1; transform: none; }
.node .nd { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--cyan); background: var(--raised); }
.node .nd svg { width: 19px; height: 19px; }
.node small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.node b { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.node.live { border-color: rgba(0, 198, 255, .45); }
.node.live::after { content: "En vivo"; position: absolute; right: 14px; font-size: 10.5px; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.float { animation: floaty 6s ease-in-out infinite; }
.float.f2 { animation-duration: 7.5s; animation-delay: -2s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.course { display: grid; gap: 10px; }
.course .mod { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 6, 11, .6); font-size: 14px; color: var(--soft); opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.is-in .course .mod { opacity: 1; transform: none; }
.course .mod svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.course .mod.todo svg { color: var(--mute); }
.course .mod .t { margin-left: auto; font-size: 12px; color: var(--mute); }
.prog { margin-top: 16px; }
.prog .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); margin-bottom: 8px; }
.prog .lbl b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.prog .track { height: 6px; border-radius: 6px; background: rgba(234, 243, 255, .08); overflow: hidden; }
.prog .track i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1.8s var(--ease) .5s; }
.is-in .prog .track i { width: var(--w, 60%); }

/* ---------- Valor + cifras ---------- */
.features { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.feature svg { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 3px; }
.feature b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.feature span { font-size: 15px; }
.stats { display: grid; gap: 0; margin-top: 64px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 28px 28px 28px 0; border-top: 1px solid var(--line2); }
@media (min-width: 900px) { .stat { border-top: 0; border-left: 1px solid var(--line2); padding: 8px 32px; } }
.stat .big { white-space: nowrap; font-family: var(--display); font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 600; color: var(--ink); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .big.accent { color: var(--cyan); }
.stat p { margin-top: 12px; font-size: 15px; max-width: 260px; }
.gpanel .stats { margin-top: 0; }
.statband { padding: 64px 28px; }
@media (min-width: 720px) { .statband { padding: 96px 64px; } }

/* ---------- Método ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 32px 24px 36px 0; border-bottom: 1px solid var(--line); }
.step.card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 32px 28px 36px 0; }
.step.card:hover { transform: none; background: transparent; }
.step .n { font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.step .bar { height: 1px; background: var(--line2); margin-bottom: 26px; overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.step.is-in .bar i { transform: scaleX(1); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }

/* ---------- Banda de cierre ---------- */
.band { padding: 64px 28px; }
@media (min-width: 720px) { .band { padding: 110px 72px; } }
.band h2 { max-width: 16ch; font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
.band p { margin-top: 22px; max-width: 560px; font-size: 18px; color: var(--soft); }
.band .hero-ctas { margin-top: 36px; }

/* ---------- Equipo / testimonios / marcas ---------- */
.person .avatar { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line3); background: var(--raised); display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: #fff; font-size: 20px; margin-bottom: 20px; }
.person .role { color: var(--cyan); font-size: 13px; font-weight: 600; margin-bottom: 10px; display: block; }
.quote { display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.6; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.quote .who .avatar { width: 40px; height: 40px; margin: 0; font-size: 14px; border-radius: 50%; border: 1px solid var(--line3); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; }
.quote .who b { display: block; color: #fff; font-size: 14px; }
.quote .who span { font-size: 13px; color: var(--mute); }
.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand { padding: 12px 20px; border: 1px solid var(--line2); border-radius: 999px; font-family: var(--display); font-weight: 600; color: var(--soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.025em; min-height: 44px; transition: color .3s; }
.faq summary:hover { color: var(--cyan); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--cyan); transition: transform .5s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 48px 28px 0; font-size: 16px; line-height: 1.7; }

/* ---------- Páginas internas ---------- */
.page-hero { padding: 80px 0 72px; }
@media (min-width: 720px) { .page-hero { padding: 120px 0 100px; } }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 28px; max-width: 660px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.hero-logo { height: 70px; width: auto; margin-bottom: 30px; }
@media (min-width: 720px) { .hero-logo { height: 92px; } }
.service-block { display: grid; gap: 28px; padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .service-block { grid-template-columns: 1fr 1.15fr; gap: 80px; padding: 80px 0; } }
.service-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); align-self: start; }
.service-block li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--soft); padding: 16px 0; border-bottom: 1px solid var(--line); }
.service-block li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.service-block p { margin-top: 16px; }
.ico-lg { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--cyan); margin-bottom: 24px; }
.ico-lg svg { width: 24px; height: 24px; }

/* Unidades (tarjetas) */
.unit { display: flex; flex-direction: column; padding: 34px; }
.unit h3 { font-size: 1.5rem; }
.unit .more { margin-top: auto; padding-top: 26px; }
.unit-n { position: absolute; top: 30px; right: 30px; font-family: var(--display); font-size: 13px; color: var(--mute); letter-spacing: .1em; }
.unit-logo { margin: 4px 0 18px; }
.unit-logo img { height: 54px; width: auto; }
.route .checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.route .checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.route .checks svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 3px; }

/* ---------- Blog ---------- */
.post-card .meta { font-size: 13px; color: var(--mute); margin-bottom: 14px; display: flex; gap: 12px; }
.article { max-width: 740px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 56px 0 16px; }
.article h3 { margin: 32px 0 10px; }
.article p, .article li { font-size: 17.5px; line-height: 1.8; color: #A6B7CC; }
.article p + p { margin-top: 18px; }
.article ul, .article ol { padding-left: 22px; margin: 18px 0; display: grid; gap: 8px; }
.article strong { color: #fff; }
.article a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article .callout { margin: 32px 0; padding: 24px 26px; border-left: 2px solid var(--cyan); background: rgba(10, 15, 26, .7); border-radius: 0 16px 16px 0; }
.toc { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; margin: 32px 0; }
.toc b { color: #fff; font-family: var(--display); display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--soft); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--cyan); }

/* ---------- Diagnóstico ---------- */
.quiz { max-width: 720px; padding: 32px; }
@media (min-width: 720px) { .quiz { padding: 48px; } }
.quiz .progress { height: 2px; background: var(--line2); border-radius: 2px; overflow: hidden; margin-bottom: 32px; }
.quiz .progress i { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .7s var(--ease); }
.quiz .count { font-size: 13px; color: var(--mute); margin-bottom: 12px; display: block; }
.quiz h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 26px; }
.options { display: grid; gap: 8px; }
.option { text-align: left; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(4, 6, 11, .5); color: #fff; font: 500 15px var(--sans); cursor: pointer; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.option:hover { border-color: var(--line3); background: rgba(234, 243, 255, .05); transform: translateX(4px); }
.option.sel { border-color: var(--cyan); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--soft); font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(4, 6, 11, .5); color: #fff; font: 15px var(--sans); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-next { animation: step-next .6s var(--ease) backwards; }
.step-back { animation: step-back .6s var(--ease) backwards; }
@keyframes step-next { from { opacity: 0; transform: translateX(36px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-36px); } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
.shake { animation: shake .45s; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--cyan); display: grid; place-items: center; color: var(--cyan); margin-bottom: 22px; }
.done-ico svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; font-size: 14px; }
.footer .cols { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer .cols { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer .logo-img { height: 44px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 18px; font-family: var(--sans); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: var(--soft); transition: color .3s; }
.footer a:hover { color: #fff; }
.footer .about p { margin-top: 20px; max-width: 340px; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.footer-word { font-family: var(--display); font-weight: 700; letter-spacing: -0.06em; line-height: .8; font-size: clamp(4rem, 17vw, 15rem); margin-top: 64px; text-align: center; background: linear-gradient(180deg, rgba(234, 243, 255, .14), rgba(234, 243, 255, 0)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; user-select: none; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--bg); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 198, 255, .6); transition: transform .45s var(--ease); }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Franja de canales ---------- */
.marquee { margin-top: 96px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 42s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; padding: 24px 34px; font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -0.03em; color: var(--soft); white-space: nowrap; }
.mq-item svg { width: 20px; height: 20px; color: var(--cyan); }
.mq-item .icon * { opacity: 1 !important; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Movimiento ---------- */
.reveal { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s ease; transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.js-off .reveal { opacity: 1; transform: none; filter: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.rise { animation: rise 1s var(--ease) var(--d, 0ms) backwards; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-18px) scale(.85); } 60% { opacity: 1; transform: translateY(3px) scale(1.03); } 100% { opacity: 1; transform: none; } }
.drop-in > * { opacity: 0; }
.drop-in.is-in > * { opacity: 1; animation: drop .6s cubic-bezier(0.34, 1.3, 0.64, 1) var(--d, 0ms) backwards; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
.pop { animation: pop .5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards; }
.icon { transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.icon:not(.icon-in) * { opacity: 0; }
.icon-in * { stroke-dasharray: 1 1; animation: icon-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) backwards; }
.icon-in :nth-child(2) { animation-delay: .12s; }
.icon-in :nth-child(n+3) { animation-delay: .24s; }
@keyframes icon-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
.card:hover .ico .icon, .feature:hover .icon { transform: scale(1.15) rotate(-8deg); }
.trace::before { content: ""; position: absolute; top: -1px; left: 20px; right: 20px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0, 198, 255, .9) 60%, #EAF3FF 85%, transparent) no-repeat; background-size: 35% 100%; background-position: -60% 0; opacity: 0; z-index: 2; }
.trace.is-in::before { animation: trace 1.8s cubic-bezier(0.45, 0.05, 0.25, 1) calc(var(--d, 0ms) + 300ms) backwards; }
@keyframes trace { 0% { background-position: -60% 0; opacity: 1; } 80% { opacity: 1; } 100% { background-position: 160% 0; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  [data-words] .wi { transform: none; animation: none; }
  .grad, .gtext, .orb, .float, .mq-track { animation: none; }
  .rise, .drop-in.is-in > *, .pop, .icon-in *, .trace.is-in::before, .step-next, .step-back, .shake { animation: none; }
  .drop-in > * { opacity: 1; }
  .icon:not(.icon-in) * { opacity: 1; }
  .manifesto .mw { opacity: 1; }
  .step .bar i, .chart i, .flow::before { transform: none; transition: none; }
  .node, .course .mod { opacity: 1; transform: none; transition: none; }
  .prog .track i { width: var(--w, 60%); transition: none; }
}

/* ---------- Fotos (como 30x) ---------- */
/* Si la foto aún no está en /assets/img/fotos/, se ve un marco con degradado y el nombre del archivo que falta. */
.ph { position: relative; margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line2); isolation: isolate;
  background: radial-gradient(120% 90% at 20% 10%, rgba(46, 123, 255, .45), transparent 60%), radial-gradient(90% 80% at 90% 100%, rgba(0, 198, 255, .22), transparent 60%), linear-gradient(160deg, #16386B, #070B14 70%);
  clip-path: inset(18% 0 0 0 round 22px); opacity: 0; transition: clip-path 1.4s var(--ease), opacity .8s ease; transition-delay: var(--d, 0ms); }
.ph::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; z-index: 1; }
.ph.is-in, .js-off .ph { clip-path: inset(0 0 0 0 round 22px); opacity: 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 2s var(--ease); transition-delay: var(--d, 0ms); z-index: 0; }
.ph.is-in img { transform: scale(1); }
.ph:hover img { transform: scale(1.04); transition-duration: 1.2s; transition-delay: 0ms; }
.ph-hint { position: absolute; left: 16px; bottom: 14px; z-index: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(234, 243, 255, .6); letter-spacing: .02em; }
.ph-hint svg { width: 15px; height: 15px; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 22px 20px; background: linear-gradient(to top, rgba(4, 6, 11, .85), transparent); color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: 15px; }
.ph figcaption small { display: block; font-family: var(--sans); color: var(--soft); font-size: 13px; font-weight: 400; margin-top: 2px; }

/* Galería del inicio: tres fotos escalonadas con parallax */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.gallery > :nth-child(1) { aspect-ratio: 4/5; }
.gallery > :nth-child(2) { aspect-ratio: 4/5; margin-top: 48px; }
.gallery > :nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16/9; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 1fr 1.5fr 1fr; gap: 18px; align-items: start; margin-top: 96px; }
  .gallery > :nth-child(1) { aspect-ratio: 4/5; margin-top: 80px; }
  .gallery > :nth-child(2) { aspect-ratio: 5/4; margin-top: 0; }
  .gallery > :nth-child(3) { grid-column: auto; aspect-ratio: 4/5; margin-top: 140px; }
}
.photo-band { aspect-ratio: 4/5; }
@media (min-width: 720px) { .photo-band { aspect-ratio: 21/9; } }
.photo-band figcaption { padding: 120px 32px 32px; font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em; }
@media (min-width: 720px) { .photo-band figcaption { padding: 140px 48px 44px; } }
.page-photo { aspect-ratio: 4/3; margin-top: 64px; }
@media (min-width: 720px) { .page-photo { aspect-ratio: 21/9; } }
.photo-2 { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 720px) { .photo-2 { grid-template-columns: 1.4fr 1fr; } }
.photo-2 .ph { aspect-ratio: 4/3; }

/* Avatares y retratos con foto */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .portrait { aspect-ratio: 4/5; margin: -10px -10px 24px; border-radius: 16px; }
.case-photo { aspect-ratio: 16/10; margin: -10px -10px 24px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .ph { clip-path: none; opacity: 1; transition: none; } .ph img { transform: none; transition: none; } }

/* ---------- Franja de clientes: logos en blanco sobre el fondo de la web ---------- */
.clients { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .clients { padding: 96px 0 88px; } }
.clients .c-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.8vw, 1.45rem); letter-spacing: -0.025em; line-height: 1.35; color: var(--body); text-align: center; max-width: 34ch; margin: 0 auto 48px; }
.clients .c-title b { color: var(--ink); font-weight: 600; }
.c-rows { display: grid; gap: 8px; }
.c-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.c-track { display: flex; align-items: center; width: max-content; animation: mq 50s linear infinite; }
.c-row.rev .c-track { animation-direction: reverse; }
.c-row:hover .c-track { animation-play-state: paused; }
.c-logo { display: flex; align-items: center; justify-content: center; height: 96px; padding: 0 clamp(22px, 3.2vw, 44px); }
.c-logo img { height: var(--h); width: auto; max-width: none; opacity: .72; transition: opacity .3s, transform .5s var(--ease); }
.c-logo:hover img { opacity: 1; transform: scale(1.06); }
@media (max-width: 719px) { .c-logo { height: 64px; padding: 0 20px; } .c-logo img { height: calc(var(--h) * .68); } .clients .c-title { margin-bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .c-track { animation: none; } }

/* ---------- Herramientas con las que trabajamos: cinta en movimiento ---------- */
.tools { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.tools .c-logo { height: 100px; padding: 0 clamp(28px, 4vw, 56px); }
.tools .c-logo img { opacity: .62; }
@media (max-width: 719px) { .tools .c-logo { height: 76px; padding: 0 22px; } }

/* ---------- Testimonios ---------- */
.tgrid { display: grid; gap: 16px; }
@media (min-width: 720px) { .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tgrid { grid-template-columns: 1.25fr 1fr 1fr; } .tfeat { grid-row: span 2; } }
.tfeat { justify-content: space-between; padding: 36px; background: linear-gradient(160deg, rgba(22, 56, 107, .55), rgba(10, 15, 26, .6) 60%); }
.tfeat blockquote { font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.025em; color: var(--ink); }
.tfig { display: flex; flex-direction: column; gap: 6px; }
.tfig .big { font-family: var(--display); font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.tfig > span:last-child { font-size: 14px; color: var(--soft); }
.quote .who .avatar { width: 46px; height: 46px; flex: none; }

/* Cifras: alineadas, sin cortar "+S/. 10M" en dos líneas */
.stats { align-items: start; }
@media (min-width: 900px) {
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat { padding: 4px 28px 4px 32px; }
}
.stat p { color: var(--body); line-height: 1.55; }

/* Cifras más imponentes */
.stat .big { font-size: clamp(3.6rem, 15vw, 6.6rem); letter-spacing: -0.055em; }
.statband .stat { padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 900px) { .stat .big { font-size: clamp(3.4rem, 5.6vw, 5.8rem); } .statband .stat { padding-top: 4px; padding-bottom: 4px; } }
.stat p { font-size: 16px; margin-top: 14px; }

/* ---------- Empleos ---------- */
.jobs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--soft); font: 500 14px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .3s, color .3s, border-color .3s; }
.chip span { font-size: 12px; color: var(--mute); }
.chip:hover { border-color: var(--line3); color: #fff; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on span { color: var(--bg); opacity: .6; }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: center; padding: 28px 4px; border-bottom: 1px solid var(--line); transition: background .4s, padding .5s var(--ease); }
.job[hidden] { display: none; }
.job h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.03em; transition: color .3s; }
.job p { margin-top: 6px; font-size: 15px; }
.job-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; color: var(--soft); }
.job-go { grid-row: 1; grid-column: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: #fff; transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); }
.job-go svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .job { grid-template-columns: 1.4fr 1fr auto; padding: 32px 8px; }
  .job-meta { grid-column: 2; }
  .job-go { grid-column: 3; }
}
@media (hover: hover) {
  .job:hover { background: rgba(14, 21, 36, .5); padding-left: 20px; padding-right: 20px; }
  .job:hover h3 { color: var(--cyan); }
  .job:hover .job-go { background: var(--cyan); border-color: var(--cyan); color: var(--bg); transform: rotate(-45deg); }
}
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--soft); }
.job-meta .pill { color: var(--cyan); border-color: rgba(0, 198, 255, .35); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); margin-bottom: 24px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: #fff; }
.job-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.job-layout { display: grid; gap: 48px; }
@media (min-width: 960px) { .job-layout { grid-template-columns: 1fr 340px; gap: 80px; align-items: start; } .job-aside { position: sticky; top: 100px; } }
.job-body { display: grid; gap: 56px; max-width: 720px; }
.job-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 18px; }
.job-body .checks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.job-body .checks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 16px; }
.job-body .checks svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.job-aside .card:hover { transform: none; }

/* ---------- Banda de video (intro del logo) ---------- */
.vband { aspect-ratio: 16/9; }
@media (min-width: 720px) { .vband { aspect-ratio: 21/9; } }
.vband video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; transform: scale(1.12); transition: transform 2s var(--ease); }
.vband.is-in video { transform: scale(1); }
@media (max-width: 719px) { .vband figcaption { padding: 60px 18px 16px; font-size: 1.05rem; } }

/* ---------- Video de fondo en el hero ----------
   El video se re-codificó con su negro igual al fondo de la web (#04060B), así no hace falta mezclarlo:
   sin rectángulos ni cortes. Va a la derecha en computadora y arriba en celular. */
.has-video { background: var(--bg); }
.hero-bg { position: absolute; top: 0; left: 0; right: 0; height: min(100%, 980px); z-index: -2; pointer-events: none; overflow: hidden; }
.hero-bg video { position: absolute; top: 50%; right: -14%; height: 100%; width: auto; aspect-ratio: 16 / 9; max-width: none; transform: translateY(-50%); opacity: 0; animation: heroVid 2.4s var(--ease) .3s forwards; }
@keyframes heroVid { to { opacity: .85; } }
.hero-veil { position: absolute; top: 0; left: 0; right: 0; height: min(100%, 980px); z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(4, 6, 11, .92) 30%, rgba(4, 6, 11, .35) 52%, rgba(4, 6, 11, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 11, 0) 30%); }
@media (max-width: 999px) {
  .hero-bg, .hero-veil { height: 70vh; }
  .hero-bg video { right: 50%; transform: translate(50%, -50%); height: 100%; opacity: .6; }
  @keyframes heroVid { to { opacity: .55; } }
  .hero-veil { background: linear-gradient(180deg, rgba(4, 6, 11, .1) 0%, rgba(4, 6, 11, .7) 55%, var(--bg) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg video { animation: none; opacity: .6; } }

/* Títulos principales más contenidos */
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.hero h1 { max-width: 14ch; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.hero .lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); }

/* Franja de servicios: tipografía editorial, sin íconos; separador = símbolo de SCALAVLE */
.marquee { margin: 0 0 120px; }
.has-video { padding-bottom: 110px; }
@media (min-width: 720px) { .has-video { padding-bottom: 150px; } }
.mq-track { align-items: center; }
.mq-item { padding: 30px 36px; font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.mq-sep { width: 22px; height: 22px; opacity: .35; flex: none; }
@media (max-width: 719px) { .mq-item { padding: 22px 22px; } .mq-sep { width: 16px; height: 16px; } }

/* Cintas sin líneas de borde */
.tools, .marquee { border-top: 0; border-bottom: 0; }
.clients { border-bottom: 0; }

/* Cifras en celular/tablet: más contenidas */
@media (max-width: 899px) {
  .stat .big { font-size: clamp(2.6rem, 10vw, 3.8rem); }
  .statband .stat { padding-top: 22px; padding-bottom: 22px; }
  .stat p { font-size: 15px; margin-top: 8px; }
  .statband h2 { margin-bottom: 36px !important; }
}

/* ---------- Panel Grow interactivo ---------- */
.mock-grow { perspective: 1200px; padding: 0; background: none; border: 0; overflow: visible; }
.mock-grow::before { display: none; }
.tilt-in { position: relative; border-radius: 22px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(14, 21, 36, .92), rgba(7, 11, 20, .92)); padding: 22px; overflow: hidden; transform-style: preserve-3d; transition: transform .8s var(--ease), box-shadow .8s var(--ease); isolation: isolate; }
.tilt-in::before { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 123, 255, .4), transparent 65%); filter: blur(30px); z-index: -1; animation: glowMove 9s ease-in-out infinite alternate; }
@keyframes glowMove { to { transform: translate(-120px, 140px); } }
.mock-grow:hover .tilt-in { box-shadow: 0 40px 80px -40px rgba(0, 198, 255, .35); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 198, 255, .6); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { to { box-shadow: 0 0 0 9px rgba(0, 198, 255, 0); } }
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; z-index: 1; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--soft); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; transition: color .35s, background .35s; }
.tab:hover { color: #fff; }
.tab.on { background: var(--ink); color: var(--bg); }
.kpi { transform: translateZ(28px); transition: border-color .5s; }
.kpi b { display: inline-block; transition: color .4s; }
.kpi.flash { border-color: rgba(0, 198, 255, .5); }
.chart-live { position: relative; transform: translateZ(14px); }
.mock-grow .chart i { transform: none; height: 4%; transition: height 1s var(--ease), opacity .4s, filter .4s; position: relative; }
.mock-grow .chart i:hover { filter: brightness(1.35); }
.mock-grow .chart i.new { animation: barNew 1s var(--ease); }
@keyframes barNew { from { opacity: 0; transform: translateY(12px); } }
.spark { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); overflow: visible; pointer-events: none; }
.spark path { filter: drop-shadow(0 0 6px rgba(0, 234, 255, .6)); stroke-dasharray: 400; stroke-dashoffset: 400; transition: d .9s var(--ease); }
.is-in .spark path { animation: sparkDraw 2s var(--ease) .4s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.spark-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 198, 255, .3), 0 0 16px var(--cyan); left: 0; top: 0; opacity: 0; transition: left 1s var(--ease), top 1s var(--ease), opacity .4s; }
.is-in .spark-dot { opacity: 1; }
.sales { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 8px; justify-items: end; pointer-events: none; z-index: 3; }
.sale { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(0, 198, 255, .35); background: rgba(4, 6, 11, .92); font-size: 13px; color: var(--soft); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); animation: saleIn .7s cubic-bezier(0.34, 1.4, 0.64, 1) both; transform: translateZ(50px); }
.sale b { color: #fff; font-family: var(--display); font-weight: 600; }
.sale i { width: 22px; height: 22px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; color: var(--bg); font-style: normal; font-weight: 700; font-size: 12px; }
.sale.out { animation: saleOut .5s var(--ease) forwards; }
@keyframes saleIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes saleOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (max-width: 560px) { .sales { right: 10px; bottom: 10px; } .sale { font-size: 12px; padding: 8px 12px; } }

/* Systems: luz que recorre el flujo y paso activo que avanza */
.flow::after { content: ""; position: absolute; left: 22px; top: 26px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--cyan), 0 0 0 3px rgba(0, 198, 255, .25); opacity: 0; }
.is-in .flow::after { animation: flowRun 3.2s cubic-bezier(.6, 0, .3, 1) 1.6s infinite; }
@keyframes flowRun { 0% { top: 26px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 30px); opacity: 0; } }
.node { transition: opacity .8s var(--ease), transform .9s var(--ease), border-color .5s, background .5s; }
.node.live { background: rgba(0, 198, 255, .06); }
@media (prefers-reduced-motion: reduce) { .tilt-in::before, .live-dot::before, .is-in .flow::after { animation: none; } .spark path { stroke-dashoffset: 0; } }

/* Manifiesto con foto */
.manifesto-grid { display: grid; gap: 48px; align-items: center; }
.m-photo { aspect-ratio: 4/5; max-width: 520px; }
@media (min-width: 960px) { .manifesto-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; } .m-photo { justify-self: end; width: 100%; } }

/* Foto grande con degradado de marca (sin texto encima) */
.g-photo { aspect-ratio: 4/5; border: 0; }
@media (min-width: 720px) { .g-photo { aspect-ratio: 16/9; } }
@media (min-width: 1100px) { .g-photo { aspect-ratio: 21/10; } }
.g-photo img { object-position: 50% 46%; }
.g-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 11, .55) 22%, rgba(4, 6, 11, 0) 50%),
    linear-gradient(115deg, rgba(30, 79, 209, .55) 0%, rgba(22, 56, 107, .25) 35%, rgba(4, 6, 11, 0) 60%),
    linear-gradient(290deg, rgba(0, 198, 255, .22) 0%, rgba(0, 198, 255, 0) 35%); }
.g-photo::after { opacity: .18; }

/* Galería en blanco y negro: foto principal + 2 espacios para más fotos */
.bw-gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.bw-gallery .g-main { grid-column: 1 / -1; aspect-ratio: 4/5; }
.bw-gallery .g-side { aspect-ratio: 1/1; }
@media (min-width: 720px) {
  .bw-gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
  .bw-gallery .g-main { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; min-height: 560px; }
  .bw-gallery .g-side { aspect-ratio: auto; }
}
.ph.bw { background: #0D1015; border-color: var(--line); }
.ph.bw img { filter: grayscale(1) contrast(1.08) brightness(.92); object-position: 50% 46%; }
.ph.bw::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(4, 6, 11, .55) 0%, rgba(4, 6, 11, 0) 45%); }
.ph.bw .ph-hint { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); flex-direction: column; gap: 10px; color: rgba(234, 243, 255, .35); font-size: 12px; white-space: nowrap; }
.ph.bw .ph-hint svg { width: 22px; height: 22px; }
.g-face img { object-position: 40% 62%; }

/* Foto única con degradado y título imponente */
.photo-hero { position: relative; border-radius: 24px; overflow: hidden; isolation: isolate; }
.ph-big { aspect-ratio: 4/5; border: 0; border-radius: 24px; }
@media (min-width: 720px) { .ph-big { aspect-ratio: 16/10; } }
@media (min-width: 1100px) { .ph-big { aspect-ratio: 21/10; } }
.ph-big img { object-position: 50% 42%; }
.ph.bw.ph-big::before { background:
  linear-gradient(0deg, rgba(4, 6, 11, .96) 0%, rgba(4, 6, 11, .7) 30%, rgba(4, 6, 11, 0) 65%),
  linear-gradient(90deg, rgba(4, 6, 11, .75) 0%, rgba(4, 6, 11, 0) 60%); }
.ph-title { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 22px; pointer-events: none; }
@media (min-width: 720px) { .ph-title { padding: 56px 56px 52px; } }
.ph-title .eyebrow { margin-bottom: 16px; color: var(--soft); }
.ph-title h2 { font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -0.05em; max-width: 13ch; }

/* ---------- Paneles interactivos Systems y Academy ---------- */
.mock-x { perspective: 1200px; padding: 0; background: none; border: 0; overflow: visible; min-height: 0; }
.mock-x::before { display: none; }
.mock-x .kpis { margin-bottom: 14px; }
.mock-x .kpi b { font-size: clamp(1rem, 1.9vw, 1.3rem); }
/* Flujo */
.flow2 { position: relative; display: grid; gap: 8px; }
.rail { position: absolute; left: 34px; top: 30px; bottom: 30px; width: 2px; background: rgba(234, 243, 255, .08); border-radius: 2px; }
.rail i { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0%); background: linear-gradient(180deg, var(--blue), var(--cyan)); border-radius: 2px; box-shadow: 0 0 10px rgba(0, 198, 255, .6); transition: height .9s var(--ease); }
.st { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 6, 11, .7); color: inherit; font: inherit; cursor: pointer; transition: border-color .5s, background .5s, transform .6s var(--ease), opacity .5s; }
.st:hover { border-color: var(--line3); }
.st .nd { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--mute); background: var(--raised); transition: color .4s, border-color .4s, box-shadow .4s, background .4s; }
.st .nd svg { width: 18px; height: 18px; }
.st-tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.st small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.st b { color: var(--soft); font-weight: 600; font-size: 14.5px; transition: color .4s; }
.det { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--body); transition: max-height .6s var(--ease), opacity .4s, margin .5s; }
.st-ok { width: 22px; height: 22px; flex: none; margin-top: 9px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--bg); transform: scale(0); transition: transform .5s cubic-bezier(0.34, 1.5, 0.64, 1); }
.st-ok svg { width: 13px; height: 13px; stroke-width: 3; }
.st.done .st-ok { transform: scale(1); }
.st.done .nd { color: var(--cyan); }
.st.done b { color: var(--ink); }
.st.on { border-color: rgba(0, 198, 255, .55); background: rgba(0, 198, 255, .06); transform: translateX(6px); }
.st.on .nd { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 22px rgba(0, 198, 255, .55); }
.st.on b { color: #fff; }
.st.on .det { max-height: 80px; opacity: 1; margin-top: 6px; }
.st[data-i="1"].on .det { display: inline-block; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: rgba(46, 123, 255, .18); color: var(--ink); }
.det.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* Curso */
.course2 { display: grid; gap: 8px; }
.mod2 { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(4, 6, 11, .6); color: var(--soft); font: 500 14px var(--sans); cursor: pointer; transition: border-color .4s, background .4s, color .4s, transform .5s var(--ease); }
.mod2:hover { border-color: var(--line3); transform: translateX(4px); }
.mod2 .m-d { margin-left: auto; font-size: 12px; color: var(--mute); white-space: nowrap; }
.ring { width: 24px; height: 24px; flex: none; }
.ring svg { width: 24px; height: 24px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ring circle { stroke: rgba(234, 243, 255, .18); stroke-width: 1.8; transition: stroke .4s, fill .4s; }
.ring path { stroke: var(--bg); stroke-width: 2.4; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .5s var(--ease) .1s; }
.mod2.play { border-color: rgba(0, 198, 255, .5); color: #fff; background: rgba(0, 198, 255, .05); }
.mod2.play circle { stroke: var(--cyan); stroke-dasharray: 63; stroke-dashoffset: 63; animation: ringFill 1.4s linear forwards; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.mod2.done { color: var(--ink); }
.mod2.done circle { stroke: var(--cyan); fill: var(--cyan); }
.mod2.done path { stroke-dashoffset: 0; }
.mod2.in { animation: modIn .6s var(--ease) both; }
@keyframes modIn { from { opacity: 0; transform: translateY(10px); } }
.mock-x .prog .track i { transition: width .8s var(--ease); width: var(--w, 0%); }
.cert { position: absolute; left: 50%; bottom: 22px; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(0, 198, 255, .5); background: rgba(4, 6, 11, .95); box-shadow: 0 20px 50px -20px rgba(0, 198, 255, .5); transform: translate(-50%, 20px) scale(.9); opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(0.34, 1.4, 0.64, 1), opacity .4s; white-space: nowrap; }
.cert.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.cert-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan); color: var(--bg); }
.cert-ico svg { width: 20px; height: 20px; }
.cert b { display: block; color: #fff; font-family: var(--display); font-weight: 600; }
.cert span { font-size: 12.5px; color: var(--soft); }

/* ---------- Animación del símbolo junto al manifiesto ---------- */
.manifesto-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .manifesto-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.orbit { --p: 0; position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; transform: scale(calc(.86 + var(--p) * .18)); transition: transform .3s linear; }
@media (max-width: 959px) { .orbit { max-width: 340px; } }
.o-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(46, 123, 255, .55), rgba(0, 198, 255, .18) 45%, transparent 70%); filter: blur(30px); animation: oGlow 5s ease-in-out infinite alternate; }
@keyframes oGlow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.15); opacity: 1; } }
.o-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(234, 243, 255, .1); animation: oSpin linear infinite; }
.o-ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(0, 198, 255, .9) 88%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); }
.r1 { inset: 4%; animation-duration: 26s; }
.r2 { inset: 16%; animation-duration: 18s; animation-direction: reverse; border-style: dashed; border-color: rgba(234, 243, 255, .12); }
.r3 { inset: 28%; animation-duration: 12s; }
@keyframes oSpin { to { transform: rotate(360deg); } }
.o-node { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.o-node b { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(0, 198, 255, .45); background: rgba(4, 6, 11, .9); color: #fff; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; box-shadow: 0 0 20px rgba(0, 198, 255, .35); animation: oSpin linear infinite reverse; }
.r1 .o-node b { animation-duration: 26s; }
.r2 .o-node b { animation-duration: 18s; animation-direction: normal; }
.r3 .o-node b { animation-duration: 12s; }
.r2 .o-node { top: 100%; }
.o-core { position: absolute; inset: 36%; display: grid; place-items: center; transform: rotate(calc(var(--p) * 240deg)); transition: transform .3s linear; }
.o-logo { width: 100%; height: 100%; background: linear-gradient(120deg, #FFFFFF 0%, #9FD8FF 25%, #00C6FF 45%, #2E7BFF 60%, #FFFFFF 85%); background-size: 260% 100%; animation: gradFlow 5s ease-in-out infinite alternate, oBreath 6s ease-in-out infinite;
  -webkit-mask: url("/assets/img/logos/scalavle-simbolo.png") center / contain no-repeat; mask: url("/assets/img/logos/scalavle-simbolo.png") center / contain no-repeat; filter: drop-shadow(0 0 18px rgba(0, 198, 255, .55)); }
@keyframes oBreath { 50% { transform: scale(1.06) rotate(8deg); } }
.o-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); opacity: 0; animation: oSpark 4s ease-in-out infinite; }
.s1 { left: 20%; top: 30%; } .s2 { left: 78%; top: 22%; animation-delay: .8s; } .s3 { left: 84%; top: 70%; animation-delay: 1.6s; } .s4 { left: 14%; top: 74%; animation-delay: 2.4s; } .s5 { left: 50%; top: 8%; animation-delay: 3.2s; }
@keyframes oSpark { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .o-ring, .o-node b, .o-logo, .o-glow, .o-spark { animation: none; } .o-spark { opacity: .6; } }

/* ---------- Escenas 3D: panel inclinado + tarjetas flotantes ---------- */
.mock-grow, .mock-x { --mx: 0; --my: 0; --sy: 0; perspective: 1400px; margin: 40px 24px; }
@media (max-width: 719px) { .mock-grow, .mock-x { margin: 28px 0; } }
.mock-grow .tilt-in, .mock-x .tilt-in { transform: rotateY(calc(-9deg + var(--mx) * 10deg)) rotateX(calc(5deg - var(--my) * 8deg)); transition: transform .9s var(--ease), box-shadow .8s; box-shadow: 30px 50px 80px -30px rgba(0, 0, 0, .9), -10px 0 60px -30px rgba(46, 123, 255, .35); border-color: rgba(234, 243, 255, .16); }
.mock-grow::after, .mock-x::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 198, 255, .35), transparent); filter: blur(18px); pointer-events: none; z-index: -1; }
@media (max-width: 719px) { .mock-grow .tilt-in, .mock-x .tilt-in { transform: rotateX(4deg); } }
.fl { position: absolute; z-index: 5; pointer-events: none; transform: translate3d(calc(var(--mx) * var(--dp) * 1px), calc(var(--my) * var(--dp) * 1px + var(--sy) * var(--dp) * -.04px), 0); transition: transform .7s var(--ease); }
.fl-in { animation: floaty 6s ease-in-out infinite; border-radius: 16px; border: 1px solid rgba(234, 243, 255, .16); background: rgba(10, 15, 26, .94); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .3); padding: 12px 14px; display: flex; gap: 12px; align-items: center; white-space: nowrap; opacity: 0; transform: translateY(20px) scale(.9); transition: opacity .8s var(--ease), transform 1s cubic-bezier(0.34, 1.4, 0.64, 1); }
.is-in .fl-in { opacity: 1; transform: none; }
.fl-tl { left: -34px; top: -30px; } .fl-tl .fl-in { transition-delay: .5s; animation-delay: -1s; }
.fl-br { right: -30px; bottom: -34px; } .fl-br .fl-in { transition-delay: .8s; animation-delay: -3s; }
.fl-ml { left: -46px; top: 52%; } .fl-ml .fl-in { transition-delay: 1.1s; animation-delay: -2s; }
.fl-tr { right: -30px; top: -28px; } .fl-tr .fl-in { transition-delay: .6s; animation-delay: -2s; }
.fl-bl { left: -34px; bottom: -30px; } .fl-bl .fl-in { transition-delay: .9s; animation-delay: -4s; }
@media (max-width: 719px) { .fl-ml { display: none; } .fl-tl, .fl-bl { left: -4px; } .fl-br, .fl-tr { right: -4px; } .fl-in { padding: 9px 11px; transform-origin: center; } .fl { scale: .86; } }
.fl small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.fl b { color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.ad-img { position: relative; width: 46px; height: 58px; border-radius: 10px; background: linear-gradient(160deg, #2E7BFF, #16386B 60%, #04060B); overflow: hidden; }
.ad-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); background-size: 250% 100%; animation: shine 2.6s ease-in-out infinite; }
@keyframes shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ad-play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -6px 0 0 -3px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ad-ctr { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; } .ad-ctr em { font-style: normal; color: var(--cyan); font-weight: 600; }
.gauge svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke: rgba(234, 243, 255, .1); stroke-width: 6; }
.gauge .g-val { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 1s; filter: drop-shadow(0 0 4px var(--cyan)); }
.is-in .gauge .g-val { stroke-dashoffset: .22; }
.gauge b { font-size: 20px; }
.mini-stat { flex-direction: column; align-items: flex-start; gap: 2px; }
.mini-stat b { font-size: 22px; }
.mini-stat svg { width: 70px; height: 22px; } .mini-stat path { fill: none; stroke: var(--cyan); stroke-width: 2; }
.chat-card { flex-direction: column; align-items: flex-start; gap: 6px; white-space: normal; max-width: 220px; }
.chat-card p { margin: 0; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: rgba(234, 243, 255, .08); color: var(--ink); font-size: 13px; }
.typing-dots { display: inline-flex; gap: 4px; padding: 6px 10px; border-radius: 10px; background: rgba(46, 123, 255, .2); align-self: flex-end; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: dot 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.hot { width: 10px; height: 10px; border-radius: 50%; background: #FF7A45; box-shadow: 0 0 0 0 rgba(255, 122, 69, .6); animation: livePulse 1.6s ease-out infinite; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #FF4D5E; animation: livePulse 1.6s ease-out infinite; }
.cert-mini { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cyan); color: var(--bg); } .cert-mini svg { width: 18px; height: 18px; }
/* Gráfico: área luminosa + línea completa + barras más finas */
.mock-grow .chart { gap: 9px; background-image: repeating-linear-gradient(0deg, rgba(234, 243, 255, .05) 0 1px, transparent 1px 25%); }
.mock-grow .chart i { opacity: .55; border-radius: 6px 6px 2px 2px; }
.mock-grow .chart i:last-of-type { opacity: 1; box-shadow: 0 0 24px rgba(0, 198, 255, .5); }
.spark .line { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(0, 234, 255, .7)); }
.is-in .spark .line { animation: sparkDraw 2s var(--ease) .4s forwards; }
.spark .area { opacity: 0; transition: opacity 1s ease 1.4s; } .is-in .spark .area { opacity: 1; }
.spark path:not(.line):not(.area) { display: none; }
@media (prefers-reduced-motion: reduce) { .fl-in { animation: none; } .spark .line { stroke-dashoffset: 0; } }

/* Sin tarjetas flotantes: el panel "sigue" el scroll (se endereza y avanza al llegar al centro) */
.fl { display: none !important; }
.mock-grow .tilt-in, .mock-x .tilt-in {
  --k: clamp(-1, calc(var(--sy) / 500), 1);
  transform: translateY(calc(var(--k) * 40px)) rotateX(calc(var(--k) * 14deg + var(--my) * -6deg)) rotateY(calc(var(--mx) * 8deg - 6deg)) scale(calc(1 - (var(--k) * var(--k)) * .06));
  transition: transform .5s var(--ease), box-shadow .8s;
}
@media (max-width: 719px) { .mock-grow .tilt-in, .mock-x .tilt-in { transform: translateY(calc(var(--k) * 24px)) rotateX(calc(var(--k) * 12deg)); } }

/* ---------- Historia con scroll (motion graphics de partículas) ---------- */
.story { display: grid; gap: 0; position: relative; }
@media (min-width: 960px) { .story { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.story-visual { position: sticky; top: 76px; height: 46vh; z-index: 2; margin: 0 -16px; background: linear-gradient(180deg, var(--bg) 82%, rgba(4, 6, 11, 0)); }
@media (min-width: 960px) { .story-visual { top: 88px; height: calc(100vh - 104px); max-height: 880px; margin: 0; background: none; } }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-hud { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: baseline; gap: 12px; pointer-events: none; }
@media (min-width: 960px) { .story-hud { left: 8px; bottom: 8px; } }
.hud-n { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(0, 198, 255, .55); }
.hud-t { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.story-hud.swap { animation: hudSwap .7s var(--ease); }
@keyframes hudSwap { from { opacity: 0; transform: translateY(14px); } }
.story-steps { position: relative; z-index: 1; }
.chapter { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .18; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.chapter.active { opacity: 1; transform: none; }
.chapter:last-child { min-height: 70vh; }
@media (max-width: 959px) { .chapter { min-height: 64vh; padding: 24px 0; } }
.chapter .u-logo { height: 54px; width: auto; margin-bottom: 24px; }
.chapter h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 16px; max-width: 18ch; }
.chapter p { font-size: 17px; line-height: 1.65; max-width: 480px; }
.chapter .btn { margin-top: 28px; align-self: flex-start; }
.js-off .chapter { opacity: 1; transform: none; }
/* Logos de los capítulos: sin estirarse */
.chapter .u-logo { align-self: flex-start; width: auto; max-width: 100%; height: 54px; object-fit: contain; flex: none; }
@media (max-width: 719px) { .chapter .u-logo { height: 44px; } }

/* Historia en celular: la animación ocupa la pantalla y el texto sube por encima, todo en un solo scroll */
@media (max-width: 959px) {
  .story-visual { top: 0; height: 100vh; height: 100svh; margin: 0 -16px; background: none; z-index: 0; }
  .story-hud { display: none; }
  .story-steps { z-index: 1; margin-top: -100vh; margin-top: -100svh; }
  .chapter { min-height: 100vh; min-height: 100svh; justify-content: flex-end; margin: 0 -16px; padding: 50svh 16px 5svh;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(4, 6, 11, .92) 40%, rgba(4, 6, 11, 0) 50%); opacity: 0; }
  .chapter.active { opacity: 1; }
  .chapter:last-child { min-height: 100svh; }
  .chapter h3 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .chapter p { font-size: 16px; }
}

/* En números: titular a la izquierda, cifras conectadas por una línea que se llena al bajar */
.nums-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .nums-grid { grid-template-columns: 1fr 1fr; gap: 88px; } }
.nums-head h2 { max-width: 15ch; margin-bottom: 20px; }
.nums-head .lead { max-width: 440px; }
.nums { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.nums::before, .nums::after { content: ""; position: absolute; left: 6px; top: 34px; width: 2px; border-radius: 2px; }
.nums::before { bottom: 54px; background: var(--line2); }
.nums::after { height: calc((100% - 88px) * var(--p, 0)); background: linear-gradient(180deg, var(--cyan), var(--blue)); box-shadow: 0 0 14px rgba(0, 198, 255, .6); }
.num { position: relative; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.num:last-child { border-bottom: 0; }
.num::before { content: ""; position: absolute; left: -44px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line3); transition: border-color .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease); z-index: 1; }
.num.on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(0, 198, 255, .12), 0 0 18px rgba(0, 198, 255, .7); }
.n-tag { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; transition: color .5s var(--ease); }
.num.on .n-tag { color: var(--cyan); }
.n-big { font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .45; transition: opacity .6s var(--ease); }
.n-big.accent { color: var(--cyan); }
.num.on .n-big { opacity: 1; }
.num p { margin-top: 10px; font-size: 16px; color: var(--body); max-width: 300px; }
@media (max-width: 719px) { .nums { padding-left: 34px; } .num::before { left: -34px; } .n-big { font-size: clamp(2.5rem, 12vw, 3.4rem); } }
.js-off .n-big, .js-off .num .n-tag { opacity: 1; }

/* Blog en el inicio */
.blog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.home-posts { display: grid; gap: 24px; }
@media (min-width: 820px) { .home-posts { grid-template-columns: 1fr 1fr; } }
.post-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--raised); color: inherit; text-decoration: none; transition: border-color .4s var(--ease), transform .6s var(--ease); }
.post-tile:hover { border-color: rgba(0, 198, 255, .45); transform: translateY(-4px); }
.post-tile .ph.post-ph { aspect-ratio: 16 / 9; border-radius: 0; margin: 0; }
.post-tile .ph img { transition: transform 1.2s var(--ease); }
.post-tile:hover .ph img { transform: scale(1.04); }
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-body .meta { font-size: 13px; color: var(--mute); display: flex; gap: 12px; }
.post-body h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); }
.post-body .more { margin-top: auto; padding-top: 6px; }
.post-body .more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: #fff; font-weight: 600; font-size: 14px; }
.post-body .more svg { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.post-tile:hover .more svg { transform: translateX(4px); }
/* Ningún ícono suelto debe crecer a todo el ancho */
:where(svg.icon) { width: 1.1em; height: 1.1em; flex: none; }
