/* =========================================================
   LYNQO — styles.css
   Tema claro, minimalista. Acentos derivados del logotipo:
   plata azulada (acero) y un cobalto luminoso para conexiones.
   ========================================================= */

@font-face {
  font-family: "Geist Variable";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F4F5F8;
  --paper-2: #ECEEF3;
  --white: #FFFFFF;
  --ink: #0D1017;
  --ink-2: #2A3040;
  --graphite: #4A5266;
  --steel: #8E98AC;
  --mist: #DDE1EA;
  --line: rgba(13, 16, 23, .10);
  --cobalt: #2743E8;
  --cobalt-2: #4B67FF;
  --cobalt-soft: rgba(39, 67, 232, .08);

  --ff: "Geist Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sheet-r: 44px;
  --sec-y: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
img, svg, canvas { max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--ink); color: #fff; border-radius: 12px; text-decoration: none; font-weight: 500;
  transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible, .btn-primary:focus-visible { outline-color: #7C92FF; }
.btn:focus-visible { border-radius: 999px; outline-offset: 4px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- Tipografía base ---------- */
h2 { font-size: clamp(2.05rem, 1.15rem + 3.3vw, 3.9rem); line-height: 1.04; letter-spacing: -.04em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.25; letter-spacing: -.022em; }
.section-sub { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--graphite); max-width: 46ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 54px; padding: 0 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 550; font-size: 1rem; letter-spacing: -.005em; line-height: 1; text-decoration: none;
  cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; padding-right: .5rem; box-shadow: 0 14px 30px -14px rgba(13, 16, 23, .55); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .26) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn-primary:hover { box-shadow: 0 18px 38px -14px rgba(39, 67, 232, .6); }
.btn-primary:hover::before { transform: translateX(130%); }
.btn-ico {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; flex: none;
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.btn-primary:hover .btn-ico { background: var(--cobalt); color: #fff; transform: rotate(-45deg); }
.btn-ghost { background: rgba(255, 255, 255, .55); border-color: rgba(13, 16, 23, .16); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 1.25rem; font-size: .95rem; background: var(--ink); color: #fff; }
.btn-sm:hover { background: var(--cobalt); }

/* =========================================================
   Cabecera
   ========================================================= */
.site-header { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; pointer-events: none; }
.bar {
  pointer-events: auto; position: relative;
  width: min(100% - 24px, var(--wrap)); height: var(--header-h); margin-inline: auto;
  display: flex; align-items: center; gap: 18px; padding: 0 10px 0 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(13, 16, 23, .07);
  box-shadow: 0 12px 34px -20px rgba(13, 16, 23, .3);
  transition: background-color .3s, box-shadow .3s;
}
.scrolled .bar { background: rgba(255, 255, 255, .88); box-shadow: 0 14px 40px -18px rgba(13, 16, 23, .4); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bar { background: rgba(255, 255, 255, .96); } }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 26px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-4deg); }
.brand-word { width: 92px; height: 12px; flex: none; color: var(--ink); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav li a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 500; color: var(--ink-2); position: relative;
  transition: color .25s, background-color .25s;
}
.nav li a:hover { background: rgba(13, 16, 23, .05); color: var(--ink); }
.nav li a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 2px; margin-left: -8px;
  background: var(--cobalt); border-radius: 2px;
}
.menu-toggle { display: none; }

/* =========================================================
   Primera pantalla
   ========================================================= */
.hero {
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  min-height: 100svh;
  padding-top: clamp(104px, 15vh, 150px);
  padding-bottom: calc(var(--sheet-r) + 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.a1 { width: 62vw; height: 62vw; right: -14vw; top: -18vw; background: radial-gradient(closest-side, rgba(75, 103, 255, .34), rgba(75, 103, 255, 0)); animation: drift1 26s ease-in-out infinite alternate; }
.a2 { width: 52vw; height: 52vw; right: 10vw; bottom: -22vw; background: radial-gradient(closest-side, rgba(164, 176, 205, .6), rgba(164, 176, 205, 0)); animation: drift2 30s ease-in-out infinite alternate; }
.a3 { width: 46vw; height: 46vw; left: -16vw; top: 22vh; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0)); animation: drift3 34s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-5vw, 4vw, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(5vw, -3vw, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(6vw, -4vh, 0) scale(1.06); } }

.net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, #000 62%);
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero-copy { max-width: 700px; padding-block: 16px; }
.hero h1 {
  font-size: clamp(2.55rem, 1rem + 4.35vw, 4.7rem);
  line-height: 1.02; letter-spacing: -.046em; font-weight: 500;
}
.hero h1 .w { display: inline-block; animation: wordIn 1.1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.hero-in { animation: heroIn 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lead { margin-top: clamp(22px, 3vw, 32px); font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--graphite); max-width: 52ch; }
.cta-row { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-visual { position: relative; transform: translate3d(0, var(--hy, 0px), 0); }
.stage { position: relative; width: min(100%, 700px); aspect-ratio: 1 / 1; margin-inline: auto; }
.mark-3d {
  position: absolute; left: -4%; top: -4%; width: 108%; height: 108%; display: block;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.has-3d .mark-3d { opacity: 1; }
.mark-static {
  position: absolute; left: 19%; top: 21%; width: 62%; height: auto; aspect-ratio: 379 / 348;
  filter: drop-shadow(0 34px 38px rgba(30, 45, 110, .28));
  transition: opacity 1s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
.has-3d .mark-static { opacity: 0; }
@keyframes floaty { 50% { transform: translateY(-14px); } }

.stage-shadow {
  position: absolute; left: 24%; right: 24%; bottom: 8%; height: 7%;
  background: radial-gradient(closest-side, rgba(24, 36, 96, .3), rgba(24, 36, 96, 0));
  animation: shadowPulse 7s ease-in-out infinite;
}
@keyframes shadowPulse { 50% { transform: scaleX(.86); opacity: .7; } }

.ring { position: absolute; inset: 3%; pointer-events: none; }
.ring > span { display: block; width: 100%; height: 100%; border-radius: 50%; position: relative; }
.ring i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); left: 50%; top: -5px; margin-left: -5px; box-shadow: 0 0 0 7px rgba(39, 67, 232, .13), 0 0 22px rgba(75, 103, 255, .55); }
.r1 { transform: rotate(-16deg) scaleY(.64); }
.r1 > span { border: 1px solid rgba(13, 16, 23, .13); animation: spin 46s linear infinite; }
.r2 { inset: 12%; transform: rotate(38deg) scaleY(.5); }
.r2 > span { border: 1px dashed rgba(13, 16, 23, .16); animation: spin 64s linear infinite reverse; }
.r2 i { background: var(--ink); box-shadow: 0 0 0 6px rgba(13, 16, 23, .07); }
@keyframes spin { to { transform: rotate(360deg); } }

.motion-toggle {
  position: absolute; left: max(var(--gut), calc((100% - var(--wrap)) / 2)); bottom: calc(var(--sheet-r) + 14px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid rgba(13, 16, 23, .14); background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .875rem; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color .25s, border-color .25s;
}
.motion-toggle:hover { background: #fff; border-color: var(--ink); }
.mt-ico { display: inline-flex; gap: 3px; width: 14px; justify-content: center; }
.mt-ico i { width: 3px; height: 12px; background: var(--ink); border-radius: 2px; }
.motion-toggle[aria-pressed="true"] .mt-ico { gap: 0; }
.motion-toggle[aria-pressed="true"] .mt-ico i:first-child { width: 0; height: 0; background: none; border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-radius: 0; }
.motion-toggle[aria-pressed="true"] .mt-ico i:last-child { display: none; }

/* Movimiento pausado por el usuario */
html[data-motion="paused"] .aurora,
html[data-motion="paused"] .ring > span,
html[data-motion="paused"] .mark-static,
html[data-motion="paused"] .stage-shadow,
html[data-motion="paused"] .hub-loop-c,
html[data-motion="paused"] .cell-art { animation-play-state: paused; }

/* =========================================================
   Secciones como láminas superpuestas
   ========================================================= */
.section {
  position: relative; z-index: 1;
  padding-block: var(--sec-y);
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  margin-top: calc(var(--sheet-r) * -1);
  padding-top: calc(var(--sec-y) + 12px);
  box-shadow: 0 -30px 60px -40px rgba(13, 16, 23, .22);
  scroll-margin-top: 24px;
}
.problem { background: var(--white); }
.services { background: var(--paper); }
.process { background: var(--white); }
.audience { background: var(--paper); }
.why { background: linear-gradient(180deg, #FFFFFF 0%, #EEF1F8 100%); }
.faq { background: var(--white); }
.contact { background: var(--paper); }

.section-head { display: grid; gap: 18px; max-width: 760px; }
.section-head h2 { max-width: 16ch; }

.split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 7vw, 112px); align-items: start; }
.split-head { position: sticky; top: 120px; display: grid; gap: 20px; }
.split-head h2 { max-width: 14ch; }
.problem .split-head h2 { max-width: 15ch; }

/* ---------- Problema ---------- */
.pain { position: relative; }
.pain li { position: relative; padding: 30px 0 30px 44px; border-top: 1px solid var(--line); }
.pain li:last-child { border-bottom: 1px solid var(--line); }
.pain li::before {
  content: ""; position: absolute; left: 0; top: 38px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.6px solid var(--steel); background: var(--white);
}
.pain h3 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.95rem); line-height: 1.18; max-width: 24ch; }
.pain p { margin-top: 12px; max-width: 50ch; }

.bridge { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.bridge-mark { width: 44px; height: 40px; margin-top: 6px; filter: drop-shadow(0 8px 10px rgba(39, 67, 232, .28)); }
.bridge span { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); line-height: 1.32; letter-spacing: -.02em; color: var(--ink); }

/* ---------- Servicios (composición asimétrica) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.c1 { grid-column: span 7; } .c2 { grid-column: span 5; }
.c3 { grid-column: span 5; } .c4 { grid-column: span 7; }
.c5 { grid-column: span 7; } .c6 { grid-column: span 5; }
.c7 { grid-column: 1 / -1; }

.cell {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 320px; padding: clamp(26px, 3vw, 40px); border-radius: 32px;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cell:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(13, 16, 23, .35); }
.cell::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(75, 103, 255, .14), transparent 62%);
}
.cell:hover::after { opacity: 1; }
.cell-ico { width: 56px; height: 56px; color: var(--ink); flex: none; }
.cell h3 { max-width: 20ch; }
.cell p { margin-top: 12px; max-width: 46ch; }
.cell h3 + p { margin-top: 14px; }
.cell .gets { max-width: none; }
.cell-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cell:not(.wide) .cell-body > .gets { margin-top: auto !important; }
.cell:not(.wide) .cell-body > p:nth-last-child(2) { margin-bottom: 22px; }
.gets { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: .97rem; color: var(--ink-2); }
.gets strong { color: var(--cobalt); font-weight: 600; margin-right: .35em; }

.cell.dark {
  background: linear-gradient(150deg, #0D1017 0%, #1A2134 72%, #1F2A4A 100%);
  color: rgba(255, 255, 255, .74); border-color: transparent; min-height: 400px;
}
.cell.dark h3 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; max-width: 14ch; }
.cell.dark .gets { border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .86); }
.cell.dark .gets strong { color: #9FB0FF; }
.cell.dark::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 146, 255, .28), transparent 62%); }
.cell-art { position: absolute; z-index: -1; right: -36px; top: -30px; width: min(72%, 380px); color: rgba(159, 176, 255, .7); animation: artPulse 9s ease-in-out infinite; transform-origin: 68% 40%; }
@keyframes artPulse { 50% { transform: scale(1.05); } }

.cell.glass { background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(236, 240, 252, .75)); }
.cell.tint { background: linear-gradient(160deg, #EEF1FF 0%, #FFFFFF 70%); border-color: rgba(39, 67, 232, .16); }
.cell.wide { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 72px); min-height: 0; }
.cell.wide .cell-ico { align-self: flex-start; }
.cell.wide .cell-body { flex: 1 1 auto; }
.cell.wide .gets { flex: 0 1 340px; margin: 0 !important; padding: 0 0 0 clamp(20px, 3vw, 40px); border-top: 0; border-left: 1px solid var(--line); }

/* ---------- Proceso ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.sd { position: sticky; top: 108px; margin: 0; }
.sd-frame {
  position: relative; width: min(100%, calc(100vh - 260px)); min-width: 300px; aspect-ratio: 1 / 1; margin-inline: auto;
  padding: 10px; border-radius: 40px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #FFFFFF 0%, #EEF1F8 100%);
  border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(24, 36, 96, .5);
}
.sd-svg { width: 100%; height: 100%; }
.sd figcaption { width: min(100%, calc(100vh - 260px)); min-width: 300px; margin: 18px auto 0; display: grid; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-c { background: var(--ink); }
.lg-l { background: var(--cobalt); box-shadow: 0 0 0 4px rgba(39, 67, 232, .16); }
.lg-m { background: #fff; border: 2.5px solid var(--cobalt); }
.note { font-size: .85rem; color: var(--graphite); }

.sd .g1, .sd .g2, .sd .g3, .sd .g4, .sd .g5 { opacity: 0; transition: opacity .7s var(--ease); }
.sd.ge1 .g1, .sd.ge2 .g2, .sd.ge3 .g3, .sd.ge4 .g4, .sd.ge5 .g5 { opacity: 1; }
.sd .d { fill: #C2C9D9; transform-box: fill-box; transform-origin: center; transition: fill .6s, transform .7s var(--ease); }
.sd.ge2 .d.m { fill: var(--ink); transform: scale(1.4); }
.sd.ge4 .d.l { fill: var(--cobalt); transform: scale(1.7); }
.sd .halo { fill: rgba(39, 67, 232, .13); }
.sd .ringm { fill: none; stroke: var(--cobalt); stroke-width: 1.8; }
.sd .ghost { fill: none; stroke: #C2C9D9; stroke-width: 1.2; stroke-dasharray: 3 6; }
.sd-ring { fill: rgba(39, 67, 232, .035); stroke: var(--cobalt); stroke-width: 1.3; stroke-dasharray: 4 7; }
.sd-label { font: 500 13px var(--ff); fill: var(--graphite); paint-order: stroke; stroke: #F7F8FB; stroke-width: 5px; stroke-linejoin: round; }
.sd-line { fill: none; stroke: rgba(39, 67, 232, .42); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.sd.ge3 .sd-line { stroke-dashoffset: 0; }
.hub-bg { fill: #fff; stroke: rgba(13, 16, 23, .12); stroke-width: 1.2; filter: drop-shadow(0 8px 14px rgba(24, 36, 96, .18)); }
.hub-loop-c { fill: none; stroke: var(--cobalt); stroke-width: 1.3; stroke-dasharray: 3 8; transform-box: fill-box; transform-origin: center; animation: spin 32s linear infinite; }
.crm-bg { fill: #fff; stroke: rgba(13, 16, 23, .12); }
.crm-h { font: 600 11px var(--ff); fill: var(--graphite); }
.crm-card.k0 { fill: #D8DDE8; } .crm-card.k1 { fill: rgba(39, 67, 232, .38); } .crm-card.k2 { fill: var(--cobalt); }

.steps { position: relative; padding-left: 68px; --sh: 46vh; }
.steps::before, .steps::after { content: ""; position: absolute; left: 19px; top: calc(var(--sh) / 2); bottom: calc(var(--sh) / 2); width: 2px; border-radius: 2px; }
.steps::before { background: var(--mist); }
.steps::after { background: linear-gradient(var(--cobalt), var(--cobalt-2)); transform-origin: top; transform: scaleY(var(--p, 1)); }
.step { position: relative; min-height: var(--sh); display: flex; flex-direction: column; justify-content: center; padding-block: 28px; transition: opacity .5s var(--ease); }
.js .step { opacity: .36; }
.js .step.active { opacity: 1; }
.step-num {
  position: absolute; left: -68px; top: 50%; translate: 0 -50%; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--mist);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.step.active .step-num { background: var(--cobalt); color: #fff; border-color: var(--cobalt); box-shadow: 0 0 0 8px rgba(39, 67, 232, .12); }
.step h3 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.15; max-width: 20ch; }
.step p { margin-top: 14px; max-width: 42ch; }

/* ---------- Para quién ---------- */
.aud-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); }
.aud { padding: 8px clamp(20px, 3vw, 44px) 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.aud:first-child { border-left: 0; padding-left: 0; }
.aud-glyph { height: 132px; width: auto; max-width: 100%; align-self: flex-start; color: var(--ink); margin-bottom: 36px; transition: transform .7s var(--ease), color .4s; }
.aud-glyph.wide { height: auto; width: 176px; margin-top: 26px; margin-bottom: 42px; }
.aud-glyph.combo { height: 132px; width: 144px; }
.aud:hover .aud-glyph { color: var(--cobalt); transform: translateY(-6px) rotate(-2deg); }
.aud h3 { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.85rem); line-height: 1.16; max-width: 14ch; }
.aud p { margin-top: 14px; max-width: 34ch; }

.glass { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px -44px rgba(24, 36, 96, .45), inset 0 1px 0 rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fit { margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 4vw, 52px); border-radius: 36px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(20px, 4vw, 64px); align-items: start; outline: 1px solid var(--line); outline-offset: -1px; background: linear-gradient(120deg, rgba(255, 255, 255, .9), rgba(228, 234, 252, .7)); }
.fit h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.fit-grid p { color: var(--graphite); }
.fit-grid strong { display: block; color: var(--ink); font-weight: 550; font-size: 1.12rem; letter-spacing: -.015em; margin-bottom: 6px; }

/* ---------- Por qué ---------- */
.pillars li { position: relative; padding: 26px 0 26px 40px; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars li::before { content: ""; position: absolute; left: 4px; top: 37px; width: 11px; height: 11px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 6px rgba(39, 67, 232, .12); }
.pillars h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.pillars p { margin-top: 8px; max-width: 48ch; }

.ladder { margin-top: clamp(32px, 5vw, 56px); padding: clamp(24px, 3.4vw, 40px); border-radius: 32px; display: grid; gap: 12px; background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(232, 237, 252, .7)); }
.ladder h3 { font-size: 1.15rem; margin-bottom: 10px; }
.rung { border-radius: 20px; padding: 18px 22px; display: grid; gap: 4px; }
.rung strong { font-size: 1.12rem; font-weight: 550; letter-spacing: -.015em; color: var(--ink); }
.rung p { font-size: .97rem; }
.r-a { background: #fff; border: 1px solid var(--line); margin-right: clamp(24px, 8vw, 96px); }
.r-b { background: rgba(39, 67, 232, .08); border: 1px solid rgba(39, 67, 232, .2); margin-left: clamp(12px, 4vw, 48px); margin-right: clamp(12px, 4vw, 48px); }
.r-c { background: linear-gradient(135deg, #2743E8, #4B67FF); margin-left: clamp(24px, 8vw, 96px); box-shadow: 0 20px 34px -22px rgba(39, 67, 232, .8); }
.r-c strong, .r-c p { color: #fff; }
.ladder-note { margin-top: 10px; font-size: .92rem; color: var(--graphite); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none;
  padding: 26px 0; font-size: clamp(1.15rem, 1.02rem + .5vw, 1.45rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: 2px; border-radius: 10px; }
.faq-ico { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--mist); transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease), background-color .3s; }
.faq-ico::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-ico { border-color: var(--ink); }
.faq-item[open] .faq-ico { background: var(--cobalt); border-color: var(--cobalt); transform: rotate(180deg); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-item[open] .faq-ico::after { transform: rotate(0); }
.faq-body { padding: 0 60px 28px 0; }
.faq-body p { max-width: 58ch; }
.faq-item[open] .faq-body { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Contacto ---------- */
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(28px, 5.5vw, 84px); border-radius: 48px;
  background: radial-gradient(90% 80% at 100% 0%, rgba(75, 103, 255, .16) 0%, rgba(75, 103, 255, 0) 60%), linear-gradient(160deg, #FFFFFF, #EEF1F8);
  border: 1px solid var(--line);
}
.contact-copy { display: grid; gap: 22px; position: sticky; top: 120px; }
.contact-copy h2 { max-width: 12ch; }

.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.form-note { padding: 14px 16px; border-radius: 14px; background: #FFF4D6; color: #5B4300; font-size: .95rem; margin-bottom: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .95rem; font-weight: 550; color: var(--ink); letter-spacing: -.005em; }
.field input, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 16px; background: #fff;
  border: 1.5px solid #7D879C; color: var(--ink); font-size: 1.02rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
.field [aria-invalid="true"] { border-color: #C0262E; background: #FFF8F8; }
.err { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; font-weight: 500; color: #B0202A; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #B0202A; color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { justify-self: start; }
.btn-submit .spin { display: none; width: 22px; height: 22px; margin: 9px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn-submit[aria-busy="true"] { pointer-events: none; opacity: .92; }
.btn-submit[aria-busy="true"] .btn-ico { display: none; }
.btn-submit[aria-busy="true"] .spin { display: block; }

.form-status { font-size: 1rem; }
.form-status:empty { display: none; }
.form-status > div { padding: 16px 18px; border-radius: 16px; display: grid; gap: 4px; }
.form-status strong { color: inherit; font-weight: 600; }
.form-status .is-ok { background: #E8F6EE; color: #0B4A2A; border: 1px solid #A8DCC0; }
.form-status .is-error { background: #FDECEC; color: #7D1119; border: 1px solid #F0B4B8; }
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- Pie ---------- */
.site-footer { position: relative; z-index: 1; background: var(--paper-2); border-top: 1px solid var(--line); margin-top: -1px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; padding-block: clamp(48px, 7vw, 88px) 36px; align-items: start; }
.foot-brand { display: grid; gap: 20px; }
.foot-brand p { max-width: 36ch; }
.site-footer .brand-mark { width: 34px; height: 31px; }
.site-footer .brand-word { width: 110px; height: 14px; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; justify-self: end; max-width: 420px; margin-left: auto; }
.site-footer nav a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--ink-2); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.site-footer nav a:hover { background-size: 100% 1.5px; color: var(--ink); }
.foot-base { padding-block: 22px 40px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--graphite); }

/* ---------- Aparición al hacer scroll (con red de seguridad) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); animation: revealSafe .01s 4.5s forwards; }
.js .reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes revealSafe { to { opacity: 1; transform: none; } }

/* =========================================================
   Adaptación
   ========================================================= */
@media (max-width: 1100px) {
  .nav li a { padding: 10px 10px; }
  .c1, .c2, .c3, .c4, .c5, .c6 { grid-column: span 6; }
  .c1 { grid-column: 1 / -1; min-height: 340px; }
  .cell.wide { flex-direction: column; align-items: flex-start; }
  .cell.wide .gets { flex-basis: auto; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px !important; }
}

@media (max-width: 900px) {
  :root { --sheet-r: 32px; }
  .site-header { top: 10px; }
  .bar { padding: 0 8px 0 18px; }
  .menu-toggle {
    display: inline-grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--ink); border: 0; cursor: pointer;
  }
  .menu-lines { position: relative; width: 18px; height: 12px; }
  .menu-lines i { position: absolute; left: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
  .menu-lines i:first-child { top: 2px; } .menu-lines i:last-child { top: 8px; }
  .open .menu-lines i:first-child { top: 5px; transform: rotate(45deg); }
  .open .menu-lines i:last-child { top: 5px; transform: rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0; padding: 12px; border-radius: 28px;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13, 16, 23, .45);
    display: none;
  }
  .open .nav { display: flex; animation: menuIn .35s var(--ease); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a { padding: 15px 16px; font-size: 1.1rem; border-radius: 16px; }
  .nav li a[aria-current="true"]::after { display: none; }
  .nav .btn-sm { min-height: 52px; font-size: 1.02rem; }

  .hero { min-height: 0; padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .stage { width: min(100%, 460px); }
  .net { -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 40%, #000 66%); mask-image: linear-gradient(180deg, transparent 0%, transparent 40%, #000 66%); }
  .motion-toggle { left: var(--gut); bottom: calc(var(--sheet-r) + 12px); }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .split-head h2, .problem .split-head h2 { max-width: 18ch; }

  .process-grid { grid-template-columns: 1fr; }
  .sd { position: static; }
  .sd-frame, .sd figcaption { width: min(100%, 520px); }
  .steps { --sh: auto; }
  .steps::before, .steps::after { top: 40px; bottom: 40px; }
  .step { min-height: 0; padding-block: 30px; }
  .js .step { opacity: 1; }
  .step-num { top: 44px; translate: none; }

  .aud-cols { grid-template-columns: 1fr; gap: 12px; }
  .aud { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 8px; display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; align-items: start; }
  .aud:first-child { border-top: 0; }
  .aud-glyph, .aud-glyph.wide, .aud-glyph.combo { grid-row: 1 / span 2; height: 88px; width: 88px; margin: 0; }
  .aud-glyph.wide { height: auto; margin-top: 22px; }
  .aud h3, .aud p { grid-column: 2; max-width: none; }
  .fit { grid-template-columns: 1fr; }

  .contact-panel { grid-template-columns: 1fr; border-radius: 36px; }
  .contact-copy { position: static; }
  .foot-grid { grid-template-columns: 1fr; }
  .site-footer nav ul { justify-self: start; margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .bento { grid-template-columns: 1fr; }
  .c1, .c2, .c3, .c4, .c5, .c6, .c7 { grid-column: 1 / -1; }
  .cell { min-height: 0; border-radius: 26px; }
  .cell.dark { min-height: 360px; }
  .cta-row .btn { flex: 1 1 auto; }
  .fit-grid { grid-template-columns: 1fr; }
  .faq-body { padding-right: 0; }
  .r-a, .r-b, .r-c { margin-inline: 0; }
  .r-b { margin-left: 14px; } .r-c { margin-left: 28px; }
  .btn-submit { justify-self: stretch; }
}

@media (max-width: 380px) {
  .brand-word { display: none; }
}

/* Sin JavaScript: el menú y el contenido siguen accesibles */
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 900px) {
  html:not(.js) .nav { display: flex; position: static; box-shadow: none; padding: 0; background: none; border: 0; }
  html:not(.js) .bar { height: auto; flex-wrap: wrap; padding: 12px 18px; border-radius: 28px; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .nav li a { padding: 8px 10px; font-size: .95rem; }
}

/* =========================================================
   Movimiento reducido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .step { opacity: 1; }
  .motion-toggle { display: none; }
  .hero h1 .w, .hero-in { opacity: 1; transform: none; filter: none; }
}
