@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');

/* WaFloW · web pública. Tokens del laboratorio (laboratorio/src/styles/tokens.css) adaptados a la web. */
:root {
  color-scheme: light;
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --c-bg: #ffffff;
  --c-surface: #f7f8f8;
  --c-surface-hover: #f2f4f4;
  --c-subtle: #fbfcfc;
  --c-chrome: #f1f7f5;
  --c-glass: rgba(255, 255, 255, .86);
  --c-hover: rgba(17, 23, 22, .045);
  --c-border: #eceeed;
  --c-border-strong: #e1e4e3;
  --c-border-hover: #d5d9d8;
  --c-canvas: #eef2f1;
  --c-canvas-dot: #cbd3d1;
  --c-text: #111716;
  --c-text-2: #48625d;
  --c-text-3: #6a8580;
  --c-icon: #8d9794;
  --c-on-accent: #ffffff;
  --c-read-on-accent: #b8f5ea;
  --c-accent: #0e9384;
  --c-accent-strong: #0b7a6e;
  --c-accent-soft: #ebf7f5;
  --c-accent-border: #c3e8e1;
  --c-focus: rgba(14, 147, 132, .16);
  --c-brand-green: #55bc68;
  --c-brand-blue: #3389a5;
  --tone-green-bg: #e7f6ee; --tone-green-fg: #1a7443; --tone-green-solid: #22a06b;
  --tone-blue-bg: #e9f1fc; --tone-blue-fg: #1f62ad; --tone-blue-solid: #2f7bd6;
  --tone-orange-bg: #fdf1e3; --tone-orange-fg: #ad5510; --tone-orange-solid: #e0891b;
  --tone-red-bg: #fdecec; --tone-red-fg: #bf3232; --tone-red-solid: #d65151;
  --tone-gray-bg: #f0f2f1; --tone-gray-fg: #56625f; --tone-gray-solid: #c5cccb;
  --tone-violet-bg: #eef0fd; --tone-violet-fg: #4f46c8;
  --c-whatsapp: #25a55f;
  --c-star: #e0a526;
  --shadow-xs: 0 1px 2px rgba(16, 24, 22, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 22, .06), 0 1px 2px rgba(16, 24, 22, .04);
  --shadow-pop: 0 10px 28px -8px rgba(16, 24, 22, .16), 0 2px 6px rgba(16, 24, 22, .05);
  --shadow-modal: 0 24px 48px -12px rgba(16, 24, 22, .22), 0 0 0 1px rgba(16, 24, 22, .06);
  --shadow-hero: 0 40px 80px -24px rgba(16, 40, 36, .28), 0 0 0 1px rgba(16, 24, 22, .06);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #0e1312; --c-surface: #161c1b; --c-surface-hover: #1b2221; --c-subtle: #121817; --c-chrome: #121a18;
    --c-glass: rgba(14, 19, 18, .82); --c-hover: rgba(255, 255, 255, .05);
    --c-border: #202827; --c-border-strong: #2b3533; --c-border-hover: #37423f;
    --c-canvas: #121a18; --c-canvas-dot: #26302e;
    --c-text: #e7eeec; --c-text-2: #a9b9b5; --c-text-3: #7f928e; --c-icon: #7f928e;
    --c-accent: #14a693; --c-accent-strong: #4fd1bd; --c-accent-soft: rgba(20, 166, 147, .14); --c-accent-border: rgba(20, 166, 147, .38); --c-focus: rgba(20, 166, 147, .28);
    --tone-green-bg: rgba(34, 160, 107, .16); --tone-green-fg: #5fd39c; --tone-green-solid: #2bb77b;
    --tone-blue-bg: rgba(47, 123, 214, .18); --tone-blue-fg: #8ab8f0; --tone-blue-solid: #4a90e2;
    --tone-orange-bg: rgba(224, 137, 27, .16); --tone-orange-fg: #f0b066; --tone-orange-solid: #e8962c;
    --tone-red-bg: rgba(214, 81, 81, .16); --tone-red-fg: #f08a8a; --tone-red-solid: #e06464;
    --tone-gray-bg: rgba(255, 255, 255, .06); --tone-gray-fg: #a9b9b5; --tone-gray-solid: #4d5a57;
    --tone-violet-bg: rgba(99, 102, 241, .18); --tone-violet-fg: #b4b6fb;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
    --shadow-modal: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-hero: 0 40px 90px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #0e1312; --c-surface: #161c1b; --c-surface-hover: #1b2221; --c-subtle: #121817; --c-chrome: #121a18;
  --c-glass: rgba(14, 19, 18, .82); --c-hover: rgba(255, 255, 255, .05);
  --c-border: #202827; --c-border-strong: #2b3533; --c-border-hover: #37423f;
  --c-canvas: #121a18; --c-canvas-dot: #26302e;
  --c-text: #e7eeec; --c-text-2: #a9b9b5; --c-text-3: #7f928e; --c-icon: #7f928e;
  --c-accent: #14a693; --c-accent-strong: #4fd1bd; --c-accent-soft: rgba(20, 166, 147, .14); --c-accent-border: rgba(20, 166, 147, .38); --c-focus: rgba(20, 166, 147, .28);
  --tone-green-bg: rgba(34, 160, 107, .16); --tone-green-fg: #5fd39c; --tone-green-solid: #2bb77b;
  --tone-blue-bg: rgba(47, 123, 214, .18); --tone-blue-fg: #8ab8f0; --tone-blue-solid: #4a90e2;
  --tone-orange-bg: rgba(224, 137, 27, .16); --tone-orange-fg: #f0b066; --tone-orange-solid: #e8962c;
  --tone-red-bg: rgba(214, 81, 81, .16); --tone-red-fg: #f08a8a; --tone-red-solid: #e06464;
  --tone-gray-bg: rgba(255, 255, 255, .06); --tone-gray-fg: #a9b9b5; --tone-gray-solid: #4d5a57;
  --tone-violet-bg: rgba(99, 102, 241, .18); --tone-violet-fg: #b4b6fb;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .05);
  --shadow-modal: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-hero: 0 40px 90px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:where(a, button, summary, [tabindex]):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-focus); border-radius: var(--radius-md); }
.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; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 104px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.chrome { background: var(--c-chrome); }
.section + .section:not(.chrome) { border-top: 1px solid var(--c-border); }
.section.chrome + .section { border-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-accent-strong);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.032em; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.lead { color: var(--c-text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; max-width: 620px; }
.muted { color: var(--c-text-2); }
.small { font-size: 13px; color: var(--c-text-3); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  color: var(--c-text);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .12s;
}
.btn:hover { background: var(--c-surface); border-color: var(--c-border-hover); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--c-accent) 30%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 15%, transparent);
}
.btn-primary:hover { background: var(--c-accent-strong); border-color: var(--c-accent-strong); color: var(--c-on-accent); }
:root[data-theme="dark"] .btn-primary:hover { background: #0f8a7b; border-color: #0f8a7b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary:hover { background: #0f8a7b; border-color: #0f8a7b; } }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--c-text-2); }
.btn-ghost:hover { background: var(--c-hover); border-color: transparent; color: var(--c-text); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent-strong); font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.tag-new {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 6px; background: var(--c-accent-soft); color: var(--c-accent-strong);
  box-shadow: inset 0 0 0 1px var(--c-accent-border);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--c-border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: var(--radius-md); color: var(--c-text-2); font-size: 14px; font-weight: 500; transition: background .12s, color .12s; }
.nav a:hover { background: var(--c-hover); color: var(--c-text); }
.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.actions .btn { height: 36px; }
.lang {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  border-radius: var(--radius-md); color: var(--c-text-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: background .12s, color .12s;
}
.lang:hover { background: var(--c-hover); color: var(--c-text); }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-md); place-items: center; color: var(--c-text); }
.menu-toggle:hover { background: var(--c-hover); }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .site-header .wrap { gap: 8px; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 8px 16px 16px;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow-pop);
  }
  .nav a { padding: 12px; font-size: 16px; }
  .site-header.open .nav { display: flex; }
  .menu-toggle { display: inline-grid; }
  .actions .btn-ghost { display: none; }
  .site-header.open .nav .nav-login { display: block; }
}
.nav .nav-login { display: none; }
@media (max-width: 420px) {
  .brand img { height: 26px; }
  .actions .btn-primary { padding: 0 12px; }
  .lang { min-width: 32px; padding: 0 4px; }
}

/* ---------- Genéricos que usan todas las páginas ---------- */
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--c-border); background: linear-gradient(var(--c-chrome), var(--c-bg)); }
.page-hero .wrap { display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 900px; }
.page-hero p { color: var(--c-text-2); font-size: 18px; max-width: 680px; }

/* Texto legal largo */
.legal { max-width: 760px; margin-inline: auto; padding: 56px 0 104px; color: var(--c-text); font-size: 16px; line-height: 1.7; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 20px; letter-spacing: -0.015em; margin: 40px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { font-size: 16px; margin: 24px 0 6px; }
.legal p, .legal ul, .legal ol, .legal table { margin: 0 0 14px; }
.legal p, .legal li { color: var(--c-text-2); }
.legal strong { color: var(--c-text); font-weight: 600; }
.legal ul, .legal ol { padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin: 4px 0; }
.legal li::marker { color: var(--c-text-3); }
.legal a { color: var(--c-accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
.legal th { background: var(--c-chrome); color: var(--c-text-3); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.legal .updated { color: var(--c-text-3); font-size: 14px; margin-bottom: 32px; }
.legal hr { border: 0; border-top: 1px solid var(--c-border); margin: 40px 0; }

/* Franja final */
.cta-band { position: relative; overflow: hidden; padding: 112px 0; background: var(--c-chrome); border-top: 1px solid var(--c-border); text-align: center; isolation: isolate; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--c-canvas-dot) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.cta-band .wrap { display: grid; justify-items: center; gap: 18px; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.035em; max-width: 760px; }
.cta-band p { color: var(--c-text-2); font-size: 18px; max-width: 560px; }
.cta-band .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.cta-band .micro { font-size: 13px; color: var(--c-text-3); }
.cta-band .bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-band .bubbles span {
  position: absolute; bottom: -60px; display: block; height: 30px; border-radius: 14px 14px 14px 4px;
  background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs); opacity: .0;
  animation: rise 14s linear infinite;
}
.cta-band .bubbles span:nth-child(even) { background: var(--c-accent); border-color: var(--c-accent); border-radius: 14px 14px 4px 14px; }
.cta-band .bubbles span:nth-child(1) { left: 6%; width: 120px; animation-delay: 0s; }
.cta-band .bubbles span:nth-child(2) { left: 18%; width: 80px; animation-delay: 3s; }
.cta-band .bubbles span:nth-child(3) { left: 80%; width: 140px; animation-delay: 1.5s; }
.cta-band .bubbles span:nth-child(4) { left: 90%; width: 70px; animation-delay: 6s; }
.cta-band .bubbles span:nth-child(5) { left: 70%; width: 96px; animation-delay: 8.5s; }
.cta-band .bubbles span:nth-child(6) { left: 28%; width: 110px; animation-delay: 10s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .55; } 80% { opacity: .35; } 100% { transform: translateY(-520px); opacity: 0; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--c-border); background: var(--c-bg); padding: 64px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .cols > div { display: grid; align-content: start; gap: 10px; }
.site-footer h4, .site-footer .col-title { color: var(--c-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.site-footer a { color: var(--c-text-2); transition: color .12s; }
.site-footer a:hover { color: var(--c-text); }
.site-footer .foot-brand p { color: var(--c-text-2); max-width: 300px; margin-top: 6px; }
.site-footer .foot-brand img { height: 28px; width: auto; }
.legal-line { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border); color: var(--c-text-3); font-size: 13px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .foot-brand { grid-column: 1 / -1; } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-whatsapp); color: #fff; box-shadow: 0 10px 24px -6px rgba(37, 165, 95, .55), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .15s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-float { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* =====================================================================
   PORTADA
   ===================================================================== */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--c-canvas-dot) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 0%, transparent 70%);
  opacity: .8;
}
.hero::after {
  content: ''; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.pill-new {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%;
  height: 34px; padding: 0 12px 0 5px; border-radius: 999px;
  background: var(--c-bg); border: 1px solid var(--c-border-strong); box-shadow: var(--shadow-xs);
  color: var(--c-text-2); font-size: 13px; font-weight: 500; transition: border-color .12s;
}
.pill-new:hover { border-color: var(--c-accent-border); }
.pill-new .tag-new { border-radius: 999px; height: 24px; padding: 0 9px; }
.pill-new span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-new svg { width: 14px; height: 14px; flex: none; color: var(--c-icon); }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--c-accent); }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); transition: opacity .45s ease, transform .45s ease; white-space: nowrap; }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.out { opacity: 0; transform: translateY(-.35em); }
.hero .lead { font-size: clamp(17px, 1.7vw, 20px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-micro { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--c-text-3); font-size: 13px; }
.hero-micro span { display: inline-flex; align-items: center; gap: 6px; }
.hero-micro svg { width: 14px; height: 14px; color: var(--c-accent); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--c-chrome); color: var(--c-text-2); font-size: 13px; font-weight: 500; }
.hero-points svg { width: 14px; height: 14px; color: var(--c-accent); }

/* ---------- Ventana de app (maquetas) ---------- */
.app {
  position: relative; background: var(--c-bg); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-hero); font-size: 13px; line-height: 1.45; letter-spacing: -0.006em;
}
.app-bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--c-border); background: var(--c-chrome); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); }
.app-bar .title { font-weight: 600; font-size: 13px; }
.app-bar .demo-tag { margin-left: auto; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--c-bg); border: 1px solid var(--c-border); color: var(--c-text-3); font-size: 11px; font-weight: 500; }
.demo-note { margin-top: 12px; color: var(--c-text-3); font-size: 12px; text-align: center; }

/* Bandeja */
.inbox { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 470px; }
.inbox-list { border-right: 1px solid var(--c-border); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.inbox-search { height: 32px; border-radius: 8px; background: var(--c-surface); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--c-text-3); font-size: 12px; margin: 0 4px 8px; }
.inbox-search svg { width: 14px; height: 14px; }
.chips { display: flex; gap: 6px; margin: 0 4px 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--c-border-strong); color: var(--c-text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.chip.active { background: var(--c-accent-soft); border-color: var(--c-accent-border); color: var(--c-accent-strong); }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.conv { display: flex; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.conv.active { background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px var(--c-accent-border); }
.conv .body { flex: 1; min-width: 0; }
.conv .head { display: flex; align-items: center; gap: 6px; }
.conv .name { font-weight: 500; font-size: 13px; letter-spacing: -0.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conv .date { margin-left: auto; color: var(--c-text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.conv .prev { color: var(--c-text-2); font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conv .meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--c-text-3); font-size: 11px; font-weight: 500; }
.conv .meta svg { width: 12px; height: 12px; }
.conv .meta .wa { color: var(--c-whatsapp); }
.conv .meta .mail { color: var(--tone-blue-fg); }
.conv .meta .bot { color: var(--c-accent); margin-left: 2px; }
.conv.unread .name { font-weight: 600; }
.conv.unread .prev { color: var(--c-text); }
.conv.unread .date { color: var(--c-accent); font-weight: 600; }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.conv.new { display: none; }
.conv.new.on { display: flex; animation: slide-in .45s ease both; }
.conv.was-top.on { display: none; }

.av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 600; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.xs { width: 20px; height: 20px; font-size: 9.5px; }
.av.teal { background: #e6f6f3; color: #0b7a6e; } .av.indigo { background: #eef0fd; color: #4f46c8; } .av.orange { background: #fdf1e7; color: #b45a12; }
.av.rose { background: #fdecef; color: #c0344f; } .av.blue { background: #e8f3fc; color: #1f6fb2; } .av.lime { background: #f1f6e6; color: #58781a; }

.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-bottom: 1px solid var(--c-border); background: var(--c-chrome); }
.chat-head .who { min-width: 0; }
.chat-head .who b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.chat-head .who span { color: var(--c-text-3); font-size: 11.5px; display: flex; align-items: center; gap: 4px; }
.chat-head .who span svg { width: 12px; height: 12px; color: var(--c-whatsapp); }
.stage-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-border-strong); font-size: 11.5px; font-weight: 500; color: var(--c-text-2); white-space: nowrap; transition: background .3s, border-color .3s, color .3s; }
.stage-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone-gray-solid); transition: background .3s; }
.stage-chip.booked { background: var(--tone-green-bg); border-color: transparent; color: var(--tone-green-fg); }
.stage-chip.booked i { background: var(--tone-green-solid); }
.toggle-bot { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.switch { position: relative; width: 26px; height: 15px; border-radius: 999px; background: var(--c-accent); flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: right .18s; }
.switch.off { background: var(--tone-gray-solid); }
.switch.off::after { right: 13px; }

.chat-body {
  flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 14px 16px; background: var(--c-subtle);
}
.day-sep { align-self: center; height: 22px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--c-glass); border: 1px solid var(--c-border); color: var(--c-text-3); font-size: 11px; font-weight: 500; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs); font-size: 13px; line-height: 1.45; }
.msg.out .bubble { background: var(--c-accent); border-color: var(--c-accent); color: #fff; border-radius: 14px 14px 4px 14px; box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--c-accent) 50%, transparent); }
.bubble .t { display: block; margin-top: 2px; text-align: right; color: var(--c-text-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.msg.out .bubble .t { color: rgba(255, 255, 255, .75); }
.msg.out .bubble .t .read { color: var(--c-read-on-accent); }
.ai-label { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--c-accent-strong); font-size: 11px; font-weight: 500; }
.ai-label svg { width: 12px; height: 12px; }
.typing { display: inline-flex; align-items: center; gap: 8px; align-self: flex-end; color: var(--c-text-3); font-size: 11.5px; }
.typing .dots3 { display: inline-flex; gap: 3px; padding: 9px 11px; border-radius: 14px 14px 4px 14px; background: var(--c-accent-soft); }
.typing .dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-accent); animation: blink 1s infinite ease-in-out; }
.typing .dots3 i:nth-child(2) { animation-delay: .15s; } .typing .dots3 i:nth-child(3) { animation-delay: .3s; }
.typing.in-side { align-self: flex-start; }
.typing.in-side .dots3 { background: var(--c-surface); border-radius: 14px 14px 14px 4px; }
.typing.in-side .dots3 i { background: var(--c-text-3); }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.slots { display: flex; gap: 6px; margin-top: 6px; }
.slot { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking {
  align-self: flex-end; display: flex; align-items: center; gap: 10px; width: min(300px, 92%);
  padding: 10px 12px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-pop);
}
.booking .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tone-green-bg); color: var(--tone-green-fg); flex: none; }
.booking .ico svg { width: 18px; height: 18px; }
.booking b { display: block; font-size: 12.5px; font-weight: 600; }
.booking span { color: var(--c-text-2); font-size: 12px; }
.composer { display: flex; align-items: center; gap: 8px; margin: 10px 12px 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--c-border-strong); border-radius: 12px; background: var(--c-bg); box-shadow: var(--shadow-sm); color: var(--c-text-3); font-size: 12.5px; }
.composer .send { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c-accent); color: #fff; }
.composer .send svg { width: 14px; height: 14px; }

/* Pasos animados (los activa site.js) */
.st { display: none; }
.st.on { display: flex; animation: pop-in .4s cubic-bezier(.2, .7, .3, 1) both; }
.st.inline.on { display: inline-flex; }
.st.block.on { display: block; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ---------- Integraciones ---------- */
.logos { padding: 40px 0 44px; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.logos .label { text-align: center; color: var(--c-text-3); font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-chip { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo-chip svg, .logo-chip .glyph { width: 20px; height: 20px; flex: none; }
.glyph { display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; }

/* ---------- Problema / solución ---------- */
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.problem { position: relative; display: grid; align-content: start; gap: 10px; min-height: 232px; padding: 22px; border-radius: 14px; background: var(--c-bg); border: 1px solid var(--c-border); overflow: hidden; }
.problem .num { color: var(--c-text-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.problem h3 { font-size: 18px; letter-spacing: -0.015em; }
.problem p { color: var(--c-text-2); font-size: 14.5px; }
.problem .fix {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent-strong); font-size: 13.5px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease;
}
.problem .fix svg { width: 16px; height: 16px; flex: none; }
.problem.in .fix { opacity: 1; transform: none; transition-delay: .5s; }
.problem.in p { opacity: .55; transition: opacity .6s .5s; }
.problems-close { margin-top: 32px; text-align: center; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
@media (max-width: 1000px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .problems { grid-template-columns: minmax(0, 1fr); } .problem { min-height: 0; padding-bottom: 72px; } }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { display: grid; align-content: start; gap: 12px; padding: 26px; border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-bg); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pillar:hover { border-color: var(--c-accent-border); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent-strong); }
.tile svg { width: 22px; height: 22px; }
.pillar .k { color: var(--c-text-3); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pillar h3 { font-size: 19px; }
.pillar p { color: var(--c-text-2); font-size: 15px; }
.pillar ul { display: grid; gap: 6px; margin-top: 4px; }
.pillar li { display: flex; gap: 8px; color: var(--c-text-2); font-size: 14px; }
.pillar li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--c-accent); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bloques destacados ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.checks { display: grid; gap: 10px; margin-top: 4px; }
.checks li { display: flex; gap: 10px; color: var(--c-text-2); font-size: 15.5px; }
.checks li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-accent); }
.checks li b { color: var(--c-text); font-weight: 600; }
@media (max-width: 960px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; } .feature.flip > :first-child { order: 0; } }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; background: var(--c-bg); }
.board-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; flex-wrap: wrap; }
.board-top .pipe { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--c-border-strong); border-radius: 8px; font-size: 12px; font-weight: 500; }
.board-top .total { margin-left: auto; display: flex; align-items: baseline; gap: 6px; color: var(--c-text-3); font-size: 12px; }
.board-top .total b { color: var(--c-text); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.col { display: flex; flex-direction: column; gap: 8px; min-height: 300px; padding: 8px; border-radius: 12px; background: var(--c-chrome); }
.col-head { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 4px; font-size: 12.5px; font-weight: 600; }
.col-head i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.col-head .n { color: var(--c-text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.col-head .sum { margin-left: auto; color: var(--c-text-2); font-weight: 500; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.kcard { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 10px; background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs); transition: transform .5s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, opacity .3s, border-color .3s; }
.kcard b { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kcard p { color: var(--c-text-2); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kcard .foot { display: flex; align-items: center; gap: 6px; }
.kcard .val { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--c-surface); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kcard .foot .av { margin-left: auto; }
.kcard.lift { transform: translateX(30%) rotate(3deg); box-shadow: var(--shadow-pop); border-color: var(--c-accent-border); }
.kcard.gone { display: none; }
.kcard.hl { border-color: var(--c-accent-border); box-shadow: 0 0 0 3px var(--c-focus); }
.kcard.st.on { display: flex; }
.chip-ai { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--c-accent-soft); color: var(--c-accent-strong); font-size: 10.5px; font-weight: 600; }
.chip-ai svg { width: 11px; height: 11px; }
@media (max-width: 560px) {
  .board { gap: 6px; padding: 10px; }
  .col { padding: 6px; min-height: 260px; }
  .col-head { font-size: 11px; gap: 5px; padding: 0 2px; }
  .col-head .sum { display: none; }
  .kcard { padding: 8px; }
  .kcard b { font-size: 11.5px; }
  .kcard p { display: none; }
  .kcard .foot .av { display: none; }
  .chip-ai .lbl { display: none; }
}

/* Automatización */
.flow-wrap { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--c-canvas); background-image: radial-gradient(var(--c-canvas-dot) 1px, transparent 1px); background-size: 22px 22px; }
.prompt { margin: 16px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-border-strong); box-shadow: var(--shadow-sm); }
.prompt .lbl { display: flex; align-items: center; gap: 6px; color: var(--c-accent-strong); font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.prompt .lbl svg { width: 13px; height: 13px; }
.prompt .typed { min-height: 40px; font-size: 13.5px; color: var(--c-text); }
.prompt .typed::after { content: ''; display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--c-accent); animation: caret 1s steps(1) infinite; }
.prompt.done .typed::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.flow { display: grid; gap: 0; padding: 18px 16px 18px; justify-items: center; }
.node {
  position: relative; display: flex; align-items: center; gap: 12px; width: min(420px, 100%);
  padding: 12px 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-xs);
  opacity: .45; transition: opacity .35s, border-color .35s, box-shadow .35s;
}
.node .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c-surface); color: var(--c-text-2); flex: none; transition: background .3s, color .3s; }
.node .ic svg { width: 18px; height: 18px; }
.node .tx { min-width: 0; }
.node .tx span { display: block; color: var(--c-text-3); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.node .tx b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.node .state { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; color: transparent; border: 1.5px dashed var(--c-border-strong); }
.node .state svg { width: 13px; height: 13px; }
.node.ready { opacity: 1; }
.node.run { opacity: 1; border-color: var(--c-accent-border); box-shadow: 0 0 0 3px var(--c-focus), var(--shadow-sm); }
.node.run .state { border: 2px solid var(--c-accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.node.done { opacity: 1; }
.node.done .ic { background: var(--c-accent-soft); color: var(--c-accent-strong); }
.node.done .state { border: 0; background: var(--tone-green-solid); color: #fff; animation: none; }
.node.trigger .ic { background: var(--tone-blue-bg); color: var(--tone-blue-fg); }
@keyframes spin { to { transform: rotate(360deg); } }
.edge { position: relative; width: 2px; height: 22px; background: var(--c-border-strong); overflow: hidden; }
.edge::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--c-accent); transition: height .4s ease; }
.edge.on::after { height: 100%; }
.branch-note { margin: 0 16px 16px; display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--c-text-3); font-size: 12px; }
.branch-note .ok { color: var(--tone-green-fg); font-weight: 600; }
.run-log { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--c-border); background: var(--c-bg); font-size: 12px; color: var(--c-text-2); }
.run-log .pill { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; font-weight: 600; font-size: 11px; }
.run-log .pill.wait { background: var(--tone-gray-bg); color: var(--tone-gray-fg); }
.run-log .pill.ok { background: var(--tone-green-bg); color: var(--tone-green-fg); }
.run-log .pill.go { background: var(--tone-blue-bg); color: var(--tone-blue-fg); }
.run-log .time { margin-left: auto; color: var(--c-text-3); font-variant-numeric: tabular-nums; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.examples span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-border-strong); color: var(--c-text-2); font-size: 13px; font-weight: 500; background: var(--c-bg); }

/* Tu IA, tus reglas */
.engine { padding: 16px; display: grid; gap: 14px; }
.engine-row { display: grid; gap: 8px; }
.engine-row > .t { color: var(--c-text-3); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--c-surface); }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 7px; color: var(--c-text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.seg span.on { background: var(--c-bg); color: var(--c-text); box-shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 0 0 1px rgba(16, 24, 22, .06); }
.seg i { width: 8px; height: 8px; border-radius: 50%; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mode { display: grid; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-bg); transition: border-color .25s, box-shadow .25s; }
.mode b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.mode span { color: var(--c-text-2); font-size: 12px; }
.mode.on { border-color: var(--c-accent-border); box-shadow: 0 0 0 3px var(--c-focus); }
.mode .tag-new { height: 18px; font-size: 10px; padding: 0 6px; }
.tools { display: grid; gap: 2px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; }
.tool { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--c-bg); font-size: 13px; font-weight: 500; }
.tool + .tool { border-top: 1px solid var(--c-border); }
.tool svg { width: 16px; height: 16px; color: var(--c-icon); flex: none; }
.tool .switch { margin-left: auto; }
.tool.on svg { color: var(--c-accent); }
.engine-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--tone-green-bg); color: var(--tone-green-fg); font-size: 12.5px; font-weight: 600; }
.engine-status svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .modes { grid-template-columns: minmax(0, 1fr); } .seg span { font-size: 11.5px; } }

/* Seguridad */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.trust > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--c-border-strong); }
.trust b { font-size: 15px; font-weight: 600; }
.trust p { color: var(--c-text-2); font-size: 14px; }
.trust svg { width: 20px; height: 20px; color: var(--c-accent); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--c-accent) var(--p, 0%), var(--c-border-strong) var(--p, 0%)); transition: --p 1s; }
.step { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 0 12px; }
.step .n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-bg); border: 1px solid var(--c-border-strong); color: var(--c-text-3); font-size: 18px; font-weight: 600; box-shadow: var(--shadow-sm); transition: background .4s, color .4s, border-color .4s; position: relative; z-index: 1; }
.step.in .n { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.step h3 { font-size: 18px; margin-top: 6px; }
.step p { color: var(--c-text-2); font-size: 15px; max-width: 300px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } .steps::before { display: none; } }

/* Testimonios */
.quotes { columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; display: grid; gap: 16px; margin-bottom: 16px; padding: 24px; border-radius: 16px; border: 1px solid var(--c-border); background: var(--c-bg); }
.quote .stars { display: flex; gap: 2px; color: var(--c-star); }
.quote .stars svg { width: 15px; height: 15px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--c-text); letter-spacing: -0.01em; }
.quote figcaption { display: flex; align-items: center; gap: 10px; }
.quote figcaption b { display: block; font-size: 14px; font-weight: 600; }
.quote figcaption span { display: block; color: var(--c-text-3); font-size: 13px; }

/* Precios */
.billing { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-border); margin-top: 8px; }
.billing button { height: 36px; padding: 0 16px; border-radius: 9px; color: var(--c-text-2); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s, box-shadow .15s; }
.billing button[aria-pressed="true"] { background: var(--c-bg); color: var(--c-text); box-shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 0 0 1px rgba(16, 24, 22, .06); }
.billing .save { height: 20px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--tone-green-bg); color: var(--tone-green-fg); font-size: 11px; font-weight: 600; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 18px; border: 1px solid var(--c-border); background: var(--c-bg); }
.plan.pop { border-color: var(--c-accent-border); box-shadow: 0 0 0 1px var(--c-accent-border), var(--shadow-pop); transform: translateY(-8px); }
.plan .ribbon { position: absolute; top: -12px; left: 28px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 20px; }
.plan .for { color: var(--c-text-2); font-size: 14.5px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--c-text-3); font-size: 14px; }
.price-note { color: var(--c-text-3); font-size: 13px; min-height: 20px; margin-top: -10px; }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--c-text-2); }
.plan li b { color: var(--c-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--c-accent); }
.plan .btn { margin-top: auto; }
.plans-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.plans-foot .card { display: grid; gap: 12px; }
.plans-foot .inc { display: flex; flex-wrap: wrap; gap: 8px; }
.plans-foot .inc span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--c-chrome); color: var(--c-text-2); font-size: 13px; font-weight: 500; }
.plans-foot .inc svg { width: 13px; height: 13px; color: var(--c-accent); }
.plans-foot .ent { align-content: center; }
.price-legal { margin-top: 16px; color: var(--c-text-3); font-size: 13px; text-align: center; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } .plan.pop { transform: none; } .plans-foot { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }

/* Preguntas frecuentes */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { border-top: 1px solid var(--c-border); }
.faq-list details { border-bottom: 1px solid var(--c-border); }
.faq-list summary { display: flex; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; border-radius: 8px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--c-icon); border-bottom: 2px solid var(--c-icon); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-list .ans { padding: 0 4px 20px; color: var(--c-text-2); font-size: 15.5px; max-width: 640px; }
.faq-list .ans a { color: var(--c-accent-strong); font-weight: 500; }
.faq-group { margin: 28px 0 4px; color: var(--c-text-3); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.faq-group:first-child { margin-top: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; } .faq-side { position: static; } }

/* Ajustes de la portada en pantallas estrechas */
@media (max-width: 1060px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .hero { padding-top: 56px; } }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .inbox { grid-template-columns: minmax(0, 1fr); height: 470px; }
  .inbox-list { display: none; }
  .toggle-bot { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .cta-band { padding: 80px 0; }
}
@media (max-width: 420px) {
  .h1 { font-size: 38px; }
  .chat-head { padding: 0 10px; gap: 8px; }
  .stage-chip { padding: 0 8px; }
  .chat-body { padding: 12px; }
  .msg { max-width: 88%; }
  .price .amt { font-size: 42px; }
}

/* Página 404 y utilidades sueltas */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.center-page .wrap { display: grid; gap: 16px; justify-items: center; }

/* Movimiento reducido: sin animaciones; las demos muestran su fotograma final (site.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .cta-band .bubbles { display: none; }
}

/* Fundido al reiniciar cada demo */
[data-demo] .fade-area { transition: opacity .45s ease; }
[data-demo].is-fading .fade-area { opacity: 0; }

/* Ajustes tras la revisión a 1440 y 390 px */
.hero-copy { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hero-demo { min-width: 0; }
.inbox { grid-template-rows: minmax(0, 1fr); }
.chat { min-height: 0; overflow: hidden; }
.chat-head .who { flex: 1 1 auto; min-width: 0; }
.chat-head .who b, .chat-head .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1320px) { .toggle-bot { display: none; } }
@media (max-width: 420px) { .h1 { font-size: 34px; } .pill-new { font-size: 12px; } }
.toggle-bot { display: none !important; }
.mode b svg, .board-top .pipe svg { width: 14px; height: 14px; flex: none; }
.col-head { flex-wrap: wrap; height: auto; min-height: 30px; row-gap: 0; padding-top: 4px; padding-bottom: 2px; }
.col-head .sum { width: 100%; margin-left: 15px; }
.kcard .foot { flex-wrap: wrap; }
.kcard .val { white-space: nowrap; }
.problem { padding-bottom: 80px; }
.cta-band .bubbles span { animation-name: rise; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .35; } 80% { opacity: .2; } 100% { transform: translateY(-520px); opacity: 0; } }

/* Cookie banner */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:1000;max-width:720px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 16px;border-radius:14px;background:var(--surface,#fff);color:var(--text,#1d1b2e);border:1px solid var(--border,rgba(0,0,0,.12));box-shadow:0 12px 40px rgba(0,0,0,.18)}
.cookie-banner p{flex:1 1 280px;margin:0;font-size:.92rem;line-height:1.45}
.cookie-banner a{color:inherit;text-decoration:underline}
.cookie-actions{display:flex;gap:8px;flex-wrap:wrap}
