/* GestiaWeb — web comercial con GestiaWeb Space como protagonista.
   Marca: negro profundo y oro GestiaWeb (los mismos valores que la app real de Space).
   Referencias de calidad: Linear (superficies oscuras escalonadas), Stripe (jerarquía, precios),
   Apple (ritmo y escala). Una sola familia: Plus Jakarta Sans, alojada en el propio servidor. */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 200 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Superficies */
  --bg: #07070A; --s1: #0D0D11; --s2: #131318; --s3: #1A1A20; --s4: #22222A;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-gold: rgba(201,162,75,.32);
  /* Tinta */
  --ink: #F5F3EE; --ink-2: #BDB9B0; --ink-3: #85827B;
  /* Oro GestiaWeb */
  --gold: #C9A24B; --gold-2: #E3C078; --champ: #F3E5C8; --gold-deep: #A9853A; --btnink: #1A1408;
  /* Sección clara */
  --paper: #F3F0E8; --paper-2: #E9E4D8; --paper-ink: #111113; --paper-ink-2: #4E4B45; --gold-on-paper: #7E5E1B;
  /* Estados de la interfaz de Space */
  --ok: #7FD19B; --info: #8FB3E6; --warn: #E6B86A;

  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-expo: cubic-bezier(.19,1,.22,1);
  --ease-move: cubic-bezier(.25,1,.5,1);

  --gut: clamp(20px, 4.5vw, 64px);
  --max: 1280px;
  --sec: clamp(112px, 14vw, 200px);
  --r: 14px; --r-lg: 22px;

  --t-hero: clamp(2.45rem, 7vw, 6.75rem);
  --t-h2: clamp(2.2rem, 4.4vw, 4.1rem);
  --t-h3: clamp(1.3rem, 1.8vw, 1.6rem);
  --t-lead: clamp(1.1rem, 1.45vw, 1.32rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(201,162,75,.38); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--btnink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.section { position: relative; padding-block: var(--sec); }

/* ---------- Tipografía ---------- */
.h-hero, .h2 { font-weight: 650; letter-spacing: -.045em; line-height: .98; color: var(--ink); text-wrap: balance; }
.h-hero { font-size: var(--t-hero); }
.h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.04em; }
.h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: var(--t-lead); color: var(--ink-2); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }
.gold { color: var(--gold-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn { --bh: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--bh); padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; touch-action: manipulation; isolation: isolate; overflow: hidden;
  transition: transform .16s var(--ease), background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .3s var(--ease); }
.btn:active { transform: scale(.97); transition-duration: 0s; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn-gold { background: var(--gold); color: var(--btnink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -12px rgba(201,162,75,.65); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,247,226,.55), transparent 65%); opacity: 0; transition: opacity .25s ease; }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 40px -12px rgba(227,192,120,.7); }
  .btn-gold:hover::before { opacity: 1; }
  .btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
  .btn:hover svg { transform: translateX(3px); }
}

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.22rem; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.brand-mark { width: 34px; height: 17px; flex: none; }
.brand b { font-weight: 750; color: var(--gold-2); }

/* Interruptor de Space: el icono real de la app */
.toggle { --w: 64px; position: relative; width: var(--w); height: calc(var(--w) / 2); border-radius: 999px; background: var(--s4); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; transition: background-color .5s var(--ease); }
.toggle::after { content: ""; position: absolute; top: 50%; left: calc(var(--w) * .14); width: calc(var(--w) * .36); aspect-ratio: 1; border-radius: 50%; background: #F7F1E3; translate: 0 -50%; transition: transform .7s var(--ease-expo); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.toggle.is-on { background: linear-gradient(115deg, var(--gold-deep), var(--gold) 55%, #EBD597); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.toggle.is-on::after { transform: translateX(calc(var(--w) * .36)); }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s ease, box-shadow .35s ease, transform .45s var(--ease); }
.nav.is-scrolled { background: rgba(7,7,10,.82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
.nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); } }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav .btn { --bh: 42px; padding: 0 18px; font-size: .92rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn span { position: relative; width: 16px; height: 1.5px; background: var(--ink); transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span::before { transform: translateY(-5px); } .menu-btn span::after { transform: translateY(5px); }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: 72px 0 auto; z-index: 49; background: rgba(7,7,10,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: 12px var(--gut) 28px; box-shadow: 0 1px 0 var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .3s var(--ease), visibility 0s .3s; }
  .mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .3s var(--ease), visibility 0s; }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
  .mobile-menu .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(112px, 11vw, 150px); padding-bottom: clamp(72px, 8vw, 120px); overflow: clip; }
.hero-light { position: absolute; inset: -20% -10% auto; height: 120vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(38% 34% at 50% 26%, rgba(201,162,75,.20), transparent 70%),
    radial-gradient(30% 30% at 22% 46%, rgba(201,162,75,.07), transparent 70%),
    radial-gradient(30% 30% at 80% 50%, rgba(243,229,200,.05), transparent 70%); }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero .h-hero { max-width: 13ch; }
.hero .h-hero .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero .h-hero .line > span { display: inline-block; }
.hero .lead { margin-inline: auto; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; color: var(--ink-3); font-size: .95rem; }
.hero-note .toggle { --w: 30px; }

.stage { position: relative; z-index: 1; margin-top: clamp(48px, 5vw, 72px); perspective: 2200px; }
.stage-in { position: relative; transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.stage::after { /* luz bajo la ventana */ content: ""; position: absolute; left: 10%; right: 10%; top: 10%; height: 70%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(201,162,75,.18), transparent 70%); filter: blur(40px); pointer-events: none; }

/* ---------- Ventana de Space (mockup construido en HTML) ---------- */
.win { container-type: inline-size; position: relative; border-radius: 18px; background: var(--s1); box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 0 rgba(255,255,255,.1) inset, 0 50px 120px -40px rgba(0,0,0,.9), 0 30px 60px -30px rgba(0,0,0,.7); overflow: hidden; }
.app { --u: calc(100cqw / 80); font-size: var(--u); display: grid; grid-template-columns: 15em 1fr; min-height: 47em; color: var(--ink); line-height: 1.4; text-align: left; }
.app * { line-height: inherit; }
.app svg { width: 1.15em; height: 1.15em; flex: none; }
.side { background: var(--bg); padding: 1.4em 1em; display: flex; flex-direction: column; gap: .25em; box-shadow: 1px 0 0 var(--line); }
.side-brand { display: flex; align-items: center; gap: .6em; padding: .2em .6em 1.4em; font-weight: 700; font-size: 1.05em; letter-spacing: -.03em; }
.side-brand .toggle { --w: 2.2em; }
.side-label { padding: 1.2em .75em .45em; font-size: .78em; color: var(--ink-3); font-weight: 500; }
.side-item { display: flex; align-items: center; gap: .75em; padding: .58em .75em; border-radius: .6em; color: var(--ink-2); font-size: .95em; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.side-item.on { background: var(--s3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-item .badge { margin-left: auto; min-width: 1.6em; padding: 0 .45em; border-radius: 999px; background: var(--gold); color: var(--btnink); font-size: .75em; font-weight: 700; text-align: center; line-height: 1.6; }
.side-item.ai { color: var(--gold-2); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: .7em; padding: .8em .6em 0; box-shadow: 0 -1px 0 var(--line); }
.side-foot small { display: block; color: var(--ink-3); font-size: .8em; }
.av { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-size: .82em; font-weight: 700; color: var(--btnink); background: var(--champ); flex: none; }
.av.b { background: #8FB3E6; } .av.c { background: #7FD19B; } .av.d { background: #E6A88F; } .av.e { background: #C7B6F0; }

.main { padding: 1.3em 1.8em 1.6em; display: flex; flex-direction: column; gap: 1.3em; background: var(--s1); }
.top { display: flex; align-items: center; gap: 1em; }
.search { flex: 1; display: flex; align-items: center; gap: .7em; height: 2.6em; padding: 0 1em; border-radius: .7em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: .92em; }
.kbd { margin-left: auto; padding: .1em .5em; border-radius: .35em; background: var(--s4); color: var(--ink-2); font-size: .8em; font-weight: 600; }
.ico-btn { width: 2.6em; height: 2.6em; display: grid; place-items: center; border-radius: .7em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); position: relative; }
.ico-btn .dot { position: absolute; top: .6em; right: .65em; width: .45em; height: .45em; border-radius: 50%; background: var(--gold); }
.greet h3 { font-size: 2em; font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.greet p { color: var(--ink-2); font-size: .98em; margin-top: .35em; }
.greet p b { color: var(--gold-2); font-weight: 600; }

.grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 1em; }
.card { background: var(--s2); border-radius: 1em; padding: 1.15em 1.2em; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.card-h { display: flex; align-items: center; gap: .55em; font-size: .9em; font-weight: 600; color: var(--ink); }
.card-h svg { color: var(--ink-3); }
.card-h .more { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: .92em; }
.inbox { grid-row: span 2; }
.mail { display: flex; gap: .8em; padding: .7em .6em; margin-inline: -.6em; border-radius: .6em; }
.mail.unread { background: rgba(255,255,255,.025); }
.mail-b { min-width: 0; flex: 1; }
.mail-t { display: flex; justify-content: space-between; gap: .5em; font-size: .9em; font-weight: 600; }
.mail-t time { color: var(--ink-3); font-weight: 500; font-size: .92em; }
.mail-s { font-size: .86em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-p { font-size: .82em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail.unread .mail-t::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--gold); align-self: center; order: -1; margin-right: -.1em; }
.mail-t span { margin-right: auto; }
.tag { display: inline-flex; align-items: center; gap: .35em; padding: .15em .55em; border-radius: 999px; font-size: .75em; font-weight: 600; background: rgba(201,162,75,.14); color: var(--gold-2); }
.tag.ok { background: rgba(127,209,155,.12); color: var(--ok); }
.tag.info { background: rgba(143,179,230,.13); color: var(--info); }

.tl { display: flex; flex-direction: column; gap: .55em; }
.ev { display: grid; grid-template-columns: 3.4em 1fr; gap: .6em; align-items: start; font-size: .86em; }
.ev time { color: var(--ink-3); font-weight: 500; padding-top: .3em; }
.ev div { padding: .45em .7em; border-radius: .55em; background: var(--s3); box-shadow: inset .2em 0 0 var(--c, var(--gold)); }
.ev b { display: block; font-weight: 600; }
.ev small { color: var(--ink-3); font-size: .92em; }
.ev.now div { background: rgba(201,162,75,.12); }

.prod { display: flex; align-items: center; gap: 1.1em; }
.ring { width: 4.6em; height: 4.6em; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .bg { stroke: var(--s4); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 37); transition: stroke-dashoffset 1.6s var(--ease-expo); }
.js .ring .fg { stroke-dashoffset: 100; }
.is-loaded .ring .fg { stroke-dashoffset: 37; transition-delay: 1.5s; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.05em; font-weight: 700; }
.prod p { font-size: .85em; color: var(--ink-2); }
.prod p b { display: block; color: var(--ink); font-size: 1.1em; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.mini-stats div { background: var(--s3); border-radius: .6em; padding: .6em .7em; }
.mini-stats small { display: block; color: var(--ink-3); font-size: .78em; }
.mini-stats b { font-size: 1.15em; font-weight: 700; letter-spacing: -.02em; }
.feed li { display: flex; gap: .65em; align-items: flex-start; font-size: .84em; color: var(--ink-2); padding: .3em 0; }
.feed li b { color: var(--ink); font-weight: 600; }
.feed .fi { width: 1.9em; height: 1.9em; border-radius: .5em; display: grid; place-items: center; background: var(--s3); color: var(--gold-2); flex: none; }
.feed .fi svg { width: 1em; height: 1em; }
.feed time { display: block; color: var(--ink-3); font-size: .9em; }

.ask { display: flex; align-items: center; gap: .8em; padding: .75em .8em .75em 1.1em; border-radius: .9em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-gold), 0 0 0 .35em rgba(201,162,75,.05); font-size: .95em; color: var(--ink-3); }
.ask .spark { color: var(--gold-2); }
.ask .chip { padding: .3em .8em; border-radius: 999px; background: var(--s3); color: var(--ink-2); font-size: .85em; white-space: nowrap; }
.ask .chip:first-of-type { margin-left: auto; }
.ask .send { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--btnink); }

/* Ventanas flotantes sobre el escenario */
.float { position: absolute; z-index: 3; container-type: normal; font-size: clamp(9px, 1.05vw, 14.5px); background: rgba(22,22,28,.86); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-radius: 1.1em; box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,.08), 0 30px 70px -20px rgba(0,0,0,.85); padding: 1.1em 1.2em; color: var(--ink); line-height: 1.45; text-align: left; }
.float svg { width: 1.15em; height: 1.15em; flex: none; }
.float-ai { right: -3%; top: 16%; width: 20em; }
.float-ev { left: -3.5%; bottom: 18%; width: 17em; }
.float-toast { right: 6%; bottom: -3.2%; display: flex; align-items: center; gap: .7em; padding: .75em 1.1em .75em .8em; border-radius: 999px; font-size: clamp(9px, 1vw, 14px); font-weight: 600; }
.float-toast .ok-dot { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: rgba(127,209,155,.15); color: var(--ok); }
.fh { display: flex; align-items: center; gap: .55em; font-weight: 650; font-size: .95em; margin-bottom: .7em; }
.fh .spark { color: var(--gold-2); }
.fh small { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.float-ai ul { display: grid; gap: .5em; font-size: .9em; color: var(--ink-2); }
.float-ai li { display: flex; gap: .55em; }
.float-ai li::before { content: ""; width: .4em; height: .4em; margin-top: .55em; border-radius: 50%; background: var(--gold); flex: none; }
.float-ai li b { color: var(--ink); font-weight: 600; }
.float-ai .acts { display: flex; gap: .5em; margin-top: .9em; }
.float-ai .acts span { padding: .35em .8em; border-radius: 999px; font-size: .82em; font-weight: 600; background: var(--s4); color: var(--ink-2); }
.float-ai .acts span:first-child { background: var(--gold); color: var(--btnink); }
.float-ev .when { font-size: .82em; color: var(--gold-2); font-weight: 600; }
.float-ev b { display: block; font-size: 1.08em; letter-spacing: -.01em; margin: .15em 0 .2em; }
.float-ev p { font-size: .85em; color: var(--ink-3); }
.avs { display: flex; margin-top: .8em; }
.avs .av { width: 1.9em; height: 1.9em; font-size: .72em; box-shadow: 0 0 0 .2em rgba(22,22,28,1); }
.avs .av + .av { margin-left: -.45em; }

/* Animación de entrada del hero */
.js .hero [data-in] { opacity: 0; }
.js .hero .h-hero .line > span { transform: translateY(105%); }
.is-loaded .hero [data-in] { animation: rise 1s var(--ease-expo) both; animation-delay: calc(var(--d, 0) * 1ms); }
.is-loaded .hero .h-hero .line > span { animation: lineUp 1.1s var(--ease-expo) both; animation-delay: calc(var(--d, 0) * 1ms); }
.js .stage .win { opacity: 0; transform: translateY(60px); }
.is-loaded .stage .win { animation: winIn 1.4s var(--ease-expo) .55s both; }
.js .stage .card, .js .stage .ask, .js .stage .greet, .js .stage .side-item { opacity: 0; }
.is-loaded .stage .greet, .is-loaded .stage .card, .is-loaded .stage .ask { animation: rise .9s var(--ease-expo) both; animation-delay: calc(900ms + var(--i, 0) * 90ms); }
.is-loaded .stage .side-item { animation: fadeX .7s var(--ease-expo) both; animation-delay: calc(850ms + var(--i, 0) * 45ms); }
.js .stage .float { opacity: 0; }
.is-loaded .stage .float-ai { animation: floatIn 1.1s var(--ease-expo) 1.55s both; }
.is-loaded .stage .float-ev { animation: floatIn 1.1s var(--ease-expo) 1.75s both; }
.is-loaded .stage .float-toast { animation: toastIn .9s var(--ease-expo) 2.3s both; }
.drift { animation: drift 9s ease-in-out infinite; }
.drift.slow { animation-duration: 12s; animation-delay: -4s; }
.paused .drift, .paused .orbit-spin { animation-play-state: paused; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeX { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes winIn { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Reveal genérico (scroll) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-expo), transform 1s var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Space: convergencia ---------- */
.converge { position: relative; }
.cv-sticky { position: relative; }
.js .converge { height: 260vh; }
.js .cv-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cv-copy { display: grid; gap: 24px; }
.cv-state { position: relative; min-height: 3.4em; }
.cv-state p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.4; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.cv-state p + p { position: absolute; inset: 0; }
.cv-state .before { color: var(--ink-3); }
.cv-state .after { color: var(--ink); opacity: 0; transform: translateY(12px); }
.cv-state .after b { color: var(--gold-2); font-weight: 650; }
.converge.is-done .cv-state .before { opacity: 0; transform: translateY(-12px); }
.converge.is-done .cv-state .after { opacity: 1; transform: none; }
.cv-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; margin-top: 8px; }
.cv-facts b { display: block; font-size: 1.02rem; font-weight: 650; color: var(--ink); }
.cv-facts span { font-size: .92rem; color: var(--ink-3); }

.cv-field { position: relative; aspect-ratio: 1 / .86; }
.cv-hub { position: absolute; left: 50%; top: 50%; width: 76%; translate: -50% -50%; border-radius: 22px; background: var(--s1); box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,.08), 0 40px 100px -30px rgba(0,0,0,.9); padding: 22px; opacity: var(--hub-o, 0); transform: scale(calc(.9 + var(--hub-o, 0) * .1)); }
.cv-hub-top { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.cv-hub-top .toggle { --w: 34px; }
.cv-hub-top small { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: .85rem; letter-spacing: 0; }
.cv-dock { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cv-slot { aspect-ratio: 1.25; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.cv-tile { position: absolute; left: 0; top: 0; width: var(--tw, 120px); display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--s2); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0,0,0,.8); transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)); will-change: transform; }
.cv-tile .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s4); color: var(--gold-2); }
.cv-tile .ti svg { width: 18px; height: 18px; }
.cv-tile b { font-size: .92rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.cv-tile small { display: block; font-size: .75rem; color: var(--ink-3); line-height: 1.3; transition: opacity .3s ease; opacity: var(--lo, 1); }
.cv-tile small i { font-style: normal; letter-spacing: .12em; }
.cv-tile.ai .ti { background: rgba(201,162,75,.16); }

/* ---------- Ecosistema ---------- */
.eco-head { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.eco { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tabs { display: grid; gap: 4px; position: sticky; top: 104px; }
.tab { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; text-align: left; padding: 16px 16px 16px 14px; border-radius: 16px; color: var(--ink-3); transition: background-color .25s ease, color .25s ease; }
.tab .ti { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.tab .ti svg { width: 19px; height: 19px; transition: transform .45s var(--ease); }
.tab b { font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; color: var(--ink-2); transition: color .25s ease; align-self: end; }
.tab .td { font-size: .92rem; line-height: 1.45; grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.tab .td > i { font-style: normal; overflow: hidden; }
.tab[aria-selected="true"] { background: var(--s2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tab[aria-selected="true"] b { color: var(--ink); }
.tab[aria-selected="true"] .td { grid-template-rows: 1fr; }
.tab[aria-selected="true"] .ti { background: var(--gold); color: var(--btnink); box-shadow: none; }
.tab[aria-selected="true"] .ti svg { transform: scale(1.08); }
.tab .prog { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.tab[aria-selected="true"] .prog.run { opacity: .7; animation: prog var(--auto, 7s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink-2); } .tab:hover b { color: var(--ink); } .tab:hover .ti svg { transform: scale(1.08); } }

.eco-win { position: relative; }
.eco-win .win { background: var(--s1); }
.ewin-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; box-shadow: 0 1px 0 var(--line); font-size: .92rem; font-weight: 600; }
.ewin-bar .toggle { --w: 28px; }
.ewin-bar .crumb { color: var(--ink-3); font-weight: 500; }
.ewin-bar .crumb b { color: var(--ink); font-weight: 600; }
.ewin-bar .sp { margin-left: auto; display: flex; gap: 6px; }
.ewin-bar .sp i { width: 8px; height: 8px; border-radius: 50%; background: var(--s4); }
.panes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.pane { grid-area: 1 / 1; min-width: 0; --u: calc(100cqw / 60); font-size: var(--u); padding: 1.8em; min-height: 31em; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); filter: blur(4px); transition: opacity .45s var(--ease), transform .6s var(--ease), filter .45s var(--ease), visibility 0s .6s; }
.pane.on { opacity: 1; visibility: visible; transform: none; filter: none; transition: opacity .5s var(--ease) .08s, transform .7s var(--ease) .08s, filter .5s var(--ease) .08s, visibility 0s; }
.pane svg { width: 1.2em; height: 1.2em; flex: none; }
.pane h4 { font-size: 1.45em; font-weight: 650; letter-spacing: -.03em; display: flex; align-items: center; gap: .5em; }
.pane h4 small { margin-left: auto; font-size: .62em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pane-sub { color: var(--ink-3); font-size: .95em; margin-top: .25em; }
.pane > * + * { margin-top: 1.2em; }
.pane .row { display: flex; align-items: center; gap: .9em; padding: .85em 1em; border-radius: .75em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); font-size: .95em; }
.pane .row + .row { margin-top: .55em; }
.pane .row .grow { flex: 1; min-width: 0; }
.pane .row b { display: block; font-weight: 600; }
.pane .row small { color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane .row time, .pane .row .amt { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.pane .split { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.pane .box { background: var(--s2); border-radius: .9em; padding: 1.1em 1.2em; box-shadow: inset 0 0 0 1px var(--line); }
.pane .box small { color: var(--ink-3); font-size: .85em; display: block; }
.pane .box .big { font-size: 2.2em; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-top: .15em; }
/* Calendario semanal */
.week { display: grid; grid-template-columns: 3em repeat(5, 1fr); gap: .35em; font-size: .85em; }
.week .dh { text-align: center; color: var(--ink-3); font-weight: 600; padding-bottom: .4em; }
.week .dh.today { color: var(--gold-2); }
.week .hr { color: var(--ink-3); font-size: .85em; text-align: right; padding-right: .3em; }
.week .cell { min-height: 3.4em; border-radius: .5em; background: var(--s2); }
.week .evt { min-height: 3.4em; border-radius: .5em; padding: .45em .55em; font-size: .9em; font-weight: 600; line-height: 1.25; background: rgba(201,162,75,.14); color: var(--champ); box-shadow: inset .22em 0 0 var(--gold); }
.week .evt.b { background: rgba(143,179,230,.13); box-shadow: inset .22em 0 0 var(--info); color: #DCE7F7; }
.week .evt.c { background: rgba(127,209,155,.12); box-shadow: inset .22em 0 0 var(--ok); color: #D9F2E2; }
.week .evt small { display: block; font-weight: 500; opacity: .7; }
/* Webs */
.web-edit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1em; }
.field { display: grid; gap: .4em; }
.field label { font-size: .82em; color: var(--ink-3); font-weight: 600; }
.field .in { padding: .7em .85em; border-radius: .6em; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .95em; }
.field .in.focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 .25em rgba(201,162,75,.15); }
.caret { display: inline-block; width: 1px; height: 1.05em; background: var(--gold-2); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.preview { border-radius: .9em; background: #F3F0E8; color: #141414; padding: 1em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.preview .pv-bar { display: flex; align-items: center; gap: .5em; font-size: .78em; font-weight: 700; color: #141414; }
.preview .pv-bar i { margin-left: auto; font-style: normal; font-weight: 500; color: #6a665e; }
.preview h5 { font-size: 1.55em; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin-top: .9em; }
.preview p { font-size: .82em; color: #55524b; margin-top: .5em; }
.preview .pv-img { margin-top: .9em; height: 6.5em; border-radius: .6em; background: linear-gradient(135deg, #D9CBAA, #B8996A 55%, #8C6E3F); }
.preview .pv-btn { display: inline-block; margin-top: .8em; padding: .4em .9em; border-radius: 999px; background: #141414; color: #F3F0E8; font-size: .75em; font-weight: 600; }
/* Aplicaciones */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; }
.appi { display: grid; justify-items: start; gap: .6em; padding: 1em; border-radius: .9em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.appi .ai { width: 2.6em; height: 2.6em; border-radius: .75em; display: grid; place-items: center; background: var(--s4); color: var(--gold-2); }
.appi b { font-size: .95em; font-weight: 650; }
.appi small { font-size: .8em; color: var(--ink-3); line-height: 1.35; }
.appi.add { place-content: center; justify-items: center; color: var(--ink-3); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
/* IA en panel */
.ai-pane .q { margin-left: auto; max-width: 75%; padding: .8em 1em; border-radius: 1em 1em .3em 1em; background: var(--s3); font-size: .95em; width: fit-content; }
.ai-pane .a { padding: 1em 1.1em; border-radius: 1em; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-gold); font-size: .95em; color: var(--ink-2); }
.ai-pane .a b { color: var(--ink); }
.ai-pane .a ul { display: grid; gap: .4em; margin-top: .6em; }
.ai-pane .a li { display: flex; gap: .5em; }
.ai-pane .a li svg { color: var(--gold-2); margin-top: .15em; }

/* ---------- Asistente ---------- */
.assist { background: var(--s1); overflow: clip; }
.assist::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 78% 40%, rgba(201,162,75,.10), transparent 70%); }
.as-head { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.as-head .h2 { max-width: 20ch; }
.as-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.as-copy { display: grid; gap: 28px; align-content: start; }
.caps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 12px; }
.caps li { display: grid; gap: 4px; }
.caps b { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.caps b svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; }
.caps span { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }

.chat { border-radius: 24px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255,255,255,.06), 0 50px 120px -40px rgba(0,0,0,.9), 0 0 120px -40px rgba(201,162,75,.25); overflow: hidden; display: flex; flex-direction: column; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; box-shadow: 0 1px 0 var(--line); }
.orb { width: 34px; height: 34px; border-radius: 50%; flex: none; position: relative; background: radial-gradient(circle at 35% 30%, #F7E7BE, var(--gold) 45%, #6E5520 100%); box-shadow: 0 0 24px -4px rgba(201,162,75,.7); }
.orb::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(201,162,75,.35); animation: pulse 2.8s var(--ease) infinite; }
.chat.is-thinking .orb::after { animation-duration: 1s; }
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.chat-top b { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.chat-top small { display: block; color: var(--ink-3); font-size: .85rem; }
.chat-top .ctx { margin-left: auto; display: flex; gap: 6px; }
.chat-top .ctx span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--s2); font-size: .78rem; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chat-top .ctx svg { width: 13px; height: 13px; }
.chat-log { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; height: 470px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.chat-log::-webkit-scrollbar { display: none; }
.msg { max-width: 88%; font-size: .97rem; line-height: 1.55; animation: msgIn .55s var(--ease-expo) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.msg.me { align-self: flex-end; padding: 11px 16px; border-radius: 18px 18px 6px 18px; background: var(--s3); color: var(--ink); }
.msg.bot { align-self: flex-start; color: var(--ink-2); }
.msg.bot .txt b { color: var(--ink); font-weight: 600; }
.msg.bot ul { display: grid; gap: 8px; margin-top: 10px; }
.msg.bot li { display: flex; gap: 10px; }
.msg.bot li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; border-radius: 50%; background: var(--gold); flex: none; }
.msg .doc { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: .93rem; }
.msg .doc .dh { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.msg .doc .dh svg { width: 14px; height: 14px; }
.msg .doc p + p { margin-top: 8px; }
.msg .doc-acts { display: flex; gap: 8px; margin-top: 12px; }
.msg .doc-acts span { padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--s4); color: var(--ink-2); }
.msg .doc-acts span:first-child { background: var(--gold); color: var(--btnink); }
.msg .tasks { margin-top: 12px; display: grid; gap: 6px; }
.msg .tasks div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--s2); color: var(--ink); font-size: .92rem; }
.msg .tasks i { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.msg .tasks small { color: var(--ink-3); font-size: .8rem; }
.msg .tasks .hi small { color: var(--gold-2); }
.typing { display: inline-flex; gap: 5px; padding: 12px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s var(--ease) infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-foot { padding: 14px 16px 16px; box-shadow: 0 -1px 0 var(--line); display: grid; gap: 12px; }
.prompts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.prompts::-webkit-scrollbar { display: none; }
.prompt { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .88rem; font-weight: 500; color: var(--ink-2); touch-action: manipulation; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .16s var(--ease); }
.prompt svg { width: 15px; height: 15px; color: var(--gold-2); }
.prompt:active { transform: scale(.96); transition-duration: 0s; }
.prompt[aria-pressed="true"] { background: rgba(201,162,75,.14); color: var(--champ); box-shadow: inset 0 0 0 1px var(--line-gold); }
.prompt:disabled { cursor: progress; }
@media (hover: hover) and (pointer: fine) { .prompt:not(:disabled):hover { background: var(--s3); color: var(--ink); } }
.composer { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: .95rem; }
.composer .send { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--s4); color: var(--ink-2); }
.composer svg { width: 16px; height: 16px; }
.demo-note { font-size: .82rem; color: var(--ink-3); text-align: center; }

/* ---------- Soluciones (sección clara) ---------- */
.solutions { background: var(--paper); color: var(--paper-ink); }
.solutions .h2 { color: var(--paper-ink); }
.solutions .lead { color: var(--paper-ink-2); }
.solutions .lead strong { color: var(--paper-ink); }
.sol-head { display: grid; gap: 28px; }
.sol-head .h2 { max-width: 22ch; }
.sol-head .lead { justify-self: end; max-width: 52ch; }
.sol-list { margin-top: clamp(56px, 7vw, 96px); }
.sol { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px; gap: 16px 48px; align-items: center; padding: clamp(22px, 2.6vw, 34px) 0; box-shadow: 0 -1px 0 rgba(17,17,19,.12); }
.sol:last-child { box-shadow: 0 -1px 0 rgba(17,17,19,.12), 0 1px 0 rgba(17,17,19,.12); }
.sol h3 { font-size: clamp(1.6rem, 3.2vw, 2.9rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; transition: transform .5s var(--ease), color .3s ease; }
.sol p { color: var(--paper-ink-2); font-size: 1.05rem; line-height: 1.55; max-width: 44ch; }
.sol .arr { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(17,17,19,.18); transition: background-color .3s ease, color .3s ease, transform .5s var(--ease), box-shadow .3s ease; }
.sol .arr svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.sol::before { content: ""; position: absolute; inset: 0 -24px; border-radius: 18px; background: var(--paper-2); opacity: 0; transform: scaleY(.85); transition: opacity .35s ease, transform .5s var(--ease); z-index: 0; }
.sol > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .sol:hover::before { opacity: 1; transform: none; }
  .sol:hover h3 { transform: translateX(10px); }
  .sol:hover .arr { background: var(--paper-ink); color: var(--paper); box-shadow: none; }
  .sol:hover .arr svg { transform: rotate(-45deg); }
}
.sol-foot { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.sol-foot p { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; letter-spacing: -.02em; max-width: 36ch; line-height: 1.4; }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn-ink:hover { background: #2A2A2E; } }
.solutions :focus-visible { outline-color: var(--gold-on-paper); }

/* ---------- Precios ---------- */
.pricing { overflow: clip; }
.pricing::before { content: ""; position: absolute; left: 50%; top: 30%; width: 900px; height: 700px; translate: -50% 0; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(201,162,75,.10), transparent 70%); }
.pr-head { position: relative; text-align: center; display: grid; justify-items: center; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.plans { position: relative; display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 16px; align-items: stretch; }
.plan { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .4s ease; }
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.05), transparent 60%); opacity: 0; transition: opacity .3s ease; }
@media (hover: hover) and (pointer: fine) { .plan:hover::before { opacity: 1; } .plan:hover { transform: translateY(-4px); } }
.plan-name { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 650; letter-spacing: -.015em; }
.plan-name .flag { margin-left: auto; padding: 4px 11px; border-radius: 999px; background: var(--gold); color: var(--btnink); font-size: .78rem; font-weight: 700; letter-spacing: 0; }
.plan-for { color: var(--ink-2); font-size: .98rem; line-height: 1.5; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: clamp(3.6rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.plan .btn { width: 100%; }
.feat { display: grid; gap: 12px; padding-top: 22px; box-shadow: 0 -1px 0 var(--line); font-size: .97rem; }
.feat li { display: flex; gap: 12px; color: var(--ink); line-height: 1.45; }
.feat li svg { width: 18px; height: 18px; color: var(--gold-2); flex: none; margin-top: 2px; }
.feat .inc { color: var(--ink-3); font-size: .9rem; }
.plan.ai { background: linear-gradient(180deg, #17140D, var(--s1) 55%); box-shadow: inset 0 0 0 1px var(--line-gold), 0 40px 100px -40px rgba(201,162,75,.45); }
.plan.ai::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,229,200,.75), transparent); }
.plan.ai .price b { color: var(--champ); }
.plan.client { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.plan.client .price b { font-size: clamp(2rem, 2.8vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; }
.plan.client .client-txt { color: var(--ink-2); font-size: .98rem; line-height: 1.6; padding-top: 22px; box-shadow: 0 -1px 0 var(--line); }
.plan.client .client-txt p + p { margin-top: 12px; }
.plan.client .client-txt strong { color: var(--ink); font-weight: 600; }
.plan .spacer { flex: 1; }
.pr-foot { position: relative; margin-top: 28px; text-align: center; color: var(--ink-3); font-size: .92rem; }

/* ---------- Por qué ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.why-side { position: sticky; top: 120px; display: grid; gap: 28px; }
.why-list { display: grid; gap: 0; }
.why-item { display: grid; grid-template-columns: 56px 1fr; gap: 6px 22px; padding: 30px 0; box-shadow: 0 -1px 0 var(--line); }
.why-item:last-child { box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.why-item .wi { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--s2); color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--line); }
.why-item .wi svg { width: 24px; height: 24px; }
.why-item h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.2; align-self: end; }
.why-item p { color: var(--ink-2); font-size: 1.04rem; line-height: 1.6; max-width: 52ch; }

/* ---------- CTA final ---------- */
.final { text-align: center; overflow: clip; padding-block: clamp(140px, 17vw, 240px); }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1.6; translate: -50% -50%; pointer-events: none; background: radial-gradient(45% 45% at 50% 50%, rgba(201,162,75,.20), rgba(201,162,75,.05) 50%, transparent 72%); opacity: var(--glow, .35); transition: opacity 1.2s var(--ease); }
.final.is-on::before { --glow: 1; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 30px; }
.final .toggle { --w: clamp(96px, 11vw, 140px); cursor: pointer; }
.final .h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); max-width: 14ch; }
.final .lead { margin-inline: auto; max-width: 48ch; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Pie ---------- */
.foot { position: relative; padding: clamp(72px, 8vw, 112px) 0 32px; background: var(--bg); box-shadow: 0 -1px 0 var(--line); overflow: clip; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-about p { color: var(--ink-2); max-width: 34ch; margin-top: 18px; font-size: .98rem; }
.foot h2 { font-size: .95rem; font-weight: 650; color: var(--ink); margin-bottom: 16px; letter-spacing: -.01em; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); font-size: .96rem; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { color: var(--gold-2); } }
.foot-word { margin-top: clamp(64px, 8vw, 110px); font-weight: 750; letter-spacing: -.065em; line-height: .8; font-size: clamp(4.5rem, 19.5vw, 19rem); color: var(--s3); white-space: nowrap; user-select: none; text-align: center; }
.foot-word b { color: rgba(201,162,75,.22); font-weight: 750; }
.foot-base { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .float-ai { right: -1%; } .float-ev { left: -1%; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan.client { grid-column: 1 / -1; }
  .plan.client .client-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .cv-grid, .eco-head, .eco, .as-grid, .as-head, .why-grid { grid-template-columns: 1fr; }
  .sol-head .lead { justify-self: start; }
  .js .converge { height: auto; }
  .js .cv-sticky { position: relative; height: auto; min-height: 0; padding-block: var(--sec); overflow: visible; }
  .cv-grid { gap: 28px; }
  .cv-field { max-width: 560px; width: 100%; margin-inline: auto; }
  .tabs { position: relative; top: 0; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { grid-template-columns: auto auto; padding: 10px 16px 10px 10px; border-radius: 999px; align-items: center; }
  .tab .ti { grid-row: auto; width: 32px; height: 32px; border-radius: 50%; }
  .tab .ti svg { width: 16px; height: 16px; }
  .tab b { font-size: .98rem; align-self: center; }
  .tab .td { display: none; }
  .tab .prog { left: 20px; right: 20px; }
  .eco-desc { display: block !important; }
  .why-side { position: relative; top: 0; }
  .sol { grid-template-columns: 1fr 48px; }
  .sol p { grid-column: 1; }
  .sol .arr { grid-row: 1 / span 2; grid-column: 2; }
}
@media (min-width: 961px) { .eco-desc { display: none; } }
.eco-desc { margin-top: 18px; color: var(--ink-2); font-size: 1rem; min-height: 3em; }
.eco-desc b { color: var(--ink); }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .app { --u: calc(100cqw / 36); grid-template-columns: 1fr; min-height: 0; }
  .side { display: none; }
  .main { padding: 1.3em; gap: 1.1em; }
  .grid { grid-template-columns: 1fr; }
  .inbox { grid-row: auto; }
  .grid .card:nth-child(n+3) { display: none; }
  .ask .chip { display: none; }
  .ask .send { margin-left: auto; }
  .float { font-size: 10.5px; }
  .float-ai { right: -2%; top: auto; bottom: 30%; width: 19em; }
  .float-ev { display: none; }
  .float-toast { right: 50%; translate: 50% 0; bottom: -4%; font-size: 11px; }
  .stage { margin-inline: calc(var(--gut) * -.4); }
  .pane { --u: calc(100cqw / 30); min-height: 36em; padding: 1.3em; }
  .week { grid-template-columns: 2.6em repeat(3, 1fr); }
  .week .d4, .week .d5 { display: none; }
  .web-edit, .pane .split { grid-template-columns: 1fr; }
  .preview { display: none; }
  .apps { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr; }
  .as-grid > :last-child { order: -1; }
  .chat-log { height: 440px; }
  .chat-top .ctx { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan.ai { order: -1; }
  .plan.client .client-body { grid-template-columns: 1fr; gap: 0; }
  .cv-facts { grid-template-columns: 1fr; gap: 14px; }
  .cv-field { aspect-ratio: 1 / 1.02; }
  .cv-hub { width: 92%; padding: 16px; }
  .cv-tile { padding: 10px; gap: 6px; }
  .cv-tile .ti { width: 28px; height: 28px; }
  .cv-tile b { font-size: .8rem; }
  .cv-tile small { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .final-actions .btn { flex: 1 1 100%; }
  .sol-foot .btn { width: 100%; }
}
@media (max-width: 520px) { .nav-cta .btn-gold { display: none; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none; transition: opacity .4s ease; }
  .js .hero .h-hero .line > span { transform: none; }
  .stage-in { transform: none !important; }
  .js .converge { height: auto; }
  .js .cv-sticky { position: relative; height: auto; min-height: 0; padding-block: var(--sec); }
  .pane { transform: none !important; filter: none !important; }
  .caret, .orb::after { animation: none !important; }
}
