/* ESCIA · sitio escia.esc.com.mx. Azules tomados del logo de ESC; contrastes AA comprobados. */
:root {
  color-scheme: light;
  /* Logo: símbolo #0E7DD5, #0B6AB7 y #90CCF9; marca #0F3D62. */
  --logo-mid: #0E7DD5;
  --logo-light: #90CCF9;
  --ink: #0F3D62;
  --text: #34506A;
  --muted: #4A6379;
  --blue: #0B6AB7;
  --btn: #0B6AB7;
  --btn-hover: #095A9C;
  --btn-ink: #ffffff;
  --hero: #D8EDFD;
  --tint: #EAF5FE;
  --band: #F3F9FE;
  --surface: #ffffff;
  --page: #ffffff;
  --line: #D3E5F4;
  --line-strong: #7E9AB3;
  --closing: #0B6AB7;
  --hero-bg:
    radial-gradient(52% 70% at 88% 6%, rgba(144, 204, 249, .62), rgba(144, 204, 249, 0) 72%),
    radial-gradient(40% 50% at 4% 96%, rgba(144, 204, 249, .28), rgba(144, 204, 249, 0) 70%),
    linear-gradient(180deg, #D8EDFD 0%, #EAF5FE 62%, #F3F9FE 100%);
  --feature-bg: linear-gradient(150deg, #D8EDFD 0%, #EAF5FE 100%);
  --header-bg: rgba(255, 255, 255, .88);
  --chip-lab-bg: #0B6AB7; --chip-lab-ink: #ffffff;
  --chip-rev-bg: #D8EDFD; --chip-rev-ink: #0F3D62;
  /* Gráficas. Categóricos y rampa validados contra la superficie de cada tema. El ámbar, verde y violeta solo se usan en la composición por línea. */
  --viz-1: #0B6AB7; --viz-2: #7E9AB3;
  --cat-1: #0B6AB7; --cat-2: #C9741F; --cat-3: #14978F; --cat-4: #7A5CC0;
  --rampa-1: #6FB5EC; --rampa-2: #3D8FD6; --rampa-3: #0B6AB7; --rampa-4: #0F3D62;
  --viz-banda: rgba(11, 106, 183, .13);
  /* Una sola fuente para el fondo, la rejilla, los ejes y los textos de toda gráfica o diagrama. */
  --mapa-persona: #B45309; --mapa-persona-bg: #FEF3C7; --mapa-alerta: #B42318; --mapa-alerta-bg: #FEE4E2; --mapa-ok: #15803D; --mapa-ok-bg: #DCFCE7;
  --viz-panel: var(--surface); --viz-rejilla: var(--line); --viz-eje: var(--muted); --viz-texto: var(--text); --viz-titulo: var(--ink); --viz-tinta-marco: var(--line);
  --focus: #0F3D62;
  --err: #A32121;
  --ok-bg: #D8EDFD; --ok-ink: #0F3D62;
  --code-bg: #08192B;
  --code-bar: #10283F;
  --code-ink: #D8EDFD;
  --shadow-card: 0 1px 2px rgba(15, 61, 98, .05), 0 8px 24px rgba(15, 61, 98, .07);
  --shadow-lift: 0 2px 4px rgba(15, 61, 98, .06), 0 18px 40px rgba(15, 61, 98, .13);
  --shadow-soft: 0 10px 30px rgba(15, 61, 98, .10);
  --shadow-panel: 0 20px 56px rgba(15, 61, 98, .20);
  --shadow-shot: 0 24px 60px rgba(15, 61, 98, .22);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 22px;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 1 55 17v32L28 65 1 49V17zM28 65v33M1 17 0 16M55 17l1-1' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #EDF6FE;
  --text: #C7D8E8;
  --muted: #A9BDD0;
  --blue: #90CCF9;
  --btn: #90CCF9;
  --btn-hover: #B4DDFB;
  --btn-ink: #0F3D62;
  --hero: #123A5E;
  --tint: #16324F;
  --band: #0D2237;
  --surface: #10283F;
  --page: #08192B;
  --line: #2A4A68;
  --line-strong: #6D8CA8;
  --closing: #123A5E;
  --hero-bg:
    radial-gradient(52% 70% at 88% 6%, rgba(144, 204, 249, .20), rgba(144, 204, 249, 0) 72%),
    radial-gradient(40% 50% at 4% 96%, rgba(14, 125, 213, .18), rgba(14, 125, 213, 0) 70%),
    linear-gradient(180deg, #123A5E 0%, #10283F 62%, #0D2237 100%);
  --feature-bg: linear-gradient(150deg, #123A5E 0%, #10283F 100%);
  --header-bg: rgba(8, 25, 43, .88);
  --chip-lab-bg: #90CCF9; --chip-lab-ink: #0F3D62;
  --chip-rev-bg: #123A5E; --chip-rev-ink: #D8EDFD;
  --mapa-persona: #FCD34D; --mapa-persona-bg: #3D2F0B; --mapa-alerta: #FDA29B; --mapa-alerta-bg: #4A1712; --mapa-ok: #86EFAC; --mapa-ok-bg: #0F3A22;
  --viz-1: #90CCF9; --viz-2: #8FA8BF;
  --cat-1: #4C97DA; --cat-2: #C67E30; --cat-3: #22998F; --cat-4: #8F75D8;
  --rampa-1: #2F6FA8; --rampa-2: #4F97D6; --rampa-3: #7DBDF2; --rampa-4: #B4DDFB;
  --viz-banda: rgba(144, 204, 249, .16);
  --focus: #90CCF9;
  --err: #FF9D9D;
  --ok-bg: #123A5E; --ok-ink: #D8EDFD;
  --code-bg: #061320;
  --code-bar: #0D2237;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .42);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-panel: 0 20px 56px rgba(0, 0, 0, .55);
  --shadow-shot: 0 24px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 17px/1.65 Archivo, system-ui, "Segoe UI", sans-serif; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
h1, h2 { font-stretch: 88%; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 3.6vw, 3.45rem); line-height: 1.06; letter-spacing: -.014em; word-spacing: .05em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.08; letter-spacing: -.012em; word-spacing: .05em; margin-bottom: 20px; max-width: 24ch; }
h3 { font-size: 1.28rem; line-height: 1.25; margin-bottom: 8px; letter-spacing: -.005em; }
h4 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 6px; }
p { margin: 0 0 14px; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .9em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ico { display: inline-block; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: 32px; }
.block { padding-block: 104px; }
.band { background: var(--band); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.kicker { color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.kicker-paso { display: inline-flex; align-items: center; gap: 6px; }
.kicker-paso .ico { width: 15px; height: 15px; }
.lead { font-size: 1.18rem; line-height: 1.6; max-width: 66ch; margin-bottom: 36px; }
.note { color: var(--muted); font-size: .93rem; max-width: 80ch; margin-top: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding-block: 6px; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .ico { width: 17px; height: 17px; transition: transform .18s ease; }
.more:hover .ico, .hero-links a:hover .ico, .nav-more:hover .ico { transform: translateX(3px); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 14px 26px; border-radius: var(--r-m); border: 1.5px solid transparent; font: inherit; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.btn .ico { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 8px 20px rgba(11, 106, 183, .26); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(11, 106, 183, .32); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--tint); transform: translateY(-1px); }
.btn-ghost:disabled { opacity: .5; cursor: default; transform: none; }
html[data-theme="dark"] .btn-primary { box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: var(--page); background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .18s ease; }
.top.scrolled { border-bottom-color: transparent; box-shadow: var(--shadow-soft); }
.top-row { width: min(100%, 1560px); display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 40px; object-fit: contain; }
.brand strong { display: block; font-size: 1.32rem; line-height: 1.1; font-weight: 800; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.3; white-space: nowrap; }
.menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 18px; }
.menu-links, .menu-tools { display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-trigger { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 11px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: .96rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease; }
.nav-link:hover, .nav-trigger:hover, .nav-group.open .nav-trigger { background: var(--tint); }
.nav-trigger .ico { width: 16px; height: 16px; transition: transform .18s ease; }
.nav-group { position: relative; }
.nav-group.open .nav-trigger .ico { transform: rotate(180deg); }
.nav-panel { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 25; max-height: calc(100vh - 88px); overflow-y: auto; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-panel); }
/* Puente invisible para que el puntero llegue al panel sin cerrarlo. */
.nav-group.open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-group.open .nav-panel { display: block; animation: panel-in .16s ease-out; }
@keyframes panel-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.nav-panel-plataforma { width: min(940px, calc(100vw - 32px)); padding: 20px 24px; }
/* Árbol de agentes: la línea vertical une los niveles y la rama cuelga de su nivel con sangría. */
.arbol { list-style: none; margin: 0; padding: 0; }
.arbol-nivel { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; }
.arbol-nivel:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--logo-light); }
.arbol-num { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: .88rem; font-weight: 800; }
.arbol-tit { margin: 0; color: var(--ink); font-size: .98rem; font-weight: 700; line-height: 1.25; }
.arbol-txt { margin: 0 0 5px; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.arbol-hojas { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 6px; margin: 0; padding: 0; }
.arbol-rama { position: relative; margin: 5px 0 0 14px; padding-left: 16px; }
.arbol-rama::before { content: ""; position: absolute; left: 0; top: -3px; bottom: 16px; width: 2px; background: var(--logo-light); }
.arbol-rama::after { content: ""; position: absolute; left: 0; bottom: 16px; width: 12px; height: 2px; background: var(--logo-light); }
.arbol-rama-t { margin: 6px 0 -2px 14px; padding-left: 16px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.arbol-hoja { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: .87rem; font-weight: 500; line-height: 1.2; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.arbol-hoja:hover { background: var(--tint); border-color: var(--logo-light); }
.arbol-hoja .ico { width: 16px; height: 16px; color: var(--blue); }
.arbol-estado { padding: 1px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--muted); color: var(--ink); font-size: .72rem; font-weight: 650; white-space: nowrap; }
.nav-panel-soluciones { width: min(460px, calc(100vw - 32px)); }
.nav-panel-recursos { width: min(880px, calc(100vw - 32px)); }
.nav-panel-empezar { width: min(460px, calc(100vw - 32px)); }
.nav-panel-documentacion { width: min(780px, calc(100vw - 32px)); }
.nav-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nav-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-estado { display: block; margin-top: 2px; color: var(--blue); font-size: .76rem; font-weight: 700; }
.nav-sub { margin: 0 0 12px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.nav-sub-nivel { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.nav-sub-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
.nav-sub-ico .ico { width: 19px; height: 19px; }
.nav-line { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
.nav-line a { color: var(--ink); text-decoration: none; }
.nav-line a:hover { text-decoration: underline; }
.nav-list { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.nav-item:hover { background: var(--tint); }
.nav-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--blue); }
.nav-ico .ico { width: 21px; height: 21px; }
.nav-txt strong { display: block; font-size: .97rem; font-weight: 600; line-height: 1.3; }
.nav-txt small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.38; }
.nav-list-compact .nav-item { align-items: center; padding: 5px 8px; }
.nav-list-compact .nav-ico { width: 34px; height: 34px; border-radius: 9px; }
.nav-list-compact .nav-ico .ico { width: 18px; height: 18px; }
.nav-list-compact .nav-txt strong { font-size: .92rem; font-weight: 500; }
.nav-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 8px; font-size: .92rem; font-weight: 600; }
.nav-more .ico { width: 16px; height: 16px; transition: transform .18s ease; }
.nav-more-btn { border: 0; background: transparent; color: var(--blue); font-family: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nav-foot { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.nav-foot .nav-more { margin-top: 4px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease; }
.tool:hover { background: var(--tint); }
.tool .ico { width: 18px; height: 18px; }
.tool-icon { width: 44px; justify-content: center; padding: 0; }
.tool-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.menu-tools .btn { margin-left: 8px; white-space: nowrap; }
.top-cta { display: none; margin-left: auto; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* Portada */
.hero-shell { position: relative; background: var(--hero); background: var(--hero-bg); border-radius: 0 0 56px 56px; overflow: clip; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-areas: "copia diagrama" "impacto impacto"; gap: 36px 56px; align-items: start; padding-top: 60px; padding-bottom: 92px; }
.hero-copy { grid-area: copia; }
.hero-diagrama { grid-area: diagrama; }
.hero-impacto { grid-area: impacto; }
.hero h1 { margin-bottom: 18px; text-wrap: balance; }
.hero-lead { font-size: 1.2rem; line-height: 1.5; max-width: 52ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 14px; font-weight: 600; }
.hero-links a { display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }
.hero-links .ico { width: 17px; height: 17px; transition: transform .18s ease; }
.shot { margin: 0; min-width: 0; }
.shot-frame { display: flex; gap: 6px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.shot-frame span { width: 10px; height: 10px; border-radius: 50%; background: var(--logo-light); }
.shot-frame span:nth-child(2) { opacity: .65; }
.shot-frame span:nth-child(3) { opacity: .35; }
/* Las capturas son pantallas claras. En oscuro se invierten y se funden con el panel: el blanco del PNG queda igual al fondo de las gráficas. */
.shot-marco { overflow: hidden; isolation: isolate; background: var(--viz-panel); border: 1px solid var(--viz-tinta-marco); border-top: 0; border-radius: 0 0 16px 16px; }
.shot img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: top; }
html[data-theme="dark"] .shot img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
.shot figcaption { color: var(--muted); font-size: .86rem; margin-top: 12px; }
.hero-line { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 20px; padding: 0; color: var(--ink); font-size: .94rem; font-weight: 650; }
.hero-line li { display: flex; align-items: center; gap: 8px; }
.hero-line-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
.hero-line-ico .ico { width: 17px; height: 17px; }

/* Diagrama del primer impacto: Conecta, Comprende y Transforma, con ESCIA como orquestador al centro. */
.hero-diagrama, .como-diagrama { margin: 0; min-width: 0; }
.dg { display: block; width: 100%; height: auto; overflow: visible; stroke-width: 1.75; font-family: inherit; }
.dg-movil { display: none; }
.dg-banda { fill: var(--viz-panel); fill-opacity: .55; stroke: var(--viz-tinta-marco); stroke-width: 1; }
.dg-banda-centro { fill-opacity: .85; }
.dg-banda-t { fill: var(--viz-titulo); font-size: 15px; font-weight: 800; letter-spacing: .09em; }
.dg-subt { fill: var(--viz-titulo); font-size: 13px; font-weight: 700; }
.dg-frase { fill: var(--viz-titulo); font-size: 16px; font-weight: 800; }
.dg-jde-t { fill: var(--btn-ink); font-size: 21px; font-weight: 800; }
.dg-jde-pill { fill: var(--btn-ink); }
.dg-jde .dg-jde-pill { fill: var(--btn-ink); filter: none; stroke: none; }
.dg-jde-lectura { fill: var(--btn); font-size: 12px; font-weight: 700; }
.dg-con-punta { opacity: .85; }
.dg-punta { fill: none; stroke: var(--blue); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dg-eco { fill: var(--viz-panel); stroke: var(--logo-mid); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.dg-globo { fill: none; stroke: var(--logo-light); stroke-width: 1; opacity: .5; }
.dg-anillo { fill: none; stroke: var(--logo-light); stroke-width: 1.25; opacity: .7; }
.dg-linea { fill: none; stroke: var(--line-strong); stroke-width: 1.25; opacity: .55; }
.dg-flujo { fill: none; stroke: var(--blue); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 2 13; }
.dg-entra { animation: dg-entra 1.7s linear infinite; }
.dg-sale { animation: dg-sale 1.7s linear infinite; }
.dg-orq.dg-flujo { stroke-dasharray: 2 9; animation-duration: 1.1s; }
.dg-salida.dg-flujo { stroke-width: 3; }
.dg-linea.dg-pendiente { stroke-dasharray: 5 5; }
.dg-flujo.dg-pendiente { opacity: .45; }
@keyframes dg-entra { to { stroke-dashoffset: -15; } }
@keyframes dg-sale { to { stroke-dashoffset: 15; } }
.dg-nodo rect, .dg-agente rect { fill: var(--viz-panel); stroke: var(--viz-tinta-marco); stroke-width: 1.25; }
.dg-nodo rect { filter: drop-shadow(0 4px 10px rgba(15, 61, 98, .10)); }
.dg-ico { color: var(--blue); }
.dg-t { fill: var(--viz-titulo); font-size: 14px; font-weight: 700; }
.dg-s { fill: var(--viz-eje); font-size: 12px; font-weight: 500; }
.dg-a { fill: var(--viz-titulo); font-size: 12.5px; font-weight: 600; }
.dg-nodo.dg-pendiente rect { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 4; filter: none; }
.dg-resultado rect { fill: var(--btn); stroke: var(--btn); }
.dg-resultado .dg-t, .dg-resultado .dg-s { fill: var(--btn-ink); }
.dg-resultado .dg-ico { color: var(--btn-ink); }
.dg-nucleo { fill: var(--btn); }
.dg-logo { fill: var(--viz-panel); }
.dg-escia { fill: var(--btn-ink); font-size: 15px; font-weight: 800; letter-spacing: .03em; }
.dg-pulso { fill: var(--logo-light); opacity: 0; transform-box: fill-box; transform-origin: center; animation: dg-pulso 3.6s ease-out infinite; }
.dg-pulso-2 { animation-delay: 1.8s; }
@keyframes dg-pulso { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.como-diagrama figcaption { margin-top: 12px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.dg-nota { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink); font-weight: 600; }
.chip-ejemplo { flex: none; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }

/* Kit de mapa conectado: un solo lenguaje visual. Nodos por tipo, líneas por tipo, zonas Conecta, Comprende y Transforma. */
.mapa { container: mapa / inline-size; margin: 0; min-width: 0; }
.mapa-chico { container: mapa-chico / inline-size; }
.mapa-svg { display: block; width: 100%; height: auto; overflow: visible; stroke-width: 1.75; font-family: inherit; }
.mapa-svg-m, .mapa-lista, .mapa-detalle:empty { display: none; }
.mapa-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.mapa-cabeza .chip-ejemplo { margin-left: auto; }
.mapa-botones { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 999px; background: var(--band); }
.mapa:not(.mapa-js) .mapa-botones, .mapa:not(.mapa-js) .mapa-pasos, .mapa:not(.mapa-js) .mapa-pausa, .mapa:not(.mapa-js) .mapa-texto { display: none; }
.mapa-js .mapa-guion { display: none; }
.mapa-guion { margin: 0 0 12px; padding-left: 20px; color: var(--text); font-size: .9rem; line-height: 1.45; }
.mapa-boton { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.mapa-boton .ico { width: 15px; height: 15px; }
.mapa-boton:hover { background: var(--tint); }
.mapa-boton[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.mapa-pasos { display: flex; gap: 4px; }
.mapa-pasos .mapa-boton { box-shadow: inset 0 0 0 1px var(--line-strong); }
.mapa-pausa { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.mapa-pausa[hidden] { display: none; }
.mapa-pausa .ico { display: block; width: 16px; height: 16px; }
.mp-play, .mapa-pausa[data-estado="pausado"] .mp-pausa { display: none; }
.mapa-pausa[data-estado="pausado"] .mp-play { display: block; }
.mapa-texto { min-height: 2.9em; margin: 0 0 12px; color: var(--ink); font-size: .98rem; font-weight: 600; line-height: 1.45; }
.mapa-svg-m .mt { font-size: 12.5px; }
.mapa-pie { margin-top: 12px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.mz { fill: var(--viz-panel); fill-opacity: .55; stroke: var(--viz-tinta-marco); stroke-width: 1; }
.mz-t { fill: var(--viz-titulo); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.mt { fill: var(--viz-titulo); font-size: 13.5px; font-weight: 700; }
.mt-s { fill: var(--viz-eje); font-size: 12.5px; font-weight: 500; }
.mt-libre { fill: var(--viz-titulo); font-size: 12.5px; font-weight: 500; }
.mt-nucleo { fill: var(--btn-ink); font-size: 12.5px; font-weight: 600; }
.mn { cursor: pointer; outline: none; transition: opacity .18s ease; }
.mr { fill: var(--viz-panel); stroke: var(--viz-tinta-marco); stroke-width: 1.25; filter: drop-shadow(0 4px 10px rgba(15, 61, 98, .10)); transition: stroke .18s ease; }
.mb { fill: var(--tint); stroke: var(--blue); stroke-width: 1.25; }
.mn .dg-ico { color: var(--blue); }
.mn:focus-visible .mr, .mn:focus-visible .dg-nucleo { stroke: var(--focus, var(--blue)); stroke-width: 3; }
.mn-persona .mb { fill: var(--mapa-persona-bg); stroke: var(--mapa-persona); }
.mn-persona .dg-ico { color: var(--mapa-persona); }
.mn-resultado .mr { fill: var(--btn); stroke: var(--btn); }
.mn-resultado .mt, .mn-resultado .mt-s { fill: var(--btn-ink); }
.mn-resultado .mb { fill: var(--btn-ink); stroke: var(--btn-ink); }
.mn-resultado .dg-ico { color: var(--btn); }
.mn-memoria .mb { fill: var(--viz-panel); }
.mn-dev .mr, .mn-pend .mr { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 4; filter: none; }
.mn-lab .mr { stroke: var(--blue); stroke-width: 2; }
.mn-lab .mb { fill: var(--btn); stroke: var(--btn); }
.mn-lab .dg-ico { color: var(--btn-ink); }
.mn-rev .mr { stroke: var(--blue); stroke-width: 1.5; }
.mn-pend .mb { fill: none; stroke-dasharray: 3 3; }
.ml-base { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.ml-dato .ml-base { opacity: .55; stroke-width: 1.25; }
.ml-dev .ml-base { stroke-dasharray: 5 5; opacity: .7; }
.ml-dev .dg-flujo { opacity: .45; }
.ml-paso .ml-base, .ml-aprobacion .ml-base { stroke: var(--blue); }
.ml-sello { fill: var(--mapa-persona-bg); stroke: var(--mapa-persona); stroke-width: 1.25; }
.ml-sello-i { color: var(--mapa-persona); }
.ml-fondo { fill: var(--viz-panel); stroke: var(--viz-tinta-marco); stroke-width: 1; }
.ml-et { fill: var(--viz-titulo); font-size: 12.5px; font-weight: 650; }
.mn.m-off, .ml.m-off { opacity: .28; }
.ml.m-on .ml-base { stroke: var(--blue); stroke-width: 2.5; opacity: 1; }
.ml.m-on .dg-flujo { stroke-width: 3; opacity: 1; }
.mn.m-on .mr { stroke: var(--blue); stroke-width: 2; }
.mn.es-alerta .mr { stroke: var(--mapa-alerta); stroke-width: 2.5; }
.mn.es-alerta .mb { fill: var(--mapa-alerta-bg); stroke: var(--mapa-alerta); }
.mn.es-alerta .dg-ico { color: var(--mapa-alerta); }
.mn.es-ok .mr { stroke: var(--mapa-ok); stroke-width: 2.5; }
.mn.es-ok .mb { fill: var(--mapa-ok-bg); stroke: var(--mapa-ok); }
.mn.es-ok .dg-ico { color: var(--mapa-ok); }
.mn.es-apagado { opacity: .35; }
.mapa-detalle { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--band); color: var(--text); font-size: .92rem; line-height: 1.45; }
.mapa-js .mapa-detalle:not(:has(.mapa-det:not([hidden]))) { display: none; }
.mapa-det strong:first-child { display: block; color: var(--ink); }
.mapa-det p { margin: 4px 0 0; }
.mapa-det[hidden] { display: none; }
.mapa:not(.mapa-js) .mapa-det + .mapa-det { margin-top: 10px; }
.mapa-lista-zona { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; color: var(--ink); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mapa-lista-zona .ico { width: 18px; height: 18px; color: var(--blue); }
.mapa-lista-col { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mapa-lista-col::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 26px; width: 2px; background: var(--line-strong); }
.mi { position: relative; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--viz-panel); }
.mi summary, .mi-fila { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 10px; list-style: none; }
.mi summary { cursor: pointer; }
.mi summary::-webkit-details-marker { display: none; }
.mi summary > .ico { flex: none; width: 16px; height: 16px; margin: 6px 0 0 auto; color: var(--muted); }
.mi-b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--tint); color: var(--blue); box-shadow: inset 0 0 0 1.25px var(--blue); }
.mi-b .ico { width: 16px; height: 16px; }
.mi-b img { width: 20px; height: auto; }
.mi-persona { border-radius: 50%; background: var(--mapa-persona-bg); color: var(--mapa-persona); box-shadow: inset 0 0 0 1.25px var(--mapa-persona); }
.mi-asistente { clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); box-shadow: none; background: var(--tint); }
.mi-fuente { border-radius: 50% / 22%; }
.mi-resultado { border-radius: 50%; background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.mi-nucleo { border-radius: 50%; background: var(--surface); }
.mi-txt { display: grid; gap: 1px; min-width: 0; color: var(--text); font-size: .9rem; line-height: 1.35; }
.mi-txt strong { color: var(--ink); }
.mi .mt-s { color: var(--muted); font-size: .84rem; }
.mi .mt-s:empty { display: none; }
.mapa-estado { justify-self: start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: .74rem; font-weight: 650; }
.mi-pase { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--blue); font-size: .8rem; font-weight: 650; }
.mi-pase .ico { flex: none; width: 13px; height: 13px; }
.mi-det { padding: 0 12px 10px 52px; font-size: .88rem; line-height: 1.45; color: var(--text); }
.mi-det p { margin: 0; }
.mi.m-on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.mi.es-alerta { border-color: var(--mapa-alerta); box-shadow: inset 0 0 0 1px var(--mapa-alerta); }
.mi.es-ok { border-color: var(--mapa-ok); box-shadow: inset 0 0 0 1px var(--mapa-ok); }
.mi.mn-dev, .mi.mn-pend { border-style: dashed; border-color: var(--line-strong); }
.sync-on { outline: 2px solid var(--blue); outline-offset: -2px; }
@container mapa (max-width: 899.98px) {
  .mapa-svg-a { display: none; }
  .mapa-svg-m, .mapa-lista { display: block; }
  .mapa-detalle { display: none; }
}
@container mapa-chico (max-width: 519.98px) {
  .mapa-svg-a { display: none; }
  .mapa-svg-m, .mapa-lista { display: block; }
  .mapa-detalle { display: none; }
}

.hero-alcance { grid-area: impacto; min-width: 0; padding: 14px 14px 12px; border: 1px solid var(--viz-tinta-marco); border-radius: var(--r-l); background: var(--viz-panel); box-shadow: var(--shadow-lift); }
.hero-alcance-mas { margin: 10px 0 0; font-weight: 650; }
.hero-alcance-mas a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hero-alcance-mas .ico { width: 17px; height: 17px; }

.casos-tarjetas { margin-top: 24px; }

.mini { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--viz-panel); box-shadow: 0 6px 16px rgba(15, 61, 98, .10), inset 0 0 0 1px var(--line); color: var(--ink); font-size: .86rem; }
.mini-b { width: fit-content; max-width: 90%; margin: 0 0 6px; padding: 5px 10px; border-radius: 10px; background: var(--band); }
.mini-r { margin-left: auto; background: var(--btn); color: var(--btn-ink); }
.mini-r small { display: block; font-size: .76rem; }
.mini-pasos { padding-left: 30px; }
.mini-pasos .ico, .mini-pase .ico, .mini-voz .ico { width: 15px; height: 15px; margin-right: 4px; vertical-align: -.15em; color: var(--blue); }
.mini-onda { display: inline-flex; align-items: center; gap: 3px; margin: 0 8px; vertical-align: middle; }
.mini-onda i { width: 3px; height: 14px; border-radius: 2px; background: var(--blue); animation: mini-onda 1.1s ease-in-out infinite; }
.mini-onda i:nth-child(2) { animation-delay: .15s; } .mini-onda i:nth-child(3) { animation-delay: .3s; } .mini-onda i:nth-child(4) { animation-delay: .45s; } .mini-onda i:nth-child(5) { animation-delay: .6s; }
@keyframes mini-onda { 50% { transform: scaleY(.45); } }
.mini-barras { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.mini-barras i { flex: 1; border-radius: 3px 3px 0 0; background: var(--viz-1); }
.mini-barras i:nth-child(1) { height: 40%; } .mini-barras i:nth-child(2) { height: 62%; } .mini-barras i:nth-child(3) { height: 50%; } .mini-barras i:nth-child(4) { height: 78%; } .mini-barras i:nth-child(5) { height: 92%; }
.mini-nota { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.card { box-shadow: 0 1px 2px rgba(15, 61, 98, .05), 0 12px 28px rgba(15, 61, 98, .08); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 61, 98, .08), 0 18px 40px rgba(15, 61, 98, .13); }
html[data-theme="dark"] .card { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 28px rgba(0, 0, 0, .3); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chip-level { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 600; text-decoration: none; }
.chip-level:hover { background: var(--tint); }
.chip-level .ico { width: 14px; height: 14px; color: var(--blue); }
.dg-banda { transition: stroke .2s ease, fill-opacity .2s ease; }
.dg-banda.dg-banda-on { fill-opacity: 1; stroke: var(--blue); stroke-width: 3; }
.shot-mapa { min-width: 0; }
.feature .shot-mapa img { max-height: none; }
.shot-ver { margin: 12px 0 0; }
.captura-abrir { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--viz-panel); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.captura-abrir img { width: 64px; height: 44px; object-fit: cover; object-position: top; border-radius: 8px; }
.captura-abrir span { display: inline-flex; align-items: center; gap: 6px; }
.captura-abrir .ico { width: 15px; height: 15px; color: var(--blue); }
.captura-dialogo { width: min(92vw, 1100px); max-height: 92vh; padding: 16px; border: 0; border-radius: var(--r-l); background: var(--surface); color: var(--text); }
.captura-dialogo::backdrop { background: rgba(15, 61, 98, .68); }
.captura-dialogo img { display: block; width: 100%; height: auto; max-height: none; margin-top: 10px; }
.captura-dialogo p { margin: 10px 0 0; font-size: .88rem; }
.de-donde { margin: 8px 0 14px; color: var(--text); font-size: .9rem; }
.de-donde summary { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.de-donde summary::-webkit-details-marker { display: none; }
.de-donde .ico { width: 16px; height: 16px; color: var(--blue); }
.de-donde p { margin: 0 0 6px 24px; }
.flujo-nota { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }

.techo { display: grid; gap: 8px; margin: 14px 0 0; }
.techo-f { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; color: var(--ink); font-size: .86rem; font-weight: 600; }
.techo-b { display: block; height: 12px; border-radius: 6px; background: var(--viz-2); }
.techo-b1 { width: 100%; }
.techo-b2 { width: 74%; background: var(--btn); }

.split-ancho { --viz-panel: #123A5E; --viz-titulo: #EDF6FE; --viz-eje: #BFD8EC; --viz-tinta-marco: rgba(144, 204, 249, .28); --tint: rgba(144, 204, 249, .16); --band: rgba(255, 255, 255, .07); --line-strong: rgba(144, 204, 249, .5); --mapa-persona: #FCD34D; --mapa-persona-bg: #3D2F0B; --mapa-alerta: #FDA29B; --mapa-alerta-bg: #4A1712; --mapa-ok: #86EFAC; --mapa-ok-bg: #0F3A22; grid-column: 1 / -1; min-width: 0; padding: 14px; border-radius: var(--r-l); background: var(--viz-panel); box-shadow: var(--shadow-lift); }
.steps-v li.sync-on { outline: 2px solid var(--blue); outline-offset: -2px; }
#demostracion h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.procesos-t { margin: 18px 0 8px; color: var(--ink); font-weight: 650; }
.procesos-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.procesos-chips a, .procesos-chips button { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--viz-panel); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.procesos-chips a:hover, .procesos-chips button:hover { background: var(--tint); }
.procesos-chips button[aria-pressed="true"] { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
#como-empezar .card.sync-on { outline: 2px solid var(--blue); outline-offset: -2px; }

.meta-lista { display: grid; gap: 4px; margin: 10px 0; padding: 0; list-style: none; }
.meta-lista label { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); font-weight: 600; cursor: pointer; }
.meta-lista input { width: 20px; height: 20px; accent-color: var(--btn); }
.meta-completa { padding: 4px 10px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--mapa-ok); }
.metas-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

.tabla-asistentes tbody tr { transition: background-color .15s ease; }
.tabla-asistentes tr.sync-on { background: var(--tint); outline: 2px solid var(--blue); outline-offset: -2px; }
.fila-conecta th { box-shadow: inset 4px 0 0 var(--cat-1); }
.fila-comprende th { box-shadow: inset 4px 0 0 var(--cat-3); }
.fila-transforma th { box-shadow: inset 4px 0 0 var(--cat-2); }
@media (max-width: 767.98px) {
  .tabla-asistentes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabla-asistentes, .tabla-asistentes tbody, .tabla-asistentes tr, .tabla-asistentes th, .tabla-asistentes td { display: block; width: 100%; min-width: 0; }
  .tabla-asistentes tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r-m); }
}

#era-matriz-t ~ .table-scroll td.sync-on { background: var(--tint); }

.estado-cuenta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.estado-cuenta li { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-m); background: var(--viz-panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: .84rem; }
.estado-cuenta strong { color: var(--ink); font-size: .94rem; }
.estado-leyenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .84rem; font-weight: 600; }
.estado-leyenda li { display: inline-flex; align-items: center; gap: 8px; }
.estado-leyenda i { width: 22px; height: 12px; border-radius: 6px; }
.ley-lab { background: var(--btn); }
.ley-rev { box-shadow: inset 0 0 0 2px var(--btn); background: linear-gradient(90deg, var(--btn) 50%, transparent 50%); }
.ley-pend { box-shadow: inset 0 0 0 0 transparent; border: 1.5px dashed var(--line-strong); }
#estado .card.sync-on { outline: 2px solid var(--blue); outline-offset: -2px; }
@media (max-width: 767.98px) { .estado-cuenta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.doc-herramientas .card.sync-on { outline: 2px solid var(--blue); outline-offset: -2px; }
.doc-herramientas .mapa { margin-block: 16px 20px; }

.arma { padding-block: 56px 8px; color: #fff; }
.arma h2 { margin-bottom: 16px; color: #fff; }
.arma .confianza-fila .ico { color: #fff; }
.arma-mapa { padding: 16px; border-radius: var(--r-l); background: var(--viz-panel); box-shadow: var(--shadow-lift); }
.arma-texto { margin: 14px 0; font-size: 1.02rem; font-weight: 600; }
.confianza-fila { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; }
.confianza-fila li { display: inline-flex; align-items: center; gap: 8px; }
.confianza-fila .ico { flex: none; width: 18px; height: 18px; }
.closing-energia { font-size: 1.12rem; font-weight: 650; }
.form-pasos { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: fp; color: var(--ink); font-size: .84rem; font-weight: 650; }
.form-pasos li { counter-increment: fp; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.form-pasos li::before { content: counter(fp); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: .74rem; }
#leadForm .btn-block { min-height: 54px; font-size: 1.05rem; transition: transform .18s ease, box-shadow .18s ease; }
#leadForm .btn-block:hover { transform: translateY(-2px) scale(1.01); }
@media (max-width: 767.98px) { .arma-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; } .arma-chips button { white-space: nowrap; } }

/* Asistentes conversando: sin JavaScript se leen las dos escenas completas. */
.chatbots { margin-top: 14px; padding: 14px; border: 1px solid var(--viz-tinta-marco); border-radius: var(--r-l); background: var(--viz-panel); box-shadow: var(--shadow-soft); }
.ch-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ch-tabs { display: none; gap: 4px; padding: 3px; border-radius: 999px; background: var(--band); }
.ch-js .ch-tabs { display: inline-flex; }
.ch-tab { min-height: 36px; padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.ch-tab[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.ch-control { display: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ch-js .ch-control:not([hidden]) { display: grid; }
.ch-control .ico { display: block; width: 16px; height: 16px; }
.ch-ic-play, .ch-control[data-estado="pausado"] .ch-ic-pausa { display: none; }
.ch-control[data-estado="pausado"] .ch-ic-play { display: block; }
.chatbots .chip-ejemplo { margin-left: auto; }
.ch-panel + .ch-panel { margin-top: 14px; }
.ch-js .ch-paneles { display: grid; }
.ch-js .ch-panel { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.ch-js .ch-panel.activa { visibility: visible; }
.ch-conv { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.ch-msg { display: flex; align-items: flex-start; gap: 8px; }
.ch-js .ch-msg { visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.ch-js .ch-msg.ch-visible { visibility: inherit; opacity: 1; transform: none; }
.ch-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--band); color: var(--blue); }
.ch-ico .ico { width: 16px; height: 16px; }
.ch-ico img { width: 18px; height: auto; }
.ch-burbuja { margin: 0; padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: var(--band); color: var(--viz-texto); font-size: .86rem; line-height: 1.35; }
.ch-burbuja strong { display: block; color: var(--viz-titulo); font-size: .76rem; font-weight: 750; }
.ch-escia { flex-direction: row-reverse; }
.ch-escia .ch-ico { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ch-escia .ch-burbuja { border-radius: 14px 4px 14px 14px; background: var(--btn); color: var(--btn-ink); }
.ch-escia .ch-burbuja strong { color: var(--btn-ink); }
.ch-aprobado .ch-burbuja { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: center; box-shadow: inset 0 0 0 1.5px var(--btn); background: transparent; font-weight: 700; }
.ch-aprobado .ch-burbuja strong { grid-column: 1 / -1; }
.ch-aprobado .ch-burbuja .ico { width: 16px; height: 16px; color: var(--blue); }
.ch-avisos { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ch-avisos span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 600; }
.ch-avisos .ico { width: 14px; height: 14px; color: var(--blue); }
.ch-nota { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.hx-movil .hx-jde-t { font-size: 10.5px; }
.hero-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; margin-top: 14px; color: var(--ink); font-size: .9rem; }
.hero-pie a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.hero-pie a:hover { text-decoration: underline; }
.hero-pie .ico { width: 17px; height: 17px; }
.como-funciona h2 { margin-bottom: 28px; }

/* Ecosistema de asistentes: fuentes, ESCIA y roles, con pocas etiquetas a la vista. */
.eco { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.6fr); gap: 14px; margin: 32px 0 24px; }
.eco-col.eco-centro { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px 20px; align-items: center; }
.eco-col.eco-centro .eco-tag { grid-column: 1 / -1; }
.mapa-n5 { margin: 8px 0 4px !important; color: var(--ink); font-size: .84rem; }
.mapa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mapa-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--viz-panel); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: .84rem; font-weight: 600; }
.mapa-chips .ico { flex: none; width: 15px; height: 15px; color: var(--blue); }
.mi-s1 { margin-left: 14px; }
.mi-s2 { margin-left: 28px; }
.mi-s3 { margin-left: 42px; }
.eco-fuera { margin-top: 14px !important; }
.eco-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.eco-tag { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: .95rem; font-weight: 750; line-height: 1.25; }
.eco-tag > .ico { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); }
.eco-tag small { display: block; color: var(--blue); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eco-jde { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px; border-radius: var(--r-m); background: var(--btn); color: var(--btn-ink); }
.eco-jde strong { font-size: 1.1rem; }
.eco-jde .ico { width: 24px; height: 24px; }
.eco-marca { padding: 3px 10px; border-radius: 999px; background: var(--btn-ink); color: var(--btn); font-size: .78rem; font-weight: 700; }
.eco-repos { border: 1px solid var(--line-strong); border-radius: var(--r-m); }
.eco-repos summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 14px; color: var(--ink); font-size: .94rem; font-weight: 650; line-height: 1.3; cursor: pointer; list-style: none; }
.eco-repos summary::-webkit-details-marker { display: none; }
.eco-repos summary .ico { flex: none; width: 20px; height: 20px; color: var(--blue); }
.eco-repos summary span { flex: 1; }
.eco-repos[open] summary .ico:last-child { transform: rotate(180deg); }
.eco-repos ul { display: grid; gap: 8px; margin: 0; padding: 0 14px 14px; list-style: none; font-size: .9rem; }
.eco-paso { display: grid; place-items: center; align-self: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line-strong); }
.eco-paso .ico { width: 18px; height: 18px; }
.eco-nucleo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: min(100%, 184px); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: var(--btn); color: var(--btn-ink); text-align: center; font-size: .86rem; font-weight: 600; }
.eco-nucleo strong { font-size: 1.15rem; letter-spacing: .03em; }
.eco-logo { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: var(--surface); }
.eco-logo img { width: 42px; height: auto; }
.eco-capacidades { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.eco-capacidades li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); font-size: .9rem; line-height: 1.25; }
.eco-capacidades .ico { flex: none; width: 20px; height: 20px; color: var(--blue); }
.eco-capacidades small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.eco-pendiente { border-style: dashed !important; border-color: var(--line-strong) !important; }
.eco-pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.eco-rol { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.eco-rol .ico { width: 17px; height: 17px; }
.eco-rol:hover { background: var(--tint); }
.eco-rol[aria-pressed="true"] { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.eco-tarjeta { padding: 16px; border-radius: var(--r-m); background: var(--band); }
.eco-tarjeta + .eco-tarjeta { margin-top: 10px; }
.eco-tarjeta[hidden] { display: none; }
.eco-tarjeta h3 { margin: 0 0 8px; font-size: 1.05rem; }
.eco-tarjeta p { margin: 0 0 10px; font-size: .94rem; line-height: 1.45; }
.eco-pregunta { display: flex; gap: 8px; color: var(--ink); font-size: 1rem !important; font-weight: 700; }
.eco-pregunta .ico { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--blue); }
.eco-tarjeta ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.eco-tarjeta li { display: flex; align-items: center; gap: 8px; }
.eco-tarjeta li .ico { flex: none; width: 17px; height: 17px; color: var(--blue); }
.eco-fuera { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.eco-fuera strong { color: var(--ink); }
.eco-fuera .ico { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--blue); }

@media (max-width: 999.98px) {
  .eco { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .eco-paso { justify-self: center; transform: rotate(90deg); }
  .eco-col.eco-centro { grid-template-columns: minmax(0, 1fr); }
}

/* Gráfica compacta del primer impacto */
.hero-impacto { margin: 0; min-width: 0; padding: 18px 20px 12px; border: 1px solid var(--viz-tinta-marco); border-radius: var(--r-l); background: var(--viz-panel); box-shadow: var(--shadow-lift); }
.hero-impacto-cabeza { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.hero-cifra { margin: 0; color: var(--ink); font-size: 1.55rem; font-stretch: 92%; font-weight: 800; line-height: 1.15; }
.hero-cifra-txt { margin: 2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }

/* Gráficas: el contenedor mide su ancho y el dibujo usa píxeles reales para que el texto no se encoja. */
.viz { position: relative; min-width: 0; }
.viz-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.viz-svg:focus-visible { outline-offset: 4px; }
.viz-rejilla { stroke: var(--viz-rejilla); stroke-width: 1; }
.viz-eje { fill: var(--viz-eje); font-size: 11.5px; font-weight: 500; }
.viz-eje-fuerte { fill: var(--viz-titulo); font-weight: 650; }
.viz-txt { fill: var(--viz-texto); font-size: 12.5px; font-weight: 500; }
.viz-txt-f { fill: var(--viz-titulo); font-weight: 650; }
.viz-linea { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viz-s1 { stroke: var(--viz-1); stroke-width: 2.5; }
.viz-s2 { stroke: var(--viz-2); }
.viz-s1-relleno { fill: var(--viz-1); }
.viz-s2-relleno { fill: var(--viz-2); }
.viz-punteada { stroke-dasharray: 2 5; }
.viz-trazo { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-out; }
.viz-banda { fill: var(--viz-banda); }
.viz-fin { stroke: var(--viz-panel); stroke-width: 2; }
.viz-cruz { stroke: var(--line-strong); stroke-width: 1; opacity: 0; pointer-events: none; }
.viz-punto { stroke: var(--viz-panel); stroke-width: 2; opacity: 0; pointer-events: none; }
.viz-relleno-1 { fill: var(--viz-1); }
.viz-cat-1 { fill: var(--cat-1); } .viz-cat-2 { fill: var(--cat-2); } .viz-cat-3 { fill: var(--cat-3); } .viz-cat-4 { fill: var(--cat-4); }
.viz-rampa-1 { fill: var(--rampa-1); } .viz-rampa-2 { fill: var(--rampa-2); } .viz-rampa-3 { fill: var(--rampa-3); } .viz-rampa-4 { fill: var(--rampa-4); }
.viz-pista { fill: var(--tint); }
.viz-meta { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.viz-fila { cursor: default; }
[data-m] { transition: opacity .15s ease; }
.viz-svg:has(.activo) [data-m]:not(.activo) { opacity: .55; }
.viz-barra { transition: transform .8s cubic-bezier(.2, .7, .2, 1) var(--r, 0ms); transform-box: fill-box; }
.viz-crece, .viz-crece-seg { transform-origin: left center; }
.viz-crece-c { transform-origin: center; }
.viz-sube { transform-origin: center bottom; }
.viz-aparece { transition: opacity .6s ease .35s; }
.viz-espera .viz-crece, .viz-espera .viz-crece-seg, .viz-espera .viz-crece-c { transform: scaleX(0); }
.viz-espera .viz-sube { transform: scaleY(0); }
.viz-espera .viz-trazo { stroke-dashoffset: 1; }
.viz-espera .viz-aparece { opacity: 0; }
@media print { .viz-espera .viz-barra { transform: none; } .viz-espera .viz-trazo { stroke-dashoffset: 0; } .viz-espera .viz-aparece { opacity: 1; } }
.viz-ley { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 8px; padding: 0; color: var(--text); font-size: .8rem; }
.viz-ley li { display: inline-flex; align-items: center; gap: 6px; }
.ley { flex: none; display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--viz-1); }
.ley-s2 { background: var(--viz-2); }
.ley-punteada { background: repeating-linear-gradient(90deg, var(--viz-1) 0 3px, transparent 3px 7px); }
.ley-banda { height: 10px; background: var(--viz-banda); box-shadow: inset 0 0 0 1px var(--logo-light); }
.ley-cat-1, .ley-cat-2, .ley-cat-3, .ley-cat-4 { width: 12px; height: 12px; border-radius: 3px; }
.ley-cat-1 { background: var(--cat-1); } .ley-cat-2 { background: var(--cat-2); } .ley-cat-3 { background: var(--cat-3); } .ley-cat-4 { background: var(--cat-4); }
.ley-pendiente { width: 22px; height: 0; border-radius: 0; background: none; border-top: 2px dashed var(--line-strong); }
.viz-tip { position: absolute; z-index: 6; width: max-content; max-width: 240px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--viz-panel); color: var(--viz-texto); box-shadow: var(--shadow-soft); font-size: .8rem; line-height: 1.4; pointer-events: none; }
.viz-tip strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 700; }
.tip-fila { display: flex; justify-content: space-between; gap: 14px; }
.tip-fila b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.viz-tablas { margin-top: 10px; border-bottom: 0; }
.viz-tablas summary { justify-content: flex-start; gap: 6px; padding-block: 6px; color: var(--blue); font-size: .88rem; font-weight: 600; }
.viz-tablas summary .ico { width: 17px; height: 17px; margin-top: 3px; }
.viz-tablas-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; max-height: 340px; overflow: auto; padding: 10px; border: 1px solid var(--viz-tinta-marco); border-radius: var(--r-s); background: var(--viz-panel); color: var(--viz-texto); }
.viz-tablas table { min-width: 0; font-size: .84rem; }
.viz-tablas caption { padding-bottom: 6px; color: var(--ink); font-weight: 650; text-align: left; }
.viz-tablas th, .viz-tablas td { padding: 5px 8px; }
.viz-tablas td { font-variant-numeric: tabular-nums; }

/* Paneles de los asistentes */
.feature-panel { grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr); gap: 44px; align-items: start; }
.feature-panel:nth-of-type(even) .feature-copy { order: 0; }
.feature-panel .feature-copy { position: sticky; top: 104px; }
.panel { min-width: 0; padding: 22px; border-radius: 28px; background: var(--feature-bg); }
.panel-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.panel-pregunta { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--ink); font-weight: 650; }
.panel-pregunta .ico { color: var(--blue); }
.panel-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.panel-regla { margin: 0; color: var(--text); font-size: .88rem; }
.panel-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.viz-tarjeta { margin: 0; min-width: 0; padding: 16px; border: 1px solid var(--viz-tinta-marco); border-radius: var(--r-m); background: var(--viz-panel); }
.viz-tarjeta figcaption { margin-bottom: 10px; color: var(--ink); font-size: .93rem; font-weight: 650; line-height: 1.3; }
.viz-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.viz-ancha { grid-column: 1 / -1; }
.viz-nota { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.viz-cifra { margin: 0; color: var(--ink); font-size: 2.4rem; font-stretch: 92%; font-weight: 800; line-height: 1.1; }
.viz-estado { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 12px; color: var(--text); font-size: .86rem; line-height: 1.35; }
.viz-estado .ico { width: 17px; height: 17px; margin-top: 1px; color: var(--ink); }
.viz-conmuta { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.viz-conmuta button { min-width: 44px; min-height: 36px; padding: 4px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.viz-conmuta button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); }
.panel-fuente { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--text); font-size: .86rem; line-height: 1.4; }
.panel-fuente .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.propuesta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 14px 0; padding: 14px 16px; border: 1.5px solid var(--blue); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-size: .93rem; line-height: 1.4; }
.propuesta p { display: flex; align-items: flex-start; gap: 9px; margin: 0; }
.propuesta .ico { width: 20px; height: 20px; color: var(--blue); }
.propuesta strong { font-weight: 700; }

/* Capacidades y confianza */
.block-sin-tope { padding-top: 0; }
.card-capacidad .ico-box { margin-bottom: 14px; }
.capacidad-chip { margin: -4px 0 8px; }
.card-capacidad h3 { font-size: 1.14rem; }
.card-capacidad p { font-size: .96rem; line-height: 1.55; }
.tira { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0 12px; padding: 0; color: var(--ink); font-size: .86rem; font-weight: 700; }
.tira li { padding: 3px 11px; border-radius: 8px; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.tira li + li { position: relative; margin-left: 14px; }
.tira li + li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--logo-light); }
.flow-line { position: relative; z-index: 2; margin-top: -46px; }
.flow-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-lift); color: var(--ink); font-size: .9rem; font-weight: 500; }
.flow-card span { display: inline-flex; align-items: center; gap: 7px; }
.flow-card .flow-grupo { flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.flow-card .ico { color: var(--blue); width: 20px; height: 20px; }
.flow-arrow { display: inline-flex; }
.flow-card .is-core { padding: 8px 15px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.flow-card .is-core .ico { color: inherit; }

/* Tarjetas */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; margin-top: 36px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); scroll-margin-top: 96px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card p:last-of-type { flex-grow: 1; }
.card-plain { padding: 30px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--logo-light); }
}
.ico-box { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--r-m); margin-bottom: 20px; background: var(--tint); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
.ico-box .ico { width: 26px; height: 26px; }
.num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-m); margin-bottom: 20px; background: var(--btn); color: var(--btn-ink); font-size: 1.25rem; font-weight: 800; }
.start { list-style: none; padding: 0; margin-bottom: 22px; }
.start + .note + .btn { margin-top: 14px; }

/* Funciones */
.feature { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 68px; align-items: center; padding-block: 48px; scroll-margin-top: 88px; }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature:nth-of-type(even):not(.feature-panel) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feature h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-stretch: 92%; line-height: 1.14; margin-bottom: 14px; }
.feature .shot { padding: 32px 32px 20px; border-radius: 28px; background: var(--feature-bg); }
.feature img { max-height: 400px; }
.feature .shot-marco { box-shadow: var(--shadow-soft); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: .79rem; font-weight: 650; line-height: 1.35; }
.chip-laboratorio { background: var(--chip-lab-bg); color: var(--chip-lab-ink); }
.chip-revision { background: var(--chip-rev-bg); color: var(--chip-rev-ink); }
.chip-propuesta { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip-level { color: var(--muted); font-size: .84rem; font-weight: 500; }
.ticks { list-style: none; margin: 18px 0 10px; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; }
.ticks .ico { margin-top: 4px; width: 19px; height: 19px; color: var(--blue); }
.shot-missing { display: flex; align-items: center; gap: 14px; min-height: 240px; padding: 32px; border: 2px dashed var(--line-strong); border-radius: 28px; background: var(--tint); color: var(--ink); }
.shot-missing p { margin: 0; }
.shot-missing .ico { width: 30px; height: 30px; color: var(--blue); }
.loop { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; counter-reset: paso; }
.loop li { counter-increment: paso; padding: 16px 18px; border-radius: var(--r-m); background: var(--tint); color: var(--ink); font-weight: 500; font-size: .96rem; }
.loop li::before { content: counter(paso) ". "; color: var(--blue); font-weight: 800; }

/* Flujo previsto del asistente de ejecución. Línea punteada: todavía no funciona. */
.flujo { margin: 0; min-width: 0; }
.flujo-rotulo { margin: 0; }
.flujo-rotulo .chip { background: var(--surface); }
.flujo-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; }
.flujo-pasos li { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 16px 14px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--surface); }
.flujo-cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 10px; }
.flujo-num { color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.flujo-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); }
.flujo-ico .ico { width: 22px; height: 22px; }
.flujo-pasos strong { color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.flujo-txt { color: var(--text); font-size: .88rem; line-height: 1.4; }
.flujo-flecha { position: absolute; top: 50%; left: -28px; display: grid; place-items: center; width: 28px; height: 24px; margin-top: -12px; color: var(--blue); }
.flujo-flecha .ico { width: 20px; height: 20px; }
.flujo figcaption { color: var(--muted); font-size: .88rem; margin-top: 16px; }
.panel > .flujo-rotulo { margin: 0 0 14px; }
.panel-cabeza-tras-flujo { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Caso: escenario oscuro en ambos modos */
.band-deep {
  --ink: #EDF6FE; --text: #D8EDFD; --muted: #BFD8EC; --blue: #90CCF9; --btn: #90CCF9; --btn-hover: #B4DDFB; --btn-ink: #0F3D62; --focus: #90CCF9; --surface: rgba(255, 255, 255, .07); --line: rgba(144, 204, 249, .28);
  background: var(--hex), linear-gradient(135deg, #0F3D62 0%, #0B2A47 100%);
  color: var(--text);
}
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.steps-v { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; gap: 14px; }
.steps-v li { counter-increment: paso; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.steps-v li::before { content: "0" counter(paso); grid-row: span 2; color: var(--blue); font-weight: 800; font-size: 1.15rem; }
.steps-v strong { color: var(--ink); font-weight: 650; }
.steps-v span { color: var(--muted); font-size: .95rem; }

/* Línea ESCIA y recursos */
.linea { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 6px; padding: 0; }
.linea li { position: relative; }
.linea li + li::before { content: ""; position: absolute; left: -24px; top: 56px; width: 24px; height: 2px; background: var(--logo-light); }
.linea a { display: block; height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.linea a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--logo-light); }
.linea-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--btn); color: var(--btn-ink); }
.linea-ico .ico { width: 28px; height: 28px; }
.linea strong { display: block; color: var(--ink); font-size: 1.7rem; font-stretch: 88%; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.linea-txt { display: block; font-size: .98rem; line-height: 1.45; }
.linea-mas { margin: 18px 0 0; }
.level { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, .85fr); gap: 36px; padding: 36px; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); scroll-margin-top: 88px; }
.level-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: var(--r-m); background: var(--tint); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
.level-ico .ico { width: 26px; height: 26px; }
.level-head h3 { font-size: 2.1rem; font-stretch: 88%; font-weight: 800; line-height: 1.1; margin-bottom: 10px; color: var(--blue); }
.level-claim { color: var(--ink); font-weight: 600; margin: 0; }
.level-body p:last-child { margin-bottom: 0; }
.level-links { border-left: 1px solid var(--line); padding-left: 28px; }
.level-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.level-links a { display: flex; align-items: flex-start; gap: 6px; padding-block: 6px; font-weight: 500; font-size: .96rem; line-height: 1.4; text-decoration: none; }
.level-links a:hover span { text-decoration: underline; }
.level-links .ico { width: 16px; height: 16px; margin-top: 3px; }
.table-box { margin-top: 60px; scroll-margin-top: 88px; }
.table-box h3 { font-size: 1.6rem; font-stretch: 92%; }
.table-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { color: var(--ink); background: var(--tint); font-weight: 650; }
tbody th a { font-weight: 650; }
td strong { color: var(--ink); font-weight: 600; }
.gates { margin-top: 60px; scroll-margin-top: 88px; }
.gates h3 { font-size: 1.6rem; font-stretch: 92%; }
.gates .grid-2 { margin: 20px 0 24px; }
.cycle-note { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; margin-top: 28px; }
.cycle-note .ico { color: var(--blue); }

/* Documentación */
.doc-aviso { display: flex; align-items: flex-start; gap: 12px; max-width: 78ch; margin-bottom: 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--tint); color: var(--ink); font-size: .96rem; }
.doc-aviso .ico { margin-top: 2px; color: var(--blue); }
.doc-grupo { margin: 32px 0 0; }
.doc-grupo + .doc-grid { margin-top: 18px; }
.doc-proximo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; }
.doc-herramientas { margin-top: 48px; }
.doc-herramientas .grid-4 { margin-top: 18px; }
.start-cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.start-cabeza .num { margin: 0; }
.start-cabeza .ico-box { margin: 0; }
.empezar-bloques { margin-block: 32px; }
.empezar-bloque { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); scroll-margin-top: 96px; }
.empezar-bloque h3 { margin: 0 0 14px; }
.empezar-lista { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.empezar-lista li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.45; }
.empezar-lista .ico-box { flex: none; margin: 0; }
.empezar-lista strong { display: block; color: var(--ink); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.demo { display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); scroll-margin-top: 92px; }
.demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.demo-head .ico-box { margin: 0; }
.demo-head h3 { margin: 0; }
.demo p code, .doc-grid .demo-dato code { color: var(--ink); }
.demo > p code { padding: 1px 6px; border-radius: 6px; background: var(--tint); white-space: nowrap; }
.demo-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-top: 12px; }
.demo-form-3 { grid-template-columns: minmax(0, 1fr) 104px auto; }
.demo-form .btn { min-height: 48px; }
.demo-form-apilado { grid-template-columns: minmax(0, 1fr); }
.demo-form-apilado .btn { justify-self: start; }
.demo .mono { font-family: var(--mono); white-space: pre; }
.demo-out { flex: 1 0 auto; min-height: 76px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--r-s); background: var(--band); color: var(--ink); font-size: .96rem; }
html[data-theme="dark"] .demo-out { background: var(--tint); }
.demo-out p { margin: 0 0 8px; }
.demo-out > :last-child { margin-bottom: 0; }
.demo-out.es-error { border-left-color: var(--err); }
.demo-vacio { color: var(--muted); }
.demo-etiqueta { display: block; color: var(--muted); font-size: .8rem; font-weight: 650; }
.demo-dato code { display: block; font-size: 1.12rem; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.demo-error { display: flex; align-items: flex-start; gap: 8px; color: var(--err); font-weight: 600; }
.demo-error .ico { width: 20px; height: 20px; margin-top: 2px; }
.demo-rotulo { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--hero); color: var(--ink); font-size: .9rem; font-weight: 650; }
.demo-rotulo .ico { width: 18px; height: 18px; margin-top: 2px; }
.demo-fuentes { margin: 2px 0 8px; padding-left: 18px; }
.demo-regla { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; margin-bottom: 10px; }
.demo-regla span { display: grid; place-items: center; height: 32px; border-radius: 4px; background: var(--btn); color: var(--btn-ink); font-family: var(--mono); font-size: .86rem; font-weight: 700; }
.demo-regla .es-espacio { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.code { min-width: 0; margin-top: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--code-bg); overflow: hidden; }
.code-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 6px 8px 6px 14px; background: var(--code-bar); color: var(--code-ink); font-size: .84rem; font-weight: 600; }
.code-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.code-bar .ico { width: 17px; height: 17px; }
.code-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 1px solid rgba(144, 204, 249, .4); border-radius: var(--r-s); background: transparent; color: var(--code-ink); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.code-copy:hover { background: rgba(144, 204, 249, .16); }
.code-copy:focus-visible { outline-color: #90CCF9; }
.code pre { margin: 0; max-height: 280px; overflow: auto; padding: 16px; color: var(--code-ink); font-size: .82rem; line-height: 1.55; tab-size: 2; }
.code pre:focus-visible { outline: 3px solid #90CCF9; outline-offset: -3px; }
.code code { font-size: inherit; }

/* Equipo y testimonios */
.person { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); }
.photo { position: relative; display: grid; place-items: center; width: 112px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-m); background: var(--hero); margin-bottom: 16px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .mono { color: var(--blue); font-size: 1.7rem; font-weight: 800; }
.pname { font-size: 1.25rem; }
.ppos, .prole, .pbio { margin-bottom: 6px; }
.ppos { color: var(--ink); font-weight: 600; }
.pinfo .lbl { font-size: .84rem; font-weight: 600; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.skills span { padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; }
.plinks { display: flex; flex-wrap: wrap; gap: 8px; }
.plinks a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.pmail { font-size: .88rem; color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }
/* Nuestra gente: carrusel. Sin JavaScript es una fila que se desliza con el dedo; con JavaScript suma flechas, puntos y avance automático. */
.team-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.team-head h2 { margin-bottom: 0; }
.team-nav { display: flex; gap: 10px; }
.team-nav[hidden], .team-dots[hidden], .team-btn[hidden] { display: none; }
.team-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.team-btn:hover { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.team-btn:active { transform: scale(.94); }
.team-btn .ico { width: 20px; height: 20px; margin: 0; }
.team-viewport { position: relative; margin-top: 28px; border-radius: var(--r-l); }
.team-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.team-track { list-style: none; display: flex; gap: 24px; margin: 0 -14px -14px; padding: 18px 14px 40px; scroll-padding-inline: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.team-track::-webkit-scrollbar { display: none; }
.team-track > .person { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; margin: 0; }
.team-carousel.is-moving .team-track > .person { transition: opacity .45s ease, transform .45s ease, box-shadow .45s ease; }
.team-track > .person { transform: scale(var(--zoom, 1)); transform-origin: 50% 60%; }
.team-carousel.is-moving .team-track > .person:not(.is-active) { opacity: .45; transform: scale(.95); }
/* Lupa tipo Mac: la ficha bajo el puntero crece y la vecina un poco menos (el script calcula --zoom). */
.team-carousel .team-track.is-lupa > .person { transition: opacity .45s ease, transform .18s ease-out, box-shadow .25s ease; }
.team-track > .person.is-lupa { z-index: 1; box-shadow: var(--shadow-panel); }
.team-btn.is-girando { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.team-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.team-dot { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.team-dot::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); translate: -50% -50%; transition: width .3s ease, background-color .3s ease; }
.team-dot[aria-current="true"]::before { width: 28px; background: var(--blue); }
/* Barra de progreso del avance automático. */
.team-carousel.is-playing .team-dot[aria-current="true"]::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 28px; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--btn-ink) 45%, transparent); translate: -50% -50%; transform-origin: left; animation: team-progreso 6s linear forwards; }
@keyframes team-progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Escritorio: dos fichas a la vista, con la foto a la izquierda. */
@media (min-width: 1024px) {
  .team-track > .person { flex-basis: calc((100% - 24px) / 2); display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .team-track > .person .photo { width: 132px; margin-bottom: 0; }
}
@media (min-width: 701px) and (max-width: 1023.98px) {
  .team-track > .person { flex-basis: calc((100% - 24px) / 1.6); }
}
@media (max-width: 700px) {
  .team-track { gap: 14px; }
  .team-track > .person { flex-basis: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .team-carousel.is-moving .team-track > .person { transition: none; }
  .team-carousel.is-playing .team-dot[aria-current="true"]::after { animation: none; }
}
.tcard { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-card); }
.ttop { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tqm { display: none; }
.tby small { display: block; color: var(--muted); }
.stars .ico { width: 18px; height: 18px; }
.star-on { color: var(--logo-mid); fill: currentColor; }
.star-off { color: var(--line); }

/* Preguntas */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; margin-top: 36px; align-items: start; }
.faq-group h3 { margin-bottom: 12px; color: var(--blue); font-size: 1.05rem; }
details { border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; color: var(--ink); font-weight: 550; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .ico { width: 20px; height: 20px; margin-top: 4px; color: var(--blue); transition: transform .18s ease; }
details[open] summary .ico { transform: rotate(180deg); }
details p { padding-bottom: 8px; }
html[data-reading="resumida"] .faq-detail-only { display: none; }

/* Cierre y formulario */
.closing { background: var(--hex), linear-gradient(135deg, #0B6AB7 0%, #0F4F86 100%); border-radius: 56px 56px 0 0; margin-top: 0; }
html[data-theme="dark"] .closing { background: var(--hex), linear-gradient(135deg, #123A5E 0%, #10283F 100%); }
.closing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 92px; color: #fff; scroll-margin-top: 88px; }
.closing-in h2, .closing-copy strong { color: #fff; }
.closing-in .eyebrow { color: #fff; }
.obtienes-t { margin: 22px 0 10px; color: #fff; font-size: 1.2rem; }
.obtienes { list-style: none; display: grid; gap: 10px; margin: 0 0 8px; padding: 0; }
.obtienes-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-m); background: rgba(8, 25, 43, .16); line-height: 1.42; }
.obtienes-fuerte { padding-block: 16px; border: 2px solid #fff; background: rgba(8, 25, 43, .32); }
.obtienes-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff; color: #0B6AB7; }
.obtienes-ico .ico { width: 21px; height: 21px; }
.obtienes-item strong { display: block; font-size: 1.05rem; font-weight: 750; }
.obtienes-txt { display: block; color: #fff; font-size: .95rem; }
.closing-q { padding: 18px 0; margin: 20px 0; border-block: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; }
.closing-small { color: #fff; font-size: .92rem; }
.closing-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.closing-link .ico { width: 19px; height: 19px; }
.closing-in :focus-visible { outline-color: #fff; }
.form-card { padding: 34px; border-radius: var(--r-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); scroll-margin-top: 92px; }
.form-card .eyebrow { color: var(--blue); }
.form-card :focus-visible { outline-color: var(--focus); }
.form-fields { display: grid; gap: 16px; }
.form-fields h3 { font-size: 1.55rem; font-stretch: 92%; margin: 0; }
.form-sub { margin: -8px 0 0; color: var(--muted); font-size: .95rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fld { min-width: 0; }
.fld label { display: block; color: var(--ink); font-size: .94rem; font-weight: 600; margin-bottom: 5px; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--page); color: var(--ink); font: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--blue); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(144, 204, 249, .4); outline: none; }
.fld textarea { resize: vertical; }
.chk { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: .92rem; }
.chk input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--err); font-weight: 600; margin: 0; }
.form-msg { padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; }
.done-box { text-align: center; }
.done-box[hidden], #formFields[hidden], [hidden] { display: none !important; }
.done-art { display: block; margin: 0 auto 14px; width: 220px; height: auto; }
html[data-theme="dark"] .done-art { padding: 10px; border-radius: 12px; background: #fff; }

/* Pie */
.foot { padding-block: 60px 36px; color: var(--muted); background: var(--page); }
/* Pie: panel de marca a la izquierda y cinco columnas a la derecha, en dos filas para que nada se recorte. */
.foot-main { display: grid; grid-template-columns: minmax(300px, 352px) minmax(0, 1fr); gap: 36px 56px; padding-bottom: 36px; }
.foot-marca { display: grid; align-content: start; justify-items: start; gap: 16px; min-width: 0; padding: 18px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-soft); }
.foot-marca .brand small { white-space: normal; }
.foot-ilus { display: block; width: 100%; height: auto; margin-bottom: 2px; padding: 6px 4px; border-radius: 14px; background: var(--band); overflow: visible; stroke-width: 1.75; }
.foot-ilus .dg-escia { font-size: 9.5px; }
.foot-ilus .dg-linea { opacity: .7; }
.foot-ilus .dg-flujo { opacity: .55; stroke-width: 1.75; animation-duration: 3.4s; }
.pie-nodo rect { fill: var(--viz-panel); stroke: var(--viz-tinta-marco); stroke-width: 1; }
.pie-nodo text { fill: var(--viz-titulo); font-size: 11.5px; font-weight: 700; }
.pie-nodo .dg-ico { color: var(--blue); }
.pie-jde rect { fill: var(--btn); stroke: var(--btn); }
.pie-jde text { fill: var(--btn-ink); }
.pie-jde .dg-ico { color: var(--btn-ink); }
.pie-brillo-a { stop-color: var(--logo-light); stop-opacity: .5; }
.pie-brillo-b { stop-color: var(--logo-light); stop-opacity: 0; }
.pie-brillo { opacity: .7; animation: pie-respira 6s ease-in-out infinite; }
@keyframes pie-respira { 50% { opacity: 1; } }
.foot-linea { gap: 6px 12px; margin: 0; font-size: .84rem; }
.foot-linea .hero-line-ico { width: 26px; height: 26px; border-radius: 8px; }
.foot-linea .hero-line-ico .ico { width: 15px; height: 15px; }
.foot-frase { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; align-content: start; min-width: 0; }
.foot-cols > nav { min-width: 0; }
.foot-cols { grid-template-rows: auto 1fr; }
.foot-col-plataforma { grid-row: span 2; }
.foot-main { align-items: start; }
.foot-col { border-bottom: 0; }
.foot-col .foot-grupo { padding-bottom: 0; }
.foot-col > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 0; list-style: none; pointer-events: none; }
.foot-col > summary::-webkit-details-marker { display: none; }
.foot-col > summary > .ico { display: none; width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.foot-cols h2 { margin: 0 0 12px; max-width: none; color: var(--ink); font-size: .8rem; font-stretch: 100%; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-cols a, .foot-btn { display: inline-block; padding: 5px 8px; margin-inline: -8px; border-radius: 8px; color: var(--text); font: inherit; font-size: .9rem; line-height: 1.35; text-decoration: none; overflow-wrap: break-word; transition: background-color .15s ease, transform .15s ease; }
.foot-cols a:hover, .foot-btn:hover { background: var(--tint); color: var(--blue); transform: translateX(2px); }
.foot-cols .foot-i { display: flex; align-items: flex-start; gap: 8px; }
.foot-ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--tint); color: var(--blue); }
.foot-cols .foot-ico .ico { width: 14px; height: 14px; margin: 0; vertical-align: 0; }
.foot-est { margin-left: 4px; padding: 0 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-size: .72rem; font-style: normal; font-weight: 650; white-space: nowrap; }
.foot-grupo { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; color: var(--ink); font-size: .84rem; font-weight: 700; }
.foot-grupo .ico { width: 16px; height: 16px; margin: 0; color: var(--blue); }
.foot-destacada { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-soft); }
.foot-destacada > div { display: grid; flex: 1 1 220px; color: var(--muted); font-size: .9rem; }
.foot-destacada strong { color: var(--ink); font-size: 1.02rem; }
.foot-cols .ico { width: 15px; height: 15px; margin-left: 4px; vertical-align: -.12em; }
.foot-btn { display: inline-flex; align-items: center; padding-inline: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.foot-btn .ico { margin: 0 6px 0 0; width: 17px; height: 17px; }
/* Pie: Nuestra gente con caras, íconos en Empresa, subrayado animado y barra legal. */
.foot-cols h2 { display: flex; align-items: center; gap: 10px; }
.foot-cols h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.foot-cols a:not(.foot-i):not(.foot-gente) { position: relative; }
.foot-cols .foot-i .ico { margin-left: 4px; }
.foot-gente { display: flex !important; align-items: center; gap: 10px; font-weight: 650; color: var(--ink) !important; }
.foot-caras, .nav-gente-caras { display: inline-flex; flex: none; }
.nav-cara { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; overflow: hidden; border: 2px solid var(--surface); border-radius: 50%; background: var(--hero); color: var(--blue); font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.nav-cara:first-child { margin-left: 0; }
.nav-cara img { width: 100%; height: 100%; object-fit: cover; }
.foot .nav-cara { border-color: var(--page); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }
.foot-legal p { margin: 0; }
.foot-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.foot-legal a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .ico { width: 15px; height: 15px; margin: 0; }
.foot-arriba .ico { rotate: -90deg; }
/* Encabezado: menú Empresa con Nuestra gente al frente. */
.nav-panel-empresa { left: auto; right: 0; width: min(420px, calc(100vw - 32px)); }
.nav-gente { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--band); color: var(--ink); text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.nav-gente:hover { background: var(--tint); border-color: var(--logo-light); }
.nav-gente .nav-cara { width: 36px; height: 36px; margin-left: -10px; font-size: .74rem; }
.nav-gente .nav-cara:first-child { margin-left: 0; }
.nav-gente > .ico { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--blue); transition: translate .15s ease; }
.nav-gente:hover > .ico { translate: 3px 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials .soc { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); transition: background-color .15s ease; }
.socials a.soc:hover { background: var(--tint); }
.socials .soc.off { color: var(--muted); }

/* Recorrido de un minuto */
.tour-modal { width: min(92vw, 780px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow-panel); }
.tour-modal::backdrop { background: rgba(15, 61, 98, .68); }
.tour-shell { padding: 26px; }
.tour-head, .tour-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.tour-head .eyebrow { margin: 0; }
.tour-controls > div { display: flex; gap: 8px; }
.tour-steps { display: flex; gap: 6px; margin: 12px 0 18px; }
.tour-step { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.tour-step.current { background: var(--blue); }
.tour-linea { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; color: var(--ink); font-size: .86rem; font-weight: 650; }
.tour-linea li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.tour-linea .ico { width: 15px; height: 15px; }
.tour-linea li.actual { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.tour-cabeza { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tour-cabeza .kicker { margin: 0; }
#tour-title { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.18; margin-bottom: 14px; max-width: none; }
.tour-art { margin-bottom: 14px; padding: 8px; border-radius: 12px; background: var(--band); }
.tour-scene { max-width: 480px; margin-inline: auto; overflow: visible; }
.tour-scene { display: block; width: 100%; height: auto; }

/* Aparición discreta al desplazarse; solo la activa el script si no se pidió reducir movimiento. */
.reveal { opacity: 0; translate: 0 14px; transition: opacity .5s ease, translate .5s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.reveal.visto { opacity: 1; translate: 0 0; }
@media print { .reveal { opacity: 1; translate: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .linea a:hover, .btn:hover { transform: none; }
}

/* Computadoras angostas: el encabezado se compacta para que los paneles sigan flotando. */
@media (min-width: 1023.99px) and (max-width: 1540px) {
  .top-row { gap: 12px; padding-inline: 20px; }
  .top .brand small { display: none; }
  .menu { gap: 8px; }
  .nav-link, .nav-trigger { padding-inline: 8px; font-size: .93rem; }
  .menu-tools .tool { width: 44px; justify-content: center; padding: 0; }
  .menu-tools .tool > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-tools .btn { margin-left: 4px; padding-inline: 14px; font-size: .88rem; }
}

@media (min-width: 1023.99px) and (max-width: 1240px) {
  .top-row { gap: 6px; padding-inline: 12px; }
  .menu { gap: 4px; }
  .brand { gap: 6px; }
  .brand img { width: 36px; height: 34px; }
  .brand strong { font-size: 1.14rem; }
  .nav-link, .nav-trigger { padding-inline: 5px; font-size: .86rem; }
  .nav-trigger .ico { width: 13px; height: 13px; }
  .menu-tools { gap: 0; }
  .menu-tools .tool, .menu-tools .tool-icon { width: 36px; }
  .menu-tools .btn { padding-inline: 10px; font-size: .82rem; }
}

/* Debajo de este ancho los menús pasan a acordeón dentro del menú móvil. */
@media (max-width: 1023.98px) {
  .menu-btn { display: inline-flex; }
  .top-cta { display: inline-flex; }
  .menu-tools .btn { display: none; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 32px 22px; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-panel); max-height: calc(100vh - 72px); overflow-y: auto; }
  .menu.open { display: flex; }
  .menu-links, .menu-tools { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; padding: 12px 10px; }
  .nav-panel, .nav-panel-plataforma, .nav-panel-soluciones, .nav-panel-recursos, .nav-panel-empezar, .nav-panel-documentacion, .nav-panel-empresa { position: static; width: auto; max-height: none; overflow: visible; padding: 6px 0 14px 10px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav-group.open .nav-panel { animation: none; }
  .nav-group.open::after { display: none; }
  .arbol-hoja { min-height: 40px; }
  .nav-cols { grid-template-columns: 1fr; gap: 16px; }
  .menu-tools { border-top: 1px solid var(--line); padding-top: 10px; }
  .tool-icon { width: 100%; justify-content: flex-start; padding: 8px 10px; }
  .doc-grid { grid-template-columns: 1fr; }
}

/* El diagrama necesita todo el ancho antes de que su texto quede demasiado chico. */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copia" "diagrama" "impacto"; gap: 32px; padding-top: 48px; padding-bottom: 84px; }
  .hero-diagrama { width: 100%; max-width: 640px; margin-inline: auto; }
}

/* Por debajo de 1000 px las tres franjas se apilan: en horizontal el texto quedaría demasiado chico. */
@media (max-width: 999.98px) {
  .dg-ancho { display: none; }
  .dg-movil { display: block; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 1080px) {
  .block { padding-block: 76px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { gap: 36px; }
  .feature-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-panel .feature-copy { position: static; }
  .level { grid-template-columns: 1fr; gap: 18px; }
  .level-links { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .closing-in { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .faq { grid-template-columns: 1fr; }
  .foot-main { grid-template-columns: minmax(0, 1fr); }
  .foot-marca { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 28px; justify-items: stretch; }
  .foot-marca > .foot-ilus { grid-row: span 5; align-self: center; }
  .foot-marca > * { justify-self: start; }
}

@media (max-width: 820px) {
  .feature, .feature:nth-of-type(even):not(.feature-panel) { grid-template-columns: 1fr; gap: 24px; padding-block: 34px; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
  .feature img { max-height: 340px; }
  .feature .shot { padding: 18px 18px 12px; border-radius: 20px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linea { grid-template-columns: 1fr; gap: 14px; }
  .linea li + li::before { left: 56px; top: -14px; width: 2px; height: 14px; }
  .linea a { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .linea-ico { grid-row: span 3; margin: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .top-row { gap: 8px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-btn { padding: 8px 10px; }
  .top-cta { padding: 8px 14px; font-size: .88rem; }
  .block { padding-block: 60px; }
  .menu { padding-inline: 16px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  .hero-shell { border-radius: 0 0 32px 32px; }
  .hero { padding-top: 44px; padding-bottom: 72px; }
  .hero-actions .btn { width: 100%; }
  .hero-lead, .lead { font-size: 1.05rem; }
  .hero-line { gap: 6px 12px; font-size: .86rem; }
  .hero-line-ico { width: 26px; height: 26px; }
  .hero-impacto { padding: 14px 14px 8px; }
  .tour-shell { padding: 16px; }
  .tour-linea { gap: 4px; font-size: .78rem; }
  .tour-linea li { padding: 3px 8px; }
  .tour-linea .ico { width: 14px; height: 14px; }
  #tour-intro { display: none; }
  .panel { padding: 14px; border-radius: 20px; }
  .panel-rejilla, .propuesta { grid-template-columns: minmax(0, 1fr); }
  .viz-tarjeta { padding: 14px; }
  .flow-line { margin-top: -38px; }
  .flow-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .flow-card .flow-grupo { flex-direction: column; align-items: flex-start; gap: 8px; }
  .flow-card .is-core { width: 100%; }
  .flow-arrow { transform: rotate(90deg); margin-left: 2px; }
  .grid-2, .grid-3, .grid-4, .row2, .loop { grid-template-columns: 1fr; }
  .card, .card-plain, .demo { padding: 22px; }
  .demo-form, .demo-form-3 { grid-template-columns: minmax(0, 1fr) 96px; }
  .demo-form .btn { grid-column: 1 / -1; }
  .demo-form:not(.demo-form-3) .fld { grid-column: 1 / -1; }
  .level { padding: 22px; }
  .closing { border-radius: 32px 32px 0 0; }
  .closing-in { padding-block: 48px; }
  .form-card { padding: 22px; }
  .shot-missing { min-height: 160px; padding: 22px; }
  .flujo-pasos { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .flujo-pasos li { padding: 14px 16px; }
  .flujo-flecha { top: -28px; left: 50%; width: 24px; margin: 0 0 0 -12px; transform: rotate(90deg); }
  /* Teléfono: el panel de marca arriba y las columnas en acordeón. */
  .foot-marca { grid-template-columns: minmax(0, 1fr); }
  .foot-marca > .foot-ilus { grid-row: auto; justify-self: stretch; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; }
  .foot-col-plataforma { grid-row: auto; }
  .foot-col { border-bottom: 1px solid var(--line); }
  .foot-col > summary { min-height: 48px; padding-block: 8px; pointer-events: auto; cursor: pointer; }
  .foot-col > summary > .ico { display: block; }
  .foot-col[open] > summary > .ico { transform: rotate(180deg); }
  .foot-cols .foot-col h2 { margin: 0; }
  .foot-col[open] { padding-bottom: 14px; }
  .demo-regla span { height: 28px; font-size: .78rem; }
}

@media (max-width: 420px) {
  .top .brand small { display: none; }
}

/* Con el menú Empresa, «Preguntas» ya no cabe en el encabezado de escritorio; sigue en Cómo empezar, en el menú del celular y en el pie. */
@media (min-width: 1023.99px) {
  .menu-links > .nav-link[href="#preguntas"] { display: none; }
}

/* Vista resumida: además de textos cortos, la página se compacta (menos aire entre secciones, títulos y tarjetas). */
html[data-reading="resumida"] .block { padding-block: 56px; }
html[data-reading="resumida"] .hero { padding-top: 40px; padding-bottom: 56px; gap: 24px 44px; }
html[data-reading="resumida"] h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); margin-bottom: 12px; max-width: 30ch; }
html[data-reading="resumida"] .lead { font-size: 1.04rem; line-height: 1.5; margin-bottom: 20px; }
html[data-reading="resumida"] .eyebrow { margin-bottom: 10px; }
html[data-reading="resumida"] .note { margin-top: 10px; font-size: .88rem; }
html[data-reading="resumida"] .grid-2, html[data-reading="resumida"] .grid-3, html[data-reading="resumida"] .grid-4 { gap: 16px; margin-top: 22px; }
html[data-reading="resumida"] .card { padding: 20px; }
html[data-reading="resumida"] .level { gap: 22px; padding: 22px; margin-top: 16px; }
html[data-reading="resumida"] .table-box { margin-top: 32px; }
html[data-reading="resumida"] .team-viewport { margin-top: 16px; }
html[data-reading="resumida"] .person { padding: 20px; }
@media (max-width: 820px) {
  html[data-reading="resumida"] .block { padding-block: 40px; }
  html[data-reading="resumida"] .hero { padding-top: 24px; padding-bottom: 36px; }
}
/* En resumida se ocultan los bloques de detalle (gráficas de ejemplo, tablas y herramientas); un enlace a ellos regresa a la vista explicada. */
html[data-reading="resumida"] :is(.panel-rejilla, .modulo-reportes .flujo, .table-box, .doc-herramientas) { display: none; }
