/* Singularity GS — landing styles
   Tipografía: Poppins (títulos, navegación, botones) + Inter (texto). */
:root {
  --font-head: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ink: #172125;
  --ink-2: #293940;
  --text: #5c6c73;
  --text-soft: #7a8990;
  --blue: #0052e0;
  --blue-dark: #003fb3;
  --cyan: #14b3e9;
  --bg-soft: #f2fafc;
  --bg-soft-2: #e4f0f5;
  --line: #dde5ea;
  --line-soft: #e9eff3;
  --accent: linear-gradient(90deg, #14c4e8 0%, #0052e0 55%, #7a4ee8 100%);
  --header-h: 84px;
  --tabs-h: 56px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--tabs-h) + 24px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: min(1296px, 100% - 96px); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: #fff; padding: 12px 16px; border: 2px solid var(--ink); font-family: var(--font-head); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Barra de anuncio ---------- */
.announcement { background: #f4f6f8; color: var(--ink); font-family: var(--font-head); font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 52px; padding: 10px 24px; text-align: center; }
.announcement strong { font-weight: 600; }
.announcement a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.announcement a .icon { width: 18px; height: 18px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: transparent; transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-soft), 0 12px 32px -20px rgba(23, 33, 37, .25); }
.nav-shell { height: var(--header-h); display: flex; align-items: center; gap: 44px; }
.brand { flex-shrink: 0; display: block; }
.brand img { height: 34px; width: auto; }
#navigation { display: flex; align-items: center; gap: 34px; flex: 1; }
.nav-trigger, .nav-link { font-family: var(--font-head); font-size: 18.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; white-space: nowrap; transition: color .2s; }
.nav-trigger .icon { width: 17px; height: 17px; stroke-width: 2.1; transition: transform .2s; }
.nav-trigger:hover, .nav-link:hover, .nav-trigger[aria-expanded=true] { color: var(--blue); }
.nav-trigger[aria-expanded=true] .icon { transform: rotate(180deg); }
.nav-group { position: relative; }
.dropdown { position: absolute; top: calc(100% + 12px); left: -16px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 24px 56px -24px rgba(23, 33, 37, .38), 0 2px 8px rgba(23, 33, 37, .06); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.dropdown[hidden] { display: none; }
.dropdown > a, .dropdown > button { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 4px; text-align: left; width: 100%; transition: background .15s; }
.dropdown > a:hover, .dropdown > button:hover { background: var(--bg-soft); }
.dropdown .icon { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.dropdown strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.dropdown small { display: block; font-size: 13.5px; color: var(--text); margin-top: 3px; line-height: 1.45; }
.dropdown-all { margin-top: 6px; border-top: 1px solid var(--line-soft); padding-top: 16px !important; color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 15px; align-items: center !important; gap: 8px !important; }
.dropdown-all .icon { margin: 0; width: 18px; height: 18px; }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.button.nav-mobile-cta, .mobile-toggle { display: none; }

/* ---------- Botones y enlaces ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1; min-height: 56px; padding: 0 24px; border: 2px solid transparent; border-radius: 0; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.button .icon { width: 18px; height: 18px; transition: transform .2s; }
.button:hover .icon { transform: translateX(3px); }
.button-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.button-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-small { min-height: 48px; padding: 0 20px; font-size: 15px; }
.button:disabled { opacity: .6; cursor: default; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--blue); }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); background: linear-gradient(180deg, #f2fafc 0%, #fff 100%); isolation: isolate; }
.hero-aura { position: absolute; inset: 0; z-index: -1; opacity: .9; background: url(hero-aura.svg) center top / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.hero-tiles { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-tiles i { position: absolute; width: 96px; height: 96px; background: linear-gradient(180deg, var(--bg-soft-2), var(--bg-soft)); }
.hero-tiles i:nth-child(3n) { background: rgba(255, 255, 255, .7); }
.hero-tiles i:nth-child(1) { left: 96px; top: 96px; }
.hero-tiles i:nth-child(2) { left: 0; top: 192px; }
.hero-tiles i:nth-child(3) { left: 192px; top: 192px; }
.hero-tiles i:nth-child(4) { left: 96px; top: 288px; }
.hero-tiles i:nth-child(5) { left: 288px; top: 288px; }
.hero-tiles i:nth-child(6) { left: 192px; top: 384px; }
.hero-tiles i:nth-child(7) { left: 0; top: 480px; }
.hero-tiles i:nth-child(8) { right: 96px; top: 64px; }
.hero-tiles i:nth-child(9) { right: 192px; top: 160px; }
.hero-tiles i:nth-child(10) { right: 0; top: 160px; }
.hero-tiles i:nth-child(11) { right: 96px; top: 256px; }
.hero-tiles i:nth-child(12) { right: 288px; top: 256px; }
.hero-tiles i:nth-child(13) { right: 192px; top: 352px; }
.hero-tiles i:nth-child(14) { right: 0; top: 448px; }
.hero-content { position: relative; text-align: center; padding: 120px 0 144px; max-width: 1040px; }
.eyebrow { font-family: var(--font-head); font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
h1 { font-size: clamp(38px, 4.6vw, 66px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--text); max-width: 720px; margin: 24px auto 0; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- Pestañas de sección ---------- */
.page-tabs { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.page-tabs ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.page-tabs a { display: flex; justify-content: center; align-items: center; height: var(--tabs-h); font-family: var(--font-head); font-size: 16px; font-weight: 500; color: var(--text-soft); position: relative; transition: color .2s, background .3s; }
.page-tabs a::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.page-tabs a:hover { color: var(--ink); }
.page-tabs a[aria-current=true] { color: var(--ink); font-weight: 600; background: radial-gradient(70% 92% at 50% 0%, var(--bg-soft-2) 0%, #fff 100%); }
.page-tabs a[aria-current=true]::before { transform: scaleX(1); }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 840px; margin: 0 auto 64px; }
.accent { display: block; width: 160px; height: 4px; background: var(--accent); margin-bottom: 28px; }
.section-head .accent, .accent-center { margin-inline: auto; }
h2 { font-size: clamp(30px, 2.9vw, 41px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.section-head p { font-size: 18px; color: var(--text); margin-top: 16px; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
.benefits article { text-align: center; }
.benefit-icon { width: 72px; height: 72px; margin: 0 auto 24px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.benefit-icon .fill { fill: #d3eef9; stroke: none; }
.benefits h3 { font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.benefits p { color: var(--text); font-size: 16px; }

/* Plataforma: filas producto + visual */
.capability { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: center; padding: 56px 0; }
.capability + .capability { margin-top: 16px; }
.capability-copy .accent { width: 80px; }
.capability.reverse { grid-template-columns: 8fr 4fr; }
.capability.reverse .capability-copy { order: 2; }
.overline { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.capability-copy h3 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 20px; }
.capability-copy > p:not(.overline) { color: var(--text); font-size: 17px; line-height: 1.6; }
.capability-copy ul { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.capability-copy li { position: relative; padding-left: 22px; color: var(--text); font-size: 16px; }
.capability-copy li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.capability-visual { min-width: 0; }


/* Diagramas animados (GSAP): panel claro, orígenes → producto → ventana de resultado */
.diagram { min-width: 0; }
.dg { --dg-accent: #0052e0; --dg-line: #c5ced8; position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; background: #fff; border: 1px solid #e3e8ee; border-radius: 20px; padding: 22px 22px 62px; color: var(--ink); font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; box-shadow: 0 30px 60px -36px rgba(23, 33, 37, .35); }
.dg-flow { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(150px, 178px) 52px 78px 64px minmax(0, 1fr); align-items: center; }
.dg-sources { display: flex; flex-direction: column; gap: 10px; }
.dg-src { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px 8px 8px; background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; box-shadow: 0 8px 18px -14px rgba(23, 33, 37, .45); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.dg-src:hover, .dg-src:focus-visible { border-color: var(--dg-accent); outline: none; }
.dg-src-ico { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e3e8ee; border-radius: 8px; background: #fff; }
.dg-src-ico svg { width: 20px; height: 20px; }
.dg-src-text { min-width: 0; display: flex; flex-direction: column; }
.dg-src-text b { font-family: var(--font-head); font-weight: 500; font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-src-text small { font-size: 10.5px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-ico { fill: none; stroke: var(--dg-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dg-nodewrap, .dg-gap { position: relative; display: grid; place-items: center; min-height: 1px; }
.dg-node { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 78px; height: 78px; padding: 4px; border-radius: 14px; background: var(--dg-accent); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 10px; line-height: 1.1; text-align: center; box-shadow: 0 14px 26px -12px rgba(0, 82, 224, .7); cursor: pointer; }
.dg-node svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dg-node:focus-visible { outline: 3px solid rgba(0, 82, 224, .35); outline-offset: 3px; }
.dg-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #dfe5ea; box-shadow: 0 6px 14px -8px rgba(23, 33, 37, .4); font-size: 8px; font-weight: 700; letter-spacing: .04em; color: var(--dg-accent); }
.dg-mid svg { width: 15px; height: 15px; }
/* Ventana de resultado */
.dgw { min-width: 0; background: #fff; border: 1px solid #e3e8ee; border-radius: 12px; overflow: hidden; box-shadow: 0 22px 44px -30px rgba(23, 33, 37, .5); }
.dgw-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #111214; color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 13px; }
.dgw-mark { width: 22px; height: auto; filter: invert(1); }
.dgw-sub { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #edf1f4; font-size: 12px; }
.dgw-sub b { min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgw-chip { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: #eef2f6; color: var(--text); font-style: normal; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.dgw-more { flex-shrink: 0; margin-left: auto; color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.dgw-body { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: #f6f8fa; }
.dgw-panel { position: relative; background: #fff; border: 1px solid #e6ebf0; border-radius: 9px; padding: 10px 12px 12px; cursor: pointer; }
.dgw-panel:hover, .dgw-panel:focus-visible { border-color: var(--dg-accent); outline: none; }
.dgw-panel h4 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 12px; color: var(--ink); }
.dgw-list, .dgw-flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dgw-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #edf1f4; border-radius: 7px; font-size: 11.5px; }
.dgw-item code, .dgw-action code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; padding: 1px 5px; border-radius: 4px; background: #eef2f6; color: #3d4b52; white-space: nowrap; }
.dgw-item > span { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.dgw-item em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--dg-accent); }
.dgw-st { flex-shrink: 0; width: 18px; height: 18px; display: block; }
.dgw-st svg { width: 18px; height: 18px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dgw-st.ok svg { stroke: #12c48b; }
.dgw-st.wait svg { stroke: #f59e0b; }
.dgw-sts { position: relative; width: 18px; height: 18px; }
.dgw-sts .dgw-st { position: absolute; inset: 0; }
.dgw-action { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #edf1f4; border-radius: 7px; font-size: 11.5px; }
.dgw-action .who { font-weight: 600; white-space: nowrap; }
.dgw-action .what { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.dgw-dec { padding: 2px 7px; border-radius: 999px; font-style: normal; font-size: 10px; font-weight: 700; white-space: nowrap; }
.dgw-dec.ok { background: #e6f8f0; color: #148a5e; }
.dgw-dec.blocked { background: #fdecee; color: #d02a3e; }
.dgw-dec.wait { background: #fff4e0; color: #b45d0a; }
.dgw-badge { position: absolute; right: -10px; top: -12px; width: 26px; height: 26px; border-radius: 7px; background: #ffd6dc; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(239, 59, 79, .6); }
.dgw-badge svg { width: 15px; height: 15px; fill: none; stroke: #ef3b4f; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dgw-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.dgw-kpi { padding: 8px 6px; border-radius: 7px; background: #f4f6f9; text-align: center; }
.dgw-kpi b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--dg-accent); font-variant-numeric: tabular-nums; }
.dgw-kpi small { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.25; color: var(--text-soft); }
.dgw-chart { display: block; width: 100%; height: 58px; }
.dgw-chart .grid { fill: none; stroke: #edf1f4; stroke-width: 1; }
.dgw-chart .bar-a { fill: #17d4a4; }
.dgw-chart .bar-b { fill: #f47b8a; }
.dgw-chart .line { fill: none; stroke: var(--dg-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dgw-chart .area { fill: rgba(0, 82, 224, .12); }
.dgw-flow { position: relative; }
.dgw-flow-line { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: #d6dde4; }
.dgw-run { position: absolute; left: 7px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--dg-accent); box-shadow: 0 0 0 4px rgba(0, 82, 224, .2); z-index: 2; }
.dgw-step { position: relative; z-index: 1; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 18px; align-items: center; gap: 8px; padding: 4px 8px 4px 0; border-radius: 7px; }
.dgw-step .ico { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid #d6dde4; display: grid; place-items: center; }
.dgw-step .ico svg { width: 13px; height: 13px; fill: none; stroke: var(--dg-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dgw-step.kind-ai .ico { border-color: #c9bdf7; }
.dgw-step.kind-ai .ico svg { stroke: #7a4ee8; }
.dgw-step .txt { min-width: 0; display: flex; flex-direction: column; }
.dgw-step .txt b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgw-step .txt small { font-size: 10px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgw-step .kind { padding: 2px 6px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 700; background: #eef2f6; color: #3d4b52; white-space: nowrap; }
.dgw-step.kind-ai .kind { background: #f0ebff; color: #6a3fe0; }
.dgw-step.kind-human .ico { border-color: #f3cf8f; }
.dgw-step.kind-human .ico svg { stroke: #b45d0a; }
.dgw-step.kind-human .kind { background: #fff4e0; color: #b45d0a; }
/* Conectores, leyenda y controles */
.dg-links { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dg-link { fill: none; stroke: var(--dg-line); stroke-width: 2; }
.dg-packet { fill: var(--dg-accent); opacity: 0; visibility: hidden; filter: drop-shadow(0 0 4px rgba(0, 82, 224, .6)); }
.dg-caption { position: absolute; left: 22px; right: 66px; bottom: 18px; z-index: 3; margin: 0; display: flex; align-items: center; gap: 9px; min-height: 18px; color: var(--text); font-size: 12.5px; line-height: 1.35; }
.dg-caption::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--dg-accent); box-shadow: 0 0 0 3px rgba(0, 82, 224, .18); }
.dg-caption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-caption.is-swap span { animation: dg-caption .45s var(--ease); }
@keyframes dg-caption { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dg-replay { position: absolute; right: 16px; bottom: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: #f1f4f7; color: var(--ink); display: grid; place-items: center; transition: background .2s; }
.dg-replay:hover { background: #e3e9ef; }
.dg-replay svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dg-tip { position: absolute; z-index: 5; max-width: 250px; padding: 8px 11px; border-radius: 8px; background: #172125; color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 12px 32px -8px rgba(23, 33, 37, .5); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.dg-tip.is-on { opacity: 1; transform: none; }
/* Disposición vertical cuando el diagrama es estrecho (móvil o columna reducida) */
@container (max-width: 560px) {
  .dg { padding: 16px 16px 60px; }
  .dg-flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 44px auto 44px auto; justify-items: center; }
  .dg-sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; min-width: 0; }
  .dg-src { min-width: 0; }
  .dg-src { padding: 6px 8px; }
  .dg-src-ico { width: 28px; height: 28px; }
  .dg-src-ico svg { width: 17px; height: 17px; }
  .dg-src-text b { font-size: 12px; }
  .dg-src-text small { font-size: 10px; }
  .dgw { width: 100%; }
  .dgw-more { display: none; }
  .dg-caption { left: 16px; font-size: 11.5px; }
  .dgw-step .txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Banda "Cómo funciona" */
.section-band { background: var(--bg-soft); text-align: center; padding: 88px 0; }
.section-band h2 { max-width: 720px; margin: 0 auto; }
.section-band p { font-size: 18px; color: var(--text); margin: 16px auto 32px; max-width: 640px; }
.section-band .button .icon { width: 16px; height: 16px; fill: currentColor; stroke-width: 1; }
.section-band .button:hover .icon { transform: none; }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.faq-intro h2 { margin-bottom: 16px; }
.faq-intro > p { color: var(--text); font-size: 17px; margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 22px; height: 22px; transition: transform .25s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { color: var(--text); padding: 0 48px 24px 0; font-size: 16px; line-height: 1.6; }

/* CTA final */
.cta-final { position: relative; overflow: hidden; text-align: center; padding: 128px 0; background: var(--bg-soft); }
.cta-final .container { position: relative; }
.cta-final .hero-actions { margin-top: 32px; }
.cta-tiles { position: absolute; inset: 0; pointer-events: none; }
.cta-tiles i { position: absolute; width: 64px; height: 64px; background: var(--bg-soft-2); }
.cta-tiles i:nth-child(3n+2) { background: #fff; }
.cta-tiles i:nth-child(1) { left: 0; top: 64px; }
.cta-tiles i:nth-child(2) { left: 64px; top: 0; }
.cta-tiles i:nth-child(3) { left: 128px; top: 64px; }
.cta-tiles i:nth-child(4) { left: 64px; top: 128px; }
.cta-tiles i:nth-child(5) { left: 192px; top: 128px; }
.cta-tiles i:nth-child(6) { left: 0; top: 192px; }
.cta-tiles i:nth-child(7) { left: 128px; top: 192px; }
.cta-tiles i:nth-child(8) { right: 0; top: 96px; }
.cta-tiles i:nth-child(9) { right: 64px; top: 32px; }
.cta-tiles i:nth-child(10) { right: 128px; top: 96px; }
.cta-tiles i:nth-child(11) { right: 64px; top: 160px; }
.cta-tiles i:nth-child(12) { right: 192px; top: 160px; }
.cta-tiles i:nth-child(13) { right: 0; top: 224px; }
.cta-tiles i:nth-child(14) { right: 128px; top: 224px; }

/* ---------- Pie ---------- */
footer { background: #fff; border-top: 1px solid var(--line-soft); padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-top img { height: 28px; width: auto; }
.footer-top .text-link { font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.footer-grid h4 { font-family: var(--font-body); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-grid button { font-size: 15px; color: var(--ink-2); text-align: left; transition: color .15s; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); }

/* ---------- Recorrido (diálogo) ---------- */
dialog { width: min(960px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 8px; padding: 40px 40px 36px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(5, 24, 63, .3); }
dialog::backdrop { background: rgba(23, 33, 37, .55); backdrop-filter: blur(6px); }
dialog[open] { animation: rise-in .35s var(--ease); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; }
.dialog-close .icon { width: 18px; height: 18px; }
dialog .eyebrow { font-size: 13px; margin-bottom: 12px; }
dialog h2 { font-size: 28px; margin-bottom: 10px; }
#demo-description { color: var(--text); font-size: 16px; line-height: 1.6; }
.demo-diagram { margin: 22px 0 16px; }
.demo-status { font-size: 14px; color: var(--blue); font-weight: 500; min-height: 24px; margin-bottom: 20px; }
.demo-disclaimer { font-size: 13px; color: var(--text-soft); margin-top: 16px; }
#replay-demo .icon { fill: currentColor; stroke-width: 1; width: 14px; height: 14px; }
#replay-demo:hover .icon { transform: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .container { width: min(1296px, 100% - 64px); }
  .nav-shell { gap: 28px; }
  #navigation { gap: 24px; }
  .nav-trigger, .nav-link { font-size: 17px; }
  .capability, .faq { gap: 48px; }
}
/* El menu de escritorio deja de caber junto al logo y el boton: se pasa a menu desplegable. */
@media (max-width: 1120px) {
  .nav-actions .button-small { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; }
  .mobile-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  .mobile-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .mobile-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #navigation { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 24px; border-top: 1px solid var(--line-soft); box-shadow: 0 28px 40px -24px rgba(23, 33, 37, .35); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  #navigation.is-open { display: flex; }
  .nav-group { width: 100%; }
  .nav-trigger, .nav-link { width: 100%; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 18px; }
  .dropdown { position: static; width: auto; border: 0; box-shadow: none; padding: 6px 0 12px; background: transparent; }
  .dropdown > a, .dropdown > button { padding: 10px 8px; }
  .dropdown-all { padding-top: 12px !important; }
  .button.nav-mobile-cta { display: inline-flex; margin-top: 20px; width: 100%; }
}
@media (max-width: 1000px) {
  :root { --header-h: 68px; --tabs-h: 50px; }
  .container { width: min(1296px, 100% - 40px); }
  .brand img { height: 28px; }
  #navigation { padding-inline: 20px; }
  .hero-content { padding: 80px 0 104px; }
  .hero-lead { font-size: 18px; }
  .page-tabs ul { display: flex; overflow-x: auto; scrollbar-width: none; }
  .page-tabs ul::-webkit-scrollbar { display: none; }
  .page-tabs li { flex: 1 0 auto; min-width: 150px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 48px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .capability, .capability.reverse, .faq { grid-template-columns: 1fr; gap: 36px; }
  .capability { padding: 36px 0; }
  .capability.reverse .capability-copy { order: 0; }
  .section-band { padding: 72px 0; }
  .cta-final { padding: 96px 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .container { width: min(1296px, 100% - 32px); }
  .announcement { font-size: 13px; gap: 6px 14px; flex-wrap: wrap; min-height: 44px; padding: 8px 16px; }
  .brand img { height: 24px; }
  .hero-content { padding: 56px 0 72px; }
  .eyebrow { font-size: 13px; }
  .hero-lead { font-size: 16px; margin-top: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero-actions .button { width: 100%; }
  .hero-tiles i { width: 64px; height: 64px; }
  .hero-tiles i:nth-child(n+8) { display: none; }
  .page-tabs li { min-width: 128px; }
  .page-tabs a { font-size: 15px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .accent { width: 120px; margin-bottom: 20px; }
  .benefits { grid-template-columns: 1fr; gap: 36px; }
  .benefit-icon { width: 64px; height: 64px; }
  .capability-copy h3 { margin-bottom: 14px; }
  .capability-copy > p:not(.overline) { font-size: 16px; }
  .section-band { padding: 56px 0; }
  .section-band p { font-size: 16px; }
  .faq-list summary { font-size: 16px; padding: 18px 0; gap: 16px; }
  .faq-list details p { padding-right: 0; }
  .cta-final { padding: 72px 0; }
  .cta-tiles i { width: 48px; height: 48px; }
  .cta-tiles i:nth-child(n+8) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  dialog { padding: 36px 22px; }
  dialog h2 { font-size: 24px; }
}
@media (max-width: 380px) {
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
