/* =========================================================
   Interactive — sitio 2026
   ========================================================= */
@font-face { font-family: "Geist"; src: url(/assets/fonts/geist-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --ink: #0b0d12;
  --ink-2: #12151d;
  --ink-3: #1b2030;
  --ink-line: rgba(255,255,255,.09);
  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --line: #e6e8ee;
  --text: #0e1116;
  --muted: #5b6474;
  --muted-light: #9aa3b5;
  --accent: #3d6bff;
  --accent-2: #8b5cf6;
  --accent-ink: #2346d8;
  --accent-soft: #eaf0ff;
  --ok: #16b37a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --wa: #25d366;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
  --shadow-lg: 0 30px 80px -20px rgba(5,10,30,.55);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.45rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.pt0 { padding-top: 0; }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 16px; padding: 16px 24px; border-radius: 14px; }
.btn-sm { font-size: 14px; padding: 10px 16px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(61,107,255,.7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #2f5cf0; box-shadow: 0 12px 30px -8px rgba(61,107,255,.85), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary .ic { transition: transform .2s; }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.btn-ghost-dark { color: var(--text); border-color: var(--line); background: #fff; }
.btn-ghost-dark:hover { border-color: #c9cede; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f8; }
.btn-wa { background: var(--wa); color: #06361b; font-weight: 700; }
.btn-wa:hover { background: #1fc15c; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,13,18,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--ink-line); background: rgba(11,13,18,.88); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.logo-mark { color: #fff; }
.logo-mark .logo-active { transition: transform .35s cubic-bezier(.3,1.6,.5,1); transform-origin: 24px 6px; }
.logo:hover .logo-active { transform: translate(-1px, 1px) rotate(-8deg); }
.logo-word { font-weight: 700; font-size: 21px; letter-spacing: -0.04em; }
.logo-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; color: #c9cfdc; font: 500 15px/1 var(--font); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.nav-link:hover, .nav-dd.open .nav-link { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { margin-left: 10px; }
.nav-dd { position: relative; }
.nav-dd .ic { transition: transform .2s; }
.nav-dd.open .nav-link .ic { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -16px; width: 620px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(5,10,30,.4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; }
.nav-dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.dd-item:hover { background: var(--bg-soft); }
.dd-item b { display: block; font-size: 15px; font-weight: 600; }
.dd-item small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dd-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); margin-top: -68px; padding-top: calc(68px + clamp(48px, 7vw, 92px)); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(61,107,255,.28), transparent 70%),
    radial-gradient(40% 40% at 95% 90%, rgba(139,92,246,.22), transparent 70%),
    radial-gradient(35% 45% at 10% 0%, rgba(61,107,255,.12), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%); }
.hero-grid > *, .ai-grid > *, .cta-grid > *, .faq-grid > *, .contact-grid > *, .case-wide > * { min-width: 0; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { margin-bottom: .45em; }
.grad { background: linear-gradient(100deg, #7da0ff 0%, #3d6bff 40%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #b9c1d3; max-width: 36em; margin-bottom: 1.8em; }
.hero-lead.dark { color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: #9aa3b5; font-size: 14.5px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ic { color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 9px; font: 500 13.5px/1 var(--font); color: #cfd6e6; padding: 8px 14px 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.04); margin-bottom: 26px; }
.pill-ic { color: #8fa9ff; display: inline-flex; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,179,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(22,179,122,0); } }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: #8a93a8; margin-bottom: 18px; }
.crumbs a { color: #b9c1d3; }
.hero-svc h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

/* ---------- Mock del sistema (hero) ---------- */
.mock { position: relative; perspective: 1600px; }
.mock-win { background: #f7f8fb; color: var(--text); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); transform: rotateY(-7deg) rotateX(3deg); transform-origin: left center; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-6px); } }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eceef3; border-bottom: 1px solid #e0e3ea; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d8e1; }
.mock-bar i:nth-child(1) { background: #ff6159; } .mock-bar i:nth-child(2) { background: #ffbd2e; } .mock-bar i:nth-child(3) { background: #28c941; }
.mock-bar span { margin-left: 12px; font: 12px var(--mono); color: #8a93a6; background: #fff; padding: 3px 10px; border-radius: 6px; }
.mock-body { display: grid; grid-template-columns: 52px 1fr; min-height: 340px; }
.mock-side { background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.mock-side b { color: #fff; margin-bottom: 6px; }
.mock-side span { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.mock-side span.on { background: var(--accent); }
.mock-main { padding: 16px; display: grid; gap: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpi small { display: block; font-size: 11px; color: var(--muted); }
.kpi strong { display: block; font-size: 19px; letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi strong span { font-size: 12px; font-weight: 500; color: var(--muted); }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; }
.kpi .up { color: var(--ok); } .kpi .warn { color: #c77700; }
.mock-chart { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; }
.mc-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.mc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 5px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 8px; }
.bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #6f90ff, #3d6bff); transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(400ms + var(--d)); }
.bars span:last-child { background: linear-gradient(180deg, #a78bfa, #7c5cff); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-ai { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.ai-q { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; padding: 5px 10px; border-radius: 8px; margin-bottom: 8px; }
.ai-a { color: #333a48; line-height: 1.5; }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toast { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--text); padding: 10px 14px; border-radius: 12px; box-shadow: 0 18px 40px -10px rgba(5,10,30,.45); font-size: 13px; line-height: 1.25; animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.toast b { display: block; font-weight: 600; }
.toast small { color: var(--muted); font-size: 12px; }
.toast .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(22,179,122,.15); }
.dot.blue { background: var(--accent); box-shadow: 0 0 0 4px rgba(61,107,255,.15); }
.toast.t1 { right: -18px; top: -26px; animation-delay: 1.3s; }
.toast.t2 { left: -28px; bottom: -30px; animation-delay: 2.1s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.svc-mock { transform: rotateY(-6deg) rotateX(2deg); perspective: 1600px; }
.svc-mock .cmock { box-shadow: var(--shadow-lg); }

/* ---------- Clientes ---------- */
.clients { background: var(--ink); color: #fff; padding: 8px 0 44px; border-bottom: 1px solid var(--ink-line); }
.clients-t { text-align: center; font-size: 13.5px; color: #7f889c; letter-spacing: .02em; margin-bottom: 22px; }
.clients-track { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.clients-row { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex: none; animation: marquee 45s linear infinite; }
.clients-track:hover .clients-row { animation-play-state: paused; }
.clients-row img { height: 30px; width: auto; opacity: .62; filter: grayscale(1) brightness(1.6); transition: opacity .2s; }
.clients-row img:hover { opacity: 1; }
.client-txt { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: rgba(255,255,255,.55); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Encabezados de sección ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head.split h2 { margin: 0; }
.kicker { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); margin-bottom: 16px; }
.kicker.light { color: #8fa9ff; }
.sec-lead { font-size: 1.12rem; color: var(--muted); }
.sec-lead.light { color: #aab3c6; }

/* ---------- Dolores ---------- */
.pains { background: var(--bg-soft); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-grid.four { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin: 0 auto; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.pain h3 { margin: 14px 0 6px; }
.pain p { color: var(--muted); margin: 0; font-size: 16px; }
.pain-grid.four .pain { display: flex; gap: 14px; align-items: flex-start; }
.pain-grid.four .pain p { color: var(--text); }
.pain-x { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fdecec; color: var(--danger); flex: none; }
.pain-turn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px auto 0; font-size: 1.15rem; font-weight: 600; text-align: center; }
.pain-turn .ic { color: var(--accent); }

/* ---------- Soluciones ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sol:hover { transform: translateY(-3px); border-color: #cdd6f5; box-shadow: 0 18px 40px -16px rgba(35,70,216,.28); }
.sol h3 { margin: 18px 0 8px; }
.sol p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.sol-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); }
.sol-more .ic { transition: transform .2s; }
.sol:hover .sol-more .ic { transform: translateX(3px); }
.sol-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #eaf0ff, #f1ebff); color: var(--accent-ink); }
.sol-ic.sm { width: 34px; height: 34px; border-radius: 9px; }
.sol:first-child { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.sol:first-child p { color: #aab3c6; }
.sol:first-child .sol-more { color: #8fa9ff; }
.sol:first-child .sol-ic { background: rgba(61,107,255,.18); color: #8fa9ff; }

/* ---------- Banda IA ---------- */
.ai-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.ai-band::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(139,92,246,.22), transparent 65%); pointer-events: none; }
.ai-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ai-list li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.ai-list li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, rgba(61,107,255,.25), rgba(139,92,246,.25)); color: #b9c8ff; }
.ai-list h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.ai-list p { margin: 0; color: #aab3c6; font-size: 15.5px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.step-n { font: 600 14px var(--mono); color: var(--accent-ink); }
.step-w { position: absolute; top: 24px; right: 20px; font: 500 12px var(--mono); color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; }
.step h3 { margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Comparativa ---------- */
.compare { background: var(--bg-soft); }
.cmp { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: .8fr 1fr 1.1fr; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span { padding: 16px 20px; display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; }
.cmp-row > span:first-child { font-weight: 600; }
.cmp-row > span:nth-child(2) { color: var(--muted); }
.cmp-row > span:nth-child(2) .ic { color: var(--danger); margin-top: 4px; }
.cmp-row .us { background: #f4f7ff; font-weight: 500; }
.cmp-row .us .ic { color: var(--ok); margin-top: 4px; }
.cmp-h > span { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 18px; padding-bottom: 18px; }
.cmp-h .us { color: var(--accent-ink); }

/* ---------- Casos ---------- */
.case-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.case-card:hover { box-shadow: 0 24px 50px -24px rgba(5,10,30,.3); transform: translateY(-2px); }
.case-vis { background: linear-gradient(135deg, #10131c, #1b2030); padding: 28px; display: grid; place-items: center; min-height: 280px; }
.case-img { background: #f2f3f7; aspect-ratio: 16 / 10; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 24px 26px 26px; }
.case-body p { color: var(--muted); }
.case-type { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink) !important; margin-bottom: 10px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.case-wide { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.case-wide.flip .case-vis { order: 2; }
.case-wide .case-body { padding: clamp(24px, 4vw, 44px); align-self: center; }
.case-wide h2, .case-wide h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #cdd4e3; }
.ticks .ic { color: var(--ok); margin-top: 4px; }
.ticks.dark li { color: var(--text); }

/* Mockups de casos */
.cmock { width: 100%; max-width: 520px; background: #f7f8fb; border-radius: 12px; padding: 14px; font-size: 12px; color: var(--text); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.cm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.cm-top span { color: var(--muted); font-size: 12px; }
.cm-top strong { color: var(--text); }
.cm-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cm-colh { font-weight: 600; font-size: 11.5px; padding: 6px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); display: flex; justify-content: space-between; margin-bottom: 6px; }
.cm-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 6px; }
.cm-card b { display: block; font-size: 11.5px; line-height: 1.25; }
.cm-card small { display: block; color: var(--muted); font-size: 10.5px; margin: 2px 0 6px; }
.cm-row { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; }
.cm-row em { font-style: normal; color: var(--accent-ink); }
.ai-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-soft); color: var(--accent-ink) !important; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.ats-row { display: grid; grid-template-columns: 30px 1fr 110px 26px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin-bottom: 6px; }
.ats-row b { display: block; font-size: 12.5px; }
.ats-row small { color: var(--muted); font-size: 11px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #3d6bff, #8b5cf6); color: #fff; font-weight: 700; }
.score { height: 7px; background: #edf0f5; border-radius: 99px; overflow: hidden; }
.score i { display: block; height: 100%; width: var(--s); background: linear-gradient(90deg, #3d6bff, #8b5cf6); border-radius: 99px; }
.ats-row strong { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; background: linear-gradient(100deg, #fff, #9db4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #aab3c6; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 100px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 1.06rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--muted); transition: transform .25s; }
.faq-item[open] summary .ic { transform: rotate(45deg); color: var(--accent); }
.faq-a p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 60ch; }

/* ---------- Relacionados ---------- */
.related { background: var(--bg-soft); }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.rel > span:nth-child(2) { flex: 1; }
.rel .ic:last-child { color: var(--muted); }
.rel:hover { border-color: #c4cff3; transform: translateY(-1px); }

/* ---------- CTA final + formulario ---------- */
.cta-final { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; bottom: -500px; background: radial-gradient(circle, rgba(61,107,255,.25), transparent 65%); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.cta-copy .lead { color: #aab3c6; font-size: 1.1rem; }
.cta-copy .btn-wa { margin-top: 8px; }
.lead-form { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); display: grid; gap: 16px; }
.lf-head h3 { font-size: 1.4rem; margin-bottom: 4px; }
.lf-head p { color: var(--muted); font-size: 15px; margin: 0; }
.lf-interest { border: 0; padding: 0; margin: 0; }
.lf-interest legend, .field > span { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: block; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); transition: .15s; }
.chip:hover span { border-color: #c4cff3; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; }
.field input, .field textarea { width: 100%; font: 16px/1.4 var(--font); color: var(--text); padding: 13px 14px; border: 1px solid #d5d9e3; border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61,107,255,.14); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.lead-form .btn { width: 100%; }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.lf-error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; margin: 0; }
.lf-legal { font-size: 13px; color: var(--muted); margin: 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; padding: 12px 14px; border-radius: 12px; }

/* ---------- Páginas internas ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-head .hero-lead { max-width: 44em; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid .lead-form { box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-side h2 { font-size: 1.5rem; }
.next { padding-left: 1.2em; display: grid; gap: 12px; color: var(--muted); }
.next b { color: var(--text); }
.direct { margin-top: 28px; display: grid; gap: 10px; }
.direct a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.thanks { text-align: center; }
.thanks h1 { margin-left: auto; margin-right: auto; }
.thanks .hero-lead { margin-left: auto; margin-right: auto; }
.thanks-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e7f8f0; color: var(--ok); margin-bottom: 24px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.muted { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #07080c; color: #aab3c6; padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 16px; max-width: 36ch; }
.foot-contact { display: grid; gap: 8px; }
.foot-contact a, .site-footer ul a { color: #d6dbe7; display: inline-flex; align-items: center; gap: 8px; }
.foot-h { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #6f788c; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--ink-line); margin-top: 48px; padding-top: 24px; font-size: 13.5px; color: #6f788c; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--ink-line); max-height: calc(100vh - 68px); overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 14px 8px; font-size: 17px; justify-content: space-between; width: 100%; }
  .nav-cta { margin: 12px 0 0; }
  .dd-panel { position: static; width: auto; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); margin: 4px 0 8px; }
  .nav-dd.open .dd-panel { display: grid; }
  .dd-item { color: #fff; }
  .dd-item:hover { background: rgba(255,255,255,.06); }
  .dd-item small { color: #9aa3b5; }
  .dd-ic { background: rgba(61,107,255,.18); color: #8fa9ff; }
  .hero-grid, .ai-grid, .cta-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .hero-visual { max-width: 560px; }
  .mock-win, .svc-mock { transform: none; animation: none; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .case-feature-grid, .case-grid { grid-template-columns: 1fr; }
  .case-wide { grid-template-columns: 1fr; }
  .case-wide.flip .case-vis { order: 0; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sol-grid, .pain-grid, .pain-grid.four, .steps, .rel-grid { grid-template-columns: 1fr; }
  .sol:first-child { grid-column: auto; }
  .lf-row { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis .kpi:nth-child(3) { display: none; }
  .mock-body { grid-template-columns: 40px 1fr; min-height: 0; }
  .mock-main { padding: 10px; }
  .toast.t1 { right: -4px; top: auto; bottom: -26px; }
  .toast.t2 { display: none; }
  .cm-cols { grid-template-columns: repeat(2, 1fr); }
  .cm-col:nth-child(n+3) { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row > span { padding: 10px 16px; }
  .cmp-row > span:first-child { padding-top: 16px; background: var(--bg-soft); }
  .cmp-h { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .case-vis { padding: 16px; min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Mockups de casos: órdenes, IPERC, SICNA */
.ot-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; margin-bottom: 6px; }
.ot-row code { font: 600 11px var(--mono); color: var(--muted); }
.ot-row b { display: block; font-size: 12.5px; line-height: 1.3; }
.ot-row small { color: var(--muted); font-size: 11px; }
.ot-row em { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.ot-ok { background: #e3f6ee; color: #0e7a52; } .ot-run { background: #eaf0ff; color: var(--accent-ink); }
.ot-new { background: #fff3dd; color: #a35f00; } .ot-plan { background: #eef0f4; color: #4a5263; }
.xls { font-weight: 600; color: #0e7a52 !important; background: #e3f6ee; padding: 4px 9px; border-radius: 99px; }
.ip-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr .8fr; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 5px; font-size: 11px; }
.ip-row b { font-size: 11.5px; line-height: 1.25; }
.ip-row span { color: var(--muted); line-height: 1.25; }
.ip-h { background: transparent; border: 0; padding: 0 8px 2px; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.ip-row em { font-style: normal; font-weight: 700; font-size: 10.5px; text-align: center; padding: 4px 2px; border-radius: 6px; }
.r4 { background: #fde2e1; color: #b42318; } .r3 { background: #ffe9d1; color: #b54708; }
.r2 { background: #fff6cc; color: #8a6500; } .r1 { background: #e3f6ee; color: #0e7a52; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.sc-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.sc-kpis small { display: block; color: var(--muted); font-size: 10.5px; }
.sc-kpis strong { font-size: 17px; letter-spacing: -0.02em; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sc-tabs span { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.sc-tabs span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sc-bar { display: grid; grid-template-columns: 1fr 110px 34px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 5px; font-size: 12px; }
.sc-bar strong { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .ip-row { grid-template-columns: 1.3fr 1fr .9fr; }
  .ip-row > :nth-child(2), .ip-row > :nth-child(3) { display: none; }
  .ip-row.ip-h { grid-template-columns: 1.3fr 1fr .9fr; }
  .sc-bar { grid-template-columns: 1fr 60px 34px; }
}

/* Caso destacado (estudio) */
.study { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.study-vis { position: relative; background: linear-gradient(135deg, #10131c, #1b2030); padding: clamp(24px, 4vw, 48px); padding-right: clamp(24px, 22vw, 300px); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.study-vis .cmock { max-width: 620px; }
.study-head { padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0; }
.study-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.study-meta img { height: 30px; width: auto; }
.study-meta .case-type { margin: 0; }
.study-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 22ch; }
.study-lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.study-body { display: grid; grid-template-columns: .8fr 2fr; gap: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 44px); }
.study-challenge p:last-child { color: var(--muted); }
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mod h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 6px; }
.mod h3 .ic { color: var(--ok); }
.mod p { margin: 0; color: var(--muted); font-size: 15px; }

/* Celular */
.phone { position: absolute; right: clamp(20px, 5vw, 64px); top: 50%; transform: translateY(-50%) rotate(3deg); width: 230px; background: #0b0d12; border-radius: 34px; padding: 10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); }
.ph-notch { width: 80px; height: 18px; background: #0b0d12; border-radius: 0 0 12px 12px; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; }
.ph-screen { background: #f7f8fb; border-radius: 26px; padding: 30px 12px 14px; font-size: 11px; color: var(--text); }
.ph-top small { display: block; color: var(--muted); font-size: 10px; }
.ph-top b { display: block; font-size: 13px; line-height: 1.25; margin: 2px 0; }
.ph-top span { color: var(--muted); font-size: 10.5px; }
.ph-state { display: flex; align-items: center; gap: 6px; background: #e3f6ee; color: #0e7a52; font-weight: 600; font-size: 10.5px; padding: 6px 8px; border-radius: 8px; margin: 10px 0; }
.ph-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ph-h { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.ph-entry { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin-bottom: 6px; }
.ph-entry b { display: block; font-size: 11.5px; }
.ph-entry small { display: block; color: var(--muted); font-size: 10px; margin-top: 1px; }
.ph-entry .ai-pill { display: inline-flex; margin-top: 6px; font-size: 9.5px; font-style: normal; padding: 3px 7px; }
@media (max-width: 920px) {
  .study-body { grid-template-columns: 1fr; }
  .study-vis { padding-right: clamp(24px, 4vw, 48px); flex-direction: column; gap: 24px; }
  .phone { position: relative; right: auto; top: auto; transform: rotate(2deg); }
}
@media (max-width: 640px) { .mod-grid { grid-template-columns: 1fr; } }
