/* Landing "clay" de Pulso: sistema visual de la home de clay.com (spec docs/2026-10-07-clay-spec.md) con el contenido
   de la home de Pulso (docs/2026-10-07-clay-contenido.md). CSS a mano, sin compilación.
   Reglas de Pato: solo colores de Clay, sin imágenes ni dibujos generados (solo íconos chicos de interfaz), textos literales.
   Orden: tokens, base, marco, botones, nav, hero, cards apiladas, Cómo trabajamos, caja de acción, Capacidad, cierre y pie,
   diálogo y aviso, escritorio base, tablet, celular, escritorio bajo, sin JS, movimiento reducido. */

/* ============ Tokens (spec 12) ============ */
:root {
  --font-sans: "Satoshi", "Figtree", Arial, sans-serif; /* original: Roobert VF (paga) */

  /* H1: Clay usa 88 px en 2 renglones. El de Pulso tiene 72 caracteres y comparte fila con la bajada y dos botones
     lado a lado: el tamaño se calcula para que quede siempre en 3 renglones (64 px a 1440). */
  --fs-h1: clamp(3rem, 8.4vw - 51px, 4rem);
  --fs-h2: 4.5rem;   /* 72 */
  --fs-h3: 3rem;     /* 48 */
  --fs-cta: 2.75rem; /* 44 */

  --c-ink: #1b1a18;
  --c-oat-50: #fffdf9;
  --c-oat-100: #fefdfb;
  --c-oat-150: #f9f8f6;
  --c-oat-200: #f4f3f0;
  --c-oat-btn: #f3f2ed;
  --c-oat-btn-hover: #dad4c8;
  --c-border: #e0dedc;
  --c-oat-300: #d1cdc7;
  --c-oat-400: #7b7974;
  --c-oat-800: #55534e;
  --c-hover-dark: #282c35;
  --c-selection: #1d2026;
  --c-nav-border: rgba(209, 205, 199, 0.5);
  --c-muted-aa: #6f6d68; /* gris de chips claros, apenas más oscuro que #7b7974 para llegar a AA */

  --c-hero-bg: #035d44;      /* verde del hero de Clay */
  --c-hero-accent: #eef773;  /* lime 200: remate del H1 */
  --c-cta-lime: #cbd810;     /* lime 300: botón del hero */

  /* Familias: 100 fondo, 200 chip, 300 bloque, 400 acento, 500 texto. 400 de lima y slushie oscurecidos para AA. */
  --blueberry-100: #f0f8ff;   --blueberry-200: #bedffe;   --blueberry-300: #429eff;   --blueberry-400: #395afa;   --blueberry-500: #001433;
  --lime-100: #fcfee2;        --lime-200: #eef773;        --lime-300: #cbd810;        --lime-400: #737300;        --lime-500: #102b03;
  --dragonfruit-100: #fff0fa; --dragonfruit-200: #f8b9e4; --dragonfruit-300: #ff70d2; --dragonfruit-400: #cc089e; --dragonfruit-500: #46022f;
  --ube-100: #f5f3ff;         --ube-200: #c8bbfb;         --ube-300: #a17bf9;         --ube-400: #6d4cd6;         --ube-500: #160038;
  --slushie-100: #f0fcff;     --slushie-200: #aaebfd;     --slushie-300: #3bd3fd;     --slushie-400: #00768f;     --slushie-500: #002833;
  --pomegranate-100: #fff1f2; --pomegranate-200: #fcbabe; --pomegranate-300: #fb4450; --pomegranate-400: #c22e3d; --pomegranate-500: #3a0308;

  --t-bg: var(--c-oat-200);
  --t-chip: var(--c-oat-200);
  --t-block: var(--c-oat-300);
  --t-accent: var(--c-oat-400);
  --t-ink: var(--c-ink);

  --container-max: 80rem;  /* 1280 */
  --content-max: 74rem;    /* 1184 */
  --frame-line-max: 84rem; /* 1344 */
  --nav-h: 59px;
  --sticky-top: 28px;      /* como Clay: la card pegada queda 31 px escondida debajo del nav */
  --hero-overlap: 80px;    /* lo que la primera card se monta sobre el verde */

  --r-xl: 48px;
  --r-lg: 32px;
  --r-md: 24px;

  --shadow-input: 0 12px 24px -12px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(209, 205, 199, 0.6);
  --shadow-input-hover: 0 12px 24px -12px rgba(0, 0, 0, 0.12), inset 0 0 0 2px rgba(209, 205, 199, 0.6);
  --shadow-popover: 0 12px 36px -8px rgba(21, 21, 24, 0.1);
  --glow-white: 0 24px 64px 24px #ffffff;
  --bevel: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(123, 121, 116, 0.15);

  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --fcard-h: min(771px, calc(100vh - 52px));
}

.t-blueberry   { --t-bg: var(--blueberry-100);   --t-chip: var(--blueberry-200);   --t-block: var(--blueberry-300);   --t-accent: var(--blueberry-400);   --t-ink: var(--blueberry-500); }
.t-lime        { --t-bg: var(--lime-100);        --t-chip: var(--lime-200);        --t-block: var(--lime-300);        --t-accent: var(--lime-400);        --t-ink: var(--lime-500); }
.t-dragonfruit { --t-bg: var(--dragonfruit-100); --t-chip: var(--dragonfruit-200); --t-block: var(--dragonfruit-300); --t-accent: var(--dragonfruit-400); --t-ink: var(--dragonfruit-500); }
.t-ube         { --t-bg: var(--ube-100);         --t-chip: var(--ube-200);         --t-block: var(--ube-300);         --t-accent: var(--ube-400);         --t-ink: var(--ube-500); }
.t-slushie     { --t-bg: var(--slushie-100);     --t-chip: var(--slushie-200);     --t-block: var(--slushie-300);     --t-accent: var(--slushie-400);     --t-ink: var(--slushie-500); }
.t-pomegranate { --t-bg: var(--pomegranate-100); --t-chip: var(--pomegranate-200); --t-block: var(--pomegranate-300); --t-accent: var(--pomegranate-400); --t-ink: var(--pomegranate-500); }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: #fff; color: var(--c-ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 530; text-wrap: balance; }
p { text-wrap: pretty; }
button { font-family: inherit; }
a { color: inherit; }
::selection { background: var(--c-selection); color: #fff; }
:focus-visible { outline: 2px dashed #000; outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #fff; }

.container { width: 95%; max-width: var(--container-max); margin-inline: auto; }
.acc { color: var(--t-accent); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 10000;
  background: #000; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Solo para lectores de pantalla (lo usa contacto.js) */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eyebrow { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.25em; text-transform: uppercase; color: var(--t-accent); }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.03em; color: #000; }
.h3 { font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.04em; color: #000; }

/* Íconos chicos de interfaz (Lucide) */
.tile svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Líneas de marco (spec 10.2): por debajo de toda sección con z-index 2 ============ */
.frame {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 1; pointer-events: none;
  width: min(calc(95% - 96px), var(--content-max)); margin-inline: auto;
  border-inline: 1px solid var(--c-oat-200);
}
.hairline {
  position: relative; z-index: 2; height: 1px; width: 100%; max-width: var(--frame-line-max); margin-inline: auto;
  background: linear-gradient(90deg, transparent 0, var(--c-oat-200) 5rem, var(--c-oat-200) calc(100% - 5rem), transparent 100%);
}

/* ============ Botones (spec 5) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.5em 1em; border: 1px solid transparent; border-radius: 12px;
  font: 500 16px/1.5 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap;
  color: #000; background: #fff; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease-out-circ), border-color 0.3s var(--ease-out-circ);
}
.btn--black { background: #000; color: #fff; }
.btn--black:hover { background: var(--c-hover-dark); }
.btn--light { background: #fff; color: #000; }
.btn--lime { background: var(--c-cta-lime); color: #000; }
.btn--theme { background: var(--t-accent); color: #fff; }   /* de tema, primario: 400 de la familia */
.btn--theme-2 { background: #fff; color: var(--t-ink); }    /* de tema, secundario: blanco, sin flecha */
.btn--sm { font-size: 0.87rem; padding: 8px 16px; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-group--center { justify-content: center; gap: 8px; }

/* Flecha que "rueda": dos flechas en un carril de 1em; en hover bajan de -100% a 0 */
.arw { position: relative; display: inline-block; flex: none; width: 1em; height: 1em; overflow: hidden; }
.arw-track { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transform: translateY(-50%); transition: transform 0.4s var(--ease-out-quart); }
.arw svg { display: block; width: 1em; height: 1em; flex: none; }
.btn:hover .arw-track, .btn:focus-visible .arw-track, .accion-go:hover .arw-track, .accion-go:focus-visible .arw-track { transform: translateY(0); }

/* ============ Nav (spec 4) ============ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; width: 95%; margin-inline: auto; }
.nav-bar {
  position: relative; z-index: 2;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 7.5px 24px 8.5px; background: #fff;
  border: 1px solid var(--c-nav-border); border-top: 0; border-radius: 0 0 24px 24px;
  transition: border-color 0.25s ease-out, background-color 0.25s ease-out;
}
.nav-left { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: #000; text-decoration: none; border-radius: 6px; }
.logo svg { display: block; height: 30px; width: auto; }
.nav .logo-lat { transform-box: fill-box; transform-origin: 50% 100%; animation: latido 0.9s 0.35s var(--ease-out-quart) both; }
@keyframes latido { 0% { transform: scaleY(1); } 35% { transform: scaleY(0.85); } 65% { transform: scaleY(1.05); } 100% { transform: scaleY(1); } }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 2px;
  font-size: 14px; font-weight: 500; line-height: 1.5; color: #000; text-decoration: none;
  transition: color 0.25s var(--ease-out-circ);
}
.nav-links a:hover { color: var(--c-oat-400); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 7px; height: 2px; border-radius: 100px; background: var(--c-oat-300); }
.nav-actions { display: flex; align-items: center; gap: 6.4px; }
.nav-menu-btn {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--c-oat-100);
  color: #000; cursor: pointer; place-items: center; padding: 0;
}
.nav-menu-btn svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.nav-menu-btn .i-close { display: none; }
.nav.is-open .nav-menu-btn .i-open { display: none; }
.nav.is-open .nav-menu-btn .i-close { display: block; }
.nav-panel {
  position: fixed; inset: 0; z-index: 1; background: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) 2.5vw 20px;
}
.nav-panel[hidden] { display: none; }
.nav-panel-links { display: flex; flex-direction: column; }
.nav-panel-links a { display: flex; align-items: center; height: 46px; padding: 0 10px; font-size: 15px; font-weight: 500; color: #000; text-decoration: none; }
.nav-panel-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--c-oat-300); }
.nav-panel-foot { display: flex; flex-direction: column; gap: 10px; }
.nav-panel-foot .btn { height: 39px; font-size: 0.87rem; }
html.menu-open { overflow: hidden; }

/* ============ Hero (spec 7.1) ============ */
/* Sin escena (Pato): el bloque verde mide lo que su contenido. Título abajo a la izquierda, bajada y dos botones
   lado a lado a la derecha. La primera card se monta sobre el borde del verde, sin degradé. */
.hero {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-h) + 104px);
  background: var(--c-hero-bg); color: var(--c-oat-100);
}
.hero-in {
  width: 95%; max-width: var(--container-max); margin: 0 auto;
  padding: 0 48px calc(var(--hero-overlap) + 72px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.hero-h1 {
  flex: 1 1 auto; min-width: 0; max-width: 760px;
  font-size: var(--fs-h1); font-weight: 575; line-height: 1; letter-spacing: -0.04em; color: var(--c-oat-100);
}
.hero-acc { color: var(--c-hero-accent); }
.hero-side { flex: 0 0 440px; display: flex; flex-direction: column; gap: 24px; }
.hero-sub { font-size: 24px; line-height: 1.3; color: var(--c-oat-100); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Cards de feature apiladas (spec 7.5) ============ */
.pasos { position: relative; z-index: 3; margin-top: calc(-1 * var(--hero-overlap)); padding-bottom: 48px; }
.stack { list-style: none; margin: 0; padding: 0; overflow: clip; border-radius: var(--r-xl); }
.fcard {
  position: sticky; top: var(--sticky-top);
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: var(--fcard-h);
  margin-bottom: -48px; padding-bottom: 48px;
  background: var(--t-bg); color: var(--t-ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.fcard:last-child { margin-bottom: 0; padding-bottom: 0; min-height: calc(var(--fcard-h) - 48px); border-radius: var(--r-xl); }
.fcard-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px 0 64px 48px; min-width: 0; }
.fcard-h { margin-top: 16px; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.04em; color: var(--t-ink); }
.fcard-p { margin-top: 20px; max-width: 448px; font-size: 16px; line-height: 1.4; color: var(--t-ink); }
.fcard-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pastilla con pastillas fantasma: indica la posición (card 1 a la izquierda, card 3 a la derecha), como en Clay */
.eb { display: inline-flex; align-items: center; isolation: isolate; }
.eb-pill {
  position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 0.75em;
  height: 32px; padding: 0 calc(16px - 0.25em) 0 16px; border-radius: 999px;
  background: var(--t-accent); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.25em; text-transform: uppercase; white-space: nowrap;
}
.eb i { position: relative; flex: none; width: 68px; height: 32px; margin-left: -53px; border-radius: 999px; background: var(--t-chip); border: 1px solid var(--t-bg); }
.eb i.izq { margin-left: 0; margin-right: -53px; }
.eb i.g1 { z-index: 3; }
.eb i.g2 { z-index: 2; }

/* Marco blanco de la derecha (en Clay, el video): la lista real de la card como filas de interfaz */
.fcard-media { padding: 24px; min-width: 0; }
.fcard-frame {
  position: relative; height: calc(var(--fcard-h) - 96px); overflow: hidden;
  display: flex; align-items: flex-start; padding: 32px; border-radius: var(--r-md); background: #fff;
}
.flist { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.flist li {
  display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 18px 10px 10px;
  border-radius: 16px; background: var(--t-bg); box-shadow: var(--bevel);
  font-size: 16px; line-height: 1.3; color: var(--t-ink);
}
.tile { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--t-accent); box-shadow: var(--bevel); }
.tile svg { width: 20px; height: 20px; }
.flist-t { flex: 1; min-width: 0; }
.n { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.09em; color: var(--t-accent); font-variant-numeric: tabular-nums; }

/* ============ Integraciones: lienzo de flujos (como el editor de Make o n8n) en la bandeja avena de Clay ============ */
/* Encabezado de Clay (eyebrow + título en dos tonos + bajada), selector de flujos como chips, tablero blanco con grilla
   de puntos, nodos (baldosa con logo o ícono de interfaz + rótulo) y conectores SVG. Debajo, la tira de logos que corre.
   Los logos van en su color de marca; todo lo demás usa la paleta de Clay. */
.flujos { position: relative; z-index: 2; padding: 16px 0 48px; }
.flujos-tray { padding: 64px 48px 48px; box-shadow: var(--glow-white); }
.flujos-head { max-width: 760px; margin: 0 auto; text-align: center; }
.flujos-head .eyebrow { margin-bottom: 16px; }
.flujos-h { color: var(--c-ink); }
.flujos-p { max-width: 600px; margin: 20px auto 0; font-size: 20px; line-height: 1.3; color: var(--c-ink); text-wrap: balance; }

/* Selector: chips claros sobre la avena (bisel de Clay); el activo toma el 200 de la familia de su flujo */
.fl-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.fl-tab {
  flex: none; height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--c-oat-100); box-shadow: var(--bevel);
  color: var(--c-ink); font: 500 16px/1.5 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease-out-circ);
}
.fl-tab:hover { background: #fff; }
.fl-tab[aria-selected="true"] { background: var(--t-chip); box-shadow: none; }
html:not(.js) .fl-tabs { display: none; }

/* Tablero: blanco con la grilla de puntos de los editores de flujos */
.fl-board {
  margin-top: 24px; padding: 28px 24px; border-radius: var(--r-md); background-color: #fff;
  background-image: radial-gradient(circle, var(--c-border) 1.1px, transparent 1.6px); background-size: 20px 20px; background-position: 10px 10px;
  box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.6);
}
.flow:focus-visible { outline-offset: 10px; border-radius: 12px; }
.flow[hidden] { display: none; }
html:not(.js) .flow + .flow { display: none; }

.fl-stage { position: relative; aspect-ratio: 1200 / 440; }
.fl-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fl-lines.is-v { display: none; }
.fl-edge { fill: none; stroke: var(--c-oat-300); stroke-width: 2; stroke-linecap: round; }
.fl-prog { fill: none; stroke: var(--t-accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.flow.is-idle .fl-prog { stroke-dashoffset: 1; }
.fl-port { fill: #fff; stroke: var(--c-oat-300); stroke-width: 1.5; }
.fl-dot { fill: var(--t-accent); stroke: #fff; stroke-width: 2.5; opacity: 0; }
.flow.is-running .fl-dot { opacity: 1; }

/* Nodo: el centro de la baldosa cae justo en su punto (--x, --y) de la grilla del SVG */
.fl-node {
  position: absolute; left: var(--x); top: var(--y); z-index: 1; width: 132px; margin: -28px 0 0 -66px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.fl-tile {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.9), 0 1px 2px rgba(27, 26, 24, 0.05);
  transition: box-shadow 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.fl-tile .ico { width: 28px; height: 28px; }
.fl-tile.is-ui { background: var(--t-bg); color: var(--t-accent); box-shadow: inset 0 0 0 1px var(--t-chip); }
.fl-tile.is-aprob { background: var(--t-chip); color: var(--t-ink); }
.fl-ui { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-lbl { max-width: 132px; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--c-ink); text-wrap: balance; }
.fl-trig {
  position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-ink); color: #fff; box-shadow: 0 0 0 2px #fff;
}
.fl-trig svg { width: 10px; height: 10px; fill: currentColor; }
.fl-ok {
  position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--t-accent); color: #fff; box-shadow: 0 0 0 2px #fff;
  opacity: 0; transform: scale(0.4); transition: opacity 0.25s ease, transform 0.35s var(--ease-out-quart);
}
.fl-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow:not(.is-idle) .fl-node[data-c] .fl-ok, .fl-node.ok .fl-ok { opacity: 1; transform: none; }
.fl-node.on .fl-tile { box-shadow: inset 0 0 0 1px var(--t-accent), 0 0 0 5px var(--t-chip); transform: scale(1.05); }

/* Nodo agente (como el AI Agent de n8n): más ancho, con ícono y rótulo adentro; de su borde de abajo salen conectores
   punteados a subnodos redondos (modelo, memoria y herramientas) que se encienden de a uno cuando el agente los usa */
.fl-node.is-agent { width: 200px; margin-left: -100px; }
.fl-tile.fl-agent {
  width: 184px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--t-bg); color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-chip);
}
.fl-agent .fl-ui { width: 22px; height: 22px; color: var(--t-accent); }
.fl-agent-t { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--t-ink); white-space: nowrap; }
.fl-sub {
  position: absolute; left: var(--x); top: var(--y); z-index: 1; width: 108px; margin: -22px 0 0 -54px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.fl-sub-tile {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.9);
  transition: box-shadow 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
.fl-sub-tile .ico { width: 22px; height: 22px; }
.fl-sub-tile.is-ui { color: var(--t-accent); }
.fl-sub-tile .fl-ui { width: 20px; height: 20px; }
.fl-sub-lbl { max-width: 104px; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--c-oat-800); text-wrap: balance; }
.fl-sub .fl-ok { right: -5px; top: -5px; width: 16px; height: 16px; }
.fl-sub .fl-ok svg { width: 10px; height: 10px; }
.flow:not(.is-idle) .fl-sub .fl-ok, .fl-sub.ok .fl-ok { opacity: 1; transform: none; }
.fl-sub.on .fl-sub-tile { box-shadow: inset 0 0 0 1px var(--t-accent), 0 0 0 5px var(--t-chip); transform: scale(1.08); }
.fl-tool { fill: none; stroke: var(--c-oat-300); stroke-width: 1.6; stroke-dasharray: 4 5; stroke-linecap: round; transition: stroke 0.3s ease; }
.flow:not(.is-idle) .fl-tool, .fl-tool.on, .fl-tool.ok { stroke: var(--t-accent); }
.fl-tool.on { animation: hormiga 0.6s linear infinite; }
@keyframes hormiga { to { stroke-dashoffset: -9; } }
.fl-port-sub { fill: #fff; stroke: var(--t-accent); }

/* Rótulo de rama sobre la curva (como los "true / false" de n8n) */
.fl-pill {
  position: absolute; left: var(--x); top: var(--y); z-index: 1; transform: translate(-50%, -50%);
  padding: 2px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--c-oat-300);
  font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--c-oat-800); white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.flow:not(.is-idle) .fl-pill[data-c], .fl-pill.ok { background: var(--t-bg); color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-accent); }

/* Tira de logos ("se integra con"): corre a 24 px/s como la marquesina de Clay; sin JS o con movimiento reducido, quieta */
.mq { position: relative; margin-top: 32px; }
.mq-track { display: flex; }
.mq-set { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lg { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--c-oat-100); box-shadow: var(--bevel); }
.lg .ico { width: 30px; height: 30px; }
.mq.is-on { margin-inline: -48px; overflow: hidden; }
.mq.is-on .mq-track { width: max-content; animation: mq var(--mq-dur, 70s) linear infinite; }
.mq.is-on .mq-set { flex-wrap: nowrap; justify-content: flex-start; padding-right: 12px; }
.mq.is-on:hover .mq-track, .mq.is-paused .mq-track { animation-play-state: paused; }
.mq.is-on::before, .mq.is-on::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 256px; pointer-events: none; }
.mq.is-on::before { left: 0; background: linear-gradient(to right, var(--c-oat-200), rgba(244, 243, 240, 0)); }
.mq.is-on::after { right: 0; background: linear-gradient(to left, var(--c-oat-200), rgba(244, 243, 240, 0)); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Logos de Simple Icons: máscara del SVG pintada con el color de cada marca */
.ico {
  display: block; width: 22px; height: 22px; background-color: var(--b);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.i-whatsapp { --b: #25D366; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/whatsapp.svg"); }
.i-gmail { --b: #EA4335; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/gmail.svg"); }
.i-googlesheets { --b: #34A853; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googlesheets.svg"); }
.i-googledrive { --b: #4285F4; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googledrive.svg"); }
.i-googlecalendar { --b: #4285F4; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googlecalendar.svg"); }
.i-googlemeet { --b: #00897B; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googlemeet.svg"); }
.i-googleforms { --b: #7248B9; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googleforms.svg"); }
.i-googledocs { --b: #4285F4; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/googledocs.svg"); }
.i-notion { --b: #000000; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/notion.svg"); }
.i-hubspot { --b: #FF7A59; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/hubspot.svg"); }
.i-airtable { --b: #18BFFF; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/airtable.svg"); }
.i-trello { --b: #0052CC; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/trello.svg"); }
.i-mercadopago { --b: #00B1EA; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/mercadopago.svg"); }
.i-shopify { --b: #7AB55C; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/shopify.svg"); }
.i-claude { --b: #D97757; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/claude.svg"); }
.i-calendly { --b: #006BFF; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/calendly.svg"); }
.i-dropbox { --b: #0061FF; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/dropbox.svg"); }
.i-asana { --b: #F06A6A; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/asana.svg"); }
.i-clickup { --b: #7B68EE; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/clickup.svg"); }
.i-telegram { --b: #26A5E4; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/telegram.svg"); }
.i-instagram { --b: #FF0069; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/instagram.svg"); }
.i-todoist { --b: #E44332; --m: url("https://cdn.jsdelivr.net/npm/simple-icons@16.34.0/icons/todoist.svg"); }

/* ============ En la práctica: comparador de dos capas (lo que ve el cliente / el flujo que lo resuelve) ============ */
/* Abajo la realidad (avena) y arriba el flujo (tablero blanco de puntos), en el mismo lienzo: todo se mide en unidades
   --u (1/1184 del ancho en escritorio, 1/320 en celular), así cada pieza queda debajo del nodo que la produce a cualquier
   ancho. La línea recorta la capa del flujo (clip-path) según --pos. */
.cx { position: relative; z-index: 2; padding: 16px 0 48px; }
.cx-head { max-width: 1100px; margin: 0 auto; text-align: center; }
.cx-head .eyebrow { margin-bottom: 16px; }
.cx-h { color: var(--c-ink); }
.cx-p { max-width: 860px; margin: 16px auto 0; font-size: 19px; line-height: 1.3; color: var(--c-ink); text-wrap: balance; }

.cx-marco {
  position: relative; width: min(100%, 1184px); margin: 18px auto 0; border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  background: var(--c-oat-200); box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.6);
}
.js .cx-marco { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cx-capa-t { padding: 14px 20px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-oat-800); }
.js .cx-capa-t { display: none; }
.cx-flujo {
  background-color: #fff; background-image: radial-gradient(circle, var(--c-border) 1.1px, transparent 1.6px);
  background-size: 20px 20px; background-position: 10px 10px;
}
.js .cx-flujo { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.cx-lienzo { position: relative; container-type: inline-size; }
.cx-lienzo.is-h { --u: calc(100cqw / 1184); aspect-ratio: 1184 / var(--lh, 600); }
.cx-lienzo.is-v { --u: calc(100cqw / 320); aspect-ratio: 320 / var(--lv, 800); display: none; width: min(100%, 360px); margin-inline: auto; }

/* Realidad: chat de WhatsApp, ficha de HubSpot y día de Google Calendar (versiones simplificadas, con el logo de cada app) */
.cx-chat, .cx-card, .cx-barra {
  position: absolute; left: calc(var(--l) * var(--u)); top: calc(var(--t) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
}
.cx-chat { border-radius: calc(20 * var(--u)); background: var(--c-oat-100); box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.6); overflow: hidden; }
.cx-chat-head { display: flex; align-items: center; gap: calc(10 * var(--u)); height: calc(56 * var(--u)); padding: 0 calc(16 * var(--u)); background: #fff; border-bottom: 1px solid var(--c-oat-200); }
.cx-logo { flex: none; display: grid; place-items: center; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(9 * var(--u)); background: #fff; box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.9); }
.cx-logo .ico { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.cx-chat-who { display: flex; flex-direction: column; line-height: 1.2; }
.cx-chat-who b { font-size: calc(15 * var(--u)); font-weight: 600; color: var(--c-ink); }
.cx-chat-who small { font-size: calc(12 * var(--u)); color: var(--c-oat-800); }
.cx-msg {
  position: absolute; top: calc(var(--t) * var(--u)); left: calc(var(--l) * var(--u)); right: calc(var(--r) * var(--u)); max-width: calc(var(--mw) * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(6 * var(--u)); border-radius: calc(14 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.35; color: var(--c-ink); text-wrap: pretty;
}
.cx-msg.is-in { background: #fff; border-top-left-radius: calc(4 * var(--u)); box-shadow: var(--bevel), 0 1px 1px rgba(27, 26, 24, 0.04); }
.cx-msg.is-out { background: var(--lime-100); border-top-right-radius: calc(4 * var(--u)); box-shadow: inset 0 0 0 1px var(--lime-200); }
.cx-hora { float: right; margin: calc(5 * var(--u)) 0 0 calc(10 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1; color: var(--c-oat-800); }
.cx-barra { border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.8); }

.cx-card { padding: calc(20 * var(--u)); border-radius: calc(20 * var(--u)); background: #fff; box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.6); overflow: hidden; }
.cx-card-head { display: flex; align-items: center; gap: calc(10 * var(--u)); margin-bottom: calc(16 * var(--u)); }
.cx-card-k { font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-oat-800); }
.cx-nombre { font-size: calc(22 * var(--u)); font-weight: 600; line-height: 1.2; color: var(--c-ink); }
.cx-empresa { margin-top: calc(2 * var(--u)); font-size: calc(14 * var(--u)); color: var(--c-oat-800); }
.cx-campos { margin: calc(16 * var(--u)) 0 0; }
.cx-campos div { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) 0; border-top: 1px solid var(--c-oat-200); }
.cx-campos dt { font-size: calc(12 * var(--u)); color: var(--c-oat-800); }
.cx-campos dd { margin: 0; display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 500; color: var(--c-ink); }
.cx-nuevo { padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: 999px; background: var(--ube-100); color: var(--ube-400); font-size: calc(10 * var(--u)); font-weight: 600; }
.cx-act { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-top: calc(14 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--c-oat-150); font-size: calc(13 * var(--u)); color: var(--c-ink); }
.cx-punto { flex: none; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--ube-400); }

.cx-dia { position: relative; }
.cx-hr { position: absolute; left: 0; right: 0; top: calc(var(--t) * var(--u)); padding-top: calc(3 * var(--u)); border-top: 1px solid var(--c-oat-200); font-size: calc(11 * var(--u)); color: var(--c-oat-800); }
.cx-evento {
  position: absolute; left: calc(52 * var(--u)); right: 0; top: calc(var(--t) * var(--u)); height: calc(var(--h) * var(--u)); display: flex; flex-direction: column; gap: calc(2 * var(--u));
  padding: calc(6 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--blueberry-100); box-shadow: inset calc(3 * var(--u)) 0 0 var(--blueberry-400);
  font-size: calc(12 * var(--u)); line-height: 1.25; color: var(--blueberry-500); overflow: hidden;
}
.cx-evento b { font-size: calc(13 * var(--u)); font-weight: 600; }
.cx-ejemplo {
  position: absolute; right: calc(16 * var(--u)); bottom: calc(10 * var(--u)); padding: calc(3 * var(--u)) calc(9 * var(--u)); border-radius: 999px; background: var(--c-ink); color: #fff;
  font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.04em;
}
/* Versión compacta (celular) */
.cx-lienzo.is-v .cx-msg { font-size: calc(12 * var(--u)); }
.cx-card.is-compacta { padding: calc(14 * var(--u)); }
.cx-card.is-compacta .cx-card-head { margin-bottom: calc(8 * var(--u)); }
.cx-card.is-compacta .cx-nombre { font-size: calc(17 * var(--u)); }
.cx-card.is-compacta .cx-empresa { font-size: calc(13 * var(--u)); }
.cx-card.is-compacta .cx-campos { margin-top: calc(6 * var(--u)); }
.cx-card.is-compacta .cx-campos div { padding: calc(6 * var(--u)) 0; }
.cx-card.is-compacta .cx-campos div:nth-child(2) { display: none; } /* en celular, sin "Cliente desde" */
.cx-cal.is-compacta .cx-evento span:nth-of-type(n+2) { display: none; }

/* Flujo (escritorio) a la medida del lienzo: mismos nodos que Integraciones, en unidades --u */
.cx-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cx-lienzo.is-h .fl-node { width: calc(136 * var(--u)); margin: calc(-28 * var(--u)) 0 0 calc(-68 * var(--u)); gap: calc(8 * var(--u)); }
.cx-lienzo.is-h .fl-node.is-agent { width: calc(200 * var(--u)); margin-left: calc(-100 * var(--u)); }
.cx-lienzo.is-h .fl-tile { width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: calc(16 * var(--u)); }
.cx-lienzo.is-h .fl-tile.fl-agent { width: calc(184 * var(--u)); gap: calc(10 * var(--u)); }
.cx-lienzo.is-h .fl-tile .ico { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.cx-lienzo.is-h .fl-ui { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
.cx-lienzo.is-h .fl-agent .fl-ui { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.cx-lienzo.is-h .fl-agent-t { font-size: calc(15 * var(--u)); }
.cx-lienzo.is-h .fl-lbl { max-width: calc(132 * var(--u)); font-size: calc(13 * var(--u)); }
.cx-lienzo.is-h .fl-ok { width: calc(20 * var(--u)); height: calc(20 * var(--u)); right: calc(-7 * var(--u)); top: calc(-7 * var(--u)); }
.cx-lienzo.is-h .fl-ok svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.cx-lienzo.is-h .fl-trig { width: calc(18 * var(--u)); height: calc(18 * var(--u)); left: calc(-9 * var(--u)); margin-top: calc(-9 * var(--u)); }
.cx-lienzo.is-h .fl-trig svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }
.cx-lienzo.is-h .fl-sub { width: calc(108 * var(--u)); margin: calc(-22 * var(--u)) 0 0 calc(-54 * var(--u)); gap: calc(6 * var(--u)); }
.cx-lienzo.is-h .fl-sub-tile { width: calc(44 * var(--u)); height: calc(44 * var(--u)); }
.cx-lienzo.is-h .fl-sub-tile .ico { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.cx-lienzo.is-h .fl-sub-tile .fl-ui { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.cx-lienzo.is-h .fl-sub-lbl { max-width: calc(104 * var(--u)); font-size: calc(12 * var(--u)); }
.cx-lienzo.is-h .fl-sub .fl-ok { width: calc(16 * var(--u)); height: calc(16 * var(--u)); right: calc(-5 * var(--u)); top: calc(-5 * var(--u)); }
.cx-lienzo.is-h .fl-sub .fl-ok svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }
.cx-lienzo.is-h .fl-pill { padding: calc(2 * var(--u)) calc(9 * var(--u)); font-size: calc(12 * var(--u)); }
/* El flujo se muestra completo (sin ejecución animada): camino, subnodos y rama "Sí" marcados */
.cx-flujo .fl-node[data-c] .fl-ok, .cx-flujo .fl-sub .fl-ok { opacity: 1; transform: none; }
.cx-flujo .fl-tool { stroke: var(--t-accent); }
.cx-flujo .fl-pill[data-c] { background: var(--t-bg); color: var(--t-ink); box-shadow: inset 0 0 0 1px var(--t-accent); }
.cx-flujo .fl-dot { display: none; }

/* Línea con manija (estilo Clay) y rótulos que acompañan a la línea */
.cx-linea { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: var(--c-ink); pointer-events: none; }
.cx-manija {
  position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; color: var(--c-ink); cursor: ew-resize; pointer-events: auto;
  box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.9); transition: transform 0.2s var(--ease-out-quart);
}
.cx-manija svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-manija:hover, .cx-marco.is-arrastre .cx-manija { transform: scale(1.06); }
.cx-manija:focus-visible { outline-offset: 4px; }
.cx-tag {
  position: absolute; top: 8px; z-index: 3; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4;
  white-space: nowrap; pointer-events: none; transition: opacity 0.2s ease;
}
.cx-tag-izq { right: calc(100% - var(--pos) + 14px); background: var(--t-chip); color: var(--t-ink); }
.cx-tag-der { left: calc(var(--pos) + 14px); background: #fff; color: var(--c-ink); box-shadow: var(--bevel); }
html:not(.js) .cx-linea, html:not(.js) .cx-tag, html:not(.js) .cx-modo { display: none; }

/* Interruptor de vista (celular y tablet): control segmentado, con otro estilo que los chips de casos para que no se
   confundan. El seleccionado es la pastilla blanca; el riel es gris. */
.cx-modo { display: none; width: min(100%, 420px); margin: 16px auto 0; padding: 4px; gap: 4px; border-radius: 14px; background: var(--c-border); }
.cx-modo-b {
  flex: 1 1 0; min-width: 0; height: 38px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--c-oat-800);
  font: 600 0.84rem/1.3 var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.cx-modo-b[aria-pressed="true"] { background: #fff; color: var(--c-ink); box-shadow: 0 1px 3px rgba(27, 26, 24, 0.12); }

/* ============ Ronda 8: varios casos con selector (chips como Integraciones) ============ */
.cx-casos { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.cx-caso-b {
  flex: none; height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--c-oat-100); box-shadow: var(--bevel);
  color: var(--c-ink); font: 500 16px/1.5 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease-out-circ);
}
.cx-caso-b:hover { background: #fff; }
.cx-caso-b[aria-selected="true"] { background: var(--t-chip); box-shadow: none; }
html:not(.js) .cx-casos { display: none; }
.cx-panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
.cx-caso-t { display: none; }
html:not(.js) .cx-caso-t { display: block; margin-top: 48px; font-size: 26px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--c-ink); }
html:not(.js) .cx-panel:first-of-type .cx-caso-t { margin-top: 32px; }
.cx-caso-p { max-width: 980px; margin: 14px auto 0; font-size: 16px; line-height: 1.35; text-align: center; color: var(--c-oat-800); text-wrap: balance; }

/* Colores de cada agente y de las personas (avatares y subnodos de agente): familias de Clay; las personas en tinta */
.a-ube { --a-bg: var(--ube-200); --a-ink: var(--ube-500); }
.a-blueberry { --a-bg: var(--blueberry-200); --a-ink: var(--blueberry-500); }
.a-lime { --a-bg: var(--lime-200); --a-ink: var(--lime-500); }
.a-dragonfruit { --a-bg: var(--dragonfruit-200); --a-ink: var(--dragonfruit-500); }
.a-slushie { --a-bg: var(--slushie-200); --a-ink: var(--slushie-500); }
.a-pomegranate { --a-bg: var(--pomegranate-200); --a-ink: var(--pomegranate-500); }
.a-persona { --a-bg: var(--c-ink); --a-ink: #fff; }

/* Logo de Slack: no está en Simple Icons; viene de Devicon por CDN, en sus colores (fondo, no máscara) */
.ico.i-slack { background: url("https://cdn.jsdelivr.net/npm/devicon@2.17.0/icons/slack/slack-original.svg") center / contain no-repeat; -webkit-mask: none; mask: none; }

/* Ventana de Slack simplificada: barra lateral (estudio, canales y agentes) y el canal abierto con el hilo */
.cx-slack {
  position: absolute; left: calc(var(--l) * var(--u)); top: calc(var(--t) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  display: flex; border-radius: calc(18 * var(--u)); background: #fff; box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.6); overflow: hidden;
}
.cx-sl-side { flex: none; width: calc(var(--sw, 148) * var(--u)); padding: calc(14 * var(--u)) calc(10 * var(--u)); background: var(--ube-500); color: rgba(255, 255, 255, 0.74); }
.cx-sl-ws { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: 0 calc(6 * var(--u)) calc(12 * var(--u)); border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-size: calc(13.5 * var(--u)); font-weight: 700; line-height: 1.2; color: #fff; }
.cx-sl-ws .ico { flex: none; width: calc(20 * var(--u)); height: calc(20 * var(--u)); padding: calc(3 * var(--u)); border-radius: calc(6 * var(--u)); background-color: #fff; background-origin: content-box; }
.cx-sl-sec { margin: calc(14 * var(--u)) calc(6 * var(--u)) calc(4 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.6); }
.cx-sl-li {
  display: flex; align-items: center; gap: calc(7 * var(--u)); height: calc(26 * var(--u)); padding: 0 calc(6 * var(--u)); border-radius: calc(6 * var(--u));
  font-size: calc(12.5 * var(--u)); line-height: 1.2; white-space: nowrap; overflow: hidden;
}
.cx-sl-li > svg { flex: none; width: calc(13 * var(--u)); height: calc(13 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cx-sl-li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cx-sl-li.is-on { background: var(--ube-400); color: #fff; font-weight: 600; }
.cx-sl-li .cx-av { width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: calc(5 * var(--u)); }
.cx-sl-li .cx-av svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
.cx-sl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cx-sl-head {
  flex: none; display: flex; align-items: center; gap: calc(6 * var(--u)); height: calc(48 * var(--u)); padding: 0 calc(18 * var(--u));
  border-bottom: 1px solid var(--c-oat-200); font-size: calc(15 * var(--u)); font-weight: 700; color: var(--c-ink);
}
.cx-sl-head > svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cx-sl-head .cx-logo { margin-right: calc(4 * var(--u)); }
.cx-sl-head.is-movil { height: auto; padding: calc(10 * var(--u)) calc(14 * var(--u)); gap: calc(10 * var(--u)); }
.cx-sl-head.is-movil .cx-chat-who { min-width: 0; }
.cx-sl-head.is-movil small { margin-left: 0; }
.cx-sl-head.is-movil b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-sl-head small { margin-left: auto; font-size: calc(11 * var(--u)); font-weight: 500; color: var(--c-oat-800); }
.cx-sl-hilo { flex: none; display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(16 * var(--u)) 0; }
.cx-sl-msg { display: grid; grid-template-columns: calc(32 * var(--u)) minmax(0, 1fr); column-gap: calc(10 * var(--u)); }
.cx-sl-msg.is-seguido { margin-top: calc(-6 * var(--u)); }
.cx-sl-msg.is-seguido > .cx-sl-cuerpo { grid-column: 2; }
.cx-av {
  display: grid; place-items: center; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(8 * var(--u));
  background: var(--a-bg); color: var(--a-ink); font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.cx-av svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-sl-quien { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(13 * var(--u)); line-height: 1.35; color: var(--c-ink); }
.cx-sl-quien b { font-weight: 700; }
.cx-sl-tag { padding: calc(1 * var(--u)) calc(5 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--c-oat-200); font-size: calc(9.5 * var(--u)); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-oat-800); }
.cx-sl-hora { font-size: calc(11 * var(--u)); color: var(--c-oat-800); }
.cx-sl-txt { font-size: calc(13 * var(--u)); line-height: 1.38; color: var(--c-ink); text-wrap: pretty; }
.cx-sl-txt + .cx-sl-paso, .cx-sl-paso + .cx-sl-txt { margin-top: calc(5 * var(--u)); }
.cx-sl-men { padding: 0 calc(2 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--blueberry-100); color: var(--blueberry-400); font-weight: 600; }
.cx-sl-resp { margin-top: calc(5 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 700; line-height: 1.3; color: var(--blueberry-400); }
.cx-sl-paso {
  display: flex; align-items: center; gap: calc(8 * var(--u)); width: fit-content; max-width: 100%; margin-top: calc(4 * var(--u));
  padding: calc(3 * var(--u)) calc(9 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)); border-radius: calc(8 * var(--u));
  background: var(--c-oat-150); box-shadow: inset 0 0 0 1px var(--c-oat-200); font-size: calc(12.5 * var(--u)); line-height: 1.3; color: var(--c-ink);
}
.cx-sl-app { flex: none; display: grid; place-items: center; width: calc(22 * var(--u)); height: calc(22 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.9); color: var(--c-ink); }
.cx-sl-app .ico { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.cx-sl-app svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cx-sl-ok { flex: none; display: grid; place-items: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%; background: var(--lime-200); color: var(--lime-500); }
.cx-sl-ok svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-sl-botones { display: flex; gap: calc(8 * var(--u)); margin-top: calc(7 * var(--u)); }
.cx-sl-btn { padding: calc(4 * var(--u)) calc(14 * var(--u)); border-radius: calc(6 * var(--u)); background: #fff; box-shadow: inset 0 0 0 1px var(--c-oat-300); font-size: calc(12.5 * var(--u)); font-weight: 700; line-height: 1.4; color: var(--c-ink); }
.cx-sl-btn.is-primario { background: var(--c-hero-bg); box-shadow: none; color: #fff; }
.cx-sl-aprobado { display: flex; align-items: center; gap: calc(5 * var(--u)); margin-top: calc(6 * var(--u)); font-size: calc(11.5 * var(--u)); line-height: 1.3; color: var(--c-oat-800); }
.cx-sl-aprobado .cx-sl-ok { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.cx-sl-comp {
  flex: none; display: flex; align-items: center; height: calc(32 * var(--u)); margin: auto calc(16 * var(--u)) calc(14 * var(--u)); padding: 0 calc(12 * var(--u));
  border-radius: calc(8 * var(--u)); box-shadow: inset 0 0 0 1px var(--c-oat-300); font-size: calc(12 * var(--u)); color: var(--c-muted-aa); white-space: nowrap; overflow: hidden;
}

/* Chat de WhatsApp con mensajes en fila (caso de pedidos): respuestas fijas de WhatsApp Business */
.cx-chat.is-fila { display: flex; flex-direction: column; }
.cx-chat.is-fila .cx-chat-head { flex: none; }
.cx-chat.is-fila .cx-msg { font-size: calc(13.5 * var(--u)); }
.cx-msg.is-fila.is-pie { padding-bottom: calc(18 * var(--u)); }
.cx-msg.is-fila.is-pie .cx-hora { position: absolute; right: calc(10 * var(--u)); bottom: calc(6 * var(--u)); float: none; margin: 0; }
.cx-chat-hilo { flex: none; display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)) 0; }
.cx-msg.is-fila { position: relative; top: auto; left: auto; right: auto; max-width: calc(var(--mw, 300) * var(--u)); }
.cx-msg.is-fila.is-in { align-self: flex-start; }
.cx-msg.is-fila.is-out { align-self: flex-end; }
.cx-chat-empresa { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); }
.cx-chat-empresa svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-wa-b { display: block; margin-bottom: calc(4 * var(--u)); font-weight: 700; }
.cx-wa-items { margin: 0 0 calc(4 * var(--u)); padding: 0; list-style: none; }
.cx-wa-items li { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); }
.cx-wa-total { display: flex; justify-content: space-between; gap: calc(12 * var(--u)); padding-top: calc(5 * var(--u)); border-top: 1px solid var(--lime-200); font-weight: 700; }
.cx-wa-rapidas { display: grid; grid-template-columns: 1fr 1fr; gap: calc(6 * var(--u)); align-self: flex-end; width: calc(var(--mw, 300) * var(--u)); margin-top: calc(-6 * var(--u)); }
.cx-wa-rapida { padding: calc(6 * var(--u)) calc(8 * var(--u)); border-radius: calc(10 * var(--u)); background: #fff; box-shadow: var(--bevel), 0 1px 1px rgba(27, 26, 24, 0.05); font-size: calc(12.5 * var(--u)); font-weight: 700; line-height: 1.3; text-align: center; color: var(--blueberry-400); }
.cx-wa-link, .cx-wa-doc { display: flex; align-items: center; gap: calc(9 * var(--u)); margin: calc(-2 * var(--u)) calc(-6 * var(--u)) calc(6 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(9 * var(--u)); background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px var(--lime-200); }
.cx-wa-link .cx-logo, .cx-wa-doc .cx-logo { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(8 * var(--u)); }
.cx-wa-doc .cx-logo { color: var(--pomegranate-400); }
.cx-wa-doc .cx-logo svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-wa-link b, .cx-wa-doc b { display: block; font-size: calc(13 * var(--u)); line-height: 1.25; }
.cx-wa-link small, .cx-wa-doc small { display: block; font-size: calc(11 * var(--u)); line-height: 1.25; color: var(--c-oat-800); }
.cx-chat .cx-barra.is-fila { position: relative; left: auto; top: auto; width: auto; height: calc(36 * var(--u)); margin: auto calc(16 * var(--u)) calc(12 * var(--u)); }

/* Piezas chicas de cada app (tarjetas): encabezado con logo y estado, y el contenido justo */
.cx-card-head .cx-est { margin-left: auto; }
.cx-est { padding: calc(2 * var(--u)) calc(8 * var(--u)); border-radius: 999px; background: var(--c-oat-200); font-size: calc(10.5 * var(--u)); font-weight: 700; line-height: 1.5; color: var(--c-oat-800); white-space: nowrap; }
.cx-est.is-ok { background: var(--lime-200); color: var(--lime-500); }
.cx-est.is-borr { background: var(--dragonfruit-100); color: var(--dragonfruit-400); }
.cx-doc-t { font-size: calc(17 * var(--u)); font-weight: 700; line-height: 1.2; color: var(--c-ink); }
.cx-doc-sub { margin-top: calc(3 * var(--u)); font-size: calc(12 * var(--u)); color: var(--c-oat-800); }
.cx-doc-h { margin-top: calc(14 * var(--u)); font-size: calc(10.5 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-oat-800); }
.cx-doc-p { margin-top: calc(5 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: 1.4; color: var(--c-ink); }
.cx-doc-lista { margin: calc(6 * var(--u)) 0 0; padding: 0; list-style: none; }
.cx-doc-lista li { display: flex; align-items: flex-start; gap: calc(8 * var(--u)); padding: calc(4 * var(--u)) 0; font-size: calc(12.5 * var(--u)); line-height: 1.35; color: var(--c-ink); }
.cx-doc-lista li::before { content: ""; flex: none; width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-top: calc(3 * var(--u)); border-radius: calc(3 * var(--u)); box-shadow: inset 0 0 0 1.5px var(--c-oat-300); }
.cx-mail-campo { display: flex; gap: calc(8 * var(--u)); padding: calc(6 * var(--u)) 0; border-top: 1px solid var(--c-oat-200); font-size: calc(12.5 * var(--u)); line-height: 1.35; color: var(--c-ink); }
.cx-mail-campo:first-of-type { border-top: 0; padding-top: 0; }
.cx-mail-campo span:first-child { flex: none; width: calc(46 * var(--u)); color: var(--c-oat-800); }
.cx-mail-campo b { font-weight: 600; }
.cx-mail-cuerpo { margin-top: calc(4 * var(--u)); padding-top: calc(9 * var(--u)); border-top: 1px solid var(--c-oat-200); font-size: calc(12.5 * var(--u)); line-height: 1.4; color: var(--c-ink); }
.cx-adjunto { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); margin-top: calc(10 * var(--u)); padding: calc(5 * var(--u)) calc(10 * var(--u)) calc(5 * var(--u)) calc(6 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--c-oat-150); box-shadow: inset 0 0 0 1px var(--c-oat-200); font-size: calc(12 * var(--u)); font-weight: 600; color: var(--c-ink); }
.cx-adjunto .ico { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
/* Semana de Calendar (dos días) */
.cx-sem-dias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(6 * var(--u)); margin-left: calc(40 * var(--u)); font-size: calc(11 * var(--u)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-oat-800); }
.cx-sem-grid { position: relative; margin-top: calc(8 * var(--u)); }
.cx-sem-grid .cx-hr { padding-right: 0; }
.cx-ev {
  position: absolute; top: calc(var(--t) * var(--u)); height: calc(var(--h) * var(--u)); left: calc(40 * var(--u) + var(--c) * (100% - 40 * var(--u)) / 2 + var(--c) * 3 * var(--u)); width: calc((100% - 40 * var(--u)) / 2 - 3 * var(--u));
  display: flex; flex-direction: column; gap: calc(2 * var(--u)); padding: calc(5 * var(--u)) calc(8 * var(--u)); border-radius: calc(7 * var(--u));
  background: var(--blueberry-100); box-shadow: inset calc(3 * var(--u)) 0 0 var(--blueberry-300); font-size: calc(11.5 * var(--u)); line-height: 1.25; color: var(--blueberry-500); overflow: hidden;
}
.cx-ev b { font-size: calc(12 * var(--u)); font-weight: 700; }
.cx-ev.is-dia { left: calc(46 * var(--u)); right: 0; width: auto; }
.cx-ev span, .cx-ev b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-ev.is-nuevo { background: var(--blueberry-200); box-shadow: inset calc(3 * var(--u)) 0 0 var(--blueberry-400), 0 0 0 calc(2 * var(--u)) #fff, 0 0 0 calc(3.5 * var(--u)) var(--blueberry-400); }
/* Lista de HubSpot, planilla de Sheets, tablero de Trello y cobro de Mercado Pago */
.cx-fila { display: flex; align-items: center; justify-content: space-between; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) 0; border-top: 1px solid var(--c-oat-200); }
.cx-fila b { display: block; font-size: calc(13 * var(--u)); font-weight: 600; line-height: 1.25; color: var(--c-ink); }
.cx-fila small { display: block; font-size: calc(11.5 * var(--u)); line-height: 1.3; color: var(--c-oat-800); }
.cx-mas { margin-top: calc(6 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; color: var(--c-oat-800); }
.cx-hoja { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: calc(11.5 * var(--u)); line-height: 1.25; color: var(--c-ink); }
.cx-hoja th, .cx-hoja td { padding: calc(6 * var(--u)) calc(6 * var(--u)); border: 1px solid var(--c-oat-200); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-hoja thead th { background: var(--c-oat-150); font-weight: 700; color: var(--c-oat-800); }
.cx-hoja .n { text-align: right; font-size: inherit; font-weight: inherit; letter-spacing: 0; color: inherit; font-variant-numeric: tabular-nums; } /* sin la regla general .n de los números de pasos */
.cx-hoja tr.is-marca td { background: var(--lime-100); font-weight: 600; }
.cx-hoja tr.is-total td { font-weight: 700; }
.cx-hoja-t { margin: calc(14 * var(--u)) 0 calc(6 * var(--u)); font-size: calc(10.5 * var(--u)); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-oat-800); }
.cx-hoja-t:first-of-type { margin-top: 0; }
.cx-tr-col { padding: calc(8 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--c-oat-200); }
.cx-tr-head { padding: calc(2 * var(--u)) calc(4 * var(--u)) calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 700; color: var(--c-ink); }
.cx-tr-card { margin-top: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: calc(8 * var(--u)); background: #fff; box-shadow: 0 1px 1px rgba(27, 26, 24, 0.08); font-size: calc(12 * var(--u)); line-height: 1.3; color: var(--c-oat-800); }
.cx-tr-card:first-of-type { margin-top: 0; }
.cx-tr-card b { display: block; font-size: calc(12.5 * var(--u)); font-weight: 600; color: var(--c-ink); }
.cx-tr-card.is-nuevo { box-shadow: 0 0 0 calc(1.5 * var(--u)) var(--slushie-400), 0 2px 6px rgba(27, 26, 24, 0.08); }
.cx-tr-lbls { display: flex; gap: calc(4 * var(--u)); margin-bottom: calc(5 * var(--u)); }
.cx-tr-lbl { padding: 0 calc(6 * var(--u)); border-radius: calc(4 * var(--u)); background: var(--lime-200); font-size: calc(10 * var(--u)); font-weight: 700; line-height: 1.6; color: var(--lime-500); }
.cx-tr-lbl.is-b { background: var(--slushie-200); color: var(--slushie-500); }
.cx-tr-pie { display: flex; align-items: center; gap: calc(5 * var(--u)); margin-top: calc(6 * var(--u)); font-size: calc(11 * var(--u)); color: var(--c-oat-800); }
.cx-tr-pie svg { width: calc(12 * var(--u)); height: calc(12 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-mp-ok { display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(14 * var(--u)); font-weight: 700; color: var(--c-ink); }
.cx-mp-ok .cx-sl-ok { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.cx-mp-ok .cx-sl-ok svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.cx-mp-monto { margin-top: calc(8 * var(--u)); font-size: calc(26 * var(--u)); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cx-card .cx-campos.is-chica { margin-top: calc(10 * var(--u)); }
.cx-card.cx-mail, .cx-card.cx-mp { padding: calc(16 * var(--u)) calc(18 * var(--u)); }
.cx-card.cx-mail .cx-card-head, .cx-card.cx-mp .cx-card-head { margin-bottom: calc(12 * var(--u)); }

/* Realidad apilada (celular): las piezas una abajo de la otra; el lienzo crece con el contenido */
.cx-lienzo.is-pila { flex-direction: column; gap: calc(14 * var(--u)); padding: calc(8 * var(--u)) calc(8 * var(--u)) calc(34 * var(--u)); }
.cx-lienzo.is-pila > :not(.cx-ejemplo) { position: relative; left: auto; top: auto; width: auto; height: auto; }
.cx-lienzo.is-pila .cx-slack { min-height: 0; }
.cx-lienzo.is-pila .cx-sl-hilo, .cx-lienzo.is-pila .cx-chat-hilo { padding-bottom: calc(14 * var(--u)); }
.cx-lienzo.is-pila .cx-sl-comp { margin-top: calc(12 * var(--u)); }
.cx-lienzo.is-pila .cx-chat.is-fila .cx-barra { margin-top: calc(12 * var(--u)); }

/* Flujo: subnodos de agente (cuadrados redondeados con el color de cada agente) y sus herramientas */
/* Ronda 10: un agente por caso, con baldosa ancha para el nombre del puesto; rótulos de una línea o más angostos */
.fl-node.is-agent.is-ancho { width: 250px; margin-left: -125px; }
.fl-node.is-agent.is-ancho .fl-tile.fl-agent { width: 236px; }
.cx-lienzo.is-h .fl-node.is-agent.is-ancho { width: calc(250 * var(--u)); margin-left: calc(-125 * var(--u)); }
.cx-lienzo.is-h .fl-node.is-agent.is-ancho .fl-tile.fl-agent { width: calc(236 * var(--u)); }
.cx-lienzo.is-h .fl-node.is-ancho:not(.is-agent) { width: calc(180 * var(--u)); margin-left: calc(-90 * var(--u)); }
.cx-lienzo.is-h .fl-node.is-ancho .fl-lbl { max-width: calc(176 * var(--u)); }
.fl-node.is-chico .fl-lbl { max-width: 92px; }

/* Caja proyectada (Google Sheets): barras por día, la línea punteada del mínimo y la tabla con el día que no llega */
.cx-est.is-alerta { background: var(--pomegranate-100); color: var(--pomegranate-400); }
.cx-graf { margin-top: calc(2 * var(--u)); }
.cx-graf-area { position: relative; display: flex; align-items: flex-end; gap: calc(9 * var(--u)); height: calc(120 * var(--u)); padding: 0 calc(4 * var(--u)); border-bottom: 1px solid var(--c-oat-300); }
.cx-bar { flex: 1; height: calc(var(--v) * 100%); border-radius: calc(5 * var(--u)) calc(5 * var(--u)) 0 0; background: var(--c-oat-300); }
.cx-bar.is-bajo { background: var(--pomegranate-300); }
.cx-min { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100%); border-top: calc(1.5 * var(--u)) dashed var(--pomegranate-400); }
.cx-graf-dias { display: flex; gap: calc(9 * var(--u)); padding: calc(5 * var(--u)) calc(4 * var(--u)) 0; }
.cx-graf-dias span { flex: 1; min-width: 0; font-size: calc(10 * var(--u)); line-height: 1.2; text-align: center; color: var(--c-oat-800); white-space: nowrap; }
.cx-graf-dias .is-bajo { font-weight: 700; color: var(--pomegranate-400); }
.cx-leyenda { display: flex; align-items: center; gap: calc(7 * var(--u)); margin: calc(10 * var(--u)) 0 calc(12 * var(--u)); font-size: calc(11.5 * var(--u)); font-weight: 600; color: var(--pomegranate-400); }
.cx-leyenda i { width: calc(18 * var(--u)); border-top: calc(1.5 * var(--u)) dashed var(--pomegranate-400); }
.cx-hoja tr.is-alerta td { background: var(--pomegranate-100); color: var(--pomegranate-500); font-weight: 600; }
.cx-monto { flex: none; font-size: calc(13 * var(--u)); font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-adjunto svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); fill: none; stroke: var(--pomegranate-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Bloques ubicados a la altura del nodo que los produce (escritorio) */
.cx-card .cx-abs { position: absolute; left: calc(20 * var(--u)); right: calc(20 * var(--u)); top: calc(var(--t) * var(--u)); }
.cx-card .cx-tr-col.is-alta { position: absolute; left: calc(20 * var(--u)); right: calc(20 * var(--u)); top: calc(68 * var(--u)); bottom: calc(20 * var(--u)); }
.cx-tr-col.is-alta .cx-tr-card.cx-abs { left: calc(8 * var(--u)); right: calc(8 * var(--u)); top: calc((var(--t) - 68) * var(--u)); margin: 0; }

/* ============ Tu equipo de agentes: bento (spec 7.8) ============ */
/* Un agente presentado como un empleado: organigrama, ficha, alta y un dato. Grilla de 9 columnas con gap 16 (spec 7.8);
   cards sin borde ni sombra, radio 24 (14 en celular), una sola familia de color por card. */
.eq { position: relative; z-index: 2; padding: 0 0 96px; }
.eq > .container { padding-top: 64px; }
.eq-head { max-width: 720px; margin: 0 auto; text-align: center; }
.eq-head .eyebrow { margin-bottom: 16px; }
.eq-h { color: var(--c-ink); text-wrap: balance; }
.eq-p { max-width: 640px; margin: 20px auto 0; font-size: 20px; line-height: 1.3; color: var(--c-ink); text-wrap: balance; }
.eq-bento { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.eq-card { position: relative; min-width: 0; padding: 24px; border-radius: var(--r-md); background: var(--c-oat-200); }
.eq-org { grid-column: 1 / 4; grid-row: 1 / 3; display: flex; flex-direction: column; }
.eq-fichas { grid-column: 4 / 10; grid-row: 1 / 3; display: grid; min-width: 0; }
.eq-alta { grid-column: 1 / 7; grid-row: 3; background: var(--t-bg); }
.eq-dato { grid-column: 7 / 10; grid-row: 3; display: flex; flex-direction: column; background: var(--t-bg); }
.eq-k { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: 0.09em; text-transform: uppercase; color: var(--t-accent); }
.eq-org .eq-k { color: var(--c-oat-800); }
.eq-t { margin-top: 8px; font-size: 24px; font-weight: 530; line-height: 1.3; color: #000; }
.eq-sub { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--c-oat-800); }
.eq-ejemplo { position: absolute; top: 20px; right: 20px; padding: 3px 9px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: 0.04em; }

/* Avatares: iniciales sobre tinta para las personas; cuadrado del color del agente con ícono de interfaz */
.eq-av {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--t-chip); color: var(--t-ink); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0.02em;
}
.eq-av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eq-av.is-persona { background: var(--c-ink); color: #fff; }
.eq-av.is-grande { width: 60px; height: 60px; border-radius: 16px; }
.eq-av.is-grande svg { width: 28px; height: 28px; }
.eq-av.is-chico { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }
.eq-tag { flex: none; padding: 1px 6px; border-radius: 5px; background: rgba(27, 26, 24, 0.07); font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-oat-800); }

/* Organigrama: el gerente arriba y el equipo colgando de una línea, como un árbol */
.eq-arbol { margin: 20px 0 0; padding: 0; list-style: none; }
.eq-miembro { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 12px 8px 8px; border-radius: 12px; text-align: left; }
.eq-quien { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.eq-nom { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.eq-rol { font-size: 13px; line-height: 1.35; color: var(--c-oat-800); }
.eq-hijos { position: relative; margin: 6px 0 0 28px; padding: 0 0 0 18px; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.eq-hijos::before { content: ""; position: absolute; left: 0; top: -6px; bottom: 29px; width: 1.5px; border-radius: 1px; background: var(--c-oat-300); }
.eq-hijos > li { position: relative; }
.eq-hijos > li::before { content: ""; position: absolute; left: -18px; top: 50%; width: 14px; height: 1.5px; background: var(--c-oat-300); }
/* Organigrama por áreas (ronda 10): la dueña arriba; cada área cuelga de la línea con su nombre y su gente */
.eq-hijos.is-areas { gap: 0; }
.eq-hijos.is-areas::before { display: none; }
.eq-hijos.is-areas > li::before { top: 10px; }
.eq-area { padding-bottom: 6px; }
.eq-area::after { content: ""; position: absolute; left: -18px; top: -6px; bottom: 0; width: 1.5px; background: var(--c-oat-300); }
.eq-area:last-child::after { bottom: auto; height: 16px; }
.eq-area-t { padding: 2px 0; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-oat-800); }
.eq-area-l { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.eq-area-l .eq-miembro { min-height: 50px; padding: 6px 10px 6px 6px; gap: 10px; }
.eq-area-l .eq-av { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.eq-area-l .eq-av svg { width: 18px; height: 18px; }
button.eq-miembro {
  border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
button.eq-miembro:hover { background: rgba(255, 255, 255, 0.7); }
button.eq-miembro[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--t-chip), 0 1px 2px rgba(27, 26, 24, 0.06); }
.eq-flecha { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--c-oat-400); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s ease, transform 0.25s var(--ease-out-quart); }
button.eq-miembro:hover .eq-flecha { transform: translateX(2px); }
button.eq-miembro[aria-pressed="true"] .eq-flecha { stroke: var(--t-accent); }
.eq-pista { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 13px; line-height: 1.4; color: var(--c-oat-800); }
.eq-pista svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .eq-pista { display: none; }
html:not(.js) button.eq-miembro { cursor: default; }
html:not(.js) button.eq-miembro:hover { background: transparent; }
html:not(.js) button.eq-miembro[aria-pressed="true"] { background: #fff; }
html:not(.js) .eq-flecha { display: none; }

/* Ficha de empleado (legajo): card del color del agente con una hoja blanca adentro. Las cuatro fichas ocupan la misma
   celda, así el bento no cambia de alto al elegir otro agente; la elegida aparece con un fundido corto. */
.eq-ficha {
  grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 24px 24px; border-radius: var(--r-md); background: var(--t-bg);
  transition: opacity 0.35s var(--ease-out-quart), transform 0.35s var(--ease-out-quart), visibility 0s;
}
.eq-ficha[hidden] { display: none; } /* sin JS: solo se ve la de Seguimiento */
.js .eq-ficha.is-off { visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s; }
.eq-ficha-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; margin-bottom: 14px; }
.eq-ficha-top .eq-ejemplo { position: static; }
.eq-hoja { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(27, 26, 24, 0.05); }
.eq-id { display: flex; align-items: flex-start; gap: 16px; }
.eq-id-txt { flex: 1; min-width: 0; }
.eq-id-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--c-ink); }
.eq-id-t .eq-tag { font-size: 11px; }
.eq-puesto { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--c-oat-800); }
.eq-desc { margin-top: 8px; font-size: 16px; line-height: 1.4; color: var(--c-ink); text-wrap: pretty; }
.eq-activo { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--t-bg); color: var(--t-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.eq-activo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-accent); }
.eq-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 18px 0; border-block: 1px solid var(--c-oat-200); }
.eq-datos dt, .eq-lista-t { font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-oat-800); }
.eq-datos dd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--c-ink); }
.eq-apps { gap: 6px; }
.eq-app { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(209, 205, 199, 0.9); color: var(--c-ink); }
.eq-app .ico { width: 16px; height: 16px; }
.eq-app svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eq-listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.eq-lista { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.eq-lista li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--c-ink); }
.eq-lista svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--t-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.eq-lista.is-aprueba svg { stroke-width: 2; }
.eq-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.eq-nums li { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: var(--t-bg); }
.eq-num { font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.eq-num-l { margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--c-oat-800); }

/* Cómo se incorpora un agente: las mismas filas que "Cómo trabajamos" (baldosa, número, título y texto), ya tildadas */
.eq-pasos { margin: 16px 0 0; padding: 0; list-style: none; }
.eq-paso { display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.eq-paso + .eq-paso { box-shadow: 0 -1px 0 var(--t-chip); }
.eq-paso .tile { width: 36px; height: 36px; border-radius: 10px; background: var(--t-chip); color: var(--t-ink); box-shadow: none; }
.eq-paso .tile svg { width: 18px; height: 18px; }
.eq-paso-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: baseline; gap: 2px 16px; }
.eq-paso-head { display: flex; align-items: baseline; gap: 10px; }
.eq-paso-t { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--c-ink); }
.eq-paso-p { font-size: 14.5px; line-height: 1.4; color: var(--c-oat-800); }
.eq-paso-ok { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--t-accent); color: #fff; }
.eq-paso-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.eq-alta-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 16px; font-size: 15px; line-height: 1.4; color: var(--c-ink); }
.eq-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #000; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--c-oat-300); transition: text-decoration-color 0.3s ease;
}
.eq-link:hover { text-decoration-color: #000; }
.eq-link svg { width: 14px; height: 14px; }

/* Dato: cuántas tareas pidieron aprobación */
.eq-num-xl { margin-top: 18px; font-size: 88px; font-weight: 530; line-height: 1; letter-spacing: -0.04em; color: var(--t-accent); font-variant-numeric: tabular-nums; }
.eq-dato-p { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--c-ink); text-wrap: pretty; }
.eq-barra { display: block; height: 10px; margin-top: 18px; border-radius: 5px; background: var(--t-chip); overflow: hidden; }
.eq-barra i { display: block; width: var(--v); height: 100%; border-radius: 5px; background: var(--t-accent); }
.eq-dato-s { margin-top: 12px; font-size: 13.5px; line-height: 1.4; color: var(--c-oat-800); text-wrap: pretty; }
.eq-desglose { margin: auto 0 0; padding-top: 18px; }
.eq-desglose div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--t-chip); font-size: 13.5px; line-height: 1.35; }
.eq-desglose dt { font-weight: 600; color: var(--c-ink); }
.eq-desglose dd { margin: 0; color: var(--c-oat-800); text-align: right; }

/* Escritorio base (hasta 1279): la ficha pierde una columna de datos */
@media (max-width: 1279px) {
  .eq-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-paso-main { grid-template-columns: 210px minmax(0, 1fr); }
  .eq-num-xl { font-size: 72px; }
}
/* Tablet y celular: una columna; el organigrama pasa a una tira de avatares que se desliza */
@media (max-width: 991px) {
  .eq-bento { grid-template-columns: minmax(0, 1fr); }
  .eq-org, .eq-fichas, .eq-alta, .eq-dato { grid-column: 1; grid-row: auto; }
  .eq-hijos {
    flex-direction: row; gap: 8px; margin: 12px -24px 0; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x proximity; scroll-padding-inline: 24px;
  }
  .eq-hijos::-webkit-scrollbar { display: none; }
  .eq-hijos::before, .eq-hijos > li::before { display: none; }
  .eq-hijos > li { flex: none; width: 118px; scroll-snap-align: start; }
  .eq-hijos .eq-miembro { flex-direction: column; justify-content: flex-start; gap: 8px; height: 100%; padding: 14px 8px 12px; text-align: center; background: rgba(255, 255, 255, 0.55); }
  .eq-hijos .eq-quien { align-items: center; }
  .eq-hijos .eq-nom { flex-direction: column; gap: 4px; font-size: 14px; }
  .eq-hijos .eq-rol { font-size: 12px; }
  .eq-hijos .eq-flecha { display: none; }
  .eq-hijos.is-areas { gap: 16px; }
  .eq-hijos.is-areas > li { width: auto; }
  .eq-area { padding-bottom: 0; }
  .eq-area::after { display: none; }
  .eq-area-t { padding: 0 2px 6px; }
  .eq-area-l { flex-direction: row; gap: 8px; }
  .eq-area-l > li { flex: none; width: 112px; }
  .eq-area-l .eq-miembro { height: 100%; padding: 12px 8px 10px; }
  .eq-miembro.is-jefe { padding-left: 0; }
  .eq-pista { margin-top: 12px; padding-top: 0; }
}
@media (max-width: 767px) {
  .eq { padding-bottom: 40px; }
  .eq > .container { padding-top: 40px; }
  .eq-p { font-size: 18px; }
  .eq-bento { margin-top: 24px; gap: 12px; }
  .eq-card { padding: 20px; }
  .eq-ejemplo { top: 16px; right: 16px; }
  .eq-t { font-size: 20px; }
  .eq-hijos { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .eq-ficha { padding: 16px; }
  .eq-ficha-top { margin: 2px 4px 12px; }
  .eq-hoja { gap: 18px; padding: 18px; border-radius: 12px; }
  .eq-id { flex-wrap: wrap; gap: 12px; }
  .eq-id .eq-av.is-grande { width: 48px; height: 48px; border-radius: 13px; }
  .eq-id .eq-av.is-grande svg { width: 24px; height: 24px; }
  .eq-id-t { font-size: 22px; }
  .eq-activo { order: 1; margin-left: auto; }
  .eq-id-txt { order: 2; flex-basis: 100%; }
  .eq-datos { gap: 14px 12px; padding: 14px 0; }
  .eq-listas { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .eq-nums { gap: 8px; }
  .eq-nums li { padding: 10px; }
  .eq-num { font-size: 24px; }
  .eq-num-l { font-size: 12px; }
  .eq-paso { align-items: flex-start; }
  .eq-paso-main { grid-template-columns: minmax(0, 1fr); }
  .eq-paso-ok { margin-top: 7px; }
  .eq-num-xl { font-size: 64px; }
}
/* ============ fin Tu equipo de agentes ============ */

/* ============ Cómo trabajamos: tabs rotativos (spec 7.3) ============ */
.usos { position: relative; z-index: 2; padding-bottom: 64px; }
.usos > .container { padding-top: 64px; }
.usos-head { max-width: 640px; margin: 0 auto; text-align: center; }
.usos-head .eyebrow { margin-bottom: 16px; transition: color 0.3s ease; }
.usos-desc { max-width: 544px; margin: 24px auto 0; font-size: 20px; line-height: 1.3; color: #000; text-wrap: balance; }

.chips-wrap { position: relative; margin-top: 32px; }
.chips { display: flex; justify-content: center; gap: 8px; }
.chip {
  flex: none; height: 44px; padding: 10px 16px; border: 0; border-radius: 12px;
  background: var(--c-oat-200); color: var(--c-ink);
  font: 500 16px/1.5 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color 0.3s var(--ease-out-circ);
}
.chip:hover { background: var(--c-border); }
.chip[aria-selected="true"] { background: var(--t-chip); }
.chip-n { font-variant-numeric: tabular-nums; }

/* Escenario: bloque de color (300 de la familia) y, encima, una tarjeta de interfaz ancha con los cuatro pasos
   (el activo resaltado) que sobresale hacia arriba, más un panel flotante con contador, título y avance. */
.stages { position: relative; margin-top: 64px; }
.stage { position: relative; height: 520px; }
.stage:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.stage-block, .stages-bg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 340px; border-radius: var(--r-lg);
  background-color: var(--t-block);
}
.stages-bg { display: none; transition: background-color 0.5s var(--ease-out-quart); }
.stage-card {
  position: absolute; z-index: 1; top: 48px; left: 8%; width: 74%;
  display: grid; gap: 4px; padding: 16px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.6);
}
.sc-row { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 14px 18px; border-radius: 12px; }
.sc-row + .sc-row { box-shadow: 0 -1px 0 var(--c-oat-200); }
.sc-row.is-on + .sc-row { box-shadow: none; }
.sc-row.is-on { background: var(--t-bg); box-shadow: inset 0 0 0 1px var(--t-chip); }
.sc-row .tile { background: var(--c-oat-200); color: var(--c-oat-800); box-shadow: none; }
.sc-row.is-done .tile { background: var(--t-chip); color: var(--t-ink); }
.sc-row.is-on .tile { background: var(--t-accent); color: #fff; }
.sc-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 190px minmax(0, 480px); align-items: center; gap: 4px 20px; }
.sc-head { display: flex; align-items: baseline; gap: 10px; }
.sc-n { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; color: var(--c-oat-800); font-variant-numeric: tabular-nums; }
.sc-row.is-on .sc-n { color: var(--t-accent); }
.sc-t { font-size: 20px; font-weight: 530; line-height: 1.3; letter-spacing: -0.01em; color: var(--c-ink); }
.sc-p { display: block; font-size: 16px; line-height: 1.4; color: var(--c-oat-800); }
.sc-row.is-on .sc-p { color: var(--c-ink); }

.stage-panel {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.5);
}
.panel-step { top: 0; right: 4%; width: 260px; display: grid; gap: 6px; padding: 20px 22px 22px; }
.ps-n { font-size: 12px; font-weight: 600; letter-spacing: 0.09em; color: var(--t-accent); font-variant-numeric: tabular-nums; }
.ps-t { font-size: 24px; font-weight: 530; line-height: 1.3; color: var(--c-ink); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.prog i { height: 6px; border-radius: 99px; background: var(--c-oat-200); }
.prog i.on { background: var(--t-accent); }

/* Sin JS: los cuatro pasos uno debajo del otro. Con JS: un solo escenario y el bloque de color compartido */
html:not(.js) .stage + .stage { margin-top: 48px; }
html:not(.js) .chips-wrap { display: none; }
.js .stages { display: grid; }
.js .stages-bg { display: block; }
.js .stage { grid-area: 1 / 1; }
.js .stage[hidden] { display: none; }
.js .stage .stage-block { background: transparent; }
.stage.is-out { opacity: 0; transform: scale(0.98); transition: opacity 0.3s ease, transform 0.3s ease; }
.stage.is-in .stage-card { animation: cardIn 0.45s var(--ease-out-quart) both; }
.stage.is-in .stage-panel { animation: panelIn 0.55s 0.08s var(--ease-out-quart) both; }
@keyframes cardIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============ Caja de acción (spec 7.4) ============ */
.accion { position: relative; z-index: 2; }
.accion > .container { padding: 48px 0; }
.accion-h { text-align: center; }
.accion-box { position: relative; width: 640px; max-width: 100%; margin: 24px auto 0; }
.accion-field {
  position: relative; z-index: 1; padding: 11px 16px 16px; background: #fff; border-radius: 23.2px;
  box-shadow: var(--shadow-input); transition: box-shadow 0.5s var(--ease-out-expo);
}
.accion-field:hover { box-shadow: var(--shadow-input-hover); }
.accion-field:focus-within { box-shadow: var(--shadow-input-hover); outline: 2px dashed #000; outline-offset: 2px; }
.accion-field textarea {
  display: block; width: 100%; min-height: 144px; padding: 8px 8px 48px; border: 0; border-radius: 20px; resize: none;
  background: transparent; color: var(--c-ink); font: 400 16px/1.5 var(--font-sans); outline: none;
}
.accion-field textarea::placeholder { color: var(--c-muted-aa); opacity: 1; }
/* La flecha va dentro del campo (como Clay en celular) para que las tres sugerencias entren en una fila */
.accion-go {
  position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 48px; height: 40px;
  border: 0; border-radius: 12px; background: var(--c-ink); color: #fff; font-size: 16px; cursor: pointer;
}
.accion-base {
  display: flex; justify-content: center; width: 600px; max-width: calc(100% - 40px); margin: 0 auto;
  padding: 11px; background: var(--c-oat-200); border-radius: 0 0 23px 23px;
}
.accion-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-light {
  height: 39px; padding: 8px 16px; border: 0; border-radius: 12px; background: var(--c-oat-100);
  box-shadow: var(--bevel); color: var(--c-muted-aa); font: 500 0.87rem/1.5 var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: color 0.15s linear, background-color 0.15s linear;
}
.chip-light:hover { color: var(--c-ink); }
.hairline--bottom { position: absolute; left: 0; right: 0; bottom: 0; }

/* ============ Capacidad: bloque de infraestructura (spec 7.6) ============ */
.infra { position: relative; z-index: 2; padding: 64px 0; }
.tray { background: var(--c-oat-200); border-radius: var(--r-xl); padding: 48px; }
.infra-tray { box-shadow: var(--glow-white); }
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; align-items: start; }
.infra-eb { grid-column: 1 / -1; }
.infra-h { color: var(--c-ink); }
.infra-eb, .infra-h .acc { color: var(--slushie-400); }
.infra-p { max-width: 496px; padding-top: 6px; font-size: 20px; line-height: 1.3; color: var(--c-ink); }
/* En el lugar de la panorámica de Clay: Antes / Después como componente, sin cifras (como en el sitio) */
.cmp { margin-top: 32px; padding: 48px; background: #fff; border-radius: var(--r-md); }
.cmp-legend { display: flex; gap: 20px; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend i { width: 10px; height: 10px; border-radius: 3px; }
.cmp i.antes, .bar.antes { background: var(--c-oat-400); }
.cmp i.despues, .bar.despues { background: var(--slushie-400); }
.cmp-rows { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.cmp-rows li { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 24px; }
.cmp-eje { font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--c-ink); }
.cmp-bars { display: grid; gap: 6px; }
.bar { display: block; height: 12px; width: var(--w); border-radius: 99px; transform-origin: left center; }
.js .cmp .bar { transform: scaleX(0); transition: transform 0.9s var(--ease-out-quart); transition-delay: calc(var(--i) * 0.12s); }
.js .cmp .bar.despues { transition-delay: calc(var(--i) * 0.12s + 0.25s); }
.js .cmp.on .bar { transform: none; }

/* ============ Cierre y pie (spec 7.9) ============ */
.cierre { position: relative; z-index: 2; padding: 80px 20px; text-align: center; background: linear-gradient(to bottom, #fff, var(--c-oat-50)); }
.cierre-in { max-width: 640px; margin: 0 auto; }
.h-cta { font-size: var(--fs-cta); line-height: 1.1; letter-spacing: -0.02em; color: #000; }
.h-cta .acc { color: var(--c-hero-bg); }
.cierre .btn-group { margin-top: 24px; }

/* La card avena del pie se apoya sobre una banda lisa del verde del hero (sin imagen) que la rodea por los costados */
.pie-wrap { position: relative; z-index: 2; padding-top: 96px; background: var(--c-hero-bg); }
.pie {
  width: 95%; max-width: var(--container-max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 64px; padding: 48px 48px 0;
  background: var(--c-oat-200); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.pie-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 40px; }
.pie-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pie-h { margin-bottom: 4px; font-size: 12px; font-weight: 600; line-height: 1.1; letter-spacing: 0.12em; text-transform: uppercase; color: #000; }
.pie-col a, .pie-btn {
  padding: 0; border: 0; background: none; font: 400 14px/1.3 var(--font-sans); color: var(--c-oat-800);
  text-decoration: none; cursor: pointer; text-align: left; transition: color 0.1s ease-out; overflow-wrap: anywhere;
}
.pie-col a:hover, .pie-btn:hover { color: #000; }
.pie-credits {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 48px 0; border-top: 1px solid var(--c-nav-border);
}
.pie-logo svg { height: 44px; }
.pie-legal { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 16px; line-height: 1.4; color: #000; }
.pie-legal span { font-weight: 560; }
.pie-legal small { font-size: inherit; }
.pie-social { display: flex; justify-content: flex-end; gap: 8px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-oat-300); color: #000; transition: background-color 0.25s var(--ease-out-circ); }
.social:hover { background: var(--c-oat-btn-hover); }
.social svg { width: 20px; height: 20px; }

/* ============ Diálogo "Hablemos" y aviso (marcado de parciales/dialogo.html, contacto.js sin cambios) ============ */
.dlg {
  width: min(520px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: visible;
}
.dlg::backdrop { background: rgba(27, 26, 24, 0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn 0.35s var(--ease-out-expo); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.dlg-panel { max-height: calc(100vh - 24px); overflow: auto; padding: 32px; background: #fff; border-radius: var(--r-md); box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.3); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dlg-head h2 { font-size: 32px; line-height: 1; letter-spacing: -0.04em; color: #000; }
.dlg-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 10px; background: var(--c-oat-100); color: #000; cursor: pointer; transition: background-color 0.25s var(--ease-out-circ); }
.dlg-x:hover { background: var(--c-oat-200); }
.dlg-x svg { width: 18px; height: 18px; }
.dlg-fields { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--c-ink); }
.field .opt { font-weight: 400; color: var(--c-oat-800); }
.field input, .field textarea {
  width: 100%; padding: 10px 14px; border: 0; border-radius: 12px; background: #fff; color: var(--c-ink);
  font: 400 16px/1.5 var(--font-sans);
  box-shadow: inset 0 0 0 1px #8c8881; /* borde con 3:1 de contraste (el #d1cdc7 de Clay no llega) */
  transition: box-shadow 0.5s var(--ease-out-expo);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--c-ink); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px dashed #000; outline-offset: 2px; }
.field input::placeholder { color: var(--c-muted-aa); opacity: 1; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--pomegranate-400); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dlg-err { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--pomegranate-100); color: var(--pomegranate-400); font-size: 14px; line-height: 1.4; }
.dlg-err:empty { display: none; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.dlg-foot .btn { background: #000; color: #fff; }
.dlg-foot .btn:hover { background: var(--c-hover-dark); }
.dlg-foot .btn.secondary { background: var(--c-oat-btn); color: #000; }
.dlg-foot .btn.secondary:hover { background: var(--c-oat-btn-hover); }
.dlg-foot .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 10001; display: flex; align-items: flex-start; gap: 12px;
  width: min(380px, calc(100% - 32px)); padding: 16px 16px 16px 20px; background: #fff; color: var(--c-ink);
  border-radius: 16px; box-shadow: var(--shadow-popover), inset 0 0 0 1px rgba(209, 205, 199, 0.6);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart), visibility 0s linear 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart), visibility 0s; }
.toast .tdot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c-cta-lime); }
.toast div { flex: 1; }
.toast b { font-weight: 600; }
.toast p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--c-oat-800); }
.toast button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #000; cursor: pointer; }
.toast button:hover { background: var(--c-oat-200); }
.toast button svg { width: 16px; height: 16px; }

/* ============ Escritorio base (992 a 1279) ============ */
@media (max-width: 1279px) {
  .stage-card { left: 4%; width: 78%; }
  .sc-main { grid-template-columns: 170px minmax(0, 440px); }
  .panel-step { right: 2%; width: 230px; }
}

/* Hero apilado desde 1199: el H1 de Pulso es largo y a esa medida no entra en dos columnas */
@media (max-width: 1199px) {
  :root { --fs-h1: 4rem; }
  .hero-in { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-h1 { max-width: 860px; }
  .hero-side { flex-basis: auto; width: 100%; max-width: 520px; }
}

/* ============ Tablet (hasta 991): sin sticky, todo apilado (spec 3) ============ */
@media (max-width: 991px) {
  :root { --fcard-h: auto; --fs-h1: clamp(2.25rem, 7vw, 4rem); } /* título apilado a todo el ancho: 3 renglones */
  .nav-links { display: none; }
  .nav-menu-btn { display: grid; }
  .nav-cta { background: var(--c-oat-btn); color: #000; }
  .nav-cta:hover { background: var(--c-oat-btn-hover); }

  .fcard { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; }
  .fcard:last-child { min-height: 0; }
  .fcard-copy { padding: 40px 40px 8px; }
  .fcard-frame { height: auto; }

  /* Escenario: el bloque de color queda detrás y la tarjeta sobresale arriba; el panel flotante se esconde */
  .stage { height: auto; padding: 0 24px 24px; }
  .stage-block, .stages-bg { top: 72px; height: auto; }
  .stage-card { position: relative; top: auto; left: auto; width: auto; }
  .panel-step { display: none; }
  .sc-main { grid-template-columns: 184px minmax(0, 1fr); }
  .sc-t { font-size: 18px; }

  .infra-grid { grid-template-columns: 1fr; }
  .infra-p { padding-top: 0; }
  .mq.is-on::before, .mq.is-on::after { width: 120px; }
  /* Integraciones: el flujo pasa a vertical (nodos uno abajo del otro, ramas lado a lado) */
  .flujos-tray { padding: 48px 32px 40px; }
  .mq.is-on { margin-inline: -32px; }
  .cx-lienzo.is-h { display: none; }
  .cx-lienzo.is-v { display: block; }
  .js .cx-modo { display: flex; position: sticky; top: 68px; z-index: 5; }
  .cx-lienzo.is-v.is-pila { display: flex; }
  .cx-casos {
    justify-content: flex-start; overflow-x: auto; margin-inline: -2.5vw; padding: 0 2.5vw; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5vw, #000 calc(100% - 2.5vw), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 2.5vw, #000 calc(100% - 2.5vw), transparent 100%);
  }
  .cx-casos::-webkit-scrollbar { display: none; }
  .js .cx-linea, .js .cx-tag { display: none; }
  .js .cx-flujo { transition: clip-path 0.6s var(--ease-out-quart); }
  .cx-marco { padding: 12px 0; }
  .cx-flujo .fl-stage { margin-top: 12px; }
  .fl-board { padding: 24px 12px; }
  .fl-stage { aspect-ratio: 320 / var(--vh); max-width: 360px; margin-inline: auto; }
  .fl-lines.is-h { display: none; }
  .fl-lines.is-v { display: block; }
  .fl-node, .fl-pill { left: var(--vx); top: var(--vy); }
  .fl-node { width: 136px; margin-left: -68px; }
  .fl-sub { left: var(--vx); top: var(--vy); width: 72px; margin: -20px 0 0 -36px; }
  .fl-sub-tile { width: 40px; height: 40px; }
  .fl-sub-tile .ico { width: 20px; height: 20px; }
  .fl-sub-lbl { max-width: 64px; font-size: 11px; }
  .fl-tabs {
    justify-content: flex-start; overflow-x: auto; margin-inline: -32px; padding: 0 32px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  .fl-tabs::-webkit-scrollbar { display: none; }

  .pie-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============ Celular (hasta 767) ============ */
@media (max-width: 767px) {
  :root { --fs-h2: 2.5rem; --fs-h3: 2rem; --fs-cta: 2rem; --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --hero-overlap: 48px; }
  html { scroll-padding-top: 72px; }
  .frame { width: 95%; }
  .nav-bar { height: 57px; padding: 8px 10px 8px 20px; }
  .logo svg { height: 28px; }
  .nav-panel { padding-top: calc(57px + 20px); }

  .hero { padding-top: calc(57px + 56px); }
  .hero-in { padding: 0 18px calc(var(--hero-overlap) + 40px); }
  .hero-sub { font-size: 20px; }

  .fcard { margin-bottom: -28px; padding-bottom: 28px; }
  .fcard:last-child { margin-bottom: 0; padding-bottom: 0; }
  .fcard-copy { padding: 20px 20px 4px; gap: 24px; }
  .fcard-media { padding: 16px; }
  .fcard-frame { padding: 12px; }
  .flist { gap: 8px; }
  .flist li { min-height: 52px; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; font-size: 15px; }
  .tile { width: 34px; height: 34px; border-radius: 8px; }
  .tile svg { width: 18px; height: 18px; }

  .flujos { padding: 8px 0 40px; }
  .cx { padding: 8px 0 40px; }
  .cx-p { font-size: 18px; }
  .cx-marco { margin-top: 14px; }
  .cx-casos { margin-top: 20px; }
  .cx-caso-b { height: 40px; padding: 8px 14px; font-size: 0.87rem; }
  .cx-caso-p { font-size: 15px; }
  .flujos-tray { padding: 32px 20px 28px; }
  .flujos-p { font-size: 18px; }
  .fl-tabs { margin-inline: -20px; padding: 0 20px; }
  .fl-tab { height: 40px; padding: 8px 14px; font-size: 0.87rem; }
  .fl-board { padding: 20px 6px; }
  .mq { margin-top: 24px; }
  .mq.is-on { margin-inline: -20px; }
  .mq.is-on::before, .mq.is-on::after { width: 48px; }
  .lg { width: 56px; height: 56px; border-radius: 16px; }
  .lg .ico { width: 26px; height: 26px; }

  .usos > .container { padding-top: 40px; }
  .usos { padding-bottom: 40px; }
  .usos-desc { font-size: 18px; }
  .chips-wrap { margin-inline: -2.5vw; }
  .chips {
    justify-content: flex-start; overflow-x: auto; padding: 0 20px; scrollbar-width: none; scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 40px; padding: 8px 14px; font-size: 0.87rem; }
  .stages { margin-top: 32px; }
  .stage { padding: 0 12px 12px; }
  .stage-block, .stages-bg { top: 56px; }
  .stage-card { padding: 8px; gap: 2px; }
  .sc-row { align-items: flex-start; gap: 12px; min-height: 0; padding: 12px 10px; }
  .sc-main { grid-template-columns: 1fr; gap: 4px; }
  .sc-t { font-size: 18px; }
  .sc-p { font-size: 15px; }

  .accion > .container { padding: 32px 0; }
  .accion-h { max-width: 300px; margin-inline: auto; }
  .accion-box { width: calc(100% - 16px); }
  .accion-base { padding: 12px 11px 11px; }

  .infra { padding: 40px 0; }
  .tray { padding: 28px 20px; }
  .infra-grid { grid-template-columns: 1fr; }
  .infra-p { font-size: 16px; padding-top: 0; }
  .cmp { margin-top: 24px; padding: 20px; }
  .cmp-rows { gap: 18px; margin-top: 20px; }
  .cmp-rows li { grid-template-columns: 1fr; gap: 8px; }
  .cmp-eje { font-size: 16px; }
  .bar { height: 10px; }

  .cierre { padding: 48px 20px; }
  .pie-wrap { padding-top: 56px; }
  .pie { gap: 40px; padding: 28px 28px 0; }
  .pie-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .pie-credits { grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 32px 0 40px; }
  .pie-social { justify-content: center; }

  .dlg-panel { padding: 24px 20px; }
  .dlg-head h2 { font-size: 28px; }
  .toast { right: 16px; bottom: 16px; }
}

@media (max-width: 479px) {
  :root { --fs-h1: 2.25rem; } /* 36: Clay usa 41.6; el título de Pulso es largo y así queda en 4 renglones en vez de 5 */
}

/* ============ En la práctica: fija en pantalla y la línea barre con el scroll (escritorio con al menos 620 de alto) ============ */
@media (min-width: 992px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .cx { padding: 0; }
  .js .cx-pista { height: 250vh; }
  .js .cx-fijo { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .js .cx-marco { width: min(100%, 1184px, calc((100vh - var(--nav-h) - var(--cx-head, 270px) - 28px) * 1184 / var(--lh, 600))); }
}

/* ============ Escritorio bajo: compacto con menos de 760 de alto; scroll normal con menos de 620 ============ */
@media (min-width: 992px) and (max-height: 760px) {
  :root { --fcard-h: calc(100vh - 40px); }
  .hero { padding-top: calc(var(--nav-h) + 72px); }
  .hero-in { padding-bottom: calc(var(--hero-overlap) + 56px); }
  .fcard-copy { padding: 44px 0 40px 40px; gap: 20px; }
  .fcard-h { margin-top: 12px; font-size: 2.5rem; }
  .fcard-p { margin-top: 14px; }
  .fcard-media { padding: 20px; }
  .fcard-frame { height: calc(var(--fcard-h) - 88px); padding: 20px; }
  .flist { gap: 8px; }
  .flist li { min-height: 50px; padding: 6px 14px 6px 8px; font-size: 15px; }
  .tile { width: 34px; height: 34px; }
  .tile svg { width: 18px; height: 18px; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .cx-head .eyebrow { margin-bottom: 10px; }
  .cx-h { font-size: 2.5rem; }
  .cx-p { display: none; }
  .cx-casos { margin-top: 16px; }
  .cx-caso-b { height: 40px; padding: 8px 14px; font-size: 15px; }
  .cx-caso-p { margin-top: 10px; font-size: 14.5px; }
  .cx-marco { margin-top: 12px; }
}
@media (min-width: 992px) and (max-height: 619px) {
  :root { --fcard-h: auto; }
  .fcard { position: relative; top: auto; min-height: 0; }
  .fcard:last-child { min-height: 0; }
  .fcard-frame { height: auto; }
}

/* ============ Sin JavaScript: en celular y tablet el menú no abre, así que se muestran los dos links ============ */
@media (max-width: 991px) {
  html:not(.js) .nav-menu-btn, html:not(.js) .nav-cta { display: none; }
  html:not(.js) .nav-links { display: flex; gap: 14px; }
  html:not(.js) .nav-left { gap: 16px; }
}

/* ============ Movimiento reducido: sin rotación, sin animaciones, sin apilado ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .fcard { position: relative; top: auto; }
  .js .cmp .bar { transform: none; }
  .fl-dot { display: none; }
}
