/* =========================================================
   AXIA.AI — Deck horizontal de slides
   Dark · editorial · pro-tech
   ========================================================= */

:root {
  --bg:          #0a0e17;
  --bg-2:        #0d121c;
  --surface:     #131a28;
  --surface-2:   #18202f;
  /* brand accent — DARK is blue (#2b7de6, tema "azules"), like the app */
  --brand-rgb:   43, 125, 230;
  --brand2-rgb:  43, 138, 240;
  --brand-lt-rgb:114, 179, 246;
  --violet:      #2b7de6;
  --violet-lt:   #72b3f6;
  --cyan:        #2b8af0;
  --cyan-lt:     #95c7f9;
  --text:        #e2e8f0;
  --muted:       #64748b;
  --muted-lt:    #94a3b8;
  --border:      rgba(var(--brand-rgb), 0.20);
  --border-soft: rgba(148, 163, 184, 0.10);

  --grad-vc: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-text: linear-gradient(120deg, #72b3f6 0%, #95c7f9 100%);

  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slide-ease: cubic-bezier(0.65, 0.02, 0.25, 1);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;          /* vertical scroll experience */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(110deg, var(--violet-lt) 18%, var(--cyan-lt) 50%, var(--violet-lt) 82%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: textShimmer 8s linear infinite;
}
@keyframes textShimmer { to { background-position: 220% center; } }

/* ===================== Ambient background ===================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 35%, transparent 80%);
}
.bg-orb {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb-1 { width: 620px; height: 620px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.45), transparent 70%); }
.orb-2 { width: 560px; height: 560px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(var(--brand2-rgb),0.30), transparent 70%);
  animation-delay: -12s; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(50px, 40px); } }

/* ===================== Top progress bar ===================== */
.deck-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: rgba(255,255,255,0.04); }
.deck-progress span { display: block; height: 100%; width: 0; background: var(--grad-vc); transition: width .5s var(--ease); box-shadow: 0 0 12px rgba(var(--brand-rgb),0.7); }

/* ===================== Top bar ===================== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10,14,23,0.85), rgba(10,14,23,0));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { height: 30px; width: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; color: var(--text); line-height: 1; }
.brand-ai { color: var(--violet-lt); }

.top-nav { display: flex; align-items: center; gap: 30px; }
.top-nav button { font-size: 0.92rem; color: var(--muted-lt); transition: color .2s; position: relative; padding: 4px 0; }
.top-nav button:hover { color: var(--text); }
.top-nav button::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--grad-vc); transition: width .25s var(--ease); }
.top-nav button:hover::after { width: 100%; }

.top-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; padding: 6px; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 99;
  background: rgba(10,14,23,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 20px; display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu button { text-align: left; padding: 14px 8px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--grad-vc); color: #fff; box-shadow: 0 10px 30px -10px rgba(var(--brand-rgb),0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(var(--brand-rgb),0.95); }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--violet-lt); background: rgba(var(--brand-rgb),0.10); transform: translateY(-2px); }
.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 10px 30px -10px rgba(37,211,102,0.5); }
.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(37,211,102,0.7); }

/* ===================== Shared bits ===================== */
.eyebrow {
  display: inline-block; max-width: 100%;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-lt); background: rgba(var(--brand-rgb),0.10); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px; text-align: center; line-height: 1.5; white-space: normal;
}
.eyebrow svg { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 7px; }

/* ===================== Deck mechanics (vertical scroll) ===================== */
.deck { position: relative; z-index: 1; }
.track { display: block; }
/* each section fills the viewport and stacks vertically; the page scrolls */
.slide {
  position: relative; width: 100%; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.slide-inner {
  width: 100%; max-width: 1180px; margin: auto 0;
  padding: 104px clamp(22px, 5vw, 56px) 88px;
}
.slide-inner.center { text-align: center; }
.slide-inner.center > * { max-width: 100%; }
.hero-logo { display: flex; justify-content: center; }
.slide-inner.wide-inner { max-width: 1240px; }

/* split layout (copy + visual) */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.copy .eyebrow { margin-bottom: 20px; }
.copy h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.copy > p { color: var(--muted-lt); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 52ch; }

.slide-head { max-width: 720px; margin: 0 auto 44px; }
.slide-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 16px 0 14px; }
.slide-head p { color: var(--muted-lt); font-size: 1.05rem; }

/* ===================== Slide 1 · Hero ===================== */
.slide-hero .slide-inner { padding-top: 80px; }
.hero-logo { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-logo img { height: 52px; width: 52px; }
.hero-logo span { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; letter-spacing: .5px; }
.slide-hero h1 { font-size: clamp(2.6rem, 6.6vw, 5rem); margin: 22px 0; max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted-lt); max-width: 620px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.hero-micro { margin-top: 22px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.04em; }

/* ===================== Slide 2 · stat cards ===================== */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px 24px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 50px -28px rgba(var(--brand-rgb),0.6); }
.stat-card .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; }
.stat-card .l { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-lt); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 10px; }
.stat-card.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat-card.wide .l { margin-top: 0; }
.stat-card.wide .v { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ===================== Slide 3 · tool grid ===================== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.tool {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 18px 16px; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.tool:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 18px 44px -26px rgba(var(--brand-rgb),0.65); }
.tool svg { width: 24px; height: 24px; color: var(--violet-lt); margin-bottom: 12px; }
.tool b { display: block; font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 3px; }
.tool span { font-size: 0.78rem; color: var(--muted); }

/* ===================== check list ===================== */
.check-list { margin-top: 24px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; color: var(--muted-lt); font-size: 0.97rem; }
.check-list svg { width: 19px; height: 19px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.check-list strong { color: var(--text); font-weight: 600; }

/* ===================== Slide 4 · chat ===================== */
.chat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px -36px rgba(var(--brand-rgb),0.55); }
.chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-head .meta b { font-family: var(--font-display); font-size: 0.98rem; }
.chat-head .meta span { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.chat-head .live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.64rem; color: #4ade80; }
.chat-head .pulse { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5);} 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0);} 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0);} }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 13px; font-size: 0.88rem; margin-bottom: 11px; }
.bubble.user { margin-left: auto; background: var(--grad-vc); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--muted-lt); border-bottom-left-radius: 4px; }
.bubble.bot b { color: var(--text); }
.chat-input { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 11px 14px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; }
.chat-input span:first-child { flex: 1; font-size: 0.84rem; color: var(--muted); }
.chat-input .send { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; }
.chat-input .send svg { width: 15px; height: 15px; }

/* ===================== Slide 5 · mock ===================== */
.mock { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px -40px rgba(var(--brand-rgb),0.55); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2a3a; }
.mock-dot:nth-child(1){background:#ef4444aa;} .mock-dot:nth-child(2){background:#eab308aa;} .mock-dot:nth-child(3){background:#22c55eaa;}
.mock-url { margin-left: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px 11px; background: rgba(255,255,255,0.015); }
.kpi .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.kpi .l { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 7px; }
.kpi.v-violet .v { color: var(--violet-lt); } .kpi.v-cyan .v { color: var(--cyan-lt); } .kpi.v-green .v { color: #4ade80; } .kpi.v-amber .v { color: #fbbf24; }
.mock-panel { border: 1px solid var(--border-soft); border-radius: 10px; padding: 16px; background: rgba(255,255,255,0.015); }
.mock-panel h4 { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; font-weight: 500; }
.bar-item { margin-bottom: 12px; }
.bar-item:last-child { margin-bottom: 0; }
.bar-item .top { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 6px; color: var(--muted-lt); }
.bar-track { height: 7px; border-radius: 4px; background: rgba(148,163,184,0.10); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--grad-vc); }

/* ===================== Slide 6 · flow ===================== */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; width: 100%; }
.flow-line { position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: 0.4; z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.flow-num { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--violet-lt); box-shadow: 0 0 0 7px var(--bg), 0 0 28px -8px rgba(var(--brand-rgb),0.7); }
.flow-step h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 7px; }
.flow-step p { font-size: 0.83rem; color: var(--muted); }

/* ===================== Slide 7 · use cards ===================== */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; }
.use-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; text-align: left; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s; }
.use-card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 20px 50px -28px rgba(var(--brand2-rgb),0.45); }
.use-card .role { font-family: var(--font-mono); font-size: 0.66rem; color: var(--cyan-lt); text-transform: uppercase; letter-spacing: 0.1em; }
.use-card h3 { font-size: 1.18rem; margin: 9px 0 16px; }
.use-card ul li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.87rem; color: var(--muted-lt); margin-bottom: 10px; }
.use-card ul svg { width: 16px; height: 16px; color: var(--violet-lt); flex-shrink: 0; margin-top: 3px; }

/* ===================== Slide 8 · diff cards ===================== */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; }
.diff-card { padding: 26px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(18,18,26,0.4)); text-align: left; transition: transform .25s var(--ease), border-color .25s; }
.diff-card:hover { transform: translateY(-4px); border-color: var(--border); }
.diff-card .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(var(--brand2-rgb),0.10); border: 1px solid rgba(var(--brand2-rgb),0.25); display: grid; place-items: center; color: var(--cyan-lt); margin-bottom: 16px; }
.diff-card .ico svg { width: 20px; height: 20px; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.diff-card p { font-size: 0.87rem; color: var(--muted); }

/* ===================== Slide 9 · contact ===================== */
.contact-list { margin: 26px 0 22px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 16px; }
.contact-list .ci { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(var(--brand-rgb),0.10); border: 1px solid var(--border); display: grid; place-items: center; color: var(--violet-lt); }
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list b { display: block; font-size: 0.72rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-list span, .contact-list a { color: var(--text); font-size: 0.95rem; }
.contact-list a:hover { color: var(--violet-lt); }
.socials { display: flex; gap: 11px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-soft); display: grid; place-items: center; color: var(--muted-lt); transition: all .2s; }
.socials a:hover { color: var(--text); border-color: var(--violet-lt); background: rgba(var(--brand-rgb),0.1); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

.contact-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 34px; box-shadow: 0 30px 80px -40px rgba(var(--brand-rgb),0.5); }
.cc-mark { width: 52px; height: 52px; border-radius: 13px; background: rgba(var(--brand-rgb),0.12); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 18px; }
.cc-mark img { width: 30px; height: 30px; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-card > p { color: var(--muted-lt); margin-bottom: 24px; font-size: 0.95rem; }
.contact-card .btn { width: 100%; }
.contact-card .or { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 14px 0; font-family: var(--font-mono); }
.cc-credit { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 0.82rem; color: var(--muted); text-align: center; }
.cc-credit a { color: var(--violet-lt); }
.cc-credit a:hover { text-decoration: underline; }

/* ===================== Scroll-nav rail (right side) ===================== */
.scroll-nav {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.dots { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(148,163,184,0.30);
  transition: all .3s var(--ease); cursor: pointer; padding: 0; border: none; position: relative;
}
.dot::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-soft);
  font-size: 0.7rem; font-family: var(--font-mono); white-space: nowrap; padding: 4px 9px; border-radius: 7px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.dot:hover { background: var(--muted-lt); }
.dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.dot.active { height: 26px; border-radius: 5px; background: var(--grad-vc); }
@media (max-width: 1024px) { .scroll-nav { display: none; } }

/* scroll-down hint on the hero */
.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 5;
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: opacity .5s var(--ease); cursor: pointer;
}
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px; background: var(--violet-lt); transform: translateX(-50%); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }
.scroll-hint.hidden { opacity: 0; pointer-events: none; }

/* ===================== Tutorial banner (above interactive widgets) ===================== */
.tut {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin: 0 auto 18px; max-width: 760px; padding: 11px 18px; border-radius: 13px;
  background: linear-gradient(120deg, rgba(var(--brand-rgb),0.14), rgba(var(--brand2-rgb),0.10));
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.tut::before {
  content: ""; position: absolute; inset: 0; border-radius: 13px; padding: 1px;
  background: linear-gradient(120deg, rgba(var(--brand-rgb),0.6), rgba(var(--brand2-rgb),0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; animation: tutBorder 3s ease-in-out infinite;
}
@keyframes tutBorder { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.tut-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.5); animation: tutPulse 2.2s ease-in-out infinite; }
.tut-ico svg { width: 17px; height: 17px; }
@keyframes tutPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.5); } 70% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0); } }
.tut-text { font-size: 0.86rem; color: var(--text); }
.tut-text b { color: var(--violet-lt); font-family: var(--font-display); }
.tut-text .tut-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-lt); background: rgba(var(--brand2-rgb),0.12); border: 1px solid rgba(var(--brand2-rgb),0.25); padding: 2px 8px; border-radius: 999px; margin-right: 8px; }

/* ===================== Entrance animations (reveal on scroll) ===================== */
.anim { opacity: 0; transform: translateY(28px) scale(0.985); }
.slide.is-active .anim { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .75s var(--ease); }
.slide.is-active .anim[data-delay="1"] { transition-delay: .07s; }
.slide.is-active .anim[data-delay="2"] { transition-delay: .15s; }
.slide.is-active .anim[data-delay="3"] { transition-delay: .23s; }
.slide.is-active .anim[data-delay="4"] { transition-delay: .31s; }
.slide.is-active .anim[data-delay="5"] { transition-delay: .39s; }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .copy { text-align: center; }
  .copy > p, .check-list { max-width: 560px; margin-left: auto; margin-right: auto; }
  .check-list li { text-align: left; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-contact .split { grid-template-columns: 1fr; }
  /* 6 nav links get cramped below ~1100px -> use the hamburger menu */
  .top-nav, .top-demo { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 860px) {
  .use-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flow { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .flow-line { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  html { scroll-snap-type: none; }  /* free scroll on mobile (tall stacked content) */
  .slide-inner { padding: 92px 22px 72px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .tut { font-size: 0.8rem; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .diff-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .flow { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .stat-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo span { font-size: 1.9rem; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.08em; }
}

/* short viewport: tighten hero */
@media (max-height: 720px) {
  .slide-inner { padding-top: 88px; padding-bottom: 64px; }
  .slide-hero h1 { margin: 16px 0; }
  .hero-logo { margin-bottom: 18px; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .bg-orb, .chat-head .pulse, .tut-ico, .tut::before, .scroll-hint .mouse::before { animation: none !important; }
  .anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================
   Theme toggle button
   ========================================================= */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); border: 1px solid var(--border-soft); background: rgba(var(--brand-rgb),0.06);
  transition: all .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--violet-lt); background: rgba(var(--brand-rgb),0.14); transform: scale(1.06); }
.theme-toggle svg { width: 18px; height: 18px; }
/* show moon in dark (switch to light), sun in light (switch to dark) */
.theme-toggle .icon-light { display: none; }
:root[data-theme="light"] .theme-toggle .icon-dark { display: none; }
:root[data-theme="light"] .theme-toggle .icon-light { display: inline-flex; }

.mm-theme { display: flex; align-items: center; gap: 8px; text-align: left; padding: 14px 8px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.mm-theme span { display: inline-flex; align-items: center; gap: 8px; }
.mm-theme svg { width: 19px; height: 19px; color: var(--violet-lt); }
.mm-theme .icon-light { display: none; }
:root[data-theme="light"] .mm-theme .icon-dark { display: none; }
:root[data-theme="light"] .mm-theme .icon-light { display: inline-flex; }

/* smooth cross-fade between themes (only after first paint) */
html.theme-ready body,
html.theme-ready .topbar, html.theme-ready .mobile-menu,
html.theme-ready .deck-controls, html.theme-ready .stat-card,
html.theme-ready .tool, html.theme-ready .use-card, html.theme-ready .diff-card,
html.theme-ready .mock, html.theme-ready .chat, html.theme-ready .contact-card,
html.theme-ready .kpi, html.theme-ready .mock-panel, html.theme-ready .bubble {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

/* =========================================================
   LIGHT THEME — paleta luminosa AXIA
   ========================================================= */
:root[data-theme="light"] {
  /* brand accent — LIGHT stays red (#E11B22) */
  --brand-rgb:   225, 27, 34;
  --brand2-rgb:  233, 46, 60;
  --brand-lt-rgb:243, 118, 132;
  --bg:          #fbf5f4;
  --bg-2:        #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f7eeee;
  --violet:      #E11B22;
  --violet-lt:   #B5141A;
  --cyan:        #C7040E;
  --cyan-lt:     #8E030A;
  --text:        #211616;
  --muted:       #6f5a55;
  --muted-lt:    #5a443f;
  --border:      rgba(var(--brand-rgb), 0.22);
  --border-soft: rgba(48, 29, 18, 0.10);
  --grad-text:   linear-gradient(120deg, #B5141A 0%, #E11B22 100%);
}
:root[data-theme="light"] body { background: var(--bg); }
/* ambient: softer washes on white */
:root[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(var(--brand-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb), 0.05) 1px, transparent 1px);
}
:root[data-theme="light"] .bg-orb { opacity: 0.32; filter: blur(70px); }
:root[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(var(--brand-rgb),0.30), transparent 70%); }
:root[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(var(--brand2-rgb),0.24), transparent 70%); }

/* topbar / menus */
:root[data-theme="light"] .topbar { background: linear-gradient(180deg, rgba(251,245,244,0.92), rgba(251,245,244,0)); }
:root[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.98); border-bottom-color: var(--border); }

/* buttons */
:root[data-theme="light"] .btn-ghost { background: rgba(var(--brand-rgb),0.05); border-color: var(--border); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(var(--brand-rgb),0.10); }
:root[data-theme="light"] .theme-toggle { background: rgba(var(--brand-rgb),0.05); }

/* deck controls + progress */
:root[data-theme="light"] .deck-progress { background: rgba(15,23,42,0.08); }
:root[data-theme="light"] .deck-controls { background: rgba(255,255,255,0.82); border-color: var(--border-soft); box-shadow: 0 14px 36px -16px rgba(15,23,42,0.25); }
:root[data-theme="light"] .dot { background: rgba(100,116,139,0.35); }

/* cards: lift with soft slate shadow instead of pure glow */
:root[data-theme="light"] .stat-card:hover,
:root[data-theme="light"] .tool:hover,
:root[data-theme="light"] .feature-card:hover { box-shadow: 0 20px 44px -26px rgba(var(--brand-rgb),0.45); }
:root[data-theme="light"] .use-card:hover { box-shadow: 0 20px 44px -26px rgba(var(--brand-rgb),0.40); }

/* inner mock / chat surfaces (were near-white overlays in dark) */
:root[data-theme="light"] .mock-bar,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .mock-panel { background: #f9f1f0; border-color: var(--border-soft); }
:root[data-theme="light"] .chat-input { background: #f9f1f0; }
:root[data-theme="light"] .bubble.bot { background: #f7eeee; }
:root[data-theme="light"] .bar-track { background: rgba(15,23,42,0.08); }

/* KPI accent colors need more contrast on white */
:root[data-theme="light"] .kpi.v-green .v { color: #16a34a; }
:root[data-theme="light"] .kpi.v-amber .v { color: #d97706; }
:root[data-theme="light"] .chat-head .live { color: #16a34a; }
:root[data-theme="light"] .chat-head .pulse { background: #16a34a; }
/* diff-card has a hardcoded dark gradient stop -> make it clean white in light */
:root[data-theme="light"] .diff-card { background: linear-gradient(180deg, #ffffff 0%, #f7eeee 100%); }

/* =========================================================
   Slide · Diseñador de Informes (report builder)
   ========================================================= */
.builder {
  width: 100%; max-width: 1060px; margin: 0 auto; text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 80px -40px rgba(var(--brand-rgb),0.5);
  display: grid; grid-template-columns: 240px 1fr; gap: 14px;
}
.builder-cap { text-align: center; margin-top: 18px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.builder-cap svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--violet-lt); }

/* object panel */
.bd-panel { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.bd-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 8px; color: var(--muted); font-size: 0.78rem; margin-bottom: 6px; }
.bd-search svg { width: 14px; height: 14px; }
.bd-cat { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 4px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 7px; font-size: 0.76rem; color: var(--text); cursor: grab; transition: all .15s var(--ease); user-select: none; }
.dz-chip:hover { border-color: var(--violet-lt); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(var(--brand-rgb),.5); }
.dz-chip:active { cursor: grabbing; }
.dz-chip .dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dz-chip[data-type="attr"] .dot { background: var(--violet); }
.dz-chip[data-type="ind"] .dot { background: #10b981; }
.dz-chip.used { opacity: .35; pointer-events: none; }

/* canvas */
.bd-canvas { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bd-toolbar { display: flex; align-items: center; gap: 8px; }
.bd-title { flex: 1; padding: 7px 11px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.78rem; color: var(--muted-lt); }
.bd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px; font-size: 0.74rem; border: 1px solid var(--border-soft); color: var(--muted-lt); white-space: nowrap; }
.bd-btn svg { width: 13px; height: 13px; }
.bd-btn.run { background: var(--grad-vc); color: #fff; border-color: transparent; }
.bd-filter { display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.72rem; color: var(--muted); }
.bd-filter .tk { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: rgba(var(--brand-rgb),.12); border: 1px solid var(--border); border-radius: 6px; color: var(--violet-lt); font-size: 0.7rem; }

.bd-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dropzone { background: var(--bg); border: 1.5px dashed var(--border); border-radius: 10px; padding: 10px; min-height: 78px; transition: all .2s var(--ease); }
.dropzone .dz-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dropzone.over { border-color: var(--violet-lt); background: rgba(var(--brand-rgb),.08); transform: translateY(-2px); }
.dropzone.datos.empty { border-color: rgba(var(--brand2-rgb),.55); }
.dz-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.dz-tokens:not(:empty) ~ .dz-placeholder { display: none; }
.dz-placeholder { font-size: 0.72rem; color: var(--muted); opacity: .7; }
.dz-token { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: var(--grad-vc); color: #fff; border-radius: 7px; font-size: 0.73rem; animation: tokenIn .25s var(--ease); }
.dz-token.ind { background: linear-gradient(135deg, #10b981, #34d399); }
.dz-token .x { cursor: pointer; opacity: .8; font-size: 0.9rem; line-height: 1; }
.dz-token .x:hover { opacity: 1; }
@keyframes tokenIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.bd-result { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.bd-result .rhead { padding: 8px 12px; font-size: 0.68rem; color: var(--muted); border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; font-family: var(--font-mono); }
.bd-empty { padding: 20px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.bd-empty svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--cyan); margin-right: 4px; }
table.bd-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.bd-table th, .bd-table td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--border-soft); }
.bd-table th:first-child, .bd-table td:first-child { text-align: left; color: var(--muted-lt); }
.bd-table thead th { font-weight: 600; color: var(--muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bd-table tbody tr:last-child td { border-bottom: none; }
.bd-table .tot { font-weight: 700; color: var(--violet-lt); }
.bd-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bd-result .bd-tablewrap { display: none; }
.builder.ready .bd-result .bd-tablewrap { display: block; }
.builder.ready .bd-result .bd-empty { display: none; }
.bd-table { min-width: 380px; }

@media (max-width: 860px) {
  .builder { grid-template-columns: 1fr; }
  .bd-panel { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .bd-zones { grid-template-columns: 1fr; }
}

/* ---- Export: glowing button + dropdown ---- */
.bd-stage { position: relative; }
.bd-export-menu { position: relative; }
.bd-export-btn {
  border-color: var(--violet); color: var(--violet-lt); cursor: pointer;
  animation: exportGlow 2.6s ease-in-out infinite;
}
.bd-export-btn .caret { width: 12px !important; height: 12px !important; transition: transform .2s var(--ease); }
.bd-export-btn[aria-expanded="true"] { color: #fff; background: var(--grad-vc); border-color: transparent; animation: none; }
.bd-export-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
@keyframes exportGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0); }
  50% { box-shadow: 0 0 16px -2px rgba(var(--brand-rgb),0.65); }
}
.bd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 230px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.55);
  display: none; flex-direction: column; gap: 2px;
}
.bd-menu.open { display: flex; animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bd-menu-item {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: 7px; font-size: 0.82rem; color: var(--text);
  transition: background .15s var(--ease);
}
.bd-menu-item svg { width: 16px; height: 16px; color: var(--violet-lt); }
.bd-menu-item:hover { background: rgba(var(--brand-rgb),0.14); }

/* ---- Export preview panel (occupies the builder's space) ---- */
.bd-export {
  position: absolute; inset: 0; z-index: 20; display: none;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(var(--brand-rgb),0.5);
}
.bd-stage.exporting .bd-export { display: flex; animation: menuIn .22s var(--ease); }
.bd-stage.exporting .builder { visibility: hidden; }
.bd-export-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft); flex-shrink: 0;
}
.bd-export-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.bd-export-title svg { width: 18px; height: 18px; color: var(--violet-lt); }
.bd-export-close {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 13px; border-radius: 8px; font-size: 0.82rem; color: var(--text);
  border: 1px solid var(--border-soft); transition: all .2s var(--ease);
}
.bd-export-close svg { width: 15px; height: 15px; }
.bd-export-close:hover { border-color: var(--violet-lt); background: rgba(var(--brand-rgb),0.1); }

.bd-export-body { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; padding: 16px; min-height: 0; overflow: auto; }
.bd-preview { background: rgba(0,0,0,0.18); border: 1px solid var(--border-soft); border-radius: 10px; padding: 18px; display: flex; justify-content: center; align-items: flex-start; overflow: auto; }
:root[data-theme="light"] .bd-preview { background: #f0e2e2; }

/* the printed "page" — always a light sheet, like a real print/export preview */
.bd-page {
  width: 100%; max-width: 460px; background: #fff; color: #1e293b;
  border-radius: 4px; padding: 22px 24px; box-shadow: 0 8px 26px -8px rgba(0,0,0,0.4);
  font-size: 0.74rem;
}
.bd-page-brand { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--violet); margin-bottom: 12px; }
.bd-page-brand span { color: var(--cyan); }
.bd-page-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #0f172a; }
.bd-page-meta { color: #64748b; font-size: 0.66rem; margin: 4px 0 16px; }
.bd-page-tablewrap { overflow-x: auto; }
.bd-page-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.bd-page-table th, .bd-page-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.bd-page-table th:first-child, .bd-page-table td:first-child { text-align: left; }
.bd-page-table thead th { color: #94a3b8; font-weight: 600; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #cbd5e1; }
.bd-page-table tbody tr:last-child td { border-bottom: none; }
.bd-page-table .tot, .bd-page-table tr.grand td { font-weight: 700; color: #0f172a; }
.bd-page-table tr.grand td { border-top: 2px solid #cbd5e1; }
/* excel flavor: spreadsheet gridlines + green accent */
.bd-page.is-excel { font-family: var(--font-mono); border-top: 3px solid #16a34a; }
.bd-page.is-excel .bd-page-table th, .bd-page.is-excel .bd-page-table td { border: 1px solid #e2e8f0; text-align: right; }
.bd-page.is-excel .bd-page-table th:first-child, .bd-page.is-excel .bd-page-table td:first-child { text-align: left; }

.bd-settings { display: flex; flex-direction: column; gap: 14px; }
.bd-set-row { display: flex; flex-direction: column; gap: 6px; }
.bd-set-row label { font-size: 0.74rem; color: var(--muted); }
.bd-select { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 0.82rem; color: var(--text); }
.bd-select svg { width: 15px; height: 15px; color: var(--violet-lt); }
.bd-set-more { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; font-size: 0.8rem; color: var(--muted-lt); border-top: 1px solid var(--border-soft); margin-top: 2px; }
.bd-set-more svg { width: 15px; height: 15px; }
.bd-set-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.bd-set-actions .btn { flex: 1; }

/* toast */
.bd-toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 14px);
  display: inline-flex; align-items: center; gap: 8px; z-index: 40;
  padding: 11px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #16a34a, #10b981); box-shadow: 0 14px 34px -12px rgba(16,163,74,0.5);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.bd-toast svg { width: 17px; height: 17px; }
.bd-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .bd-export-body { grid-template-columns: 1fr; }
  .bd-menu { right: auto; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-export-btn { animation: none; }
}

/* =========================================================
   Slide · Pipeline CRM (Kanban estilo Kommo)
   ========================================================= */
.kanban-stage { width: 100%; max-width: 1120px; margin: 0 auto; text-align: left; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi-c { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 11px; padding: 13px 16px; }
.kpi-c .v { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--cyan-lt); transition: color .3s; }
.kpi-c .l { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 7px; }

.kanban-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.kanban-hint { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.kanban-hint svg { width: 14px; height: 14px; color: var(--violet-lt); }

.kanban-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 12px; min-width: 0; }
.kcol {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 12px; display: flex; flex-direction: column; min-height: 220px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.kcol.over { border-color: var(--violet-lt); background: rgba(var(--brand-rgb),0.08); }
.kcol-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; margin-bottom: 12px; }
.kcount { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border-soft); border-radius: 999px; padding: 1px 8px; }
.kdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.kdot.s0 { background: #94a3b8; } .kdot.s1 { background: #95c7f9; } .kdot.s2 { background: #4f9ff3; }
.kdot.s3 { background: #1577de; } .kdot.s4 { background: #22c55e; }
.kcards { display: flex; flex-direction: column; gap: 10px; min-height: 30px; flex: 1; }

.kcard {
  background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 11px 12px;
  cursor: grab; transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .2s, opacity .2s;
  animation: kIn .3s var(--ease);
}
:root[data-theme="light"] .kcard { background: #fff; }
.kcard:hover { border-color: var(--border); box-shadow: 0 10px 26px -14px rgba(var(--brand-rgb),0.55); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.45; }
.kcard.justmoved { animation: kPulse .9s var(--ease); }
.kcard.featured { box-shadow: 0 0 0 1.5px var(--violet-lt), 0 12px 30px -12px rgba(var(--brand-rgb),0.7); }
@keyframes kIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes kPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.55); } 60% { box-shadow: 0 0 0 7px rgba(var(--brand-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0); } }

.kcard-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.kc-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.66rem; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.kc-name { font-weight: 600; font-size: 0.82rem; line-height: 1.1; }
.kc-prod { font-size: 0.68rem; color: var(--muted); }
.kc-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.kc-amount { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--text); }
.kc-prob { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; padding: 2px 7px; border-radius: 6px; }
.kc-prob.p0 { color: #94a3b8; background: rgba(148,163,184,0.15); }
.kc-prob.p1 { color: #95c7f9; background: rgba(149,199,249,0.16); }
.kc-prob.p2 { color: #72b3f6; background: rgba(114,179,246,0.16); }
.kc-prob.p3 { color: #4f9ff3; background: rgba(79,159,243,0.18); }
.kc-prob.p4 { color: #4ade80; background: rgba(34,197,94,0.18); }
.kc-meta { font-size: 0.65rem; color: var(--muted); border-top: 1px solid var(--border-soft); padding-top: 8px; }
.kc-meta .act { display: block; margin-top: 2px; opacity: 0.8; }
.kc-nav { display: flex; align-items: center; gap: 6px; margin-top: 9px; }
.kc-arrow { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--border-soft); color: var(--muted-lt); transition: all .15s var(--ease); }
.kc-arrow:hover:not(:disabled) { border-color: var(--violet-lt); color: var(--violet-lt); background: rgba(var(--brand-rgb),0.1); }
.kc-arrow:disabled { opacity: 0.3; cursor: default; }
.kc-arrow svg { width: 14px; height: 14px; }
.kc-won { margin-left: auto; font-family: var(--font-mono); font-size: 0.64rem; color: #4ade80; display: inline-flex; align-items: center; gap: 5px; }
.kc-won svg { width: 13px; height: 13px; }

@media (max-width: 1024px) {
  .kanban { grid-template-columns: repeat(5, 188px); }
}
@media (max-width: 768px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(5, 170px); }
}
@media (prefers-reduced-motion: reduce) {
  .kcard, .kcard.justmoved { animation: none; }
}

/* =========================================================
   Slide · Arquitectura del ecosistema
   ========================================================= */
.arch { width: 100%; max-width: 1080px; margin: 0 auto; }
.arch-flow { display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.arch-arrow { display: flex; align-items: center; color: var(--muted); flex-shrink: 0; }
.arch-arrow svg { width: 22px; height: 22px; }

.arch-node { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-width: 130px; }
.arch-client { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.an-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(148,163,184,0.14); border: 1px solid var(--border-soft); display: grid; place-items: center; color: var(--muted-lt); margin-bottom: 6px; }
.an-ico svg { width: 20px; height: 20px; }
.an-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.an-sub { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }

.arch-group { flex: 1; max-width: 250px; border: 1.5px dashed var(--gc, var(--border)); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(var(--brand-rgb),0.02); }
.arch-group.g1 { --gc: rgba(var(--brand2-rgb),0.45); }
.arch-group.g2 { --gc: rgba(var(--brand-rgb),0.45); }
.arch-group.g3 { --gc: rgba(var(--brand-rgb),0.5); }
.ag-head { text-align: center; padding: 4px 0 8px; }
.ag-head b { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--text); }
.ag-head span { font-size: 0.7rem; color: var(--muted); }
.ag-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px 12px; text-align: center; }
.ag-card b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.ag-card span { font-size: 0.74rem; color: var(--muted-lt); }
.arch-group.g1 .ag-card b { color: #2b8af0; }
.arch-group.g2 .ag-card b { color: #2b7de6; }
.arch-group.g3 .ag-card b { color: var(--violet-lt); }
.ag-down { display: flex; justify-content: center; color: var(--muted); }
.ag-down svg { width: 18px; height: 18px; }

.arch-return { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.arch-return::before, .arch-return::after { content: ""; flex: 1; height: 0; border-top: 1.5px dashed rgba(var(--brand-rgb),0.4); }
.arch-return .ar-ico { width: 22px; height: 22px; color: var(--violet-lt); flex-shrink: 0; }
.arch-return span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet-lt); white-space: nowrap; }

@media (max-width: 900px) {
  .arch-flow { flex-direction: column; align-items: center; }
  .arch-arrow svg { transform: rotate(90deg); }
  .arch-node, .arch-group { width: 100%; max-width: 360px; }
  .arch-return span { white-space: normal; text-align: center; }
}

/* =========================================================
   Slide · Solicitud digital (interactiva)
   ========================================================= */
.solic {
  width: 100%; max-width: 1000px; margin: 0 auto; text-align: left;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(var(--brand-rgb),0.5);
}
.solic-steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--border-soft); }
.ss-item { display: flex; align-items: center; gap: 8px; }
.ss-circle { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-soft); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--bg); flex-shrink: 0; transition: all .2s var(--ease); }
.ss-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.ss-item.active .ss-circle { border-color: var(--violet); color: #fff; background: var(--grad-vc); }
.ss-item.active .ss-label { color: var(--text); font-weight: 600; }
.ss-item.done .ss-circle { background: var(--violet); border-color: var(--violet); color: #fff; }
.ss-item.done .ss-label { color: var(--muted-lt); }
.ss-line { width: 26px; height: 1.5px; background: var(--border-soft); margin: 0 8px; flex-shrink: 0; }
.ss-line.done { background: var(--violet); }
.ss-circle svg { width: 15px; height: 15px; }

.solic-body { display: grid; grid-template-columns: 1fr 250px; gap: 0; }
.solic-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.solic-side { border-left: 1px solid var(--border-soft); padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.solic-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sp-opt { background: var(--bg); border: 1.5px solid var(--border-soft); border-radius: 14px; padding: 18px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease); text-align: center; }
.sp-opt:hover { border-color: var(--violet-lt); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(var(--brand-rgb),0.6); }
.sp-opt.sel { border-color: var(--violet); background: rgba(var(--brand-rgb),0.08); box-shadow: 0 0 0 1px var(--violet) inset; }
.sp-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(var(--brand-rgb),0.12); border: 1px solid var(--border); display: grid; place-items: center; color: var(--violet-lt); transition: all .15s var(--ease); }
.sp-ico svg { width: 24px; height: 24px; }
.sp-opt:hover .sp-ico, .sp-opt.sel .sp-ico { background: var(--grad-vc); color: #fff; border-color: transparent; }
.sp-nombre { font-size: 0.84rem; font-weight: 600; color: var(--text); line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; justify-content: center; }
.sp-prima { font-size: 0.72rem; color: var(--violet-lt); font-weight: 600; margin-top: -2px; }

.sf-section { display: flex; flex-direction: column; gap: 12px; }
.sf-sectitle { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border-soft); padding-bottom: 7px; }
.sf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-field { display: flex; flex-direction: column; gap: 5px; }
.sf-field label { font-size: 0.74rem; font-weight: 600; color: var(--muted-lt); }
.sf-field input, .sf-field select, .solic textarea {
  border: 1.5px solid var(--border-soft); border-radius: 8px; padding: 9px 11px; font-size: 0.85rem;
  color: var(--text); background: var(--bg); outline: none; transition: border-color .2s; font-family: inherit; width: 100%;
}
.sf-field input:focus, .sf-field select:focus, .solic textarea:focus { border-color: var(--violet-lt); }
.solic textarea { resize: vertical; }
.sf-field select option { background: var(--surface-2); color: var(--text); }

.sa-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.sa-opt { background: var(--bg); border: 1.5px solid var(--border-soft); border-radius: 9px; padding: 9px 16px; font-size: 0.82rem; font-weight: 600; color: var(--muted-lt); cursor: pointer; transition: all .15s var(--ease); }
.sa-opt:hover { border-color: var(--violet-lt); color: var(--violet-lt); }
.sa-opt.sel { border-color: var(--violet); color: var(--violet-lt); background: rgba(var(--brand-rgb),0.1); }

.sc-box { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 11px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.sc-box h4 { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.sc-row:last-child { border-bottom: none; }
.sc-row span { color: var(--muted); flex-shrink: 0; }
.sc-row strong { color: var(--text); text-align: right; font-weight: 600; }
.sc-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: var(--muted-lt); background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px; cursor: pointer; }
.sc-terms input { margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; width: 15px; height: 15px; }
.sc-terms a { color: var(--violet-lt); }

.solic-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.s-back { background: none; border: 1.5px solid var(--border-soft); border-radius: 8px; padding: 10px 18px; font-size: 0.85rem; font-weight: 600; color: var(--muted-lt); cursor: pointer; transition: all .15s; }
.s-back:hover { border-color: var(--violet-lt); color: var(--text); }
.solic-nav .spacer { flex: 1; }

.sr-ico { width: 50px; height: 50px; margin: 2px auto; border-radius: 13px; background: rgba(var(--brand-rgb),0.12); border: 1px solid var(--border); display: grid; place-items: center; color: var(--violet-lt); }
.sr-ico svg { width: 26px; height: 26px; }
.sr-nombre { font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-align: center; color: var(--text); }
.sr-prima { text-align: center; color: var(--violet-lt); font-weight: 600; font-size: 0.85rem; }
.sr-sep { height: 1px; background: var(--border-soft); }
.sr-head { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sr-cob { display: flex; gap: 7px; align-items: flex-start; font-size: 0.76rem; color: var(--muted-lt); }
.sr-cob svg { width: 14px; height: 14px; color: #34d399; flex-shrink: 0; margin-top: 2px; }
.sr-help { background: rgba(var(--brand-rgb),0.07); border: 1px solid var(--border); border-radius: 9px; padding: 11px; display: flex; flex-direction: column; gap: 2px; }
.sr-help strong { font-size: 0.76rem; color: var(--text); }
.sr-help a { font-size: 0.9rem; color: var(--violet-lt); font-weight: 700; }

.solic-done { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sd-ico { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #16a34a, #10b981); display: grid; place-items: center; color: #fff; }
.sd-ico svg { width: 30px; height: 30px; }
.solic-done h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.solic-done p { color: var(--muted-lt); font-size: 0.9rem; max-width: 420px; }
.sd-ref { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 10px; padding: 13px 22px; display: flex; gap: 16px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.sd-ref strong { font-family: var(--font-mono); color: var(--violet-lt); font-size: 1rem; letter-spacing: 0.05em; }

@media (max-width: 768px) {
  .solic-body { grid-template-columns: 1fr !important; }
  .solic-side { border-left: none; border-top: 1px solid var(--border-soft); }
  .ss-label { display: none; }
  .ss-line { width: 18px; }
}
@media (max-width: 480px) {
  .sf-row2 { grid-template-columns: 1fr; }
}

/* light theme: stronger contrast for arch accent titles on white cards */
:root[data-theme="light"] .arch-group.g1 .ag-card b { color: #C7040E; }
:root[data-theme="light"] .arch-group.g2 .ag-card b { color: #B5141A; }
:root[data-theme="light"] .arch-group { background: rgba(var(--brand-rgb),0.015); }

/* light theme: Kanban keeps the red brand ramp (dark uses blue) */
:root[data-theme="light"] .kdot.s1 { background: #F8A9B2; }
:root[data-theme="light"] .kdot.s2 { background: #EE5260; }
:root[data-theme="light"] .kdot.s3 { background: #C7040E; }
:root[data-theme="light"] .kc-prob.p1 { color: #C7040E; background: rgba(248,169,178,0.20); }
:root[data-theme="light"] .kc-prob.p2 { color: #B5141A; background: rgba(243,118,132,0.20); }
:root[data-theme="light"] .kc-prob.p3 { color: #8E030A; background: rgba(238,82,96,0.20); }

/* =========================================================
   Cursor-reactive ambient glow (subtle background detail)
   ========================================================= */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%;
  margin: -230px 0 0 -230px; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.13), rgba(var(--brand2-rgb),0.05) 45%, transparent 70%);
  transition: opacity .6s var(--ease); will-change: transform; mix-blend-mode: screen;
}
.cursor-glow.on { opacity: 1; }
:root[data-theme="light"] .cursor-glow {
  mix-blend-mode: normal;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.06), transparent 65%);
}

/* =========================================================
   Cursor-following edge glow on cards
   ========================================================= */
.tool, .stat-card, .use-card, .diff-card, .kcard, .sp-opt, .kpi-c, .ag-card, .contact-card, .feature-card {
  position: relative;
}
.tool::after, .stat-card::after, .use-card::after, .diff-card::after, .kcard::after,
.sp-opt::after, .kpi-c::after, .ag-card::after, .contact-card::after, .feature-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, -30%), rgba(var(--brand-lt-rgb),0.9), rgba(var(--brand2-rgb),0.45) 38%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.tool:hover::after, .stat-card:hover::after, .use-card:hover::after, .diff-card:hover::after, .kcard:hover::after,
.sp-opt:hover::after, .kpi-c:hover::after, .ag-card:hover::after, .contact-card:hover::after, .feature-card:hover::after {
  opacity: 1;
}
@media (hover: none) {
  .tool::after, .stat-card::after, .use-card::after, .diff-card::after, .kcard::after,
  .sp-opt::after, .kpi-c::after, .ag-card::after, .contact-card::after, .feature-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  .gradient-text { animation: none; }
}

/* ===================== Back to top (end of deck) ===================== */
.back-top-wrap {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--border-soft); text-align: center;
}
.back-top { gap: 9px; }
.back-top svg { transition: transform .25s var(--ease); }
.back-top:hover svg { transform: translateY(-3px); }
.foot-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }

/* ===================== Icon micro-animations on hover ===================== */
.tool svg { transition: transform .3s var(--ease); }
.tool:hover svg { transform: scale(1.18) rotate(-4deg); }
.diff-card .ico { transition: transform .3s var(--ease); }
.diff-card:hover .ico { transform: scale(1.08) translateY(-2px); }
.use-card .role { transition: color .25s var(--ease); }
.feature-ico { transition: transform .3s var(--ease); }
.feature-card:hover .feature-ico { transform: scale(1.1) rotate(-4deg); }
.arch-group .ag-card { transition: transform .25s var(--ease), border-color .25s var(--ease); }
.arch-group .ag-card:hover { transform: translateY(-3px); border-color: var(--gc); }
