/* =====================================================================
   ByteNova → Smartline · Demo Fase 1
   Estilos. Paleta: azules corporativos sobre fondos claros azulados.
   ===================================================================== */

:root {
  --bg: #EDF2F8;          /* fondo principal: azul hielo (nunca blanco puro) */
  --bg-alt: #E3EAF3;      /* secciones alternas */
  --surface: #FAFCFE;     /* tarjetas */
  --surface-2: #F2F6FB;   /* relleno interno de tarjetas */
  --line: #D2DCE9;
  --line-strong: #B9C7D9;

  --navy: #0B2545;
  --navy-2: #13315C;
  --blue: #1F5FD6;        /* azul eléctrico */
  --blue-2: #2F80ED;
  --blue-soft: #DCE8FA;
  --sl-blue: #3E9BD9;     /* azul del logo Smartline */

  --text: #13213A;
  --muted: #55657D;
  --ok: #1E8E5A;
  --ok-soft: #DDF3E8;
  --warn: #9A6A12;
  --warn-soft: #FBEFD3;
  --proc: #1F5FD6;
  --proc-soft: #DCE8FA;

  --meta: #2F80ED;
  --linkedin: #0E3B66;
  --tiktok: #1B1B1F;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 8px 24px -12px rgba(11, 37, 69, .18);
  --shadow-lg: 0 2px 4px rgba(11, 37, 69, .05), 0 24px 48px -20px rgba(11, 37, 69, .28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.ico--accent { color: var(--blue); }

/* ---------- utilidades ------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .6rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.tag {
  display: inline-flex; align-items: center; gap: .3em; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .22em .6em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.tag--warn { background: var(--warn-soft); color: var(--warn); border-color: #EBD7A6; }
.tag--ok { background: var(--ok-soft); color: var(--ok); border-color: #B8E3CC; }
.legend-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 1.5rem; }

/* ---------- botones ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(31, 95, 214, .7); }
.btn--primary:hover { background: #1A52BB; }
.btn--primary:disabled { background: #7FA3E6; cursor: default; box-shadow: none; }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: .85em 1.5em; font-size: 1rem; }
.btn--sm { padding: .5em .9em; font-size: .85rem; }

/* ---------- aviso permanente ------------------------------------- */
.demo-strip {
  background: var(--navy); color: #DCE8FA; font-size: .78rem; padding: .45rem 1rem;
  display: flex; gap: .8rem; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
}
.demo-strip__tag {
  background: #FBEFD3; color: #6B4A08; font-weight: 800; letter-spacing: .08em; padding: .15em .6em;
  border-radius: 4px; font-size: .7rem;
}

/* ---------- cabecera de marcas ----------------------------------- */
.brandbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.brandbar__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .8rem 0;
}
.brandbar__tagline { margin: 0; text-align: center; font-weight: 600; color: var(--navy); font-size: 1rem; }
.brandbar .logo-box--smartline { justify-self: end; }

/* Logos: PNG con transparencia real (derivados de los originales sin
   alterar colores ni proporciones); se apoyan directamente sobre el fondo. */
.logo-box {
  display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--muted);
}
.logo-box img { height: 40px; width: auto; object-fit: contain; }
.logo-box--smartline img { height: 40px; }        /* 1349×459 → ~118px de ancho */
.logo-box--bytenova img { height: 52px; }         /* 900×917 → ~51px */
.logo-box__caption { font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.logo-box--lg img { height: 64px; }
.logo-box--lg.logo-box--bytenova img { height: 88px; }
.logo-box--sm img { height: 30px; }
.logo-box--xs img { height: 20px; }

/* ---------- navegación ------------------------------------------- */
.topnav {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 252, 254, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topnav__inner { display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.topnav__links { display: flex; gap: .2rem; flex: 1; flex-wrap: wrap; }
.topnav__links a {
  display: block; padding: .45em .8em; border-radius: 8px; color: var(--navy); text-decoration: none;
  font-weight: 600; font-size: .9rem;
}
.topnav__links a:hover { background: var(--blue-soft); color: var(--blue); }
.topnav__links a.is-active { background: var(--blue-soft); color: var(--blue); }
.topnav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.topnav__toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- hero ------------------------------------------------- */
.hero { padding: 3.5rem 0 3rem; background:
  radial-gradient(900px 400px at 10% -10%, rgba(62, 155, 217, .18), transparent 60%),
  radial-gradient(700px 400px at 100% 20%, rgba(31, 95, 214, .12), transparent 60%),
  var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.2fr .9fr; gap: 3rem; align-items: center; }
.hero__brands { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.hero__brands-plus { font-size: 1.6rem; color: var(--muted); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__panel .panel { box-shadow: var(--shadow-lg); }

/* ---------- panel genérico --------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.1rem;
}
.panel__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.panel__title { font-weight: 700; color: var(--navy); flex: 1; }
.panel__foot { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .7rem; font-size: .85rem; color: var(--muted); }
.panel__stage { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.dot-live {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; position: relative;
}
.dot-live.is-on { background: var(--ok); }
.dot-live.is-on::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok);
  animation: ping 1.2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8 } 100% { transform: scale(1.5); opacity: 0 } }

/* ---------- listas de estado (agentes / plataformas) -------------- */
.minilist li {
  display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.minilist li:last-child { border-bottom: 0; }
.minilist .ico { color: var(--blue); }
.minilist__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.minilist__name { font-weight: 600; color: var(--navy); white-space: nowrap; }
.minilist__meta { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.minilist__meta:empty { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: .4em; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .25em .6em; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge[data-state="processing"], .badge[data-state="connecting"], .badge[data-state="publishing"], .badge[data-state="receiving"] {
  background: var(--proc-soft); color: var(--proc); border-color: #BFD3F5;
}
.badge[data-state="processing"]::before, .badge[data-state="connecting"]::before,
.badge[data-state="publishing"]::before, .badge[data-state="receiving"]::before { animation: blink 1s infinite; }
.badge[data-state="done"], .badge[data-state="published"], .badge[data-state="connected"] {
  background: var(--ok-soft); color: var(--ok); border-color: #B8E3CC;
}
@keyframes blink { 50% { opacity: .15 } }

/* ---------- secciones -------------------------------------------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 46rem; margin-bottom: 2.2rem; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section__head--row > div:first-child { max-width: 46rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-2--tight { gap: .7rem; }

/* cadena de flujo (problema) */
.flowchain { display: flex; flex-direction: column; gap: 0; }
.flowchain__step {
  display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: .65rem .9rem; font-weight: 600; color: var(--navy); position: relative;
  box-shadow: var(--shadow);
}
.flowchain__step + .flowchain__step { margin-top: 14px; }
.flowchain__step + .flowchain__step::before {
  content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 14px; background: var(--line-strong);
}
.flowchain__step span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* ---------- stepper (cómo funciona) ------------------------------ */
.stepper { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; align-items: start; }
.stepper__nav { display: flex; flex-direction: column; gap: .35rem; }
.stepper__nav button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem;
  border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--navy); cursor: pointer;
  font-weight: 600; font-size: .9rem;
}
.stepper__nav button i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong);
  font-style: normal; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.stepper__nav button:hover { background: var(--surface); border-color: var(--line); }
.stepper__nav button.is-active { background: var(--surface); border-color: var(--blue); box-shadow: var(--shadow); }
.stepper__nav button.is-active i { background: var(--blue); color: #fff; border-color: var(--blue); }
.stepper__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; min-height: 380px; display: flex; flex-direction: column; }
.stepper__panels { flex: 1; }
.step { display: none; animation: fadeUp .35s var(--ease); }
.step.is-active { display: block; }
.step__num { font-size: .75rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.step p { color: var(--muted); }
.step__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.stepper__controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.stepper__counter { font-size: .85rem; color: var(--muted); font-weight: 600; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.objective-card {
  display: flex; align-items: center; gap: 1rem; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem;
}
.objective-card__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.objective-card__text { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--navy) !important; }

.mini-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.mini-card__k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mini-card__v { font-weight: 600; color: var(--navy); font-size: .92rem; }

.ad-preview { max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; box-shadow: var(--shadow); }
.ad-preview__brand { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.ad-preview__visual {
  aspect-ratio: 16 / 9; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(135deg, var(--navy), var(--sl-blue)); margin-bottom: .7rem;
}
.ad-preview h4 { font-size: 1rem; margin-bottom: .3rem; }
.ad-preview p { font-size: .88rem; color: var(--muted); margin-bottom: .7rem; }
.ad-preview__cta { display: inline-block; background: var(--blue); color: #fff; font-weight: 600; font-size: .85rem; padding: .45em .9em; border-radius: 7px; }

/* fanout (distribución en pasos 4 y 5) */
.fanout { display: flex; flex-direction: column; align-items: center; gap: 0; padding: .5rem 0; }
.fanout__source { background: var(--navy); color: #fff; font-weight: 600; padding: .6rem 1.1rem; border-radius: 10px; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.fanout__source .tag { background: rgba(255,255,255,.12); color: #DCE8FA; border-color: rgba(255,255,255,.2); }
.fanout__lines { display: flex; gap: 90px; height: 44px; }
.fanout__lines i { width: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.fanout__lines i::after {
  content: ''; position: absolute; left: 0; width: 2px; height: 12px; background: var(--blue);
  animation: drop 1.4s linear infinite;
}
.fanout__lines i:nth-child(2)::after { animation-delay: .3s }
.fanout__lines i:nth-child(3)::after { animation-delay: .6s }
.fanout--reverse .fanout__lines i::after { animation-name: rise; }
@keyframes drop { from { top: -12px } to { top: 44px } }
@keyframes rise { from { top: 44px } to { top: -12px } }
.fanout__targets { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.platform-chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .9em; border-radius: 9px; font-weight: 600;
  font-size: .9rem; color: #fff; background: var(--navy);
}
.platform-chip--meta { background: var(--meta); }
.platform-chip--linkedin { background: var(--linkedin); }
.platform-chip--tiktok { background: var(--tiktok); }

/* barras comparativas simples */
.compare-bars__row { display: grid; grid-template-columns: 80px 1fr auto; gap: .8rem; align-items: center; margin-bottom: .6rem; font-size: .9rem; }
.compare-bars__row span { font-weight: 600; color: var(--navy); }
.compare-bars__row b { font-weight: 500; color: var(--muted); font-size: .85rem; }
.bar { height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 6px; animation: grow .8s var(--ease); transform-origin: left; }
@keyframes grow { from { transform: scaleX(0) } }

.insights li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.insights li:last-child { border-bottom: 0; }
.insights .ico { color: var(--blue); margin-top: .2em; }
.insights li.is-new { animation: fadeUp .4s var(--ease); }
.recommendation { margin-top: 1rem; background: var(--blue-soft); border: 1px solid #BFD3F5; border-radius: 12px; padding: .9rem 1.1rem; }
.recommendation__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--blue); }
.recommendation p { margin: .2rem 0 0; font-weight: 600; color: var(--navy) !important; font-size: 1.02rem; }

.mini-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.kpi__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.kpi__value { font-size: 1.6rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi__hint { font-size: .78rem; color: var(--muted); }
.kpi--sm .kpi__value { font-size: 1.15rem; }

/* ---------- orquestador y agentes -------------------------------- */
.orchestra { display: flex; flex-direction: column; align-items: center; margin-bottom: 2.5rem; }
.orch-node {
  background: var(--navy); color: #fff; border-radius: 12px; padding: .8rem 1.4rem; text-align: center; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: .2rem; position: relative; max-width: 360px;
}
.orch-node strong { font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5em; }
.orch-node small { color: #C8D6EA; font-size: .8rem; }
.orch-node.is-on { box-shadow: 0 0 0 4px rgba(31, 95, 214, .25), var(--shadow-lg); }
.orch-node.is-on .ico { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.orch-trunk { width: 2px; height: 28px; background: var(--line-strong); }
.orch-bus { width: min(100%, 880px); height: 2px; background: var(--line-strong); }
.orch-row { width: min(100%, 880px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.orch-col { display: flex; flex-direction: column; align-items: center; }
.orch-col .orch-trunk { height: 22px; }
.orch-leaf {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font-weight: 600; font-size: .88rem;
  color: var(--navy); display: inline-flex; align-items: center; gap: .5em; box-shadow: var(--shadow); transition: box-shadow .25s, border-color .25s;
  text-align: center; white-space: nowrap;
}
.orch-leaf .ico { color: var(--blue); }
.orch-leaf[data-state="processing"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 214, .2); }
.orch-leaf[data-state="done"] { border-color: #8CD2AF; background: var(--ok-soft); }

.agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.agent-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem; transition: border-color .25s, box-shadow .25s; }
.agent-card[data-state="processing"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 95, 214, .18), var(--shadow); }
.agent-card[data-state="done"] { border-color: #8CD2AF; }
.agent-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: nowrap; }
.agent-card__top .badge { font-size: .66rem; padding: .22em .55em; }
.agent-card__head { display: flex; align-items: center; gap: .7rem; }
.agent-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.agent-card__icon .ico { width: 22px; height: 22px; }
.agent-card__num { font-size: .72rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
.agent-card h3 { font-size: 1rem; margin: 0; }
.agent-card__role { color: var(--muted); font-size: .9rem; margin: 0; }
.agent-card__out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font-size: .84rem; }
.agent-card__out h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .4rem; }
.agent-card__out dl { margin: 0; display: grid; gap: .35rem; }
.agent-card__out dt { font-weight: 700; color: var(--navy); font-size: .78rem; }
.agent-card__out dd { margin: 0; color: var(--text); }
.agent-card__tag { display: inline-flex; margin-top: .6rem; }

/* ---------- plataformas ------------------------------------------ */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.platform-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.platform-card__head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; color: #fff; }
.platform-card__head .ico { width: 26px; height: 26px; }
.platform-card__head strong { font-size: 1.05rem; flex: 1; }
.platform-card__head .badge { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.platform-card__head .badge::before { background: #fff; }
.platform-card__body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }

.cycle { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.cycle__item { display: flex; align-items: center; gap: .6rem; font-size: .86rem; font-weight: 600; color: var(--navy); padding: .3rem 0; position: relative; }
.cycle__item i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: inline-flex; flex: none; position: relative; z-index: 1; transition: background .3s, border-color .3s; }
.cycle__item.is-on i { border-color: var(--c); background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.cycle__item.is-done i { border-color: var(--c); background: var(--c); }
.cycle::before { content: ''; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.cycle__item--loop { color: var(--muted); font-weight: 500; }
.cycle__item--loop i { border-style: dashed; }

.mockui { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; font-size: .84rem; }
.mockui__bar { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 600; }
.mockui__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mockui__bar span:last-child { margin-left: auto; white-space: nowrap; }
.mockui__campaign { padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.mockui__campaign strong { display: block; color: var(--navy); }
.mockui__campaign small { color: var(--muted); }
.mockui__status { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.mockui__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.mockui__status.is-active { color: var(--ok); }
.mockui__status.is-active::before { background: var(--ok); }
.mockui__grid { display: grid; grid-template-columns: 1fr 1fr; }
.mockui__cell { padding: .6rem .8rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.mockui__cell:nth-child(2n) { border-right: 0; }
.mockui__cell span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mockui__cell b { font-size: 1.05rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.mockui__foot { padding: .5rem .8rem; font-size: .72rem; color: var(--warn); background: var(--warn-soft); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- demostración ----------------------------------------- */
.demo-controls { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.demo-controls__status { font-weight: 600; color: var(--muted); font-size: .95rem; margin-left: .4rem; }
.demo-controls__status.is-running { color: var(--blue); }
.demo-controls__status.is-done { color: var(--ok); }
.demo-layout { display: grid; grid-template-columns: 1fr 330px; gap: 1.2rem; align-items: start; }
.demo-side { display: flex; flex-direction: column; gap: 1.2rem; }
.flow-wrap { width: 100%; }
.flow-wrap svg { width: 100%; height: auto; display: block; font-family: var(--font); }

/* nodos del diagrama SVG */
.fnode rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.fnode text { fill: var(--navy); font-weight: 700; font-size: 13px; }
.fnode .fnode__status { fill: var(--muted); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.fnode--brand rect { fill: var(--navy); stroke: var(--navy); }
.fnode--brand text { fill: #fff; }
.fnode--brand .fnode__status { fill: #C8D6EA; }
.fnode--platform rect { fill: var(--surface); }
.fnode--platform text { fill: var(--navy); }
.flow--compact .fnode--platform text { font-size: 12px; }
.flow--compact .fnode--platform .fnode__status { font-size: 8.5px; letter-spacing: 0; }
.fnode[data-state="active"] rect { stroke: var(--blue); stroke-width: 2.5; fill: #fff; }
.fnode[data-state="active"] .fnode__status { fill: var(--blue); }
.fnode[data-state="done"] rect { stroke: var(--ok); stroke-width: 2; fill: var(--ok-soft); }
.fnode[data-state="done"] .fnode__status { fill: var(--ok); }
.fnode--brand[data-state="active"] rect, .fnode--brand[data-state="done"] rect { fill: var(--navy); stroke: var(--sl-blue); stroke-width: 3; }
.fnode--brand[data-state="active"] .fnode__status, .fnode--brand[data-state="done"] .fnode__status { fill: #9FD3F5; }
.fnode__logo { }
.fedge { fill: none; stroke: var(--line-strong); stroke-width: 2; transition: stroke .3s; }
.fedge.is-on { stroke: var(--blue); }
.fedge.is-done { stroke: #8CD2AF; }
.fdot { fill: var(--blue); }
.fdot--return { fill: var(--sl-blue); }
.fnode__pulse { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; }
.fnode[data-state="active"] .fnode__pulse { animation: rectPulse 1.3s ease-out infinite; }
@keyframes rectPulse { 0% { opacity: .7; transform: scale(1) } 100% { opacity: 0; transform: scale(1.06) } }

.stages li { display: flex; align-items: center; gap: .6rem; padding: .42rem 0; font-size: .9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.stages li:last-child { border-bottom: 0; }
.stages li i {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-style: normal; font-size: .72rem;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface);
}
.stages li i .ico { width: 14px; height: 14px; display: none; }
.stages li.is-active { color: var(--blue); font-weight: 600; }
.stages li.is-active i { border-color: var(--blue); color: var(--blue); animation: ringPulse 1.2s infinite; }
.stages li.is-done { color: var(--navy); }
.stages li.is-done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.stages li.is-done i .ico { display: block; }
.stages li.is-done i span { display: none; }
@keyframes ringPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,95,214,.35) } 50% { box-shadow: 0 0 0 5px rgba(31,95,214,0) } }
.stages__sub { display: flex; gap: .4rem; margin-left: 30px; margin-top: -.2rem; padding-bottom: .4rem; flex-wrap: wrap; }
.stages__sub span { font-size: .7rem; font-weight: 700; padding: .15em .5em; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.stages__sub span.is-ok { background: var(--ok-soft); color: var(--ok); border-color: #B8E3CC; }

.demo-output { margin-top: 1.2rem; animation: fadeUp .4s var(--ease); }

/* ---------- dashboard -------------------------------------------- */
.dash-brand { display: flex; align-items: center; gap: .8rem; }
.dashboard { position: relative; display: flex; flex-direction: column; gap: 1.2rem; }
.dashboard.is-empty { max-height: 520px; overflow: hidden; border-radius: var(--radius); }
.dashboard.is-empty > :not(.dashboard__empty) { filter: blur(3px); opacity: .45; pointer-events: none; user-select: none; }
.dashboard__empty {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem; text-align: center; gap: .4rem;
  background: linear-gradient(180deg, rgba(237, 242, 248, 0) 0%, rgba(237, 242, 248, .75) 35%, rgba(237, 242, 248, .95) 100%);
}
.dashboard__empty[hidden] { display: none; }
.dashboard__empty .ico { width: 38px; height: 38px; color: var(--blue); }
.dashboard__empty p { color: var(--muted); max-width: 32rem; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.kpis .kpi { background: var(--surface); box-shadow: var(--shadow); }
.charts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 0; }
.chart-card--wide { grid-column: 1 / -1; }
.chart-card h3 { font-size: .92rem; margin-bottom: .6rem; }
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font-size: 11px; }
.chart .bar-rect { transform-origin: bottom; transition: transform .9s var(--ease); }
.chart .bar-label { fill: var(--navy); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .series-dot { stroke: var(--surface); stroke-width: 2; }
.chart .hover-line { stroke: var(--line-strong); stroke-width: 1; opacity: 0; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; font-size: .8rem; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: .4em; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-tip {
  position: fixed; z-index: 60; pointer-events: none; background: var(--navy); color: #fff; font-size: .78rem; padding: .45rem .6rem;
  border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .12s; max-width: 220px; line-height: 1.4;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { display: block; margin-bottom: .15rem; }
.chart-tip small { color: #C8D6EA; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 820px; }
.cmp-table caption { text-align: left; padding: .8rem 1rem; font-weight: 700; color: var(--navy); }
.cmp-table th, .cmp-table td { padding: .6rem .9rem; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; font-weight: 700; color: var(--navy); }
.cmp-table td:first-child span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .5em; vertical-align: -1px; }
.cmp-table tr.is-total td { font-weight: 700; background: var(--surface-2); }
.cmp-table td.is-best { color: var(--ok); font-weight: 700; }

/* ---------- beneficios ------------------------------------------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.benefit .ico { width: 30px; height: 30px; color: var(--blue); margin-bottom: .7rem; }
.benefit h3 { font-size: 1rem; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- antes / después -------------------------------------- */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.ba-col { border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.ba-col h3 { text-align: center; margin-bottom: 1.2rem; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.ba-col--before h3 { color: var(--muted); }
.ba-col--after { border-color: var(--blue); }
.ba-col--after h3 { color: var(--blue); }
.vflow { display: flex; flex-direction: column; align-items: center; }
.vflow li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1.2rem; font-weight: 600; color: var(--navy); min-width: 230px; text-align: center; position: relative; }
.vflow li + li { margin-top: 22px; }
.vflow li + li::before { content: ''; position: absolute; top: -22px; left: 50%; width: 2px; height: 22px; background: var(--line-strong); }
.vflow li + li::after { content: ''; position: absolute; top: -8px; left: calc(50% - 4px); border: 5px solid transparent; border-top-color: var(--line-strong); border-bottom: 0; }
.ba-col--before .vflow li { background: #F1F3F6; color: var(--muted); }
.ba-col--after .vflow li { background: var(--blue-soft); border-color: #BFD3F5; }
.ba-col--after .vflow li + li::before { background: var(--blue); }
.ba-col--after .vflow li + li::after { border-top-color: var(--blue); }
.ba-col__note { text-align: center; color: var(--muted); font-size: .9rem; margin: 1.2rem 0 0; }

/* ---------- alcance ---------------------------------------------- */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.scope__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.scope__col h3 { margin-bottom: 1rem; }
.scope__col li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.scope__col li:last-child { border-bottom: 0; }
.scope__col li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex: none; background: var(--ok-soft); color: var(--ok); }
.scope__col--no li::before { content: '–'; background: #F1F3F6; color: var(--muted); }
.scope__col--no h3 { color: var(--muted); }

/* ---------- footer ----------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-direction: column; gap: 1.5rem; }
.footer__brands { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__rel { text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.footer__rel strong { color: var(--navy); }
.footer__legal { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- responsive ------------------------------------------- */
@media (max-width: 1100px) {
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .charts { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-side { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .stepper { grid-template-columns: 1fr; }
  .stepper__nav { flex-direction: row; overflow-x: auto; padding-bottom: .4rem; }
  .stepper__nav button { width: auto; white-space: nowrap; flex: none; }
  .stepper__nav button b { display: none; }
  .stepper__panel { min-height: 0; }
  .topnav__toggle { display: inline-flex; }
  .topnav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: .5rem 1rem 1rem; box-shadow: var(--shadow-lg); }
  .topnav__links.is-open { display: flex; }
  .topnav__cta { margin-left: auto; }
  .demo-side { grid-template-columns: 1fr; }
  .before-after, .scope { grid-template-columns: 1fr; }
  .orch-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 0; }
  .orch-bus { display: none; }
  .orch-col + .orch-col .orch-trunk { height: 18px; }
  .orch-leaf { white-space: normal; }
}
@media (max-width: 600px) {
  .brandbar__inner { grid-template-columns: 1fr 1fr; }
  .brandbar__tagline { grid-column: 1 / -1; order: 3; font-size: .9rem; }
  .logo-box__caption { display: none; }
  .logo-box img { height: 32px; }
  .logo-box--bytenova img { height: 44px; }
  .logo-box--lg img { height: 50px; }
  .logo-box--lg.logo-box--bytenova img { height: 70px; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero__actions .btn { flex: 1 1 45%; }
  .section { padding: 3rem 0; }
  .grid-2, .mini-dash { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .charts { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .fanout__lines { gap: 40px; }
  .compare-bars__row { grid-template-columns: 70px 1fr; }
  .compare-bars__row b { grid-column: 2; }
  .demo-controls .btn { flex: 1 1 100%; }
  .footer__brands { justify-content: center; }
  .topnav__cta { margin-left: auto; }
  .agent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) and (min-width: 601px) {
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
