/* =========================================================
   Arkis Studio — hoja de estilos única (sin Tailwind, sin CDN)
   Tema oscuro · acento único #2997ff · Manrope local
   ========================================================= */

@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-wght.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("fonts/manrope-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --surface: #141417;
  --surface-2: #1a1a1e;
  --surface-3: #222227;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-2: #b8b8bf;      /* secundario: ~9.6:1 sobre --bg */
  --text-3: #8f8f97;      /* terciario, solo ≥14px: ~6:1 sobre --bg */
  --accent: #2997ff;
  --accent-rgb: 41, 151, 255;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --accent-line: rgba(41, 151, 255, 0.45);
  --btn-top: #1a74d8;     /* azul de marca oscurecido: texto blanco ≥ 4.5:1 */
  --btn-bottom: #0a5bbd;
  --bubble-out: #0d4a8c;
  --danger: #ff6b6b;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --section-y: 88px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;
  --t: 300ms;
  --t-slow: 400ms;

  --z-bar: 70;
  --z-fab: 80;
  --z-chat: 85;
  --z-menu: 90;
  --z-header: 100;
  --z-cookie: 120;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 120px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px; line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -0.03em; line-height: 1.12; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
b, strong { font-weight: 700; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .35); }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--surface-2); padding: 10px 16px; border-radius: var(--radius-sm); transition: top var(--t-fast); }
.skip:focus { top: 12px; }

.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; isolation: isolate; overflow-x: clip; }
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), var(--container)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.top { align-items: start; }
  .split.narrow-left { grid-template-columns: .8fr 1.2fr; }
}
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Fondos sutiles */
.bg-glow { background: radial-gradient(60% 45% at 50% 0%, rgba(var(--accent-rgb), .10), transparent 70%); }
.bg-glow-right { background: radial-gradient(45% 55% at 85% 45%, rgba(var(--accent-rgb), .11), transparent 70%); }
.bg-glow-left { background: radial-gradient(45% 55% at 12% 50%, rgba(var(--accent-rgb), .09), transparent 70%); }
.bg-grid::after, .bg-dots::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
}
.bg-grid::after {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-dots::after { background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px; }
.bg-alt { background-color: var(--bg-2); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .7; }
.h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text-2); margin-top: 18px; }
.muted { color: var(--text-2); }
.small { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.fine { font-size: 14px; line-height: 1.55; color: var(--text-3); }
.accent { color: var(--accent); }
.metric { font-size: clamp(56px, 8vw, 96px); font-weight: 800; line-height: .95; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.metric-sm { font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.text-grad { background: linear-gradient(180deg, #ffffff 20%, #9fc9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.todo { background: #3a3000; color: #ffd84d; padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Botones (sistema único: principal · secundario · texto) ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 12px; white-space: nowrap;
  font-size: 14px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease), filter var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform var(--t) var(--ease); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
@media (hover: hover) { .btn:hover .icon-arrow { transform: translateX(4px); } }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 28px -10px rgba(var(--accent-rgb), .65);
}
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.26), inset 0 0 0 1px rgba(255,255,255,.12), 0 14px 36px -10px rgba(var(--accent-rgb), .8); }
}
.btn-secondary { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); }
@media (hover: hover) {
  .btn-secondary:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 24px -8px rgba(var(--accent-rgb), .5); }
}
.btn-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: 0; text-align: left;
  transition: color var(--t-fast), transform var(--t-fast);
}
.btn-text .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform var(--t) var(--ease); }
@media (hover: hover) { .btn-text:hover { color: #6bb8ff; } .btn-text:hover .icon-arrow { transform: translateX(4px); } }
.btn-text:active { transform: scale(.98); }
.btn-sm { --h: 44px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row > .btn { width: 100%; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  background: rgba(10, 10, 12, .55);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.header.is-scrolled, .menu-open .header { background: rgba(10, 10, 12, .88); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand img { width: 32px; height: auto; }
.brand span { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--t) var(--ease); }
.nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-cta { display: none !important; }
.burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; color: var(--text); }
.burger .icon { width: 24px; height: 24px; }
.burger .i-close { display: none; }
.menu-open .burger .i-open { display: none; }
.menu-open .burger .i-close { display: block; }
@media (min-width: 640px) { .header-cta { display: inline-flex !important; } }
@media (min-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { display: block; }
  .header-actions { justify-self: end; }
  .burger { display: none; }
}

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); padding: calc(var(--header-h) + 16px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; background: var(--bg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
.mobile-menu ul { flex: 1; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 4px; border-bottom: 1px solid var(--border);
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
}
.mobile-menu li a .icon { color: var(--text-3); }
.mobile-menu li a.is-active { color: var(--accent); }
.mobile-menu .btn { margin-top: 32px; width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t-slow) var(--ease);
}
.card-2 { background: var(--surface-2); }
@media (hover: hover) {
  .card.lift:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--accent-rgb), .08); }
}
.card .h3 { margin-bottom: 10px; }
.icon-tile {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .18), rgba(var(--accent-rgb), .06));
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .25); color: var(--accent);
}
.result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-2); }
.card-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), var(--surface) 60%); border-color: var(--accent-line); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.chip-live { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.chip-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }
.chip-example { color: var(--text-2); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip-example::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 56px) 0 88px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 55% at 78% 45%, rgba(var(--accent-rgb), .18), transparent 70%),
    radial-gradient(40% 40% at 0% 0%, rgba(var(--accent-rgb), .06), transparent 70%);
}
@media (min-width: 768px) { .hero { padding: calc(var(--header-h) + 96px) 0 120px; } }
.hero-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; } }
.hero-copy { max-width: 700px; }
@media (max-width: 1023px) { .hero-copy { margin: 0 auto; text-align: center; } .hero .btn-row { justify-content: center; } }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 14px; margin-bottom: 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.eyebrow-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .2); flex: none; }
.hero .lead { max-width: 540px; margin: 24px auto 0; }
@media (min-width: 1024px) { .hero .lead { margin-left: 0; } }
.hero .btn-row { margin-top: 40px; }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--text-3); }

/* ---------- Dispositivos (maquetas ilustrativas) ---------- */
.device-wrap { position: relative; width: 100%; max-width: 330px; margin: 0 auto; }
.device-wrap::before { content: ""; position: absolute; inset: -12% -22%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .26), transparent); }
.phone {
  position: relative; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #3a3a42, #17171b 40%, #2a2a31 75%, #101013);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone-screen { position: relative; border-radius: 39px; overflow: hidden; background: #0f1115; min-height: 540px; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 0; height: 42px; font-size: 13px; font-weight: 700; }
.phone-status .bars { display: flex; gap: 2px; align-items: flex-end; }
.phone-status .bars i { width: 3px; border-radius: 1px; background: var(--text); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px; border-bottom: 1px solid var(--border); background: #15171c; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom)); color: #fff; flex: none; }
.avatar .icon { width: 18px; height: 18px; }
.chat-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.chat-sub { font-size: 12.5px; color: var(--text-3); line-height: 1.3; }
.chat-body { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.4;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px); background-size: 16px 16px; }
.chat-day { align-self: center; font-size: 12px; color: var(--text-3); background: rgba(255,255,255,.05); padding: 3px 10px; border-radius: 8px; margin-bottom: 4px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; }
.bubble.in { align-self: flex-start; background: #23252b; border-top-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 5px; }
.chat-event { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: #191b20; box-shadow: inset 0 0 0 1px var(--border); }
.chat-event .ev-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.chat-event .ev-ico .icon { width: 16px; height: 16px; }
.chat-event b { display: block; font-size: 13.5px; line-height: 1.3; }
.chat-event span { color: var(--text-3); font-size: 12.5px; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; }
.chat-input div { flex: 1; height: 38px; border-radius: 20px; background: #1d1f24; display: flex; align-items: center; padding: 0 14px; color: var(--text-3); font-size: 13.5px; }
.chat-input span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--btn-bottom); color: #fff; }
.chat-input .icon { width: 17px; height: 17px; }

/* Ventana tipo app (CRM) */
.window { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-strong); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0,0,0,.95); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: #18181c; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; }
.window-bar span { margin-left: 10px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.crm { display: grid; grid-template-columns: 54px 1fr; min-height: 340px; }
.crm-side { border-right: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #121215; }
.crm-side span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--text-3); }
.crm-side span.on { background: var(--accent-soft); color: var(--accent); }
.crm-side .icon { width: 18px; height: 18px; }
.crm-main { padding: 18px; min-width: 0; }
.crm-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.crm-title b { font-size: 16px; }
.crm-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.crm-tabs span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 8px; color: var(--text-3); background: rgba(255,255,255,.04); }
.crm-tabs span.on { color: var(--text); background: rgba(255,255,255,.1); }
.crm-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.crm-row .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); }
.crm-row .dot .icon { width: 15px; height: 15px; }
.crm-row .lines b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.crm-row .lines i { display: block; height: 7px; width: 60%; margin-top: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
.status { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 7px; white-space: nowrap; }
.status.ok { color: var(--accent); background: var(--accent-soft); }
.status.wait { color: var(--text-2); background: rgba(255,255,255,.06); }

/* Telegram */
.tg-msg { align-self: flex-start; max-width: 90%; background: #23252b; border-radius: 16px; border-top-left-radius: 5px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.tg-msg b { display: block; margin-bottom: 6px; font-size: 14px; }
.tg-msg ul li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); padding: 3px 0; }
.tg-msg ul li .icon { width: 15px; height: 15px; color: var(--accent); margin-top: 3px; }
.tg-voice { align-self: flex-end; display: flex; align-items: center; gap: 10px; background: var(--bubble-out); border-radius: 16px; border-top-right-radius: 5px; padding: 10px 14px; font-size: 14px; }
.tg-voice .icon { width: 16px; height: 16px; }
.tg-voice .wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.tg-voice .wave i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.75); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--surface); padding: 26px 16px; text-align: center; }
.stats b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stats span { display: block; margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- Problema ---------- */
.pain .card { display: flex; flex-direction: column; gap: 14px; }
.pain .card .icon-tile { margin-bottom: 4px; }
.pain .quote { color: var(--text-2); }
.pain .consequence { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.label-up { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.fit { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .fit { grid-template-columns: 1.4fr 1fr; } }
.fit .yes { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(var(--accent-rgb), .10), var(--surface) 55%); }
.fit .yes .h3 { color: var(--accent); }
.fit .no .h3 { color: var(--text-2); }
.fit .no p { color: var(--text-3); }

/* ---------- Método (timeline) ---------- */
.timeline { position: relative; }
.timeline-line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.timeline-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb), .25)); transform: scaleY(0); transform-origin: top; transition: transform 400ms var(--ease) 150ms; }
.timeline.is-drawn .timeline-line::after, html:not(.js) .timeline-line::after { transform: scaleY(1); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 20px; }
.step:last-child { padding-bottom: 0; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent); }
.step .card { padding: 24px; }
.step .k { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.step .h3 { margin: 6px 0 8px; }
.side-actions { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (min-width: 1024px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 48px); } }
.facts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts div { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.facts b { display: block; font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.facts span { font-size: 15px; color: var(--text-2); }

/* ---------- Carrusel de casos ---------- */
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel-track.is-dragging * { pointer-events: none; }
.carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
@media (min-width: 640px) { .carousel-track { grid-auto-columns: 56%; } }
@media (min-width: 1024px) {
  .carousel-track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 32px) / 3); }
  .carousel-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
}
.case { scroll-snap-align: start; display: flex; flex-direction: column; }
.case.is-real { border-color: rgba(var(--accent-rgb), .3); background: linear-gradient(170deg, rgba(var(--accent-rgb), .07), var(--surface) 45%); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.case-kind { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.case .metric-sm { color: var(--accent); }
.case .metric-label { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.case .visual { margin: 22px 0; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); min-height: 136px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 14px; line-height: 1.4; }
.case .h3 { margin-bottom: 10px; }
.case-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-2); display: flex; align-items: flex-start; gap: 8px; }
.case-foot .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.case.is-example .case-foot .icon { color: var(--text-3); }
.case.is-example .case-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.case.is-example .case-icon .icon { width: 26px; height: 26px; }
.mini-bubble { max-width: 90%; padding: 7px 11px; border-radius: 12px; }
.mini-bubble.in { background: #23252b; align-self: flex-start; }
.mini-bubble.out { background: var(--bubble-out); align-self: flex-end; }
.mini-browser i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); }
.mini-browser i.s { width: 55%; background: rgba(255,255,255,.08); margin-top: 6px; }
.mini-browser .dots3 { display: flex; gap: 5px; margin-bottom: 12px; }
.mini-browser .dots3 i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); }
.mini-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mini-actions span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.mini-actions .a { background: var(--btn-bottom); color: #fff; }
.mini-actions .b { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); }
.mini-actions .icon { width: 13px; height: 13px; }
.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); }
.flow span .icon { width: 14px; height: 14px; }
.flow .to { width: 14px; height: 14px; color: var(--text-3); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 2px; flex-wrap: wrap; }
.dots button { width: 28px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); transition: width var(--t) var(--ease), background-color var(--t); }
.dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }
.arrows { display: flex; gap: 10px; }
.arrow-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text);
  transition: background-color var(--t), box-shadow var(--t), opacity var(--t), transform var(--t-fast);
}
@media (hover: hover) { .arrow-btn:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); } }
.arrow-btn:active { transform: scale(.96); }
.arrow-btn[disabled] { opacity: .3; cursor: default; }
.carousel-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 48px; text-align: center; }

/* ---------- Números ---------- */
.nums { display: grid; gap: 16px; }
.num-card .metric { margin-bottom: 12px; }
.num-card .metric.blue { color: var(--accent); }
.num-card .label { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }

/* ---------- Antes / después ---------- */
.compare { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.compare-row { display: grid; gap: 4px; padding: 20px 22px; border-top: 1px solid var(--border); }
.compare-head + .compare-row, .compare-row:first-child { border-top: 0; }
.compare-row .area { font-weight: 700; }
.compare-row .before { color: var(--text-3); }
.compare-row .after { color: var(--text); font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.compare-row .after .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 5px; }
.compare-row .lbl { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }
.compare-row .lbl.accent { color: var(--accent); }
.compare-head { display: none; }
@media (min-width: 768px) {
  .compare-head, .compare-row { grid-template-columns: 1fr 1.15fr 1.45fr; gap: 24px; }
  .compare-head { display: grid; padding: 16px 22px; background: var(--surface-2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--border); }
  .compare-head span:last-child { color: var(--accent); }
  .compare-row .lbl { display: none; }
}

/* ---------- Quién soy ---------- */
.about-img { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05); width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 40px 90px -40px rgba(0,0,0,.95); }
.pillars { margin-top: 32px; display: grid; gap: 22px; }
.pillars li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; }
.pillars .icon { color: var(--accent); width: 24px; height: 24px; margin-top: 3px; }
.pillars b { display: block; }
.pillars p { color: var(--text-2); }

/* ---------- Por dónde empezar ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan.featured { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .plans > .plan:nth-child(3) { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan.featured { display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 24px 48px; align-items: center; padding: 36px 36px 32px; }
  .plan.featured .checks { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .plan.featured .plan-cta { padding-top: 0; }
  .plan.featured .price { margin-bottom: 0; }
}
.plan { display: flex; flex-direction: column; }
.plan .icon-tile { margin-bottom: 18px; }
.plan-type { font-size: 15px; color: var(--text-3); margin-top: 4px; }
.price { margin: 22px 0 16px; font-size: clamp(34px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.price small { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-right: 4px; }
.plan .sub { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.plan .sub .price { margin: 8px 0 6px; font-size: 32px; }
.plan-cta { margin-top: auto; padding-top: 24px; }
.plan-cta .btn { width: 100%; }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(170deg, rgba(var(--accent-rgb), .14), var(--surface-2) 45%); box-shadow: 0 40px 90px -40px rgba(var(--accent-rgb), .45); }
.badge { position: absolute; top: -13px; left: 24px; height: 26px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom)); }
.checks { display: grid; gap: 9px; font-size: 16px; color: var(--text-2); }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.checks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.maint { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .maint { flex-direction: row; align-items: center; justify-content: space-between; } }
.maint .price { margin: 0; font-size: clamp(28px, 3vw, 36px); }

/* ---------- FAQ ---------- */
.faq { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; border-radius: var(--radius); transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon { color: var(--accent); transition: transform var(--t) var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--text-2); }
.faq details[open] p { animation: fadeUp var(--t) var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Formulario ---------- */
.steps-list { margin-top: 36px; display: grid; gap: 22px; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.steps-list .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 15px; font-weight: 800; color: var(--text-2); }
.steps-list li:first-child .n { box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent); }
.steps-list .when { font-size: 14px; font-weight: 700; color: var(--text-3); }
.steps-list li:first-child .when { color: var(--accent); }
.steps-list b { display: block; margin: 2px 0 4px; }
.steps-list p { color: var(--text-2); font-size: 16px; }
.form-card { position: relative; padding: 26px 20px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 50px 120px -50px rgba(var(--accent-rgb), .4); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-card .h3 { font-size: 24px; margin-bottom: 24px; }
.fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; font-size: 17px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-strong);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder { color: #7d7d85; }
.input:hover { border-color: rgba(255,255,255,.26); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.input:user-invalid { border-color: var(--danger); }
textarea.input { min-height: 104px; resize: vertical; }
select.input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b8b8bf' stroke-width='1.8'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
select.input option { background: var(--surface); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-error { color: var(--danger); font-size: 15px; }
.form-error[hidden] { display: none; }
.form-error a { text-decoration: underline; }
.form-legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.6; color: var(--text-3); }
.form-legal a { color: var(--accent); }
.form-ok { text-align: center; padding: 48px 8px; }
.form-ok[hidden] { display: none; }
.form-ok .ok-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom)); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg); padding: 72px 0 40px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer li + li { margin-top: 10px; }
.footer li a, .footer li button { font-size: 16px; color: var(--text-2); transition: color var(--t-fast); text-align: left; }
.footer li a:hover, .footer li button:hover { color: var(--text); }
.footer .brand { margin-bottom: 14px; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-simple { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .footer-simple { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-simple ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-simple li + li { margin-top: 0; }
body.has-bar .footer { padding-bottom: 120px; }
@media (min-width: 1024px) { body.has-bar .footer { padding-bottom: 40px; } }

/* ---------- Barra de reserva móvil ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  padding: 12px calc(var(--gutter) + 72px) max(12px, env(safe-area-inset-bottom)) var(--gutter);
  background: rgba(10, 10, 12, .9); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transform: translateY(110%); transition: transform var(--t) var(--ease);
}
.mobile-bar .btn { width: 100%; padding: 0 16px; }
body.has-bar .mobile-bar { transform: none; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-fab);
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 14px 34px -10px rgba(var(--accent-rgb), .75);
  transition: transform var(--t) var(--ease), opacity var(--t);
}
.chat-fab .icon { width: 26px; height: 26px; stroke-width: 1.9; }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .38); } 70%, 100% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0); } }
@media (hover: hover) { .chat-fab:hover { transform: translateY(-2px); } }
.chat-fab:active { transform: scale(.96); }
/* con barra móvil visible, el botón se coloca a su derecha, en la misma franja */
body.has-bar .chat-fab { bottom: calc(8px + env(safe-area-inset-bottom)); right: calc(var(--gutter) - 2px); }
@media (min-width: 1024px) { .chat-fab, body.has-bar .chat-fab { right: 24px; bottom: 24px; } }
.chat-open .chat-fab { opacity: 0; pointer-events: none; transform: scale(.85); }

.chat-panel {
  position: fixed; z-index: var(--z-chat); right: 24px; bottom: 24px; width: 390px;
  height: min(620px, calc(100vh - var(--header-h) - 48px));
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.chat-open .chat-panel { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s; }
@media (max-width: 639px) {
  .chat-panel { left: 8px; right: 8px; bottom: 8px; top: calc(var(--header-h) + 8px); width: auto; height: auto; }
}
.chat-panel-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat-panel-head .t { flex: 1; min-width: 0; }
.chat-panel-head b { display: block; font-size: 16px; line-height: 1.25; }
.chat-panel-head span { font-size: 13px; color: var(--text-3); }
.chat-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast); }
.chat-close:hover { background: rgba(255,255,255,.06); color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.5; overscroll-behavior: contain; }
.chat-log .bubble { max-width: 88%; animation: fadeUp var(--t) var(--ease); }
.typing { display: inline-flex; gap: 4px; padding: 14px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 4px; border-top: 1px solid var(--border); }
.quick button {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-align: left; line-height: 1.3;
  color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); background: rgba(var(--accent-rgb), .06);
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.quick button:hover { background: var(--accent-soft); }
.quick button:active { transform: scale(.98); }
.quick button[disabled] { opacity: .5; pointer-events: none; }
.chat-foot { padding: 8px 16px 14px; font-size: 13px; color: var(--text-3); }
@media (max-width: 639px) {
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; white-space: nowrap; }
}

/* ---------- Banner de cookies ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: var(--z-cookie); max-width: 720px; margin: 0 auto;
  padding: 22px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}
.cookie[hidden], .cookie-opts[hidden] { display: none; }
.cookie .h3 { font-size: 19px; margin-bottom: 8px; }
.cookie p { font-size: 15px; color: var(--text-2); }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie-opts { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.cookie-opt { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cookie-opt b { font-size: 15px; display: block; }
.cookie-opt span { font-size: 14px; color: var(--text-3); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-end; align-items: center; }
.cookie-actions .btn { --h: 44px; padding: 0 18px; font-size: 13px; }
.cookie-actions .btn-text { margin-right: auto; font-size: 15px; }
@media (max-width: 479px) { .cookie-actions .btn { flex: 1; } .cookie-actions .btn-text { width: 100%; } }
.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #3a3a41; flex: none; transition: background-color var(--t-fast); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--t-fast) var(--ease); }
.switch[aria-checked="true"] { background: var(--btn-top); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .container { max-width: calc(780px + var(--gutter) * 2); }
.legal .h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.prose-legal h2 { font-size: 24px; margin: 48px 0 14px; }
.prose-legal h3 { font-size: 19px; margin: 28px 0 10px; letter-spacing: -0.015em; }
.prose-legal p, .prose-legal li { color: var(--text-2); margin: 0 0 12px; }
.prose-legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-legal code { font-size: 15px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.prose-legal table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 12px 0 20px; }
.prose-legal th, .prose-legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.prose-legal th { color: var(--text); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-box { margin: 32px 0 8px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .legal-box { flex-direction: row; align-items: center; justify-content: space-between; } }
.prose-legal .legal-box p { margin: 0; }

/* ---------- Aparición al hacer scroll (solo si JS está activo) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (hover: hover) { .js .reveal.is-in.lift:hover { transform: translateY(-4px); } }
.js .reveal.is-in.lift { transition-delay: 0s; }

/* ---------- Utilidades ---------- */
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .timeline-line::after { transform: none; }
}
