/* =========================================================
   AIonSolutions — web comercial
   Punto medio entre la primera versión (oscura, grilla de puntos
   viva, lima, itálicas con serif) y el portfolio (títulos grandes,
   numeración 01/02/03, líneas finas). Secciones oscuras y claras
   alternadas, y gráficos interactivos en cada una.
   ========================================================= */
:root {
  --negro: #08090B;
  --papel: #F4F3EE;
  --lima: #C8FF4D;
  --lima-ink: #0B0F02;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --pad: clamp(18px, 4vw, 44px);
}
/* Paletas por sección: los gráficos toman estos colores */
.dark { --fg: #F2F1EC; --fg-2: #B9BAB4; --mute: #7D7F86; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.15); --card: rgba(18,20,25,.86); --card-2: #181B21; --acc: var(--lima); --c1: #C8FF4D; --c2: #7C93FF; --c3: #5EEAD4; --c4: #FDBA74; --c5: #C4B5FD; --grid: rgba(255,255,255,.06); color: var(--fg); }
.light { --fg: #0D0D0D; --fg-2: #3D3D3A; --mute: #7A7A74; --line: #DDDCD5; --line-2: #C8C7BF; --card: #FFFFFF; --card-2: #FAFAF7; --acc: #0D0D0D; --c1: #0D0D0D; --c2: #4F6BFF; --c3: #13A38A; --c4: #E8833A; --c5: #8B5CF6; --grid: #ECEBE5; background: var(--papel); color: var(--fg); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--negro); color: #F2F1EC; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--lima); color: var(--lima-ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: #4F6BFF; }

/* Fondo vivo (de la primera web) */
.fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .6; }
.brillo { position: fixed; z-index: -1; width: 640px; height: 640px; border-radius: 50%; left: 0; top: 0; pointer-events: none; background: radial-gradient(circle, rgba(200,255,77,.07), transparent 62%); transform: translate(-50%, -50%); }
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; background: var(--lima); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 99px; font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .3s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-lima { background: var(--lima); color: var(--lima-ink); }
.btn-lima:hover { box-shadow: 0 12px 40px -12px rgba(200,255,77,.65); }
.btn-linea { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.btn-linea:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-ink { background: #0D0D0D; color: #fff; }
.btn-ink:hover { background: #2A2A2A; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-bloque { width: 100%; }
.flecha { transition: transform .25s var(--ease); }
.btn:hover .flecha { transform: translateX(4px); }

/* ---------- Nav (píldora flotante) ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 20px; border-radius: 99px; border: 1px solid transparent; color: #F2F1EC; transition: background .35s, border-color .35s; }
.nav.is-scroll { background: rgba(13,15,19,.78); border-color: rgba(255,255,255,.08); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--lima); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.logo svg circle { fill: var(--lima); stroke: none; }
.logo i { font-style: normal; color: var(--lima); }
.logo b { font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: #B9BAB4; }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-on { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--lima); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-on::after { transform: scaleX(1); }
.nav-menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-menu span { width: 16px; height: 1.5px; background: #F2F1EC; transition: transform .3s var(--ease); }
.nav.is-open .nav-menu span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav-menu span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Textos ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--acc); }
.light .eyebrow { color: #4F6BFF; }
.punto { width: 7px; height: 7px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 4px rgba(200,255,77,.15); animation: latido 2.2s infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 8px rgba(200,255,77,0); } }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.titulo { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.2vw, 72px); line-height: 1; letter-spacing: -.045em; }
.titulo em { font-size: 1.08em; letter-spacing: -.02em; }
.dark .titulo em, .dark h1 em, .dark .sub em { color: var(--lima); }
.light .titulo em, .light .sub em { background: linear-gradient(transparent 60%, var(--lima) 60%, var(--lima) 92%, transparent 92%); padding: 0 .06em; }
.titulo.grande { font-size: clamp(40px, 6vw, 84px); }
.sub { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1.05; }
.texto { color: var(--fg-2); font-size: 17px; max-width: 600px; margin: 20px 0 0; }
.texto b { color: var(--fg); font-weight: 600; }
.nota { display: block; margin: 12px 0 0; font-size: 11.5px; color: var(--mute); }
.seccion { position: relative; padding: clamp(90px, 11vw, 150px) 0; }
.seccion.dark { border-top: 1px solid rgba(255,255,255,.06); }
.cabecera { max-width: 760px; margin-bottom: 52px; }
.pilar-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 60px); align-items: start; margin-bottom: clamp(44px, 6vw, 72px); }
.pilar-num { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 11vw, 168px); line-height: .78; letter-spacing: -.08em; }
.dark .pilar-num { color: var(--lima); }
.light .pilar-num { color: transparent; -webkit-text-stroke: 1.4px #0D0D0D; }

/* Aparición */
.aparece { opacity: 0; transform: translateY(18px); animation: sube 1s var(--d, 0s) var(--ease) forwards; }
@keyframes sube { to { opacity: 1; transform: none; } }
.js .aparece-scroll { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .aparece-scroll.in { opacity: 1; transform: none; }

/* ---------- Tarjetas y ventanas ---------- */
.d-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.d-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--mute); margin-bottom: 8px; }
.d-card-h b { color: var(--fg); font-weight: 500; }
.ventana { border-radius: 18px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.7); }
.ventana-barra { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.ventana-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ventana-barra .mono { margin-left: 8px; font-size: 12px; color: var(--mute); }
.v-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--mute); font-family: var(--mono); }
.v-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--lima); animation: latido 2.2s infinite; }
.ventana-light { box-shadow: 0 30px 70px -40px rgba(0,0,0,.35); }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 90px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 4.7vw, 74px); line-height: .98; letter-spacing: -.05em; }
.hero h1 em { font-size: 1.08em; letter-spacing: -.02em; }
.hero-sub { color: var(--fg-2); font-size: 18px; max-width: 520px; margin: 26px 0 0; }
.hero-sub b { color: var(--fg); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-pilares { list-style: none; padding: 0; margin: 38px 0 0; border-top: 1px solid var(--line-2); max-width: 520px; }
.hero-pilares a { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; transition: padding .4s var(--ease), color .3s; }
.hero-pilares a:hover { padding-left: 8px; color: var(--lima); }
.hero-pilares .mono { color: var(--lima); font-weight: 400; }

.dash-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs button { position: relative; flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--fg-2); font-size: 13px; cursor: pointer; overflow: hidden; transition: color .3s, border-color .3s; }
.dash-tabs button::before { content: ""; position: absolute; inset: 0; background: rgba(200,255,77,.14); transform: scaleX(0); transform-origin: left; }
.dash-tabs button.is-on { color: #fff; border-color: rgba(200,255,77,.5); }
.dash-tabs button.is-on::before { animation: tabfill var(--t, 5s) linear forwards; }
.dash-tabs.is-pausa button.is-on::before { animation: none; transform: none; }
.dash-tabs button span { position: relative; }
@keyframes tabfill { to { transform: scaleX(1); } }
.dash-body { display: grid; grid-template-columns: 168px 1fr; min-height: 400px; }
.d-side { border-right: 1px solid var(--line); padding: 14px 10px; }
.d-marca { display: flex; align-items: center; gap: 8px; padding: 0 6px 12px; font-size: 13px; }
.d-marca span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--acc-r, var(--lima)); color: var(--lima-ink); font-size: 11px; font-weight: 700; flex: none; transition: background .4s; }
.d-marca b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-side ul, .prev-side ul { list-style: none; margin: 0; padding: 0; }
.d-side li, .prev-side li { padding: 7px 8px; border-radius: 8px; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: modin .5s var(--ease) both; animation-delay: calc(var(--i) * .04s); }
.d-side li.is-on { background: rgba(255,255,255,.06); color: #fff; }
@keyframes modin { from { opacity: 0; transform: translateX(-8px); } }
.d-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.d-head small { color: var(--acc-r, var(--lima)); font-size: 11px; letter-spacing: .08em; }
.d-head h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d-kpi { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); min-width: 0; }
.d-kpi small { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-kpi b { font-family: var(--display); font-size: 21px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-kpi .up { white-space: nowrap; display: inline-block; }
.d-kpi .up { font-size: 11px; color: var(--lima); margin-left: 4px; font-family: var(--mono); }
.d-charts { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; flex: 1; }
.chart-line svg { width: 100%; height: 150px; display: block; overflow: visible; cursor: crosshair; }
.donut-wrap { display: flex; align-items: center; gap: 12px; }
.donut-wrap svg { width: 96px; height: 96px; flex: none; }
.donut-leg { list-style: none; margin: 0; padding: 0; font-size: 11.5px; color: var(--fg-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.donut-leg li { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-leg i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.donut-leg b { margin-left: auto; color: var(--fg); font-weight: 500; padding-left: 6px; }

/* SVG genéricos */
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fadein { opacity: 0; animation: fade .8s .5s forwards; }
@keyframes fade { to { opacity: 1; } }
.ax { stroke: var(--grid); stroke-width: 1; }
.ax-t { fill: var(--mute); font-family: var(--mono); font-size: 9px; }
.tip { position: fixed; z-index: 200; pointer-events: none; padding: 7px 10px; border-radius: 9px; background: #0D0D0D; color: #fff; font-size: 12px; font-family: var(--mono); border: 1px solid rgba(255,255,255,.12); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; white-space: nowrap; }
.tip.on { opacity: 1; }

/* ---------- Chips y campos ---------- */
.campo { display: grid; gap: 10px; }
.campo > .mono, .campo > span.mono { font-size: 12px; color: var(--mute); }
.campo b { color: var(--fg); font-weight: 500; }
.campo input:not([type=range]) { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg); font: inherit; font-size: 16px; transition: border-color .2s; }
.campo input:focus { outline: none; border-color: #4F6BFF; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg-2); font-size: 13.5px; cursor: pointer; transition: all .2s; }
.chips button:hover { border-color: var(--fg-2); color: var(--fg); }
.chips button.is-on { background: #0D0D0D; border-color: #0D0D0D; color: #fff; }
.chips-mod button::before { content: "+"; font-family: var(--mono); color: var(--mute); }
.chips-mod button.is-on::before { content: "✓"; color: var(--lima); }
.chips-dark button { background: rgba(255,255,255,.03); }
.chips-dark button.is-on { background: var(--lima); border-color: var(--lima); color: var(--lima-ink); }
.cnt { font-family: var(--mono); font-weight: 400 !important; color: #4F6BFF !important; margin-left: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--rc, var(--lima)) var(--p, 50%), var(--line-2) var(--p, 50%)); outline: none; }
.light input[type=range] { --rc: #0D0D0D; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--rc, var(--lima)); box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--rc, var(--lima)); cursor: grab; }

/* ---------- 01 · Configurador ---------- */
.config { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.config-ctrl { display: grid; gap: 28px; }
.config-out { display: grid; gap: 14px; position: sticky; top: 96px; }
.prev { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 330px; }
.prev-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--card-2); }
.prev-side .d-marca span { background: #0D0D0D; color: var(--lima); }
.prev-side li { color: var(--fg-2); }
.prev-side li:first-child { background: #0D0D0D; color: #fff; }
.prev-main { padding: 14px 16px; display: flex; flex-direction: column; }
.prev-main small { color: var(--mute); font-size: 11.5px; }
.radar-wrap { flex: 1; display: grid; place-items: center; }
.radar-wrap svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.radar-area { fill: rgba(200,255,77,.55); stroke: #0D0D0D; stroke-width: 1.6; transition: d .6s var(--ease); }
.radar-dot { fill: #0D0D0D; transition: cx .6s var(--ease), cy .6s var(--ease); }
.radar-lbl { fill: var(--fg-2); font-family: var(--sans); font-size: 10.5px; font-weight: 500; }
.radar-pct { fill: var(--mute); font-family: var(--mono); font-size: 9px; }
.gantt-mini { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.gm-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.gm-head b { font-family: var(--display); font-size: 22px; color: var(--fg); letter-spacing: -.03em; }
.gm-bar { display: flex; height: 34px; border-radius: 9px; overflow: hidden; gap: 2px; }
.gm-bar div { display: flex; align-items: center; padding: 0 8px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: flex-grow .6s var(--ease); min-width: 0; }

.permisos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(40px, 5vw, 60px); border-top: 1px solid var(--line); align-items: start; }
.rol-detalle { margin-top: 22px; padding: 16px; border-radius: 14px; background: #0D0D0D; color: #fff; font-size: 14px; }
.rol-detalle b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; color: var(--lima); }
.rol-detalle ul { margin: 6px 0 0; padding-left: 18px; color: #C9C9CF; }
.matriz-wrap { overflow-x: auto; }
.matriz { display: grid; gap: 4px; min-width: 520px; }
.mz-h { font-size: 10.5px; color: var(--mute); font-family: var(--mono); display: flex; align-items: flex-end; justify-content: center; text-align: center; line-height: 1.2; padding-bottom: 4px; min-height: 42px; }
.mz-rol { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--card); transition: all .2s; text-align: left; }
.mz-rol.is-on { background: #0D0D0D; color: #fff; border-color: #0D0D0D; }
.mz-c { height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; transition: transform .3s var(--ease), opacity .3s; }
.m-full { background: var(--lima); color: var(--lima-ink); }
.m-ver { background: #E2E5FF; color: #3045C9; }
.m-no { background: #ECEBE5; color: #B1B0A8; }
.matriz.has-sel .mz-c { opacity: .35; }
.matriz.has-sel .mz-c.sel { opacity: 1; transform: scale(1.04); }
.matriz-leg { list-style: none; display: flex; gap: 18px; padding: 0; margin: 14px 0 0; font-size: 11.5px; color: var(--mute); flex-wrap: wrap; }
.matriz-leg li { display: flex; align-items: center; gap: 6px; }
.matriz-leg i { width: 12px; height: 12px; border-radius: 3px; }

/* ---------- 02 · Migración ---------- */
.mig { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.mig-ctrl { display: grid; gap: 26px; }
.mig-ctrl .btn { justify-self: start; }
.mig-pasos { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.mig-pasos li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--fg-2); transition: color .3s; }
.mig-pasos li .mono { color: var(--lima); }
.mig-pasos li b { color: var(--fg); font-weight: 600; }
.mig-pasos li.is-on { color: #fff; }
.mig-pasos li.is-on .mono::after { content: " ●"; }
.mig-out { display: grid; gap: 12px; min-width: 0; }
#sankey svg { width: 100%; height: auto; display: block; overflow: visible; }
.sk-node { fill: var(--card-2); stroke: var(--line-2); }
.sk-lbl { fill: var(--fg); font-size: 11.5px; font-weight: 600; font-family: var(--sans); }
.sk-num { fill: var(--mute); font-family: var(--mono); font-size: 10px; }
.sk-band { opacity: .28; transition: opacity .3s; }
.sk-band:hover { opacity: .55; }
.sk-dot { fill: #fff; }
.mig-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cal-row { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; color: var(--fg-2); margin: 8px 0; }
.cal-bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; display: flex; }
.cal-bar i { display: block; height: 100%; transition: width 1.2s var(--ease); }
.cal-row b { font-family: var(--mono); font-weight: 400; color: var(--fg); text-align: right; }
.cal-tit { font-size: 11px; color: var(--mute); font-family: var(--mono); margin-top: 10px; }
.term-card { padding: 0; overflow: hidden; }
.term { margin: 0; padding: 14px 16px; height: 100%; min-height: 190px; font-size: 11.5px; line-height: 1.7; color: #C9C9CF; white-space: pre-wrap; overflow: hidden; }
.term .t-ok { color: var(--lima); } .term .t-in { color: #8FA3FF; } .term .t-mu { color: #6C6C74; } .term .t-w { color: #F5C451; }

/* ---------- 03 · ARCA ---------- */
.flujo { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: clamp(44px, 6vw, 70px); }
.flujo-nodo { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.flujo-nodo .mono { color: #4F6BFF; font-size: 11.5px; }
.flujo-nodo b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.flujo-nodo small { font-size: 12.5px; color: var(--mute); }
.flujo-nodo.is-arca { background: #0D0D0D; color: #fff; border-color: #0D0D0D; }
.flujo-nodo.is-arca .mono { color: var(--lima); }
.flujo-nodo.is-arca small { color: #A9A9AF; }
.flujo-nodo.pulso { transform: translateY(-6px); border-color: #0D0D0D; box-shadow: 0 16px 30px -18px rgba(0,0,0,.45); }
.flujo-linea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.arca-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-res div { padding: 14px; border-radius: 14px; background: #0D0D0D; color: #fff; }
.calc-res span { display: block; font-size: 11.5px; color: #A9A9AF; }
.calc-res b { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; color: var(--lima); font-variant-numeric: tabular-nums; }
#calcBars svg { width: 100%; height: auto; display: block; }
.cb-lbl { fill: var(--fg-2); font-size: 12px; font-family: var(--sans); }
.cb-val { fill: var(--fg); font-size: 12px; font-family: var(--mono); }
.invoice-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(22px, 4vw, 44px); border-radius: 20px; background: #E9E8E1; }
.invoice { width: 100%; max-width: 440px; background: #fff; color: #0D0D0D; border: 1px solid #0D0D0D; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); transform: rotate(-1deg); transition: transform .8s var(--ease); }
.invoice:hover { transform: none; }
.inv-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #0D0D0D; }
.inv-head div:first-child { display: flex; flex-direction: column; min-width: 0; }
.inv-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-head span { font-size: 12px; color: #7A7A74; }
.inv-letter { display: grid; place-items: center; width: 52px; height: 56px; border: 1px solid #0D0D0D; flex: none; }
.inv-letter b { font-family: var(--display); font-size: 28px; line-height: 1; }
.inv-letter span { font-size: 9px; }
.inv-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #DDDCD5; font-size: 12.5px; }
.inv-row span { color: #7A7A74; }
.inv-items { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
.inv-items td { padding: 6px 0; }
.inv-items td:last-child { text-align: right; white-space: nowrap; }
.inv-sub td { color: #7A7A74; border-top: 1px solid #DDDCD5; }
.inv-tot td { font-weight: 700; font-family: var(--display); font-size: 19px; border-top: 1px solid #0D0D0D; padding-top: 9px; }
.inv-foot { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid #DDDCD5; }
.inv-qr { width: 86px; height: 86px; display: grid; grid-template-columns: repeat(21, 1fr); opacity: .12; transition: opacity .8s var(--ease); }
.inv-qr i { background: #0D0D0D; } .inv-qr i.o { background: transparent; }
.invoice.is-ok .inv-qr { opacity: 1; }
.inv-cae { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #7A7A74; }
.inv-cae b { color: #0D0D0D; font-weight: 500; }
.inv-state { align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: #FFF4D6; color: #8A5A00; font-weight: 500; }
.invoice.is-ok .inv-state { background: var(--lima); color: var(--lima-ink); }
.inv-acc { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---------- Red de módulos ---------- */
.red-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.red-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.red-edge { stroke: rgba(255,255,255,.12); stroke-width: 1.2; transition: stroke .3s, stroke-width .3s; }
.red-edge.on { stroke: var(--lima); stroke-width: 2; }
.red-flow { fill: var(--lima); opacity: 0; }
.red-edge.on + .red-flow { opacity: 1; }
.red-node { cursor: pointer; }
.red-node circle { fill: #14171C; stroke: rgba(255,255,255,.2); stroke-width: 1.2; transition: fill .3s, stroke .3s, r .3s; }
.red-node text { fill: #D9D9D4; font-family: var(--sans); font-size: 12px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.red-node .ic { fill: none; stroke: #D9D9D4; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.red-node.on circle { fill: var(--lima); stroke: var(--lima); }
.red-node.on .ic { stroke: var(--lima-ink); }
.red-node.vec circle { stroke: var(--lima); }
.red-node.dim { opacity: .35; }
.red-centro circle { fill: var(--lima); stroke: none; }
.red-centro text { fill: var(--lima-ink); font-weight: 700; }
.red-info { margin-top: 28px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); min-height: 132px; }
.red-info .mono { color: var(--lima); font-size: 11.5px; }
.red-info b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -.03em; margin: 2px 0 6px; }
.red-info p { margin: 0; color: var(--fg-2); font-size: 14.5px; }

/* ---------- Gantt del método ---------- */
.gantt { border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.g-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.g-row:last-child { border-bottom: 0; }
.g-row:hover, .g-row.is-on { background: var(--card-2); }
.g-head { cursor: default; background: var(--card-2); }
.g-name { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.g-name .mono { color: #4F6BFF; font-size: 11px; }
.g-name b { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.g-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.g-track > span { border-right: 1px dashed var(--line); }
.g-track > span:last-child { border-right: 0; }
.g-weeks span { display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--mute); padding: 10px 0; }
.g-bar { position: absolute; top: 50%; height: 26px; margin-top: -13px; border-radius: 8px; background: #0D0D0D; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); display: flex; align-items: center; padding: 0 10px; color: var(--lima); font-family: var(--mono); font-size: 11px; white-space: nowrap; overflow: hidden; }
.g-bar.lima { background: var(--lima); color: var(--lima-ink); }
.g-bar.inf { background: repeating-linear-gradient(-45deg, #0D0D0D 0 8px, #2A2A2A 8px 16px); }
.gantt.in .g-bar { transform: scaleX(1); }
.g-det { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.g-det p { margin: 0; padding: 0 18px 16px 238px; color: var(--fg-2); font-size: 14.5px; }
.g-row.is-on .g-det { max-height: 140px; }
.g-hoy { position: absolute; top: 0; bottom: 0; width: 2px; background: #4F6BFF; left: 0; z-index: 2; pointer-events: none; }
.g-hoy::before { content: "avance"; position: absolute; top: 4px; left: 6px; font-family: var(--mono); font-size: 10px; color: #4F6BFF; }

/* ---------- Rubros y tecnología ---------- */
.rubros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(50px, 7vw, 90px); }
.rubros button { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--fg); font-family: var(--display); font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.02em; cursor: pointer; transition: all .25s var(--ease); }
.rubros button i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); transition: transform .4s var(--ease); }
.rubros button:hover { border-color: var(--lima); color: var(--lima); }
.rubros button:hover i { transform: rotate(45deg) scale(1.3); }
.rubros button .mono { font-size: 11px; color: var(--mute); font-weight: 400; }
.tec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tec-item { padding: 26px; background: #0C0E12; transition: background .3s; }
.tec-item:hover { background: #12151A; }
.tec-item .mono { color: var(--lima); font-size: 12px; }
.tec-item h3 { font-family: var(--display); font-size: 21px; letter-spacing: -.02em; margin: 12px 0 6px; }
.tec-item p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.tec-item svg { width: 100%; height: 44px; margin-top: 14px; display: block; }

/* ---------- Planes ---------- */
.planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; min-height: 290px; }
.plan .mono { color: var(--mute); }
.plan h3 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.04em; margin-top: auto; padding-top: 30px; }
.plan-precio { margin: 0; color: #4F6BFF; }
.plan p:last-child { margin: 8px 0 0; color: var(--fg-2); font-size: 14.5px; }
.plan.is-dest { background: #0D0D0D; color: #fff; border-color: #0D0D0D; }
.plan.is-dest .plan-precio { color: var(--lima); }
.plan.is-dest p:last-child { color: #BDBDC2; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--lima); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--fg-2); max-width: 62ch; }
.faq .tag-q { font-family: var(--mono); font-size: 11px; color: var(--lima); font-weight: 400; margin-right: 10px; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contacto-datos { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.contacto-datos a { display: flex; gap: 14px; align-items: baseline; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.contacto-datos a:hover { color: var(--lima); }
.contacto-datos .mono { font-size: 11.5px; color: var(--mute); width: 80px; font-weight: 400; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: rgba(18,20,25,.9); border: 1px solid var(--line-2); }
.form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--fg-2); }
.form input:not([type=checkbox]), .form textarea, .form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--fg); font: inherit; font-size: 15.5px; resize: vertical; transition: border-color .2s; }
.form select { appearance: none; background: rgba(255,255,255,.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B9BAB4' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.form select option { color: #0D0D0D; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--lima); }
.form .is-error { border-color: #FF6B6B !important; }
.form-checks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form-checks legend { font-size: 13px; color: var(--fg-2); margin-bottom: 8px; padding: 0; }
.form-checks label { display: inline-flex; cursor: pointer; }
.form-checks input { position: absolute; opacity: 0; pointer-events: none; }
.form-checks span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--fg); transition: all .2s; }
.form-checks input:checked + span { background: var(--lima); border-color: var(--lima); color: var(--lima-ink); }
.form-checks input:focus-visible + span { outline: 2px solid var(--lima); outline-offset: 2px; }
.form-nota { margin: -4px 0 0; font-size: 13px; color: var(--mute); text-align: center; }
.form-nota.is-ok { color: var(--lima); } .form-nota.is-err { color: #FF8A8A; }

.pie { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); color: #F2F1EC; }
.pie-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie p { margin: 0; color: #9A9BA0; font-size: 14px; }
.pie-copy { font-size: 12px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .config, .mig, .arca-grid, .red-grid, .permisos { grid-template-columns: minmax(0, 1fr); }
  .config-out { position: static; }
  .hero { min-height: 0; }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px; border-radius: 20px; background: rgba(13,15,19,.96); border: 1px solid rgba(255,255,255,.08); display: none; }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-menu { display: flex; margin-left: auto; }
  .flujo { grid-template-columns: 1fr 1fr; }
  .flujo-nodo:last-of-type { grid-column: 1 / -1; }
  .tec, .planes { grid-template-columns: 1fr; }
  .faq-grid, .contacto-grid { grid-template-columns: minmax(0, 1fr); }
  .g-row { grid-template-columns: 130px 1fr; }
  .g-det p { padding-left: 18px; }
}
@media (max-width: 640px) {
  .nav { padding-left: 14px; gap: 10px; }
  .nav-cta { display: none; }
  .hero { padding-top: 110px; }
  .dash-body { grid-template-columns: minmax(0, 1fr); }
  .d-side { display: none; }
  .d-charts { grid-template-columns: minmax(0, 1fr); }
  .d-kpi b { font-size: 17px; }
  .prev { grid-template-columns: 112px minmax(0, 1fr); }
  .mig-bottom { grid-template-columns: minmax(0, 1fr); }
  .form-fila { grid-template-columns: 1fr; }
  .pilar-head { grid-template-columns: 1fr; gap: 6px; }
  .g-name b { font-size: 14px; }
  .g-row { grid-template-columns: 104px 1fr; }
  .g-name { padding: 12px; }
  .g-bar { font-size: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .aparece, .js .aparece-scroll { opacity: 1; transform: none; }
}
/* Conexiones activas de la red: el dato "fluye" por la línea */
.red-edge.on { stroke-dasharray: 6 6; animation: fluye .9s linear infinite; }
@keyframes fluye { to { stroke-dashoffset: -12; } }
/* Ajustes después de revisar */
.donut-wrap { flex-wrap: wrap; justify-content: center; }
.donut-leg { flex: 1 1 110px; }
.donut-leg li { overflow: visible; }
.mz-h { font-size: 10px; overflow-wrap: anywhere; hyphens: auto; padding: 0 2px 4px; min-height: 54px; }
.cal-row { grid-template-columns: 116px 1fr 44px; }
.red-node text { paint-order: stroke; stroke: #08090B; stroke-width: 5px; stroke-linejoin: round; }
.red-centro text { stroke: none; }
.gm-bar div { flex-basis: 0; flex-shrink: 1; }
.config-out, .config-ctrl, .mig-ctrl, .mig-out, .calc, .form { grid-template-columns: minmax(0, 1fr); }

/* ---------- Integraciones ---------- */
.integ { margin-top: clamp(80px, 10vw, 130px); padding-top: clamp(50px, 7vw, 80px); border-top: 1px solid var(--line); }
.integ-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: end; margin-bottom: 40px; }
.integ-head .texto { margin: 0; }
.integ-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; align-items: start; }
.integ-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.integ-c { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.integ-c:hover, .integ-c.is-on { border-color: var(--c); transform: translateY(-3px); box-shadow: 0 16px 34px -22px var(--c); }
.integ-c b { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.integ-d { font-size: 13px; color: var(--fg-2); line-height: 1.45; }
.integ-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c); color: #0B0F02; font-family: var(--mono); font-size: 12px; font-weight: 600; flex: none; }
.integ-mas { cursor: default; border-style: dashed; --c: #5D6170; }
.integ-mas .integ-ic { background: transparent; border: 1px dashed #5D6170; color: var(--fg-2); font-size: 18px; }
.integ-mas:hover { transform: none; box-shadow: none; }
.integ-log { position: sticky; top: 96px; }
.integ-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.integ-log li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 12.5px; animation: entraLog .5s var(--ease); }
.integ-log li:first-child { border-color: var(--c); }
.integ-log .integ-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 10.5px; }
.il-t { color: var(--fg); line-height: 1.35; }
.il-h { color: var(--lima); font-size: 11px; white-space: nowrap; }
.integ-log .d-card-h .v-live { font-size: 11px; }
@keyframes entraLog { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- WhatsApp flotante ---------- */
.wa-flot { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border-radius: 99px; background: #25D366; color: #08240F; font-family: var(--display); font-weight: 700; font-size: 15px; box-shadow: 0 14px 34px -12px rgba(37,211,102,.7); transform: translateY(120px); opacity: 0; transition: transform .5s var(--ease), opacity .4s, box-shadow .3s; }
.wa-flot.is-on { transform: none; opacity: 1; }
.wa-flot:hover { box-shadow: 0 18px 40px -10px rgba(37,211,102,.9); }
.wa-flot svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1080px) {
  .integ-head, .integ-body { grid-template-columns: minmax(0, 1fr); }
  .integ-log { position: static; }
}
@media (max-width: 640px) {
  .integ-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .integ-d { font-size: 12px; }
  .wa-flot { height: 52px; width: 52px; padding: 0; justify-content: center; }
  .wa-flot span { display: none; }
}
