/* ══════════════════════════════════════════════════════════════════
 * Blooma — sitio público (blooma.io)
 * Mismo lenguaje que la UI v5 de la app: base blanco/gris, tinta negra,
 * y color solo a través de los degradés "aurora" de la marca.
 * ══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --subtle: #f4f4f5;
  --muted: #e5e5e5;
  --line: #e5e5e5;
  --line-strong: #d4d4d4;
  --ink: #0a0a0a;
  --ink-2: #262626;
  --ink-3: #525252;
  --ink-4: #737373;
  --ink-5: #a3a3a3;

  --magenta: #ff2bd6;
  --violet: #8b5cf6;
  --blue: #4f6bff;
  --cyan: #22e3e0;
  --teal: #2fd59a;
  --yellow: #ffc21a;
  --orange: #ff7a1a;
  --grad-text: linear-gradient(100deg, #ff2bd6 0%, #a24bf5 45%, #4f6bff 100%);
  --grad-ring: linear-gradient(120deg, #ff2bd6, #4f6bff 45%, #22e3e0 75%, #ffc21a);

  --r-card: 22px;
  --r-field: 12px;
  --shadow-card: 0 1px 2px rgb(10 10 10 / .04);
  --shadow-float: 0 12px 32px -12px rgb(10 10 10 / .18), 0 2px 6px rgb(10 10 10 / .05);
  --shadow-panel: 0 40px 80px -32px rgb(10 10 10 / .28), 0 8px 24px -8px rgb(10 10 10 / .08);

  --f-display: "Clash Display", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body.bl-body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:where(.bl-body) *, :where(.bl-body) *::before, :where(.bl-body) *::after { box-sizing: border-box; }
:where(.bl-body) img { max-width: 100%; height: auto; display: block; }
:where(.bl-body) a { color: inherit; text-decoration: none; }
:where(.bl-body) button { font: inherit; color: inherit; cursor: pointer; }
:where(.bl-body) :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.bl-body ::selection { background: #ffd6f6; color: var(--ink); }
.bl-i { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }
.bl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.bl-skip:focus { top: 12px; }

/* Elementor: sin márgenes propios dentro de las páginas Blooma */
.bl-main .e-con, .bl-main .e-con-inner, .bl-main .elementor-section, .bl-main .elementor-container, .bl-main .elementor-column, .bl-main .elementor-widget-wrap {
  --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0; --gap: 0; --row-gap: 0; --column-gap: 0;
  padding: 0; max-width: none; gap: 0;
}
.bl-main .e-con { --content-width: 100%; display: block; }
.bl-main .elementor-widget { margin: 0 !important; width: 100%; }
.bl-main .elementor-widget-container { margin: 0; padding: 0; }
.bl-main .elementor { overflow: visible; }

.bl-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.bl-wrap--narrow { max-width: 880px; }
.bl-section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.bl-section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.bl-section--white { background: var(--surface); }

/* ── Tipografía ───────────────────────────────────────────────────── */
.bl-display, .bl-h1, .bl-h2, .bl-h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; margin: 0; color: var(--ink); }
.bl-h1 { font-size: clamp(44px, 7.4vw, 96px); letter-spacing: -0.035em; line-height: .98; }
.bl-h2 { font-size: clamp(34px, 4.8vw, 60px); }
.bl-h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.015em; }
.bl-h4 { font-family: var(--f-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.bl-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-3); margin: 0; max-width: 62ch; }
.bl-p { color: var(--ink-3); margin: 0; }
.bl-small { font-size: 13px; color: var(--ink-4); }
.bl-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bl-mono { font-family: var(--f-mono); font-size: .92em; }
.bl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.bl-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--grad-ring); box-shadow: 0 0 0 3px rgb(255 43 214 / .12); }
.bl-eyebrow--plain::before { display: none; }
.bl-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.bl-head--center { text-align: center; justify-items: center; }
.bl-head--center .bl-lead { margin-inline: auto; }

/* ── Botones ──────────────────────────────────────────────────────── */
.bl-btn {
  --bg: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s, color .25s;
  isolation: isolate;
}
.bl-btn svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.bl-btn:hover svg { transform: translateX(3px); }
.bl-btn--primary::before {
  content: ""; position: absolute; inset: 6px 10px -6px; z-index: -1; border-radius: inherit;
  background: var(--grad-ring); filter: blur(14px); opacity: 0; transition: opacity .4s var(--ease);
}
.bl-btn--primary:hover { transform: translateY(-1px); }
.bl-btn--primary:hover::before { opacity: .55; }
.bl-btn--ghost { --bg: var(--surface); --fg: var(--ink); border-color: var(--line); }
.bl-btn--ghost:hover { border-color: var(--line-strong); background: var(--subtle); }
.bl-btn--white { --bg: #fff; --fg: var(--ink); }
.bl-btn--white:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgb(255 255 255 / .5); }
.bl-btn--glass { --bg: rgb(255 255 255 / .08); --fg: #fff; border-color: rgb(255 255 255 / .18); backdrop-filter: blur(8px); }
.bl-btn--glass:hover { --bg: rgb(255 255 255 / .16); }
.bl-btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.bl-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.bl-btn--block { width: 100%; }
.bl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s, gap .3s var(--ease); }
.bl-link:hover { border-color: currentColor; gap: 10px; }
.bl-link svg { width: 16px; height: 16px; }
.bl-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Chips, pills y estados (como la app) ─────────────────────────── */
.bl-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.bl-chip--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.bl-chip--dash { border-style: dashed; border-color: var(--ink-3); }
.bl-chip--ok { background: #e6f9f1; border-color: #9fe5c7; color: #0b6b45; }
.bl-chip--ring { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; }
.bl-dots { display: inline-flex; gap: 2px; }
.bl-dots i { width: 5px; height: 5px; border-radius: 9px; background: var(--ink); }
.bl-dots i.o { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
.bl-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ink); display: inline-block; }
.bl-dot--live { background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .5); animation: bl-pulse 2s infinite; }
@keyframes bl-pulse { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / .45); } 70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }

/* ── Tarjetas ─────────────────────────────────────────────────────── */
.bl-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.bl-card--pad { padding: clamp(20px, 3vw, 32px); }
.bl-card--hover { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.bl-card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.bl-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); flex: none; }
.bl-icon svg { width: 18px; height: 18px; }
.bl-icon--dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Aurora (manchas de color de la marca) ────────────────────────── */
.bl-aurora { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-card); isolation: isolate; }
.bl-aurora__layer { position: absolute; inset: -25%; z-index: -2; filter: blur(32px) saturate(1.3); animation: bl-drift 26s ease-in-out infinite alternate; will-change: transform; pointer-events: none; }
.bl-aurora__layer, .bl-aurora__layer[data-p="brand"] {
  background:
    radial-gradient(30% 40% at 30% 80%, #ff2bd6 0%, #ff2bd6 30%, transparent 72%),
    radial-gradient(28% 36% at 52% 40%, #22e3e0 0%, #22e3e0 25%, transparent 72%),
    radial-gradient(26% 32% at 62% 84%, #2fd59a 0%, #2fd59a 25%, transparent 72%),
    radial-gradient(30% 40% at 82% 34%, #ffc21a 0%, #ffc21a 30%, transparent 72%),
    radial-gradient(18% 24% at 84% 14%, #22e3e0 0%, transparent 70%);
}
.bl-aurora__layer[data-p="blue"] {
  background:
    radial-gradient(30% 36% at 74% 30%, #4f6bff 0%, #4f6bff 25%, transparent 70%),
    radial-gradient(20% 24% at 84% 18%, #8b5cf6 0%, transparent 70%),
    radial-gradient(20% 22% at 30% 84%, #ff2bd6 0%, #ff2bd6 15%, transparent 70%);
}
.bl-aurora__layer[data-p="pink"] {
  background:
    radial-gradient(26% 30% at 72% 30%, #ff2bd6 0%, #ff2bd6 25%, transparent 70%),
    radial-gradient(22% 26% at 32% 78%, #ffc21a 0%, #ffc21a 15%, transparent 70%),
    radial-gradient(20% 24% at 48% 66%, #2fd59a 0%, transparent 72%);
}
.bl-aurora__layer[data-p="sunrise"] {
  background:
    radial-gradient(26% 32% at 78% 28%, #ff7a1a 0%, #ff7a1a 25%, transparent 70%),
    radial-gradient(24% 28% at 64% 84%, #ff2bd6 0%, #ff2bd6 15%, transparent 70%),
    radial-gradient(20% 24% at 84% 64%, #ffc21a 0%, transparent 70%);
}
.bl-aurora__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(10 10 10 / .62) 0%, rgb(10 10 10 / .18) 45%, transparent 70%); pointer-events: none; }
.bl-aurora__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
}
@keyframes bl-drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); } 50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.06); } 100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1.02); } }

/* Halo aurora suave sobre fondo claro */
.bl-glow { position: absolute; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .55; border-radius: 50%; animation: bl-drift 30s ease-in-out infinite alternate; }

/* ── Header ───────────────────────────────────────────────────────── */
.bl-header { position: sticky; top: 0; z-index: 100; padding: 12px var(--gutter) 0; transition: transform .4s var(--ease); }
.bl-header__bar {
  max-width: var(--wrap); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 16px;
  padding: 0 10px 0 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.bl-header.is-scrolled .bl-header__bar { background: rgb(255 255 255 / .78); border-color: rgb(229 229 229 / .9); box-shadow: 0 8px 24px -12px rgb(10 10 10 / .12); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.bl-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.bl-logo img { width: 30px; height: 30px; border-radius: 99px; }
.bl-wordmark { height: 19px; width: auto; display: block; }
.bl-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.bl-nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-3); transition: color .2s, background .2s; }
.bl-nav a:hover { color: var(--ink); background: var(--subtle); }
.bl-nav a[aria-current="page"] { color: var(--ink); }
.bl-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 9px; background: var(--magenta); }
.bl-header__actions { display: flex; align-items: center; gap: 8px; }
.bl-header__login { font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.bl-header__login:hover { background: var(--subtle); }
.bl-burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.bl-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.bl-burger span::before, .bl-burger span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.bl-burger span::before { top: -5px; } .bl-burger span::after { top: 5px; }
.bl-menu-open .bl-burger span { background: transparent; }
.bl-menu-open .bl-burger span::before { transform: translateY(5px) rotate(45deg); }
.bl-menu-open .bl-burger span::after { transform: translateY(-5px) rotate(-45deg); }
.bl-drawer { position: fixed; inset: 0; z-index: 99; background: rgb(250 250 250 / .97); backdrop-filter: blur(20px); padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.bl-drawer a.bl-drawer__link { font-family: var(--f-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; padding: 6px 0; transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.bl-menu-open .bl-drawer { opacity: 1; visibility: visible; }
.bl-menu-open .bl-drawer a.bl-drawer__link { transform: none; opacity: 1; }
.bl-drawer__cta { margin-top: auto; display: grid; gap: 10px; }
@media (max-width: 960px) {
  .bl-nav { display: none; }
  .bl-header__actions { margin-left: auto; gap: 6px; }
  .bl-header__login { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
  .bl-burger { display: grid; }
  .bl-header__bar { padding: 0 8px 0 16px; gap: 10px; }
  .bl-menu-open .bl-header__bar { background: transparent; border-color: transparent; box-shadow: none; }
}
@media (max-width: 600px) {
  .bl-header__actions .bl-btn { display: none; }
}
@media (max-width: 360px) {
  .bl-header__login { padding: 0 12px; font-size: 13px; }
  .bl-wordmark { height: 16px; }
}

/* ── Reveal on scroll ─────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.bl-split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.bl-split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.bl-split-words.is-in .w > span { transform: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.bl-hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 0; overflow: clip; }
.bl-hero__bg { position: absolute; inset: -10% -10% auto; height: 120%; pointer-events: none; z-index: 0; }
.bl-hero__bg .bl-glow:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: 12%; background: radial-gradient(circle, #ff2bd6 0%, transparent 65%); opacity: .22; }
.bl-hero__bg .bl-glow:nth-child(2) { width: 40vw; height: 40vw; right: -8vw; top: 0; background: radial-gradient(circle, #4f6bff 0%, transparent 65%); opacity: .2; animation-duration: 36s; }
.bl-hero__bg .bl-glow:nth-child(3) { width: 34vw; height: 34vw; right: 18vw; top: 46%; background: radial-gradient(circle, #ffc21a 0%, transparent 65%); opacity: .18; animation-duration: 24s; }
.bl-hero__grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgb(10 10 10 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(10 10 10 / .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); }
.bl-hero__inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 26px; }
.bl-hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-card); }
.bl-hero__badge b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.bl-hero h1 { max-width: 15ch; }
.bl-hero .bl-lead { max-width: 56ch; }
.bl-hero__note { font-size: 13.5px; color: var(--ink-4); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.bl-hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.bl-hero__note svg { width: 15px; height: 15px; color: var(--ink); }
.bl-hero__stage { position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 72px); perspective: 1600px; }
.bl-hero__stage .bl-browser { transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; transition: transform 1.4s var(--ease); }
.bl-hero__stage.is-in .bl-browser { transform: rotateX(0) scale(1); }
.bl-hero__phone { position: absolute; right: clamp(-8px, 2vw, 40px); bottom: -40px; width: clamp(150px, 19vw, 248px); z-index: 3; transform: translateY(40px) rotate(4deg); opacity: 0; transition: transform 1.2s var(--ease) .4s, opacity 1s .4s; }
.bl-hero__stage.is-in .bl-hero__phone { transform: translateY(0) rotate(4deg); opacity: 1; }
.bl-float { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-float); font-size: 13px; font-weight: 500; white-space: nowrap; animation: bl-bob 6s ease-in-out infinite; }
.bl-float .bl-icon { width: 30px; height: 30px; }
.bl-float .bl-icon svg { width: 15px; height: 15px; }
.bl-float small { display: block; font-size: 11.5px; color: var(--ink-4); font-weight: 400; }
@keyframes bl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bl-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--canvas)); z-index: 2; pointer-events: none; }

/* Cursores con nombre (key visual de Blooma) */
.bl-cursor { position: absolute; z-index: 5; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; transition: transform 1.6s var(--ease); will-change: transform; }
.bl-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .18)); }
.bl-cursor span { margin-top: 16px; padding: 5px 11px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .3); }
.bl-cursor--pink svg { color: #ff2bd6; } .bl-cursor--pink span { background: #ff2bd6; }
.bl-cursor--blue svg { color: #4f6bff; } .bl-cursor--blue span { background: #4f6bff; }
.bl-cursor--yellow svg { color: #f5b400; } .bl-cursor--yellow span { background: #f5b400; color: var(--ink); }
.bl-cursor--teal svg { color: #14b885; } .bl-cursor--teal span { background: #14b885; }
.bl-cursor.is-click svg { animation: bl-click .35s var(--ease); }
@keyframes bl-click { 50% { transform: scale(.82); } }

/* ── Frames: navegador y teléfono ─────────────────────────────────── */
.bl-browser { position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-panel); overflow: hidden; }
.bl-browser__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.bl-browser__dots { display: flex; gap: 6px; }
.bl-browser__dots i { width: 10px; height: 10px; border-radius: 9px; background: #e5e5e5; }
.bl-browser__url { margin: 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 999px; background: var(--subtle); font-size: 12px; color: var(--ink-4); }
.bl-browser__url svg { width: 11px; height: 11px; }
.bl-browser__screen { position: relative; aspect-ratio: 1440 / 900; background: var(--canvas); overflow: hidden; }
.bl-browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.bl-phone { position: relative; border-radius: clamp(28px, 4vw, 46px); padding: clamp(6px, .8vw, 10px); background: #0a0a0a; box-shadow: var(--shadow-panel), inset 0 0 0 1.5px #2a2a2a; }
.bl-phone__screen { position: relative; border-radius: clamp(22px, 3.3vw, 37px); overflow: hidden; aspect-ratio: 390 / 844; background: #fff; }
.bl-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.bl-phone__island { position: absolute; top: 2.2%; left: 50%; width: 30%; height: 3.4%; transform: translateX(-50%); border-radius: 99px; background: #0a0a0a; z-index: 2; }

/* ── Marquee ──────────────────────────────────────────────────────── */
.bl-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bl-marquee__track { display: flex; gap: 12px; width: max-content; animation: bl-marquee 40s linear infinite; }
.bl-marquee:hover .bl-marquee__track { animation-play-state: paused; }
.bl-marquee--rev .bl-marquee__track { animation-direction: reverse; }
@keyframes bl-marquee { to { transform: translateX(-50%); } }
.bl-who { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; white-space: nowrap; }
.bl-who .bl-icon { width: 36px; height: 36px; background: var(--subtle); border: 0; }

/* ── Problema: herramientas dispersas → Blooma ────────────────────── */
.bl-chaos { position: relative; height: clamp(420px, 52vw, 560px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bl-chaos__item { position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); font-size: 14px; font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r)); transition: transform 1.2s var(--ease), opacity .8s; transition-delay: var(--d, 0s); }
.bl-chaos__item .bl-icon { width: 32px; height: 32px; background: var(--subtle); border: 0; }
.bl-chaos__item em { font-style: normal; color: #c2410c; font-size: 12px; margin-left: 4px; }
.bl-chaos__core { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; display: grid; place-items: center; transform: scale(.2); opacity: 0; transition: transform 1s var(--ease) .7s, opacity .6s .7s; }
.bl-chaos__core img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 20px 60px -10px rgb(255 43 214 / .5), 0 10px 40px -10px rgb(79 107 255 / .5); }
.bl-chaos__core::after { content: ""; position: absolute; inset: -40px; border-radius: 50%; border: 1px dashed var(--line-strong); animation: bl-spin 30s linear infinite; }
.bl-chaos__label { position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: all .8s var(--ease) 1.1s; text-align: center; }
.bl-chaos.is-merged .bl-chaos__item { transform: translate(-50%, -50%) translate(0, 0) rotate(0) scale(.3); opacity: 0; }
.bl-chaos.is-merged .bl-chaos__core { transform: scale(1); opacity: 1; }
.bl-chaos.is-merged .bl-chaos__label { transform: translate(-50%, 0); opacity: 1; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-chaos__toggle { position: absolute; top: 18px; right: 18px; z-index: 3; }

/* ── Flujo (storytelling con scroll) ──────────────────────────────── */
.bl-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.bl-flow__steps { display: grid; }
.bl-flow__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0 24px 64px; position: relative; opacity: .32; transition: opacity .5s; }
.bl-flow__step.is-active { opacity: 1; }
.bl-flow__step::before { content: attr(data-n); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); transition: background .4s, color .4s, border-color .4s; }
.bl-flow__step.is-active::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.bl-flow__step::after { content: ""; position: absolute; left: 19.5px; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: -1; }
.bl-flow__step .bl-tag { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); letter-spacing: .04em; }
.bl-flow__visual { position: sticky; top: calc(var(--header-h) + 40px); height: min(72vh, 620px); }
.bl-stage { position: relative; height: 100%; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-card); }
.bl-stage__scene { position: absolute; inset: 0; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.bl-stage__scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.bl-stage__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-stage__title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.bl-stage__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--subtle); }
.bl-stage__progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--grad-ring); transition: width .6s var(--ease); }
@media (max-width: 900px) {
  .bl-flow { grid-template-columns: 1fr; }
  .bl-flow__visual { order: -1; top: calc(var(--header-h) + 8px); height: 360px; z-index: 2; }
  .bl-flow__step { min-height: 52vh; }
}

/* ── Piezas UI reutilizadas en demos ──────────────────────────────── */
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; font-size: 13.5px; box-shadow: var(--shadow-card); }
.ui-card b { font-weight: 600; font-size: 14px; }
.ui-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ui-col { background: var(--subtle); border-radius: 18px; padding: 10px; display: grid; align-content: start; gap: 8px; min-height: 100%; }
.ui-col__head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 4px 2px; }
.ui-col__head .n { font-weight: 500; color: var(--ink-4); }
.ui-col__head i { width: 6px; height: 6px; border-radius: 9px; background: #f97316; }
.ui-avatar { width: 26px; height: 26px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--ink); border: 2px solid #fff; flex: none; }
.ui-avatars { display: inline-flex; } .ui-avatars .ui-avatar + .ui-avatar { margin-left: -8px; }
.ui-kpi { border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 14px; display: grid; gap: 4px; }
.ui-kpi small { font-size: 12px; color: var(--ink-4); }
.ui-kpi strong { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ui-kpi strong sub { font-size: 14px; color: var(--ink-4); vertical-align: baseline; margin-left: 2px; }
.ui-bar { height: 8px; border-radius: 9px; background: var(--subtle); overflow: hidden; }
.ui-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--ink); transition: width 1.2s var(--ease); }
.ui-bar--grad i { background: var(--grad-ring); }

/* ── Bento de módulos ─────────────────────────────────────────────── */
.bl-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bl-bento > * { grid-column: span 2; }
.bl-bento .s3 { grid-column: span 3; }
.bl-bento .s4 { grid-column: span 4; }
.bl-bento .s6 { grid-column: span 6; }
.bl-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); min-height: 380px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.bl-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--line-strong); }
.bl-tile__body { padding: 24px 24px 0; display: grid; gap: 8px; }
.bl-tile__body .bl-p { font-size: 14.5px; }
.bl-tile__demo { position: relative; flex: 1; min-height: 210px; margin-top: 18px; }
.bl-tile--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.bl-tile--dark .bl-p { color: rgb(255 255 255 / .7); }
.bl-tile--dark .bl-h4 { color: #fff; }
.bl-tile__more { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--subtle); transition: background .3s, color .3s, transform .4s var(--ease); }
.bl-tile__more svg { width: 15px; height: 15px; }
.bl-tile:hover .bl-tile__more { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.bl-tile--dark .bl-tile__more { background: rgb(255 255 255 / .12); color: #fff; }
@media (max-width: 1024px) { .bl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bl-bento > *, .bl-bento .s3, .bl-bento .s4 { grid-column: span 1; } .bl-bento .s6, .bl-bento .s4 { grid-column: span 2; } }
@media (max-width: 640px) { .bl-bento { grid-template-columns: 1fr; } .bl-bento > *, .bl-bento .s3, .bl-bento .s4, .bl-bento .s6 { grid-column: span 1; } }

/* Demo: Kanban */
.d-kanban { position: absolute; inset: 0 0 0 20px; display: grid; grid-template-columns: repeat(3, 190px); gap: 10px; padding-bottom: 0; }
.d-kanban .ui-col { border-radius: 18px 18px 0 0; }
.d-kanban .ui-card { transition: transform .9s var(--ease), opacity .4s, box-shadow .3s; }
.d-kanban .mover { position: absolute; z-index: 3; width: 170px; left: 10px; top: 42px; }
.d-kanban .mover.is-lift { box-shadow: var(--shadow-float); transform: rotate(-3deg) scale(1.04); }
.d-kanban .done { background: #effcf6; border-color: #9fe5c7; }

/* Demo: Planner */
.d-planner { position: absolute; inset: 0 16px 16px; display: grid; grid-template-columns: 34px repeat(5, 1fr); grid-template-rows: 26px repeat(4, 1fr); gap: 4px; font-size: 10.5px; color: var(--ink-4); }
.d-planner .h { text-align: center; font-weight: 600; color: var(--ink-3); padding-top: 4px; }
.d-planner .t { text-align: right; padding-right: 4px; padding-top: 2px; font-family: var(--f-mono); font-size: 9.5px; }
.d-planner .c { border-radius: 8px; background: var(--subtle); position: relative; }
.d-planner .blk { position: absolute; inset: 2px; border-radius: 8px; padding: 5px 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 10px; font-weight: 600; line-height: 1.2; overflow: hidden; transform: scale(.6); opacity: 0; transition: transform .7s var(--ease), opacity .4s; box-shadow: var(--shadow-card); }
.d-planner .blk.is-on { transform: none; opacity: 1; }
.d-planner .blk.g { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; }
.d-planner .blk.dk { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-planner .blk.dsh { border-style: dashed; border-color: #f5b400; background: #fffbea; }
.d-planner .blk span { display: block; font-weight: 400; color: var(--ink-4); font-size: 9px; }
.d-planner .blk.dk span { color: rgb(255 255 255 / .6); }

/* Demo: Tracking (cronómetro) */
.d-timer { position: absolute; inset: 0 20px 20px; display: grid; place-items: center; }
.d-timer__ring { position: relative; width: 168px; height: 168px; }
.d-timer__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.d-timer__ring circle { fill: none; stroke-width: 9; }
.d-timer__ring .bg { stroke: var(--subtle); }
.d-timer__ring .fg { stroke: url(#bl-ring-grad); stroke-linecap: round; stroke-dasharray: 465; stroke-dashoffset: calc(465 - 465 * var(--p, 0)); transition: stroke-dashoffset 1s linear; }
.d-timer__time { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; }
.d-timer__time strong { font-family: var(--f-mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.d-timer__time small { font-size: 11px; color: var(--ink-4); }
.d-timer__task { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.d-timer__task .st { margin-left: auto; width: 30px; height: 30px; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.d-timer__task .st svg { width: 12px; height: 12px; }

/* Demo: PDC Calendar */
.d-pdc { position: absolute; inset: 0 16px 16px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr); gap: 5px; }
.d-pdc .dh { font-size: 10px; font-weight: 600; color: var(--ink-4); text-align: center; }
.d-pdc .day { position: relative; min-height: 0; overflow: hidden; border-radius: 10px; background: var(--subtle); padding: 4px; font-size: 9.5px; color: var(--ink-4); display: flex; flex-direction: column; gap: 3px; }
.d-pdc .day.out { background: repeating-linear-gradient(135deg, #f4f4f5 0 4px, #ececee 4px 5px); }
.d-pdc .pc { font-style: normal; display: block; height: 13px; border-radius: 5px; padding: 0 4px; font-size: 8.5px; font-weight: 600; line-height: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; transform: translateY(6px); opacity: 0; transition: all .5s var(--ease); }
.d-pdc .pc.is-on { transform: none; opacity: 1; }
.d-pdc .pc.r { background: #fde7fb; border-color: #f9b9ef; }
.d-pdc .pc.c { background: #e8ecff; border-color: #c3ccff; }
.d-pdc .pc.h { background: #fff6d6; border-color: #ffe08a; }
.d-pdc .pc.ok { background: #e6f9f1; border-color: #9fe5c7; }

/* Demo: Portal (aprobación) */
.d-portal { position: absolute; inset: 0 20px 20px; display: grid; align-content: end; gap: 10px; }
.d-portal .piece { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.d-portal .thumb { width: 64px; height: 80px; border-radius: 12px; position: relative; overflow: hidden; background: var(--ink); }
.d-portal .thumb::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(40% 40% at 30% 70%, #ff2bd6, transparent 70%), radial-gradient(40% 40% at 70% 30%, #22e3e0, transparent 70%), radial-gradient(40% 40% at 70% 80%, #ffc21a, transparent 70%); filter: blur(8px); animation: bl-drift 8s ease-in-out infinite alternate; }
.d-portal .acts { display: flex; gap: 6px; margin-top: 6px; }
.d-portal .acts button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; transition: all .3s var(--ease); }
.d-portal .acts .ap { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-portal .acts .ap.is-press { transform: scale(.92); }
.d-portal .acts .ap.is-done { background: #16a34a; border-color: #16a34a; }
.d-portal .toast { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; transform: translateY(10px); opacity: 0; transition: all .5s var(--ease); }
.d-portal .toast.is-on { transform: none; opacity: 1; }
.d-portal .toast svg { width: 14px; height: 14px; color: #4ade80; }

/* Demo: publicación Instagram */
.d-ig { position: absolute; inset: 0 0 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 20px 20px; align-items: end; }
.d-ig .post { border-radius: 16px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-float); }
.d-ig .post .ph { aspect-ratio: 4/5; position: relative; overflow: hidden; background: #0a0a0a; }
.d-ig .post .ph::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(35% 40% at 30% 75%, #ff2bd6, transparent 70%), radial-gradient(35% 40% at 70% 30%, #4f6bff, transparent 70%), radial-gradient(30% 35% at 75% 80%, #ffc21a, transparent 70%); filter: blur(10px); animation: bl-drift 10s ease-in-out infinite alternate; }
.d-ig .post .ph b { position: absolute; left: 10px; bottom: 10px; color: #fff; font-size: 12px; z-index: 1; }
.d-ig .post .meta { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.d-ig .sched { display: grid; gap: 8px; align-content: end; font-size: 12.5px; }
.d-ig .sched .ui-card { padding: 10px 12px; }
.d-ig .count { font-family: var(--f-mono); font-size: 20px; font-weight: 600; }
.d-ig .state { transition: all .4s var(--ease); }

/* Demo: Insights */
.d-ins { position: absolute; inset: 0 20px 20px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.d-ins .bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; padding: 8px 4px 0; border-bottom: 1px dashed var(--line-strong); }
.d-ins .bars i { flex: 1; border-radius: 10px 10px 4px 4px; height: calc(var(--h) * 1%); background: var(--subtle); position: relative; overflow: hidden; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.d-ins .bars i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--o) * 1%); background: var(--ink); }
.d-ins .bars i.hl::after { background: var(--grad-ring); }
.d-ins.is-on .bars i { transform: scaleY(1); }
.d-ins .legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); }
.d-ins .legend span { display: inline-flex; align-items: center; gap: 6px; }
.d-ins .legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--ink); }
.d-ins .legend i.p { background: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Demo: Chat */
.d-chat { position: absolute; inset: 0 20px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.d-chat .msg { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; transform: translateY(12px); opacity: 0; transition: all .5s var(--ease); }
.d-chat .msg.is-on { transform: none; opacity: 1; }
.d-chat .msg.me { align-self: flex-end; flex-direction: row-reverse; }
.d-chat .bub { padding: 9px 12px; border-radius: 16px 16px 16px 4px; background: var(--subtle); font-size: 13px; line-height: 1.35; }
.d-chat .me .bub { background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.d-chat .typing { display: inline-flex; gap: 3px; padding: 12px 14px; }
.d-chat .typing i { width: 6px; height: 6px; border-radius: 9px; background: var(--ink-4); animation: bl-type 1.2s infinite; }
.d-chat .typing i:nth-child(2) { animation-delay: .15s; } .d-chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl-type { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.d-chat .react { position: absolute; right: -6px; bottom: -10px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 1px 6px; transform: scale(0); transition: transform .4s var(--ease); }
.d-chat .react.is-on { transform: scale(1); }

/* Demo: ⌘K */
.d-cmdk { position: absolute; inset: 0 20px 20px; display: grid; align-content: start; }
.d-cmdk .box { border-radius: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-float); overflow: hidden; }
.d-cmdk .in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.d-cmdk .in svg { width: 16px; height: 16px; color: var(--ink-4); }
.d-cmdk .in kbd { margin-left: auto; font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--subtle); color: var(--ink-3); }
.d-cmdk .caret { display: inline-block; width: 1.5px; height: 16px; background: var(--ink); margin-left: 1px; animation: bl-blink 1s steps(1) infinite; vertical-align: -3px; }
@keyframes bl-blink { 50% { opacity: 0; } }
.d-cmdk ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.d-cmdk li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; transition: all .3s; }
.d-cmdk li small { margin-left: auto; color: var(--ink-4); font-size: 11px; }
.d-cmdk li.is-sel { background: var(--ink); color: #fff; }
.d-cmdk li.is-sel small { color: rgb(255 255 255 / .6); }
.d-cmdk li.is-hide { display: none; }
.d-cmdk li .bl-icon { width: 24px; height: 24px; }
.d-cmdk li .bl-icon svg { width: 12px; height: 12px; }

/* Demo: Analytics (heatmap persona × cliente) */
.d-heat { position: absolute; inset: 0 20px 20px; display: grid; grid-template-columns: 70px repeat(5, 1fr); gap: 4px; font-size: 10.5px; align-content: center; }
.d-heat .l { color: var(--ink-3); display: flex; align-items: center; font-weight: 500; }
.d-heat .h { color: var(--ink-4); text-align: center; font-size: 9.5px; font-weight: 600; }
.d-heat .cell { aspect-ratio: 1.6; border-radius: 6px; background: var(--ink); opacity: 0; transform: scale(.6); transition: all .6s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.d-heat.is-on .cell { opacity: var(--v); transform: none; }

/* ── Tour de pantallas reales ─────────────────────────────────────── */
.bl-tour__tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.bl-tour__tab { position: relative; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-3); overflow: hidden; transition: color .3s, border-color .3s; }
.bl-tour__tab[aria-selected="true"] { color: #fff; border-color: var(--ink); background: var(--ink); }
.bl-tour__tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad-ring); }
.bl-tour__tab[aria-selected="true"] .bar { animation: bl-tourbar var(--dur, 6s) linear forwards; }
.bl-tour.is-paused .bl-tour__tab .bar { animation-play-state: paused; }
@keyframes bl-tourbar { to { width: 100%; } }
.bl-tour__frame .bl-browser__screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.bl-tour__frame .bl-browser__screen img.is-active { opacity: 1; transform: none; }
.bl-tour__caption { margin: 22px auto 0; text-align: center; max-width: 60ch; color: var(--ink-3); min-height: 3em; }
.bl-tour__wrap { position: relative; }
.bl-tour__wrap .bl-hero__phone { opacity: 1; transform: rotate(3deg); bottom: -30px; right: -10px; }
.bl-tour__wrap .bl-phone__screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.bl-tour__wrap .bl-phone__screen img.is-active { opacity: 1; }
@media (max-width: 720px) { .bl-tour__wrap .bl-hero__phone { display: none; } .bl-tour__tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } }

/* ── Mobile showcase ──────────────────────────────────────────────── */
.bl-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 32px); padding-top: 20px; }
.bl-phones .bl-phone { width: clamp(150px, 24vw, 280px); transition: transform 1.2s var(--ease); }
.bl-phones .bl-phone:nth-child(1) { transform: translateY(calc(40px - var(--sy, 0) * 40px)) rotate(-6deg); }
.bl-phones .bl-phone:nth-child(2) { transform: translateY(calc(-10px + var(--sy, 0) * 20px)); z-index: 2; }
.bl-phones .bl-phone:nth-child(3) { transform: translateY(calc(40px - var(--sy, 0) * 40px)) rotate(6deg); }
@media (max-width: 640px) { .bl-phones .bl-phone:nth-child(1), .bl-phones .bl-phone:nth-child(3) { width: 34vw; } .bl-phones .bl-phone:nth-child(2) { width: 40vw; } .bl-phones { gap: 0; } .bl-phones .bl-phone:nth-child(1) { margin-right: -8vw; } .bl-phones .bl-phone:nth-child(3) { margin-left: -8vw; } }
.bl-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.bl-feat { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.bl-feat .bl-p { font-size: 14.5px; }

/* ── Split (texto + visual) ───────────────────────────────────────── */
.bl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.bl-split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .bl-split { grid-template-columns: 1fr; } .bl-split--rev > :first-child { order: 0; } }
.bl-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bl-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.bl-checks li::before { content: ""; width: 22px; height: 22px; border-radius: 99px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: 1px; }
.bl-checks--light li { color: rgb(255 255 255 / .85); }
.bl-checks--light li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ── Integraciones (órbita) ───────────────────────────────────────── */
.bl-orbit { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }
.bl-orbit__ring { position: absolute; inset: var(--in); border-radius: 50%; border: 1px dashed var(--line-strong); }
.bl-orbit__core { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 30px 80px -20px rgb(255 43 214 / .45), 0 20px 60px -20px rgb(79 107 255 / .5); }
.bl-orbit__core img { width: 100%; height: 100%; border-radius: 50%; }
.bl-orbit__arm { position: absolute; inset: 0; animation: bl-spin var(--t, 40s) linear infinite; animation-delay: var(--dl, 0s); }
.bl-orbit__node { position: absolute; left: 50%; top: var(--top); transform: translate(-50%, -50%); }
.bl-orbit__node > div { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); font-size: 13px; font-weight: 600; white-space: nowrap; animation: bl-spin var(--t, 40s) linear infinite reverse; animation-delay: var(--dl, 0s); }
.bl-orbit__node .bl-icon { width: 28px; height: 28px; }
.bl-orbit__node .bl-icon svg { width: 14px; height: 14px; }
.bl-orbit__pulse { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgb(255 43 214 / .5); animation: bl-ping 3s var(--ease) infinite; }
@keyframes bl-ping { 0% { transform: translate(-50%, -50%) scale(1); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }

/* ── Números ──────────────────────────────────────────────────────── */
.bl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bl-stat { padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.bl-stat strong { font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bl-stat > span { color: var(--ink-3); font-size: 14.5px; }
.bl-stat.bl-aurora { background: var(--ink); color: #fff; }
.bl-stat.bl-aurora { border: 0; }
.bl-stat.bl-aurora > span { color: rgb(255 255 255 / .78); }
.bl-stat.bl-aurora strong { color: #fff; }
@media (max-width: 900px) { .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Precios ──────────────────────────────────────────────────────── */
.bl-pricing__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; }
.bl-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.bl-seg button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--ink-3); transition: all .3s var(--ease); }
.bl-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bl-seg .save { margin-left: 6px; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; border: 1px solid transparent; color: var(--ink); }
.bl-calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.bl-calc__seats { display: grid; gap: 14px; }
.bl-calc__seats label { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.bl-calc__seats output { font-family: var(--f-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.bl-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--fill, 10%), var(--subtle) var(--fill, 10%)); outline-offset: 6px; }
.bl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); box-shadow: var(--shadow-float); cursor: grab; }
.bl-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); cursor: grab; }
.bl-calc__total { text-align: right; display: grid; gap: 4px; }
.bl-calc__total strong { font-family: var(--f-display); font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.bl-calc__total small { color: var(--ink-4); }
@media (max-width: 720px) { .bl-calc { grid-template-columns: 1fr; } .bl-calc__total { text-align: left; } }
.bl-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .bl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bl-plans { grid-template-columns: 1fr; } }
.bl-plan { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bl-plan.is-match { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; box-shadow: 0 30px 60px -30px rgb(162 75 245 / .45); transform: translateY(-6px); }
.bl-plan__name { display: flex; align-items: center; justify-content: space-between; }
.bl-plan__name h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.bl-plan__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bl-plan__price strong { font-family: var(--f-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.bl-plan__price span { color: var(--ink-4); font-size: 13.5px; }
.bl-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.bl-plan li { display: flex; gap: 9px; align-items: flex-start; }
.bl-plan li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.bl-plan .bl-btn { margin-top: auto; }
.bl-plan__seats { font-size: 13px; color: var(--ink-3); padding: 8px 12px; border-radius: 12px; background: var(--subtle); }
.bl-pricing__foot { text-align: center; margin-top: 22px; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.bl-faq { display: grid; gap: 10px; }
.bl-faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.bl-faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-float); }
.bl-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.bl-faq summary::-webkit-details-marker { display: none; }
.bl-faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.bl-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.bl-faq .ans { padding: 0 22px 22px; color: var(--ink-3); max-width: 72ch; }
.bl-faq .ans p { margin: 0 0 10px; } .bl-faq .ans p:last-child { margin: 0; }

/* ── CTA final ────────────────────────────────────────────────────── */
.bl-cta { padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px); text-align: center; display: grid; justify-items: center; gap: 22px; border-radius: 32px; }
.bl-cta .bl-h2 { color: #fff; max-width: 16ch; }
.bl-cta .bl-lead { color: rgb(255 255 255 / .75); }
.bl-cta .bl-cursor { animation: bl-roam 14s ease-in-out infinite; }
.bl-cta .bl-cursor:nth-of-type(2) { animation-duration: 17s; animation-direction: reverse; }
@keyframes bl-roam { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(40px, -24px); } 50% { transform: translate(-20px, 30px); } 75% { transform: translate(30px, 16px); } }

/* ── Footer ───────────────────────────────────────────────────────── */
.bl-footer { padding: 0 var(--gutter) var(--gutter); }
.bl-footer__card { max-width: calc(var(--wrap) + 160px); margin: 0 auto; border-radius: 32px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) 28px; }
.bl-footer__top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.bl-footer__brand { display: grid; gap: 16px; align-content: start; }
.bl-footer__brand p { color: rgb(255 255 255 / .65); margin: 0; max-width: 32ch; font-size: 14.5px; }
.bl-footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
.bl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-footer ul a { color: rgb(255 255 255 / .85); font-size: 14.5px; transition: color .2s; }
.bl-footer ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.bl-footer__giant { margin: clamp(40px, 7vw, 80px) 0 0; color: #fff; opacity: .95; }
.bl-footer__giant svg { width: 100%; height: auto; }
.bl-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13px; color: rgb(255 255 255 / .55); }
.bl-footer__bottom a:hover { color: #fff; }
.bl-footer .bl-logo { color: #fff; }
@media (max-width: 1100px) { .bl-footer__top { grid-template-columns: repeat(3, 1fr); } .bl-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .bl-footer__top { grid-template-columns: 1fr 1fr; } .bl-footer__brand { grid-column: 1 / -1; } }

/* ── Subpáginas: hero compacto ────────────────────────────────────── */
.bl-pagehero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: clip; }
.bl-pagehero .bl-hero__inner { gap: 22px; }
.bl-pagehero h1 { max-width: 16ch; }

/* Navegación por módulos (Funciones) */
.bl-modnav { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px; max-width: max-content; border-radius: 999px; background: rgb(255 255 255 / .85); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-float); scrollbar-width: none; }
.bl-modnav::-webkit-scrollbar { display: none; }
.bl-modnav a { flex: none; height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: all .3s var(--ease); }
.bl-modnav a:hover { color: var(--ink); background: var(--subtle); }
.bl-modnav a.is-active { background: var(--ink); color: #fff; }
@media (max-width: 960px) { .bl-modnav { max-width: calc(100vw - 2 * var(--gutter)); } }
.bl-module { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.bl-module:last-of-type { border-bottom: 0; }
.bl-module__num { font-family: var(--f-mono); font-size: 13px; color: var(--ink-4); }
.bl-module__text { display: grid; gap: 18px; align-content: start; }
.bl-module__demo { position: relative; min-height: 380px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.bl-module__demo > [class^="d-"] { top: 24px; }
.bl-module__shots { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); gap: 16px; align-items: end; margin-top: 28px; }
.bl-module__shots .bl-phone { max-width: 230px; justify-self: center; width: 100%; }
@media (max-width: 720px) { .bl-module__shots { grid-template-columns: 1fr; } .bl-module__shots .bl-phone { max-width: 220px; } }
.bl-states { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bl-states .arr { color: var(--ink-5); font-size: 12px; }

/* Conexión entre módulos (diagrama) */
.bl-graph { position: relative; }
.bl-graph svg { width: 100%; height: auto; overflow: visible; }
.bl-graph .edge { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.bl-graph .flow { fill: none; stroke: url(#bl-graph-grad); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 400; animation: bl-dash 3.2s linear infinite; }
@keyframes bl-dash { to { stroke-dashoffset: -410; } }
.bl-graph .node rect { fill: #fff; stroke: var(--line); }
.bl-graph .node text { font-family: var(--f-sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.bl-graph .node.dk rect { fill: var(--ink); stroke: var(--ink); }
.bl-graph .node.dk text { fill: #fff; }

/* ── Nosotros ─────────────────────────────────────────────────────── */
.bl-quote { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.bl-quote footer { margin-top: 18px; font-family: var(--f-sans); font-size: 15px; color: rgb(255 255 255 / .7); letter-spacing: 0; }
.bl-persona { display: grid; gap: 14px; align-content: start; }
.bl-persona__tag { font-family: var(--f-mono); font-size: 12px; color: var(--ink-4); }
.bl-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .bl-team { grid-template-columns: 1fr; } }
.bl-member { display: flex; align-items: center; gap: 14px; padding: 18px; }
.bl-member__av { width: 56px; height: 56px; border-radius: 99px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 20px; color: #fff; position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.bl-member__av::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: var(--bg); filter: blur(8px); }
.bl-timeline { display: grid; gap: 0; }
.bl-timeline__item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.bl-timeline__item strong { font-family: var(--f-mono); font-size: 13px; color: var(--ink-4); font-weight: 500; }
@media (max-width: 640px) { .bl-timeline__item { grid-template-columns: 1fr; gap: 6px; } }

/* ── Formularios (contacto, registro) ─────────────────────────────── */
.bl-form { display: grid; gap: 16px; }
.bl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .bl-form__row { grid-template-columns: 1fr; } }
.bl-field { display: grid; gap: 8px; }
.bl-field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bl-field label span { color: var(--ink-4); font-weight: 400; }
.bl-input, .bl-select, .bl-textarea { width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r-field); border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.bl-textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.bl-select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 40px; }
.bl-input:hover, .bl-select:hover, .bl-textarea:hover { border-color: var(--line-strong); }
.bl-input:focus, .bl-select:focus, .bl-textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(10 10 10 / .06); }
.bl-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-radios label { position: relative; }
.bl-radios input { position: absolute; opacity: 0; inset: 0; }
.bl-radios span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .25s var(--ease); }
.bl-radios input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.bl-radios input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bl-hp { position: absolute !important; left: -9999px !important; }
.bl-form__msg { display: none; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; font-size: 14.5px; }
.bl-form__msg.is-ok { display: flex; background: #e6f9f1; color: #0b6b45; }
.bl-form__msg.is-err { display: flex; background: #fdecec; color: #9b1c1c; }
.bl-form .bl-btn[disabled] { opacity: .6; pointer-events: none; }
.bl-form__legal { font-size: 12.5px; color: var(--ink-4); }

/* ── Auth (login/registro) ────────────────────────────────────────── */
.bl-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 0 var(--gutter) var(--gutter); min-height: calc(100vh - var(--header-h) - 12px); }
.bl-auth__form { display: grid; align-content: center; justify-items: center; padding: clamp(32px, 6vw, 64px) 0; }
.bl-auth__card { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.bl-auth__visual { position: relative; border-radius: 32px; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 48px); }
.bl-auth__visual .bl-phone { width: 46%; max-width: 250px; position: absolute; right: 8%; bottom: -12%; transform: rotate(6deg); }
.bl-auth__visual .bl-browser { width: 92%; position: absolute; left: 8%; bottom: 12%; transform: rotate(-2deg); }
.bl-auth__opts { display: grid; gap: 10px; }
.bl-auth__opt { display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.bl-auth__opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.bl-auth__opt b { display: block; font-size: 15.5px; }
.bl-auth__opt small { color: var(--ink-4); font-size: 13.5px; }
.bl-auth__opt > svg { width: 18px; height: 18px; color: var(--ink-4); }
.bl-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-4); font-size: 12.5px; }
.bl-divider::before, .bl-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bl-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bl-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14.5px; color: rgb(255 255 255 / .85); }
.bl-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: rgb(255 255 255 / .12); font-family: var(--f-mono); font-size: 12px; color: #fff; }
@media (max-width: 960px) { .bl-auth { grid-template-columns: 1fr; } .bl-auth__visual { min-height: 460px; overflow: hidden; } }

/* ── Documentación ────────────────────────────────────────────────── */
.bl-docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 200px; gap: 48px; align-items: start; padding-bottom: 96px; }
.bl-docs__side { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.bl-docs__search { position: relative; margin-bottom: 18px; }
.bl-docs__search input { padding-left: 40px; height: 42px; font-size: 14px; }
.bl-docs__search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ink-4); }
.bl-docs__group { margin-bottom: 18px; }
.bl-docs__group h5 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; padding-left: 12px; }
.bl-docs__group a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-3); transition: all .2s; }
.bl-docs__group a:hover { color: var(--ink); background: var(--subtle); }
.bl-docs__group a.is-active { color: #fff; background: var(--ink); }
.bl-docs__group a.is-hidden { display: none; }
.bl-docs__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 13px; }
.bl-docs__toc h5 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.bl-docs__toc a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--line); color: var(--ink-4); transition: all .2s; }
.bl-docs__toc a.is-active { color: var(--ink); border-color: var(--ink); }
.bl-doc { font-size: 16px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.bl-doc section { padding-top: 12px; margin-bottom: 64px; }
.bl-doc h2 { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; color: var(--ink); }
.bl-doc h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; margin: 40px 0 12px; color: var(--ink); }
.bl-doc h4 { font-size: 16px; margin: 24px 0 8px; color: var(--ink); }
.bl-doc p { margin: 0 0 16px; }
.bl-doc ul, .bl-doc ol { margin: 0 0 18px; padding-left: 22px; }
.bl-doc li { margin-bottom: 6px; }
.bl-doc a:not(.bl-btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.bl-doc a:not(.bl-btn):hover { text-decoration-color: var(--ink); }
.bl-doc code { font-family: var(--f-mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--subtle); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.bl-doc pre { position: relative; margin: 0 0 20px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #e5e5e5; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: 1.65; }
.bl-doc pre code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; font-size: inherit; }
.bl-doc pre .k { color: #ff8ae9; } .bl-doc pre .s { color: #7ff0c4; } .bl-doc pre .c { color: #8a8a8a; } .bl-doc pre .n { color: #ffd66b; }
.bl-copy { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); color: #fff; font-size: 12px; font-weight: 600; }
.bl-copy:hover { background: rgb(255 255 255 / .14); }
.bl-doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px; font-size: 14.5px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.bl-doc thead th { background: var(--subtle); text-align: left; font-weight: 600; color: var(--ink); }
.bl-doc th, .bl-doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bl-doc tr:last-child td { border-bottom: 0; }
.bl-call { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 18px; border-radius: 16px; margin: 0 0 20px; background: var(--subtle); border: 1px solid var(--line); font-size: 15px; }
.bl-call svg { width: 20px; height: 20px; margin-top: 2px; }
.bl-call p:last-child { margin: 0; }
.bl-call--warn { background: #fff8e6; border-color: #ffe2a3; }
.bl-call--ok { background: #ecfbf4; border-color: #b6ecd3; }
.bl-call--grad { border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-ring) border-box; }
.bl-dsteps { counter-reset: d; list-style: none; padding: 0 !important; margin: 0 0 22px; display: grid; gap: 0; }
.bl-dsteps > li { counter-increment: d; position: relative; padding: 0 0 22px 52px; margin: 0; }
.bl-dsteps > li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; font-weight: 600; background: var(--ink); color: #fff; }
.bl-dsteps > li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line-strong); }
.bl-dsteps > li:last-child::after { display: none; }
.bl-dsteps > li > strong:first-child { display: block; color: var(--ink); margin-bottom: 2px; }
.bl-scope { font-family: var(--f-mono); font-size: 13px; }
.bl-docs__mnav { display: none; }
@media (max-width: 1180px) { .bl-docs { grid-template-columns: 240px minmax(0, 1fr); } .bl-docs__toc { display: none; } }
@media (max-width: 860px) {
  .bl-docs { grid-template-columns: 1fr; gap: 24px; }
  .bl-docs__side { position: fixed; inset: 0; z-index: 120; max-height: none; background: var(--canvas); padding: 88px var(--gutter) 32px; transform: translateX(-100%); transition: transform .4s var(--ease); }
  .bl-docs-open .bl-docs__side { transform: none; }
  .bl-docs__mnav { display: inline-flex; position: sticky; top: calc(var(--header-h) + 6px); z-index: 30; }
  .bl-docs-open .bl-docs__mnav { z-index: 130; }
}
.bl-arch { margin: 8px 0 28px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.bl-arch svg { width: 100%; height: auto; display: block; }
.bl-arch .box rect { fill: #fff; stroke: var(--line-strong); }
.bl-arch .box.dk rect { fill: var(--ink); stroke: var(--ink); }
.bl-arch .box text { font-family: var(--f-sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.bl-arch .box text.sub { font-weight: 400; font-size: 11px; fill: var(--ink-4); }
.bl-arch .box.dk text { fill: #fff; } .bl-arch .box.dk text.sub { fill: rgb(255 255 255 / .6); }
.bl-arch .ln { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.bl-arch .pk { fill: none; stroke: url(#bl-arch-grad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 300; animation: bl-dash 2.6s linear infinite; }
.bl-arch .lbl { font-family: var(--f-mono); font-size: 10.5px; fill: var(--ink-4); }

/* ── Reducción de movimiento ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bl-body *, .bl-body *::before, .bl-body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .bl-split-words .w > span { transform: none; }
}

/* ── Ajustes responsive ───────────────────────────────────────────── */
html:has(body.bl-body) { overflow-x: clip; }
.bl-main, .bl-footer { overflow-x: clip; }
.bl-tour__tab { flex: none; }
@media (max-width: 640px) {
  .bl-hero__stage .bl-float, .bl-hero__stage .bl-cursor, .bl-cta .bl-cursor { display: none; }
  .bl-hero__phone { width: 36vw; right: -4px; bottom: -24px; }
  .bl-orbit { max-width: 340px; }
  .bl-orbit__node > div { font-size: 12px; padding: 6px 10px 6px 6px; }
  .bl-flow__visual { height: 330px; }
  .bl-stage__scene { padding: 14px; gap: 10px; }
  .bl-chaos__item { font-size: 12.5px; padding: 8px 12px 8px 8px; }
  .bl-chaos__item .bl-icon { width: 26px; height: 26px; }
}
.d-timer__task { color: var(--ink); }
.bl-page-login .bl-footer__giant, .bl-page-registro .bl-footer__giant { display: none; }
.bl-main .e-con:has(.bl-modnav) { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; }
.bl-main .e-con .bl-modnav { position: relative; top: 0; }
.bl-member__av .bl-i { width: 22px; height: 22px; }

/* ── Revisión responsive (26-oct) ─────────────────────────────────── */
.bl-header__login { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .bl-nav a { padding: 8px 10px; font-size: 14px; }
  .bl-header__bar { gap: 10px; }
}
.bl-split--contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .bl-split--contact { grid-template-columns: 1fr; } }
/* Diagramas: en pantallas chicas se desplazan en vez de encogerse hasta ser ilegibles */
@media (max-width: 720px) {
  .bl-arch, .bl-graph { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .bl-arch svg { min-width: 620px; }
  .bl-graph svg { min-width: 480px; }
  .bl-module__shots { grid-template-columns: 1fr; }
  .bl-module__shots .bl-browser { display: none; }
  .bl-module__shots .bl-phone { max-width: 240px; }
  .bl-module__demo { min-height: 340px; }
  .bl-hero__badge { font-size: 12.5px; }
}
@media (max-width: 420px) {
  .bl-orbit { max-width: 230px; }
  .bl-orbit__node > div { font-size: 11px; gap: 6px; padding: 5px 9px 5px 5px; }
  .bl-orbit__node .bl-icon { width: 22px; height: 22px; }
  .bl-orbit__node .bl-icon svg { width: 11px; height: 11px; }
  .bl-docs__mnav { width: 100%; }
}
@media (max-width: 720px) {
  .bl-doc table th, .bl-doc table td { min-width: 150px; }
  .bl-doc table th:first-child, .bl-doc table td:first-child { min-width: 110px; }
}

/* ── Centro legal ──────────────────────────────────────────────── */
.bl-pagehero--legal { padding-bottom: clamp(24px, 3vw, 40px); }
.bl-h1--legal { font-size: clamp(34px, 5vw, 60px); }
.bl-legal-meta { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-4); }
.bl-docs--legal { grid-template-columns: 270px minmax(0, 1fr); }
.bl-docs__group a.is-current { color: var(--ink); background: var(--subtle); font-weight: 600; }
.bl-doc--legal { font-size: 15.5px; max-width: 860px; }
.bl-doc--legal section { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.bl-doc--legal h2 { font-size: clamp(22px, 2.3vw, 27px); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 14px; }
.bl-doc--legal h3 { font-size: 17px; margin-top: 28px; }
.bl-doc--legal > .bl-legal-meta { padding-top: 24px; border-top: 1px solid var(--line); }
.bl-legal-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 18px; margin: 0 0 20px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--subtle); font-size: 14.5px; }
.bl-legal-card dt { color: var(--ink-4); font-weight: 600; }
.bl-legal-card dd { margin: 0; color: var(--ink); }
.bl-legal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 20px; }
.bl-doc .bl-legal-grid a { display: block; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.bl-doc .bl-legal-grid a:hover { border-color: var(--ink); transform: translateY(-2px); }
.bl-legal-grid b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.bl-legal-grid span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 1180px) { .bl-docs--legal { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 860px) { .bl-docs--legal { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .bl-legal-card { grid-template-columns: 1fr; gap: 2px; } .bl-legal-card dd { margin-bottom: 10px; } }

/* ── SEO / rendimiento (26-oct) ───────────────────────────────────── */
/* El hero se pinta sin esperar al JS (mejor LCP): se anima solo con transform. */
.bl-hero-anim, [data-hero] { animation: bl-rise 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes bl-rise { from { transform: translateY(22px); } to { transform: none; } }
/* Contraste AA en los pasos inactivos del flujo (antes era opacidad) */
.bl-flow__step { opacity: 1; }
.bl-flow__step .bl-h3 { color: var(--ink-3); transition: color .4s; }
.bl-flow__step .bl-p { color: var(--ink-4); transition: color .4s; }
.bl-flow__step.is-active .bl-h3 { color: var(--ink); }
.bl-flow__step.is-active .bl-p { color: var(--ink-3); }
.d-pdc .day { color: var(--ink-3); }
.bl-footer__h { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
