/* ==========================================================================
   Cobrynta · Sistema de diseño
   Una sola paleta, clara. Tokens por rol.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-2: #eef3f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --glass: rgb(255 255 255 / 0.8);
  --ink: #0b1622;
  --ink-2: #26384d;
  --muted: #5a6d82;
  --line: #e1e8ef;
  --line-strong: #c9d6e2;
  --brand: #1650c8;
  --brand-2: #3b74e0;
  --brand-ink: #123fa0;
  --brand-soft: rgb(22 80 200 / 0.08);
  --brand-soft-2: rgb(22 80 200 / 0.14);
  --gold: #14b8a6;
  --gold-ink: #0e7c72;
  --gold-soft: rgb(20 184 166 / 0.16);
  --on-gold: #04241a;
  --wa: #25d366;
  --on-wa: #062814;
  --good: #16a34a;
  --bad: #dc2626;
  --grad-text: linear-gradient(#0e7c72, #0e7c72);
  --grad-brand: linear-gradient(#1650c8, #1650c8);
  --sh-1: 0 1px 2px rgb(11 22 34 / 0.05), 0 1px 1px rgb(11 22 34 / 0.03);
  --sh-2: 0 12px 32px -18px rgb(11 22 34 / 0.25), 0 2px 6px -2px rgb(11 22 34 / 0.06);
  --sh-3: 0 40px 80px -40px rgb(20 40 120 / 0.38), 0 12px 24px -12px rgb(11 22 34 / 0.12);
  --sh-glow: 0 14px 34px -14px rgb(14 156 116 / 0.55);
  --ring: 0 0 0 3px rgb(22 80 200 / 0.32);
  --canvas-dot: 22 80 200;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.005em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: var(--gold); color: var(--on-gold); }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.4 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-wa { background: var(--wa); color: var(--on-wa); box-shadow: 0 12px 28px -14px rgb(37 211 102 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.35); }
.btn-wa:hover { box-shadow: 0 18px 34px -14px rgb(37 211 102 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.35); }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: var(--sh-glow), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-brand { background: var(--grad-brand); color: #fff; box-shadow: 0 14px 30px -14px rgb(22 80 200 / 0.7); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost svg { transition: transform 0.25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ---------- Encabezado flotante ---------- */
.top { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.bar {
  position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 10px 0 18px;
  border-radius: 20px; border: 1px solid transparent; background: transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.top.scrolled .bar {
  background: var(--glass); border-color: var(--line); box-shadow: var(--sh-2);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 36px; height: 36px; }
.brand-name { font: 700 17px/1 "IBM Plex Sans Condensed", var(--font-display); letter-spacing: 0.08em; }
.brand-name small { display: block; margin-top: 4px; font: 600 9px/1 var(--font-mono); letter-spacing: 0.42em; color: var(--brand); }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav a { white-space: nowrap; position: relative; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: var(--brand-soft); }
.nav a.active { color: var(--brand-ink); background: var(--brand-soft-2); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s; }
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.progress { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity 0.3s; }
.top.scrolled .progress { opacity: 1; }
.progress i { display: block; height: 100%; background: linear-gradient(var(--gold), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }
.mobile-nav { display: none; }

/* ---------- Portada ---------- */
.hero { position: relative; isolation: isolate; margin-top: -76px; padding: 140px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(#fbfcfe, #fbfcfe);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.7; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: ping 2.2s ease-out infinite; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); margin-bottom: 22px; letter-spacing: -0.035em; }
.rotor { display: inline-grid; vertical-align: bottom; }
.rotor > span { grid-area: 1 / 1; padding-bottom: 0.06em; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s; }
.rotor > span:not(.on) { opacity: 0; transform: translateY(60%); filter: blur(6px); }
.rotor > span.out { transform: translateY(-60%); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 34em; }
.lead b { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--gold-ink); }

/* Escenario del producto */
.stage { position: relative; padding: 34px 10px 56px 34px; margin-right: -24px; }
.stage .glow { position: absolute; inset: 8% 4% 10% 10%; border-radius: 40px; background: none; filter: blur(30px); z-index: -1; }
.browser { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: linear-gradient(#fbfcfd, #fbfcfd); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dbe3ea; }
.browser-bar i:nth-child(1) { background: #f6c5c0; }
.browser-bar i:nth-child(2) { background: #f6e0a6; }
.browser-bar i:nth-child(3) { background: #bfe6c9; }
.browser-bar span { margin-left: 12px; flex: 1; max-width: 300px; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font: 500 10.5px/18px var(--font-mono); color: var(--muted); padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage .browser { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: 60% 50%; transition: transform 0.8s var(--ease); }
.stage:hover .browser { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.stage .browser img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 0 0; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid rgb(255 255 255 / 0.9);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 24px 48px -24px rgb(20 40 120 / 0.45), 0 0 0 1px var(--line);
  animation: float 7s ease-in-out infinite;
}
.f-ring { left: 0; top: 6%; }
.ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .trk { stroke: var(--bg-2); }
.ring .val { stroke: var(--gold); stroke-dashoffset: 100; animation: ringfill 1.6s 0.4s var(--ease) forwards; }
.f-ring span { display: grid; line-height: 1.15; }
.f-ring b { font: 700 24px/1 var(--font-display); }
.f-ring small { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.f-ring em { font: 500 10.5px var(--font-mono); font-style: normal; color: var(--good); margin-top: 2px; }
.f-spark { right: 0; top: 30%; display: grid; gap: 2px; width: 200px; animation-delay: -2.5s; }
.f-spark small { font: 600 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.f-spark b { font: 700 20px/1.1 var(--font-display); white-space: nowrap; }
.f-spark b em { font: 600 12px var(--font-sans); font-style: normal; color: var(--good); margin-left: 4px; }
.spark { width: 100%; height: 40px; margin-top: 6px; }
.spark .line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s 0.6s var(--ease) forwards; }
.f-chat { left: 6%; bottom: 0; max-width: 330px; align-items: flex-start; animation-delay: -4s; }
.f-chat img { width: 36px; height: 36px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-soft-2); }
.f-chat p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.f-chat .q { display: inline-block; margin-bottom: 6px; padding: 6px 10px; border-radius: 10px 10px 10px 3px; background: var(--brand); color: #fff; font-weight: 500; }
.f-chat .a { color: var(--ink-2); }
.f-chat .a b { color: var(--ink); }
.f-alert { right: 4%; bottom: 16%; animation-delay: -1.2s; }
.f-alert i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(220 38 38 / 0.1); color: var(--bad); }
.f-alert i svg { width: 18px; height: 18px; }
.f-alert span { display: grid; line-height: 1.25; }
.f-alert b { font-size: 13px; }
.f-alert small { font: 500 11px var(--font-mono); color: var(--muted); }

/* Cifras */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.kpis > div { padding: 24px 28px; }
.kpis > div + div { border-left: 1px solid var(--line); }
.kpis b { display: block; font: 700 clamp(32px, 3.6vw, 46px)/1 var(--font-display); letter-spacing: -0.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Franja de fuentes */
.strip { padding: 30px 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-label { text-align: center; font: 600 11.5px var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.marquee { 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); }
.track { display: flex; gap: 12px; width: max-content; padding: 6px 0; animation: marquee 48s linear infinite; }
.track span { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font: 600 13.5px var(--font-sans); color: var(--ink-2); white-space: nowrap; }

/* ---------- Secciones ---------- */
section { padding: 104px 0; }
.head { max-width: 760px; margin-bottom: 52px; }
.head.center { text-align: center; margin-inline: auto; }
.head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.head h2, .donut-col h2, .faq-side h2, .commit-head h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 0.35em; }
.head.split h2 { margin: 0; }
.head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Tarjeta base */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-1); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: none; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--sh-2); }
.card:hover::before { opacity: 1; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 20px -10px rgb(22 80 200 / 0.8); }
.ico.gold { background: linear-gradient(#14b8a6, #14b8a6); color: var(--on-gold); box-shadow: 0 10px 20px -10px rgb(14 156 116 / 0.7); }
.ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: translateY(-2px) rotate(45deg); }

/* Servicios: bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.illo { position: relative; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(var(--surface-2), var(--surface-2)); padding: 16px; min-height: 230px; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-kpis span { padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mini-kpis small { display: block; font: 600 9.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mini-kpis b { font: 700 18px var(--font-display); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; margin-top: 16px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(#8cc0e4, #8cc0e4); transform-origin: bottom; transform: scaleY(0.15); transition: transform 1s var(--ease); }
.bars i.hl { background: var(--grad-brand); }
.in .bars i, .no-js .bars i { transform: none; }
.bars i:nth-child(2) { transition-delay: 0.05s; } .bars i:nth-child(3) { transition-delay: 0.1s; } .bars i:nth-child(4) { transition-delay: 0.15s; } .bars i:nth-child(5) { transition-delay: 0.2s; } .bars i:nth-child(6) { transition-delay: 0.25s; } .bars i:nth-child(7) { transition-delay: 0.3s; } .bars i:nth-child(8) { transition-delay: 0.35s; } .bars i:nth-child(9) { transition-delay: 0.4s; } .bars i:nth-child(10) { transition-delay: 0.45s; }
.meta-line { position: absolute; left: 18px; right: 18px; bottom: 112px; border-top: 2px dashed rgb(20 184 166 / 0.9); }
.meta-line span { position: absolute; right: 0; top: -20px; font: 600 10px var(--font-mono); color: var(--gold-ink); background: #fff; padding: 0 4px; }
.illo-chat { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.msg { margin: 0; max-width: 92%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-bottom-left-radius: 4px; }
.msg.bot img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.typing { display: flex; gap: 4px; margin: 0 0 0 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }

/* Resultados */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.result { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.3s; }
.result:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--sh-2); }
.ba { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ba > svg { width: 18px; height: 18px; color: var(--gold-ink); flex: none; }
.ba span { display: grid; padding: 8px 12px; border-radius: 12px; font: 700 18px/1.1 var(--font-display); }
.ba small { font: 600 9.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.ba .before { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.ba .before small { color: var(--muted); }
.ba .after { background: var(--brand-soft-2); color: var(--brand-ink); }
.ba .after small { color: var(--brand); }
.result h3 { font-size: 18px; margin-bottom: 6px; }
.result p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.result .src { margin-top: auto; font: 600 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; margin-top: 28px; padding: 36px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface-2); }
.calc h3 { font-size: clamp(24px, 2.6vw, 30px); }
.calc-txt > p { color: var(--muted); }
.bars2 { display: grid; gap: 14px; margin-top: 20px; }
.bars2 span { display: block; font: 600 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; font: 600 12.5px/32px var(--font-sans); background: #fff; border: 1px solid var(--line-strong); }
.bar i { flex: none; font-style: normal; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.bar .prep { color: var(--ink-2); }
.bar .ana { background: var(--grad-brand); color: #fff; }
.calc-box { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.calc-box label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 6px; }
.calc-box output { font: 700 22px var(--font-display); color: var(--brand-ink); }
.calc-box input[type="range"] { width: 100%; margin: 10px 0 18px; accent-color: var(--brand); height: 6px; cursor: pointer; }
.calc-out { margin-top: 4px; padding: 20px; border-radius: 16px; background: var(--gold-soft); border: 1px dashed var(--gold); text-align: center; }
.calc-out b { display: block; font: 700 52px/1 var(--font-display); color: var(--gold-ink); letter-spacing: -0.03em; }
.calc-out span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.calc-note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }

/* Casos */
.filters { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 26px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.filters button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s, color 0.2s; }
.filters button span { font: 600 11px var(--font-mono); padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters button[aria-pressed="true"] span { background: rgb(255 255 255 / 0.2); color: #fff; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.cs:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.cs.is-hidden { display: none; }
.cs figure { margin: 14px 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.frame-bar { display: flex; gap: 5px; padding: 7px 10px; background: #f3f6f9; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d7e0e8; }
.cs figure img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 0 0; transition: transform 0.8s var(--ease); }
.cs:hover figure img { transform: scale(1.05); }
.cs-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font: 600 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 5px 11px; margin-bottom: 14px; }
.tag.demo { color: var(--gold-ink); background: var(--gold-soft); }
.cs h3 { font-size: 20px; margin-bottom: 4px; }
.cs .who { font: 600 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cs-body > p { color: var(--ink-2); font-size: 14.5px; }
.cs .ticks { margin: 0 0 16px; font-size: 13.5px; }
.win { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: linear-gradient(var(--brand-soft), var(--brand-soft)); border-left: 3px solid var(--brand); font-size: 13.5px; color: var(--ink-2); }
.win b { color: var(--brand-ink); }
.minis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.minis span { font: 500 11.5px var(--font-mono); padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.minis b { color: var(--ink); font-weight: 700; }
.cases-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 30px 0 0; }
.cases-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.cases-note a svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.cases-note a:hover svg { transform: translateX(3px); }

/* Sectores */
.sectors-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.donut { position: relative; width: min(300px, 80%); margin-top: 28px; }
.donut svg { width: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.donut .d-trk { stroke: var(--bg-2); stroke-linecap: butt; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font: 700 58px/1 var(--font-display); letter-spacing: -0.03em; }
.donut-c span { font: 600 11.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sector { position: relative; padding: 22px 22px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.sector::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.sector .n { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sector .n b { font: 700 36px/1 var(--font-display); color: var(--ink); }
.sector .n span { font: 700 16px/1.2 var(--font-display); color: var(--ink); }
.sector p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.sector ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sector li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* Centro de Mando */
.tour { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.tour button { position: relative; overflow: hidden; border: 0; background: none; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.tour button:hover { color: var(--ink); }
.tour button[aria-pressed="true"] { background: var(--brand-soft-2); color: var(--brand-ink); }
.tour button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.tour.auto button[aria-pressed="true"]::after { animation: tourbar var(--dur, 6s) linear forwards; }
.tour.paused button[aria-pressed="true"]::after { animation-play-state: paused; }
.showcase { position: relative; max-width: 1040px; margin: 0 auto; }
.showcase::before { content: ""; position: absolute; inset: 6% 2% -4%; z-index: -1; border-radius: 40px; background: none; filter: blur(34px); }
.browser.big .shot { aspect-ratio: 16 / 10; background: var(--surface-2); }
.browser.big img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: opacity 0.35s var(--ease), transform 0.6s var(--ease); }
.browser.big img.swap { opacity: 0; transform: scale(1.015); }
.aggy-chip { position: absolute; left: -18px; bottom: 28px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--glass); border: 1px solid #fff; box-shadow: 0 20px 40px -20px rgb(20 40 120 / 0.5), 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 700; font-size: 14px; animation: float 7s ease-in-out infinite; }
.aggy-chip img { width: 40px; height: 40px; border-radius: 50%; }
.aggy-chip small { display: block; font: 500 11px var(--font-mono); color: var(--muted); }
.tour-cap { max-width: 720px; min-height: 3.4em; margin: 22px auto 0; text-align: center; color: var(--ink-2); font-size: 15.5px; }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1040px; margin: 30px auto 0; }
.cm-stats > div { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.cm-stats b { display: block; font: 700 32px/1 var(--font-display); color: var(--brand); letter-spacing: -0.02em; }
.cm-stats span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Diagnóstico */
.diag { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.diag .head { margin-bottom: 0; position: sticky; top: 110px; }
.diag-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.diag-points li { display: flex; gap: 12px; color: var(--ink-2); align-items: center; }
.diag-points svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgb(22 163 74 / 0.12); color: var(--good); flex: none; }
.wizard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden; }
.wizard::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(var(--gold), var(--gold)); }
.wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.wizard-top b { font: 700 16px var(--font-display); }
.steps-bar { display: flex; gap: 6px; }
.steps-bar i { width: 30px; height: 6px; border-radius: 3px; background: var(--bg-2); transition: background 0.3s; }
.steps-bar i.on { background: var(--gold); }
.step { display: none; padding: 26px 26px 10px; }
.step.on { display: block; animation: fade 0.45s var(--ease); }
.step legend, .step .q { font: 700 21px/1.3 var(--font-display); margin-bottom: 18px; padding: 0; }
.step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); font-weight: 500; font-size: 15px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s; }
.opt span em { font-style: normal; font-size: 18px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); flex: none; }
.opt:hover span { border-color: var(--line-strong); transform: translateY(-1px); }
.opt input:checked + span { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 3px var(--gold-soft); }
.opt input:focus-visible + span { box-shadow: var(--ring); }
.step textarea { width: 100%; min-height: 120px; resize: vertical; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.step textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.hint { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; padding: 14px 26px 26px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 10px 4px; font-weight: 500; }
.link-btn:hover { color: var(--ink); }
.summary { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 16px 18px; font-size: 15px; white-space: pre-wrap; color: var(--ink-2); margin-bottom: 18px; }
.nojs-note { padding: 24px; }

/* Método: línea de tiempo */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: p; position: relative; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: linear-gradient(var(--gold), var(--gold)); opacity: 0.5; }
.timeline li { position: relative; padding-top: 68px; }
.timeline li::before { counter-increment: p; content: "0" counter(p); position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font: 700 16px var(--font-display); color: var(--brand); box-shadow: 0 0 0 6px var(--bg); transition: border-color 0.3s, background 0.3s, color 0.3s; }
.timeline li:first-child::before { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.timeline li:hover::before { border-color: var(--brand); }
.timeline .when { display: block; font: 600 10.5px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: 14.5px; margin: 0; }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.sources b { font: 600 11px var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.sources span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; box-shadow: var(--sh-1); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; position: relative; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.plan.hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--gold), var(--gold)) border-box; border: 2px solid transparent; box-shadow: var(--sh-3); transform: translateY(-8px); }
.plan.hot:hover { transform: translateY(-12px); }
.plan.custom { background: var(--surface); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--gold); color: var(--on-gold); font: 700 10.5px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: var(--sh-glow); }
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 14px; min-height: 44px; }
.price { display: flex; align-items: flex-start; gap: 2px; font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; margin: 14px 0 6px; }
.price sup { font-size: 20px; margin-top: 6px; }
.price small { align-self: flex-end; font: 500 14px var(--font-sans); color: var(--muted); margin: 0 0 6px 4px; letter-spacing: 0; }
.price-alt { font: 500 12px var(--font-mono); color: var(--muted); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231e6fa8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin: 30px 0 0; }

/* Compromisos */
.commit { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: start; }
.commit-head > p { color: var(--muted); font-size: 17px; }
.deliver { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deliver li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.deliver svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgb(22 163 74 / 0.12); color: var(--good); flex: none; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-1); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.promise:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.promise i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 14px; }
.promise i svg { width: 22px; height: 22px; }
.promise h3 { font-size: 18px; margin-bottom: 6px; }
.promise p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Promo */
.promo {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 56px; border-radius: var(--r-xl); padding: 40px 44px; border: 1px solid rgb(20 184 166 / 0.6);
  background: var(--surface);
}
.promo::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed rgb(20 184 166 / 0.5); pointer-events: none; }
.promo h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 0.3em; }
.promo p { color: var(--muted); font-size: 16px; margin: 0; }
.code { font: 700 17px var(--font-mono); letter-spacing: 0.12em; color: var(--gold-ink); background: var(--gold-soft); border: 1px dashed var(--gold); padding: 4px 12px; border-radius: 10px; cursor: pointer; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.ask { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 22px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.ask img { width: 44px; height: 44px; border-radius: 12px; }
.ask b { font-family: var(--font-display); font-size: 17px; }
.ask p { margin: 0; color: var(--muted); font-size: 14px; }
.ask .btn { grid-column: 1 / -1; margin-top: 10px; justify-self: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.faq details[open] { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font: 400 20px/1 var(--font-display); color: var(--gold-ink); transition: transform 0.3s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold-soft); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Cierre */
.final { padding-top: 40px; }
.final-panel {
  position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 36px; border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-3);
}
.final-mark { position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; opacity: 0.08; transform: rotate(-12deg); }
.final h2 { font-size: clamp(36px, 5.4vw, 66px); }
.final-panel > p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 34em; margin: 0 auto 30px; }
.final .cta { justify-content: center; margin: 0; }

/* Pie */
footer { padding: 64px 0 110px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.foot .brand { display: inline-flex; margin-bottom: 14px; }
.foot-tag { max-width: 30em; }
.foot h4 { font: 600 11.5px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--brand-ink); }
.legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--on-wa); box-shadow: 0 14px 30px -10px rgb(11 22 34 / 0.35); transition: transform 0.25s var(--ease), opacity 0.3s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 30px; height: 30px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s ease-out infinite; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--brand-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: 0.3s var(--ease); z-index: 70; box-shadow: var(--sh-2); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Aparición al hacer scroll.
   Solo se ocultan cuando main.js confirmó que corre: si falla, el contenido se ve igual. */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
html:not(.reveal-on) .bars i { transform: none; }

/* ---------- Animaciones ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ringfill { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
@keyframes tourbar { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .ring .val, .spark .line { stroke-dashoffset: 0; }
  .stage .browser { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1120px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .plan.hot { transform: none; }
  .plan.hot:hover { transform: translateY(-4px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .wide { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
}
@media (max-width: 960px) {
  .nav, .bar > .btn-wa { display: none; }
  .menu-btn { display: grid; }
  .top .bar { background: var(--glass); border-color: var(--line); box-shadow: var(--sh-1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .mobile-nav { display: none; margin-top: 8px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); }
  .mobile-nav.open { display: grid; gap: 2px; }
  .mobile-nav a:not(.btn) { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
  .mobile-nav a:not(.btn):hover, .mobile-nav a.active { background: var(--brand-soft); }
  .mobile-nav .btn { margin-top: 6px; }
  .hero { padding-top: 120px; }
  .hero-grid, .diag, .sectors-grid, .faq-grid, .commit { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .head.split { grid-template-columns: 1fr; gap: 14px; }
  .stage { padding: 24px 8px 64px; max-width: 640px; margin-inline: auto; width: 100%; }
  .stage .browser { transform: none; }
  .results, .cases { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .diag .head, .faq-side { position: static; }
  .donut { margin-inline: auto; }
  .cm-stats { grid-template-columns: 1fr 1fr; }
  .aggy-chip { left: 10px; bottom: 14px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .promo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  section { padding: 76px 0; }
  .wrap { padding-inline: 16px; }
  .bar { padding: 0 8px 0 12px; height: 58px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .cta .btn { width: 100%; }
  .stage { padding: 18px 0 70px; }
  .float { padding: 9px 11px; gap: 9px; border-radius: 13px; }
  .f-ring { top: -6px; left: -4px; }
  .ring { width: 42px; height: 42px; }
  .f-ring b { font-size: 19px; }
  .f-spark { width: 158px; right: -4px; top: 34%; }
  .f-spark b { font-size: 15px; }
  .f-spark b em { font-size: 11px; }
  .spark { height: 28px; }
  .f-chat { left: 0; right: 0; bottom: 0; max-width: none; }
  .f-alert { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .hero { padding-bottom: 56px; }
  .kpis > div { padding: 18px; }
  .kpis > div:nth-child(3) { border-left: 0; }
  .kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento, .results, .cases, .sectors, .promises, .plans, .deliver, .timeline { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; grid-template-columns: 1fr; }
  .filters { display: flex; width: 100%; overflow-x: auto; }
  .filters button { flex: 1; justify-content: center; padding: 8px 10px; }
  .tour { border-radius: 18px; }
  .tour button { padding: 8px 12px; font-size: 13.5px; }
  .opts, .opts.three { grid-template-columns: 1fr; }
  .step, .wizard-top { padding-inline: 18px; }
  .step-nav { padding: 12px 18px 22px; }
  .timeline li { padding: 0 0 0 66px; min-height: 50px; }
  .promo { padding: 30px 22px; }
  .promo .btn { width: 100%; }
  .final-panel { padding: 52px 20px; border-radius: 26px; }
  .foot { grid-template-columns: 1fr; }
  .cm-stats > div { padding: 14px; }
  .cm-stats b { font-size: 26px; }
}

/* ==========================================================================
   Arte visual de la portada (aurora, trazos, texturas) y laboratorio en vivo
   ========================================================================== */

/* Textura de grano muy sutil sobre toda la portada */
.home::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.16 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Aurora boreal en la portada: manchas de luz que se mueven lento */
.aurora { position: absolute; inset: -10% -5% 0; z-index: -2; pointer-events: none; filter: blur(56px) saturate(1.15); opacity: 0.85; }
.aurora i { position: absolute; display: block; border-radius: 50%; }
.aurora i:nth-child(1) { width: 52vw; height: 30vw; left: 46%; top: -6%; background: none; animation: aur1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 26vw; left: 70%; top: 22%; background: none; animation: aur2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 44vw; height: 30vw; left: -8%; top: 46%; background: none; animation: aur3 24s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 30vw; height: 22vw; left: 30%; top: 8%; background: none; animation: aur1 30s ease-in-out infinite alternate-reverse; }
@keyframes aur1 { to { transform: translate(-8vw, 6vw) rotate(18deg) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-12vw, -4vw) rotate(-14deg) scale(0.9); } }
@keyframes aur3 { to { transform: translate(10vw, -6vw) rotate(10deg) scale(1.2); } }

/* Trazos que fluyen detrás del contenido */
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.rb { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1100 700; animation: ribbon 16s linear infinite; }
.rb.r2 { stroke-width: 1.4; animation-duration: 21s; animation-delay: -6s; }
.rb.r3 { stroke-width: 1; animation-duration: 26s; animation-delay: -12s; opacity: 0.8; }
.rb.r4 { stroke-width: 1.2; animation-duration: 24s; animation-delay: -3s; opacity: 0.7; }
@keyframes ribbon { from { stroke-dashoffset: 1800; } to { stroke-dashoffset: 0; } }

/* Curvas de nivel en el fondo de algunas secciones */
.art-topo { background-image: url("/assets/arte/topo.svg"); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Subrayado a mano que se dibuja al aparecer */
.mark { position: relative; display: inline-block; padding-bottom: 0.08em; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.34em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 70 5, 160 4, 297 11' fill='none' stroke='%23f0b44c' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M30 20 C 110 13, 200 12, 280 16' fill='none' stroke='%232f86c4' stroke-opacity='.55' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path 1.1s 0.35s var(--ease);
}
.in .mark::after, html:not(.reveal-on) .mark::after { clip-path: inset(0 0 0 0); }

/* Tarjetas: enlace a la demo y borde que brilla */
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--brand-ink); text-decoration: none; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }
.bento .card { display: flex; flex-direction: column; }
.bento .card > .card-link { margin-top: auto; padding-top: 16px; }
.bento .card.wide { display: grid; }
.bento .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: linear-gradient(var(--gold), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.bento .card:hover::after { opacity: 1; }
.illo-rpa { display: grid; align-content: center; gap: 8px; font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); }
.illo-rpa p { margin: 0; padding: 7px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.illo-rpa p b { color: var(--good); margin-right: 6px; }
.illo-rpa p.warn { background: var(--gold-soft); border-color: rgb(20 184 166 / 0.6); }
.illo-rpa p.warn b { color: var(--gold-ink); }
.rpa-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgb(22 163 74 / 0.15); animation: blink 1.6s infinite; }
.more-demos { text-align: center; margin: 34px 0 0; }

/* ---------- Laboratorio en vivo ---------- */
.lab { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(#f2f7fc, #f2f7fc); border-block: 1px solid var(--line); }
.lab-art { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/arte/topo.svg") center / cover no-repeat;
}
.lab-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 6px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--sh-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lab-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 11px 18px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.lab-tabs button svg { width: 18px; height: 18px; }
.lab-tabs button:hover { color: var(--ink); }
.lab-tabs button[aria-selected="true"] { background: #fff; color: var(--brand-ink); box-shadow: var(--sh-2); }
.lab-tabs button[aria-selected="true"] svg { color: var(--gold-ink); }
.lab-stage { position: relative; border-radius: 32px; padding: 34px; background: rgb(255 255 255 / 0.72); border: 1px solid rgb(255 255 255 / 0.9); box-shadow: var(--sh-3), 0 0 0 1px var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lab-panel { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 44px; align-items: center; min-height: 520px; }
.lab-panel:not([hidden]) { animation: fade 0.5s var(--ease); }
.lab-txt h3 { font-size: clamp(26px, 2.8vw, 34px); margin: 4px 0 12px; }
.lab-txt > p { color: var(--ink-2); font-size: 16px; }
.lab-txt .checks { margin: 18px 0 6px; }
.lab-txt .btn { margin-top: 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 10px 0 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand-ink); box-shadow: var(--sh-1); }

/* Teléfono del agente de IA */
.phone { justify-self: center; width: min(360px, 100%); height: 540px; display: flex; flex-direction: column; border-radius: 38px; padding: 10px; background: linear-gradient(#fff, #fff); box-shadow: var(--sh-3), 0 0 0 1px var(--line), inset 0 0 0 1px #fff; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 28px 28px 10px 10px; background: var(--grad-brand); color: #fff; }
.phone-top img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { display: block; font-size: 11.5px; opacity: 0.85; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; background: #f3f0ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%231e6fa8' fill-opacity='.08'/%3E%3C/svg%3E"); scroll-behavior: smooth; }
.bub { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgb(11 22 34 / 0.06); animation: fade 0.35s var(--ease); }
.bub.me { align-self: flex-end; background: #dcf4e3; border-bottom-right-radius: 4px; }
.bub.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; color: var(--ink-2); }
.bub.bot b { color: var(--ink); }
.bub small { display: block; margin-top: 4px; font: 500 10px var(--font-mono); color: var(--muted); text-align: right; }
.bub .mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin: 8px 0 20px; }
.bub .mini-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: #a9cde9; position: relative; }
.bub .mini-bars i.hl { background: var(--grad-brand); }
.bub .mini-bars i span { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); font: 600 8.5px var(--font-mono); color: var(--muted); }
.bub .rows { display: grid; gap: 4px; margin-top: 6px; font-size: 12.5px; }
.bub .rows span { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 8px; background: var(--surface-2); }
.bub .act { display: inline-flex; margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bub .act.ok { background: var(--good); }
.bub .act:disabled { opacity: 0.6; cursor: default; }
.bub.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bub.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); animation: blink 1.2s infinite; }
.bub.typing i:nth-child(2) { animation-delay: 0.2s; } .bub.typing i:nth-child(3) { animation-delay: 0.4s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 6px 6px; }
.chat-chips button { border: 1px solid var(--line-strong); background: #fff; color: var(--brand-ink); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.chat-chips button:hover { background: var(--brand-soft); transform: translateY(-1px); }
.chat-chips button:disabled { opacity: 0.45; cursor: default; transform: none; }

/* Robot RPA */
.robot { border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; }
.robot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(#fbfcfd, #fbfcfd); font: 600 13px var(--font-mono); color: var(--ink-2); }
.robot-top span { display: inline-flex; align-items: center; gap: 8px; }
.robot-top .btn svg { width: 15px; height: 15px; }
.robot-counters { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.robot-counters div { padding: 14px 16px; }
.robot-counters div + div { border-left: 1px solid var(--line); }
.robot-counters b { display: block; font: 700 26px/1 var(--font-display); color: var(--brand); }
.robot-counters .x b { color: var(--gold-ink); }
.robot-counters span { font-size: 12px; color: var(--muted); }
.robot-steps { list-style: none; margin: 0; padding: 14px 18px 4px; display: grid; gap: 8px; counter-reset: rs; }
.robot-steps li { position: relative; padding-left: 34px; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.robot-steps li::before { counter-increment: rs; content: counter(rs); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font-mono); background: var(--bg-2); color: var(--muted); transition: background 0.3s, color 0.3s; }
.robot-steps li.run { color: var(--ink); font-weight: 600; }
.robot-steps li.run::before { content: ""; border: 2px solid var(--brand-soft-2); border-top-color: var(--brand); background: #fff; animation: spin 0.8s linear infinite; }
.robot-steps li.done { color: var(--ink-2); }
.robot-steps li.done::before { content: "✓"; background: rgb(22 163 74 / 0.14); color: var(--good); }
.robot-bar { height: 6px; margin: 12px 18px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.robot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(var(--gold), var(--gold)); transition: width 0.4s var(--ease); }
.robot-log { margin: 0 18px 18px; height: 150px; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: #f6f8fb; border: 1px solid var(--line); font: 500 12px/1.65 var(--font-mono); color: var(--ink-2); white-space: pre-wrap; }
.robot-log .t { color: var(--muted); }
.robot-log .ok { color: var(--good); }
.robot-log .w { color: var(--gold-ink); font-weight: 600; }

/* Flujo de automatización */
.flow { border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); padding: 18px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 20px 20px; }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-svg .edges path { fill: none; stroke: var(--line-strong); stroke-width: 2.5; stroke-dasharray: 6 6; transition: stroke 0.3s; }
.flow-svg .edges path.on { stroke: url(#fl-g); stroke-dasharray: none; stroke-width: 3.5; }
.flow-svg .node rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.5; filter: drop-shadow(0 6px 10px rgb(11 22 34 / 0.08)); transition: fill 0.3s, stroke 0.3s; }
.flow-svg .node.diamond rect { stroke-dasharray: 4 3; }
.flow-svg .node text { text-anchor: middle; font: 700 13px var(--font-display); fill: var(--ink); }
.flow-svg .node text.s { font: 500 11px var(--font-sans); fill: var(--muted); }
.flow-svg .node.on rect { fill: #eaf4fb; stroke: var(--brand); stroke-width: 2.2; }
.flow-svg .node.bad rect { fill: #fdf0e0; stroke: var(--gold); stroke-width: 2.2; }
.flow-svg .node.done rect { fill: #e9f7ee; stroke: var(--good); }
.packet { fill: var(--gold); opacity: 0; filter: drop-shadow(0 0 6px rgb(20 184 166 / 0.9)); }
.flow-log { margin-top: 12px; min-height: 92px; padding: 12px 14px; border-radius: 12px; background: #f6f8fb; border: 1px solid var(--line); font: 500 12.5px/1.6 var(--font-mono); color: var(--ink-2); }
.flow-log .muted { color: var(--muted); }
.flow-log b { color: var(--good); }
.flow-log em { font-style: normal; color: var(--gold-ink); font-weight: 600; }

/* Pronóstico */
.fc { border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); padding: 18px 18px 14px; }
.fc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.fc-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fc-kpis small { display: block; font: 600 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fc-kpis b { font: 700 20px var(--font-display); color: var(--ink); }
.fc-svg { width: 100%; height: auto; display: block; }
.fc-svg .grid line { stroke: var(--line); }
.fc-svg .ax { font: 500 10px var(--font-mono); fill: var(--muted); }
.fc-svg .hist { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.fc-svg .fcl { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 5 4; }
.fc-svg .band { fill: rgb(47 134 196 / 0.14); }
.fc-svg .now { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; }
.fc-svg .now-t { font: 600 10px var(--font-mono); fill: var(--gold-ink); }
.fc-svg .pk { fill: var(--gold); stroke: #fff; stroke-width: 2; }
.fc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.fc-legend span { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.fc-legend .l-h { background: var(--ink-2); }
.fc-legend .l-f { background: var(--brand); }
.fc-legend .l-b { height: 10px; background: rgb(47 134 196 / 0.18); }
.range-l { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.range-l output { font: 700 20px var(--font-display); color: var(--brand-ink); }
.lab-txt input[type="range"] { width: 100%; accent-color: var(--brand); margin-top: 8px; }

/* ---------- Galería: muro de pantallas en perspectiva ---------- */
.gallery { padding-bottom: 60px; overflow: hidden; }
.gallery .head { margin-bottom: 30px; }
.wall { position: relative; padding: 30px 0 50px; perspective: 1400px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.wall-row { transform: rotateX(16deg) rotateZ(-3deg); transform-origin: 50% 0; margin-bottom: 18px; }
.wall-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row.rev .wall-track { animation-direction: reverse; animation-duration: 80s; }
.wall img { height: 230px; width: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 50px -30px rgb(20 40 120 / 0.45), 0 8px 16px -10px rgb(11 22 34 / 0.12); }
.wall:hover .wall-track { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .rb, .wall-track { animation: none !important; }
  .mark::after { clip-path: none !important; }
}
@media (max-width: 1120px) {
  .lab-panel { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .lab-txt { max-width: 640px; }
}
@media (max-width: 640px) {
  .lab-stage { padding: 18px 14px; border-radius: 24px; }
  .lab-tabs { width: 100%; border-radius: 18px; display: grid; grid-template-columns: 1fr 1fr; }
  .lab-tabs button { justify-content: center; padding: 10px 8px; font-size: 13.5px; }
  .phone { height: 500px; }
  .robot-counters { grid-template-columns: 1fr 1fr; }
  .robot-counters div:nth-child(3) { border-left: 0; }
  .robot-counters div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fc-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .fc-kpis b { font-size: 16px; }
  .wall img { height: 150px; }
  .rb { stroke-width: 1.4; }
}

/* Cobrynta: la palabra de marca es más ancha que la de antes; el menú se compacta antes de romperse */
@media (max-width: 1480px) { .nav a { padding: 8px 9px; font-size: 13.5px; } }
.kpis b { font-size: clamp(24px, 2.6vw, 32px); }
.sector .n span { font-size: 19px; }

/* ============================================================
   CAPA INDUSTRIAL (2026-11-05): formato tipo portal de proveedores.
   Sin degradados ni brillos, esquinas rectas, títulos en mayúsculas.
   ============================================================ */
:root { --grad-text: none; --grad-brand: #0b1a2e; --ind-tinta: #0b1a2e; --ind-linea: #d3dbe6; --ind-gris: #f3f5f8; }
.card, .plan, .illo, .flow, .calc, .win, .btn, .chip, .pill, .badge, .ico, .browser, .tag { border-radius: 3px !important; box-shadow: none !important; }
h1 { font-size: clamp(34px, 4.6vw, 60px) !important; line-height: 1.04 !important; }
.grad, .kpis b { background: none !important; -webkit-text-fill-color: currentColor !important; color: #1650c8 !important; }
h1, h2 { text-transform: uppercase; letter-spacing: 0.005em !important; }
.eyebrow { color: var(--ind-tinta); border-bottom: 2px solid var(--ind-tinta); padding-bottom: 4px; }
.aurora, .glow, .stage .glow, .showcase::before, .card::before { display: none !important; }
.lab { background: var(--ind-gris) !important; }
.ico, .ico.gold { background: var(--ind-tinta) !important; color: #fff !important; }
.card, .plan, .illo, .flow, .calc, .win { background: #fff !important; border: 1px solid var(--ind-linea) !important; }
.btn { text-transform: uppercase; letter-spacing: 0.06em; }
.btn:hover { transform: none !important; }

/* ===== SIN COLORES MIXTOS: titulares en un solo color ===== */
.grad { color: inherit !important; -webkit-text-fill-color: currentColor !important; background: none !important; }
