/* ============================================================
   YUBA S.A.S — Landing parallax
   Sistema visual derivado del brochure corporativo 2026
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Fondos */
  --bg:        #080f1a;
  --bg-1:      #0a1320;
  --bg-2:      #0c1828;
  --bg-3:      #0e1d31;
  --panel:     #0f2138;
  --panel-2:   #122740;
  --line:      #1c3552;
  --line-soft: #16293f;

  /* Tinta */
  --ink:       #eef4fa;
  --ink-2:     #c2d0de;
  --muted:     #7f8ea0;
  --faint:     #54657a;

  /* Marca */
  --lime:   #a3d61b;
  --lime-d: #84b40f;
  --blue:   #29a9e2;
  --blue-d: #1c7fc0;
  --gray:   #9aa2aa;

  /* Acentos módulos */
  --purple: #7c5cff;
  --orange: #f3872b;
  --pink:   #ec3a82;
  --teal:   #14b491;
  --cyan:   #2bd4d4;
  --gold:   #f5c542;

  /* Tipografía */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --radius-lg: 26px;

  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --glow-lime: 0 0 0 1px rgba(163,214,27,.25), 0 18px 60px -20px rgba(163,214,27,.35);
  --glow-blue: 0 0 0 1px rgba(41,169,226,.25), 0 18px 60px -20px rgba(41,169,226,.35);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--lime); color: #07121f; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow.blue  { color: var(--blue); }
.eyebrow.pink  { color: var(--pink); }
.eyebrow.orange{ color: var(--orange); }
.eyebrow.muted { color: var(--faint); }
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .98; letter-spacing: -.02em; }

.section-title {
  font-size: clamp(40px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-title .lime  { color: var(--lime); }
.section-title .blue  { color: var(--blue); }
.section-title .orange{ color: var(--orange); }
.section-title .pink  { color: var(--pink); }
.section-title em { font-style: italic; color: var(--blue); }

.lead {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}
.lead strong { color: var(--ink); font-weight: 700; }

.muted { color: var(--muted); }

section { position: relative; }

.section-pad { padding-block: clamp(96px, 13vh, 200px); }

/* botones */
.btn {
  --bc: var(--lime);
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--lime); color: #08121d; box-shadow: 0 14px 40px -14px rgba(163,214,27,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px rgba(163,214,27,.85); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--blue); color: #fff; transform: translateY(-3px); background: rgba(41,169,226,.08); }
.btn-blue { background: var(--blue); color: #06121d; box-shadow: 0 14px 40px -14px rgba(41,169,226,.7); }
.btn-blue:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px rgba(41,169,226,.85); }

/* ---------- Dropdown "Agenda una demo" ---------- */
.demo-dd { position: relative; }
.demo-trigger { cursor: pointer; }
.demo-trigger .chev { transition: transform .25s; }
.demo-dd.open .demo-trigger .chev { transform: rotate(180deg); }
.demo-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 320px; padding: 8px;
  background: rgba(12,24,40,.96);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 120;
}
.demo-dd:hover .demo-menu, .demo-dd.open .demo-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.demo-menu a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 11px; transition: background .2s; }
.demo-menu a:hover { background: rgba(255,255,255,.05); }
.dm-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.dm-ic svg { width: 20px; height: 20px; }
.dm-ic.lime { color: var(--lime); background: rgba(163,214,27,.13); border: 1px solid rgba(163,214,27,.32); }
.dm-ic.blue { color: var(--blue); background: rgba(41,169,226,.13); border: 1px solid rgba(41,169,226,.32); }
.dm-txt { display: flex; flex-direction: column; gap: 2px; }
.dm-txt strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.dm-txt small { font-size: 12.5px; color: var(--muted); }

/* ---------- Logo wordmark (recreado como en el brochure) ---------- */
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  user-select: none;
}
.wordmark .br { color: var(--blue); font-weight: 800; margin-inline: .06em; }
.wordmark .yub { color: var(--lime); }
.wordmark .a   { color: var(--gray); }
.wordmark.sm { font-size: 42px; }

/* ============================================================
   Fondo parallax global
   ============================================================ */
.bg-stage {
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(41,169,226,.10), transparent 60%),
    radial-gradient(1000px 700px at 0% 10%, rgba(163,214,27,.06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg) 40%, var(--bg-1));
}
.bg-grid {
  position: fixed; inset: -10% 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(120,170,220,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,170,220,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 40%, transparent 100%);
  will-change: transform;
}
.bg-circuit {
  position: fixed; inset: 0;
  z-index: -1;
  opacity: .5;
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,15,26,.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-soft);
  padding-block: 12px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 2px; width: 0; background: var(--lime); transition: width .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .demo-dd { display: none; }
  .wordmark.sm { font-size: 44px; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8,14,24,.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: max(96px, 12vh) var(--gutter) 48px;
  overflow-y: auto;
  visibility: hidden; pointer-events: none;
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.2,.85,.2,1), visibility .45s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6.4vw, 40px);
  color: var(--ink); padding: 8px 0; letter-spacing: -.02em;
}
.mobile-menu a:active { color: var(--lime); }
.mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.mobile-menu .mobile-cta .btn {
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  justify-content: center; padding: 16px 24px; letter-spacing: 0;
}
.mobile-menu .mobile-cta .btn svg { width: 18px; height: 18px; }
.btn-login svg { width: 17px; height: 17px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  will-change: transform;
}
.hero-glow.lime { width: 640px; height: 640px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(163,214,27,.22), transparent 65%); }
.hero-glow.blue { width: 720px; height: 720px; left: -200px; bottom: -200px; background: radial-gradient(circle, rgba(41,169,226,.18), transparent 65%); }

.hero-arrows { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }

.hero-inner { position: relative; z-index: 2; }
.hero-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 13px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--faint); margin-bottom: clamp(24px, 5vh, 60px);
}
.hero-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.hero-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; color: var(--lime);
  display: inline-flex; align-items: center; gap: 9px;
}

.hero h1 {
  font-size: clamp(58px, 12.5vw, 230px);
  line-height: .86;
  letter-spacing: -.035em;
}
.hero h1 .w { display: block; }
.hero h1 .w > span { display: inline-block; }
.hero h1 .l1 { color: var(--ink); }
.hero h1 .l2 { color: var(--lime); }
.hero h1 .l3 { color: var(--ink); }
.hero h1 .l3 em { font-style: italic; color: var(--blue); }

.hero-bottom {
  margin-top: clamp(32px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.hero-bottom .lead { max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-hint {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--faint);
}
.scroll-hint .mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--faint); border-radius: 12px; position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  width: 3px; height: 7px; border-radius: 2px; background: var(--lime);
  animation: scroller 1.6s ease-in-out infinite;
}
@keyframes scroller { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 70%{opacity:1;} 100%{opacity:0; transform:translate(-50%,12px);} }

/* marquee logos bajo hero */
.marquee {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 22px 0; overflow: hidden; position: relative; background: rgba(8,14,24,.4);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono); font-size: 15px; letter-spacing: .14em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee-track span::after { content: "◆"; color: var(--line); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STATS band
   ============================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--bg-2); padding: 38px 32px; }
.stat .num {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 76px); line-height: 1;
  letter-spacing: -.03em;
}
.stat:nth-child(1) .num { color: var(--lime); }
.stat:nth-child(2) .num { color: var(--blue); }
.stat:nth-child(3) .num { color: var(--purple); }
.stat:nth-child(4) .num { color: var(--orange); }
.stat .lbl { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.stat .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; margin-bottom: 8px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   Layout split (texto + visual)
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 940px) { .split, .split.rev { grid-template-columns: 1fr; gap: 48px; } }

.stack-head { margin-bottom: clamp(32px, 5vh, 56px); }
.stack-head .eyebrow { margin-bottom: 24px; }

/* tarjetas estadística verticales (quiénes somos) */
.vcards { display: flex; flex-direction: column; gap: 18px; }
.vcard {
  position: relative; border-radius: var(--radius); padding: 30px 32px;
  border: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    var(--panel);
}
.vcard .tag { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); }
.vcard .big { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; }
.vcard p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.vcard.lime  { box-shadow: inset 0 0 60px -30px rgba(163,214,27,.5); }
.vcard.lime .big  { color: var(--lime); }
.vcard.blue  { box-shadow: inset 0 0 60px -30px rgba(41,169,226,.5); }
.vcard.blue .big  { color: var(--blue); }
.vcard.purple{ box-shadow: inset 0 0 60px -30px rgba(124,92,255,.5); }
.vcard.purple .big{ background: linear-gradient(120deg, var(--purple), #a78bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   YUBASync HUB
   ============================================================ */
.hub-wrap { position: relative; min-height: 540px; display: grid; place-items: center; }
.hub { position: relative; width: min(540px, 92vw); aspect-ratio: 1; }
.hub-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 168px; height: 168px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(41,169,226,.9), rgba(28,127,192,.55) 55%, rgba(12,40,70,.6));
  box-shadow: 0 0 0 1px rgba(163,214,27,.6), 0 0 60px rgba(41,169,226,.5), inset 0 0 40px rgba(124,92,255,.45);
  z-index: 3;
}
.hub-core .t1 { font-family: var(--display); font-weight: 800; font-size: 34px; color: #fff; letter-spacing: -.02em; line-height: 1; }
.hub-core .t2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--lime); margin-top: 4px; }
.hub-core .ring {
  position: absolute; inset: -22px; border-radius: 50%; border: 1px dashed rgba(163,214,27,.4);
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hub-node {
  position: absolute; transform: translate(-50%,-50%);
  border-radius: 14px; padding: 12px 16px; min-width: 116px;
  background: var(--nc, var(--panel)); color: #07151f;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.7);
  z-index: 2;
}
.hub-node .nt { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.hub-node .ns { font-size: 11.5px; opacity: .8; margin-top: 2px; }
.hub svg.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.hub svg.links path { fill: none; stroke: rgba(120,170,220,.4); stroke-width: 1.4; stroke-dasharray: 5 6; }
.hub svg.links path.flow { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 4 10; animation: dash 1.2s linear infinite; opacity: .9; }
@keyframes dash { to { stroke-dashoffset: -28; } }

.hub-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hub-tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.hub-tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ============================================================
   MÓDULOS
   ============================================================ */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .mods { grid-template-columns: 1fr; } }

.mod {
  position: relative; border-radius: var(--radius); padding: 28px 26px 30px;
  border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--panel);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.mod::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  border-radius: 50%; background: radial-gradient(circle, var(--mc, var(--lime)), transparent 70%);
  opacity: .14; transition: opacity .35s, transform .35s;
}
.mod:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--mc) 55%, var(--line)); box-shadow: 0 26px 60px -28px rgba(0,0,0,.8); }
.mod:hover::before { opacity: .28; transform: scale(1.15); }
.mod .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--mc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--mc) 40%, transparent);
  color: var(--mc); margin-bottom: 22px;
}
.mod .ic svg { width: 24px; height: 24px; }
.mod .idx { position: absolute; top: 22px; right: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--faint); }
.mod h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--mc); margin-bottom: 10px; }
.mod p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.mod .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.mod .chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; background: rgba(255,255,255,.02);
}

/* ============================================================
   SERVICIOS (seis superpoderes) — reusa .mods/.mod
   ============================================================ */

/* ============================================================
   FLUJO DE INTEGRACIÓN (diagrama pro)
   ============================================================ */
.flow {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent), var(--bg-2);
  padding: clamp(24px, 4vw, 48px); overflow: hidden; position: relative;
}
.flow-grid {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: clamp(14px, 2vw, 34px);
}
@media (max-width: 900px) { .flow-grid { grid-template-columns: 1fr; gap: 22px; } .flow-arrow { transform: rotate(90deg); justify-self: center; } }

.flow-col { display: flex; flex-direction: column; gap: 12px; }
.flow-col .col-h { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; text-align: center; }
.flow-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel);
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2);
  transition: border-color .3s, transform .3s;
}
.flow-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fc, var(--blue)); box-shadow: 0 0 10px var(--fc, var(--blue)); flex: none; }
.flow-card.lit { border-color: color-mix(in srgb, var(--fc) 60%, var(--line)); transform: translateX(3px); }

.flow-core {
  border-radius: 16px; padding: 26px 22px; text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(41,169,226,.35), rgba(12,33,56,.6));
  border: 1px solid rgba(163,214,27,.45);
  box-shadow: 0 0 50px -16px rgba(41,169,226,.6), inset 0 0 30px rgba(124,92,255,.25);
}
.flow-core .wordmark { font-size: 22px; justify-content: center; }
.flow-core .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--lime); margin-top: 8px; text-transform: uppercase; }
.flow-core .pipe { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.flow-core .pipe .row {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: rgba(7,18,31,.6);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.flow-core .pipe .row.active { border-color: var(--lime); color: #fff; box-shadow: 0 0 0 1px rgba(163,214,27,.3); }
.flow-core .pipe .row .ok { color: var(--lime); }

.flow-arrow { display: grid; place-items: center; color: var(--faint); }
.flow-arrow svg { width: 40px; height: 40px; }
.flow-arrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: arrowpulse 1.4s ease-in-out infinite; }
@keyframes arrowpulse { 0%,100% { opacity: .3; transform: scale(.7);} 50% { opacity: 1; transform: scale(1.2);} }

.flow-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 22px 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.flow-foot .fitem { display: flex; flex-direction: column; gap: 3px; }
.flow-foot .fitem .v { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--ink); }
.flow-foot .fitem .v.lime { color: var(--lime); } .flow-foot .fitem .v.blue { color: var(--blue); }
.flow-foot .fitem .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }

/* ============================================================
   CONECTORES
   ============================================================ */
.connectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .connectors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .connectors { grid-template-columns: repeat(2, 1fr); } }
.conn {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px 14px; text-align: center;
  font-size: 15px; color: var(--ink-2); background: rgba(255,255,255,.015);
  transition: border-color .3s, color .3s, transform .3s, background .3s;
}
.conn:hover { border-color: var(--blue); color: #fff; transform: translateY(-4px); background: rgba(41,169,226,.07); }
.conn.add { color: var(--lime); border-style: dashed; border-color: color-mix(in srgb, var(--lime) 40%, var(--line)); }

/* ============================================================
   STACK
   ============================================================ */
.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 70px); }
@media (max-width: 760px) { .stack-grid { grid-template-columns: 1fr; gap: 36px; } }
.stack-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.stack-col.blue h4 { color: var(--blue); }
.stack-list { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-list .t {
  font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; letter-spacing: -.01em;
  transition: border-color .3s, color .3s, background .3s;
}
.stack-list .t:hover { border-color: var(--lime); color: var(--lime); background: rgba(163,214,27,.06); }

/* ============================================================
   DASHBOARD MOCK (YUBASync 100X)
   ============================================================ */
.dash {
  border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--bg-2);
  box-shadow: var(--shadow);
}
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 16px; flex-wrap: wrap; }
.dash-live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--lime); border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); border-radius: 999px; padding: 5px 12px; }
.dash-live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dash-hi { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; }
.dash-hi span { color: var(--lime); }
.dash-kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-kpi { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 78px; }
.dash-kpi .v { font-family: var(--display); font-weight: 800; font-size: 22px; }
.dash-kpi .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; margin-top: 3px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 820px) { .dash-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .dash-cards { grid-template-columns: 1fr; } }
.dcard { border-radius: 16px; padding: 20px; color: #08141d; position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.dcard .top { display: flex; align-items: center; justify-content: space-between; }
.dcard .top svg { width: 24px; height: 24px; }
.dcard h4 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.dcard .sub { font-size: 13px; line-height: 1.5; opacity: .85; }
.dcard.teal   { background: linear-gradient(150deg, #1ec39d, #0c8f73); }
.dcard.purple { background: linear-gradient(150deg, #8b6dff, #6843e6); color: #fff; }
.dcard.orange { background: linear-gradient(150deg, #f79a3c, #e06f17); }
.dcard.pink   { background: linear-gradient(150deg, #f7559a, #d61f6a); color: #fff; }
.dash-low { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 700px) { .dash-low { grid-template-columns: 1fr; } }
.dash-panel { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--panel); }
.dash-panel h5 { font-size: 15px; color: var(--lime); margin-bottom: 14px; font-weight: 700; }
.dash-panel.blue h5 { color: var(--blue); }
.log { display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 12.5px; }
.log .row { display: flex; align-items: center; gap: 11px; color: var(--ink-2); }
.log .row .t { color: var(--faint); }
.log .row .who { margin-left: auto; color: var(--faint); }
.log .row .b { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.qa { display: flex; flex-direction: column; gap: 9px; }
.qa a { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); transition: .25s; }
.qa a:hover { border-color: var(--blue); color: #fff; background: rgba(41,169,226,.07); }

/* ============================================================
   CTA / CONTACTO
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(163,214,27,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(41,169,226,.16), transparent 60%),
    var(--bg-2);
  padding: clamp(40px, 7vw, 96px);
}
.cta h2 { font-size: clamp(38px, 6.5vw, 92px); letter-spacing: -.03em; line-height: .94; }
.cta h2 .lime { color: var(--lime); } .cta h2 em { font-style: italic; color: var(--blue); }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 30px 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.cta-meta .item .k { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.cta-meta .item .v { font-size: 19px; color: var(--ink); font-weight: 600; }
.cta-meta .item a:hover { color: var(--lime); }

/* opciones de demo en contacto */
.cta-options { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .cta-options { grid-template-columns: 1fr; } }
.cta-opt {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)), var(--panel);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
}
.cta-opt::before {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, var(--oc), transparent 70%); opacity: .16; transition: opacity .35s, transform .35s;
}
.cta-opt.lime { --oc: var(--lime); }
.cta-opt.blue { --oc: var(--blue); }
.cta-opt:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--oc) 55%, var(--line)); box-shadow: 0 26px 60px -28px rgba(0,0,0,.8); }
.cta-opt:hover::before { opacity: .3; transform: scale(1.15); }
.cta-opt-ic {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  color: var(--oc); background: color-mix(in srgb, var(--oc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--oc) 40%, transparent);
}
.cta-opt-ic svg { width: 25px; height: 25px; }
.cta-opt-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.cta-opt h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 8px 0 12px; }
.cta-opt p { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 38ch; }
.cta-opt-go { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--oc); }
.cta-opt-go svg { width: 17px; height: 17px; transition: transform .3s; }
.cta-opt:hover .cta-opt-go svg { transform: translateX(5px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding-block: 60px 40px; margin-top: clamp(80px, 12vh, 160px); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer-logo-card { display: inline-block; }
.footer-logo-card img { height: 69px; width: auto; max-width: 100%; }
@media (max-width: 600px) { .footer-logo-card img { height: 52px; } }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h6 { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--faint); }
.footer-bottom .lime { color: var(--lime); }

/* ============================================================
   Reveal / animaciones de entrada
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero h1 .w > span { transform: none !important; opacity: 1 !important; }
  .hub-core .ring, .marquee-track, .scroll-hint .mouse::after { animation: none !important; }
}

/* hero word reveal — opacity + slide (robusto para captura/render) */
.hero h1 .w > span {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16,.84,.27,1), transform .9s cubic-bezier(.16,.84,.27,1);
}
.hero.loaded h1 .w > span { opacity: 1; transform: translateY(0); }
.hero h1 .w:nth-child(1) > span { transition-delay: .08s; }
.hero h1 .w:nth-child(2) > span { transition-delay: .20s; }
.hero h1 .w:nth-child(3) > span { transition-delay: .32s; }
