/* =========================================================
   VEYRA — Logistics Intelligence Hub
   Deck vertical · azul industrial + ámbar de seguridad
   ========================================================= */

:root {
  --bg:          #070b14;   /* navy profundo */
  --bg-2:        #0a1020;
  --surface:     #101826;   /* acero */
  --surface-2:   #16202f;
  --brand:       #2563eb;   /* azul señal */
  --brand-lt:    #60a5fa;
  --cyan:        #06b6d4;
  --cyan-lt:     #67e8f9;
  --amber:       #f59e0b;   /* ámbar de seguridad — CTA y alertas */
  --amber-lt:    #fbbf24;
  --ok:          #22c55e;   /* a tiempo */
  --warn:        #f59e0b;   /* en riesgo */
  --alert:       #ef4444;   /* demorado */
  --text:        #e6edf7;
  --muted:       #7086a3;
  --muted-lt:    #a3b5cc;
  --border:      rgba(37, 99, 235,0.24);
  --border-soft: rgba(148, 163, 184, 0.12);

  --grad-vc: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  --grad-text: linear-gradient(120deg, #60a5fa 0%, #67e8f9 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #fb923c 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(--brand-lt) 18%, var(--cyan-lt) 50%, var(--brand-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(37, 99, 235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235,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(37,99,235,0.45), transparent 70%); }
.orb-2 { width: 560px; height: 560px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(6,182,212,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(37,99,235,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,10,15,0.85), rgba(10,10,15,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(--brand-lt); }

/* el nav va centrado sobre el viewport, no repartido por space-between:
   la marca y el bloque derecho tienen anchos distintos y lo corrían ~78px */
.top-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 24px; }
.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,10,15,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; }
/* CTA = ámbar de seguridad: máximo contraste sobre la base navy */
.btn-primary { background: var(--grad-amber); color: #1a1206; box-shadow: 0 10px 30px -12px rgba(245,158,11,0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(245,158,11,0.85); }
.btn-primary svg { stroke-width: 2.4; }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-lt); background: rgba(37,99,235,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(--brand-lt); background: rgba(37,99,235,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(37,99,235,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; }
/* 10 módulos = 2 filas exactas de 5 */
.tool-grid.ten { grid-template-columns: repeat(5, 1fr); text-align: left; }
.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(37,99,235,0.65); }
.tool svg { width: 24px; height: 24px; color: var(--brand-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(37,99,235,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(37,99,235,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; }
/* semántica de dashboard logístico: azul = volumen, verde = a tiempo, ámbar = en riesgo, rojo = incidencia */
.kpi.v-blue .v { color: var(--brand-lt); } .kpi.v-cyan .v { color: var(--cyan-lt); }
.kpi.v-green .v { color: #4ade80; } .kpi.v-amber .v { color: var(--amber-lt); } .kpi.v-red .v { color: #f87171; }

/* SLA destacado dentro del panel */
.sla-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sla-v { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #4ade80; }
.sla-v small { font-size: 1rem; margin-left: 1px; }
.sla-l { font-size: 0.72rem; color: var(--muted); }

/* alertas del dashboard */
.mock-alerts { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.alert-row { display: flex; align-items: center; gap: 9px; font-size: 0.74rem; padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border-soft); background: rgba(255,255,255,0.015); color: var(--muted-lt); }
.alert-row svg { width: 15px; height: 15px; flex-shrink: 0; }
.alert-row.a-red { border-left: 3px solid var(--alert); } .alert-row.a-red svg { color: var(--alert); }
.alert-row.a-amber { border-left: 3px solid var(--warn); } .alert-row.a-amber svg { color: var(--warn); }
.alert-row.a-blue { border-left: 3px solid var(--brand); } .alert-row.a-blue svg { color: var(--brand-lt); }
:root[data-theme="light"] .alert-row { background: #f7f9fd; }
.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); }
.bar-fill.ok { background: linear-gradient(90deg, #16a34a, #4ade80); }
.bar-fill.warn { background: var(--grad-amber); }

/* ===================== 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(--brand), 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(--brand-lt); box-shadow: 0 0 0 7px var(--bg), 0 0 28px -8px rgba(37,99,235,0.7); }
.flow-num svg { width: 23px; height: 23px; }
.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%; }
/* 5 rubros: 3 + 2 centrados, sin huecos raros */
.use-grid.five { grid-template-columns: repeat(6, 1fr); }
.use-grid.five > * { grid-column: span 2; }
.use-grid.five > *:nth-child(4) { grid-column: 2 / span 2; }
.use-grid.five > *:nth-child(5) { grid-column: 4 / span 2; }
.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(6,182,212,0.45); }
.use-card .role { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--cyan-lt); text-transform: uppercase; letter-spacing: 0.1em; }
.use-card .role svg { width: 15px; height: 15px; }
.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(--brand-lt); flex-shrink: 0; margin-top: 3px; }

/* ===================== Integraciones ===================== */
.integra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; }
.integra {
  display: flex; align-items: center; gap: 12px; padding: 17px 18px; text-align: left;
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .3s;
}
.integra:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 18px 44px -26px rgba(37,99,235,0.65); }
.integra svg { width: 20px; height: 20px; color: var(--cyan-lt); flex-shrink: 0; transition: transform .3s var(--ease); }
.integra:hover svg { transform: scale(1.15) rotate(-5deg); }
.integra b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
@media (max-width: 900px) { .integra-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .integra-grid { grid-template-columns: repeat(2, 1fr); } .integra { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ===================== 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(37,99,235,0.10); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand-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(--brand-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(--brand-lt); background: rgba(37,99,235,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(37,99,235,0.5); }
.cc-mark { width: 52px; height: 52px; border-radius: 13px; background: rgba(37,99,235,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; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cc-credit a { color: var(--brand-lt); }
.cc-credit a:hover .daia-text { text-decoration: underline; }
.daia-link { display: inline-flex; align-items: center; transition: opacity .2s var(--ease); }
.daia-link:hover { opacity: .82; }
/* el logo aparece solo cuando el archivo existe; si no, queda el texto */
.daia-logo { display: none; height: 26px; width: auto; }
.daia-logo.ready { display: block; }
/* el logo de DAIA es claro: sobre fondo blanco necesita una placa oscura */
:root[data-theme="light"] .daia-link.has-logo { background: #0b1524; padding: 7px 12px; border-radius: 9px; }

/* ===================== 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(--brand-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(37,99,235,0.14), rgba(6,182,212,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(37,99,235,0.6), rgba(6,182,212,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(37,99,235,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(37,99,235,0.5); } 70% { box-shadow: 0 0 0 9px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }
.tut.compact { margin: 18px 0 14px; padding: 9px 14px; max-width: 100%; flex-wrap: nowrap; justify-content: flex-start; text-align: left; }
.tut.compact .tut-text { font-size: 0.8rem; }
.tut-text { font-size: 0.86rem; color: var(--text); }
.tut-text b { color: var(--brand-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(6,182,212,0.12); border: 1px solid rgba(6,182,212,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 ===================== */
/* el nav centrado se acerca al CTA: acorto el botón antes de sacrificar el nav */
@media (max-width: 1400px) {
  .top-nav { gap: 20px; }
  .cta-long { display: none; }
}
@media (max-width: 1180px) {
  .tool-grid.ten { grid-template-columns: repeat(4, 1fr); }
}
/* por debajo de 1080 ya no entra centrado sin tocar los laterales */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .nav-toggle { display: block; }
}
@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; }
  .slide-contact .split { grid-template-columns: 1fr; }
  /* el CTA del header cede recién acá; el nav ya colapsó en 1080 */
  .top-demo { display: none; }
  /* 5 rubros -> 2 columnas parejas */
  .use-grid.five { grid-template-columns: repeat(4, 1fr); }
  .use-grid.five > *:nth-child(4) { grid-column: span 2; }
  .use-grid.five > *:nth-child(5) { grid-column: 2 / span 2; }
}
@media (max-width: 860px) {
  .use-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .use-grid.five, .use-grid.five > *, .use-grid.five > *:nth-child(4), .use-grid.five > *:nth-child(5) { grid-template-columns: 1fr; grid-column: auto; }
  .flow { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .flow-line { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid.ten { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .slide-inner { padding: 92px 22px 72px; }
  .tool-grid, .tool-grid.ten { grid-template-columns: 1fr 1fr; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .tut { font-size: 0.8rem; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .flow { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .stat-grid { grid-template-columns: 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(37,99,235,0.06);
  transition: all .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand-lt); background: rgba(37,99,235,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(--brand-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 .stat-card, html.theme-ready .integra,
html.theme-ready .tool, html.theme-ready .use-card, html.theme-ready .kcol,
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 VEYRA
   ========================================================= */
:root[data-theme="light"] {
  --bg:          #f4f7fb;
  --bg-2:        #ffffff;
  --surface:     #ffffff;
  --surface-2:   #eef3fa;
  --brand:       #1d4ed8;
  --brand-lt:    #1e40af;
  --cyan:        #0891b2;
  --cyan-lt:     #0e7490;
  --amber:       #d97706;
  --amber-lt:    #b45309;
  --ok:          #15803d;
  --warn:        #b45309;
  --alert:       #dc2626;
  --text:        #0b1524;
  --muted:       #5a6b83;
  --muted-lt:    #3f5069;
  --border:      rgba(29, 78, 216, 0.22);
  --border-soft: rgba(11, 21, 36, 0.12);
  --grad-text:   linear-gradient(120deg, #1d4ed8 0%, #0891b2 100%);
  --grad-amber:  linear-gradient(135deg, #d97706 0%, #ea580c 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(37, 99, 235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235,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(37,99,235,0.30), transparent 70%); }
:root[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(6,182,212,0.24), transparent 70%); }

/* topbar / menus */
:root[data-theme="light"] .topbar { background: linear-gradient(180deg, rgba(246,247,251,0.92), rgba(246,247,251,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(37,99,235,0.05); border-color: var(--border); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(37,99,235,0.10); }
:root[data-theme="light"] .theme-toggle { background: rgba(37,99,235,0.05); }

/* progress + rail */
:root[data-theme="light"] .deck-progress { background: rgba(15,23,42,0.08); }
:root[data-theme="light"] .dot { background: rgba(90,107,131,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"] .integra:hover { box-shadow: 0 20px 44px -26px rgba(29,78,216,0.45); }
:root[data-theme="light"] .use-card:hover { box-shadow: 0 20px 44px -26px rgba(8,145,178,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: #f6f9fd; border-color: var(--border-soft); }
:root[data-theme="light"] .chat-input { background: #f6f9fd; }
:root[data-theme="light"] .bubble.bot { background: #eef3fa; }
:root[data-theme="light"] .bar-track { background: rgba(11,21,36,0.08); }

/* accent colors need more contrast on white */
:root[data-theme="light"] .kpi.v-green .v, :root[data-theme="light"] .sla-v { color: #15803d; }
:root[data-theme="light"] .kpi.v-amber .v { color: #b45309; }
:root[data-theme="light"] .kpi.v-red .v { color: #dc2626; }
:root[data-theme="light"] .chat-head .live { color: #15803d; }
:root[data-theme="light"] .chat-head .pulse { background: #15803d; }

/* =========================================================
   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(37,99,235,0.5);
  display: grid; grid-template-columns: 240px 1fr; gap: 14px;
}

/* 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(--brand-lt); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(37,99,235,.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(--brand); }
.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(37,99,235,.12); border: 1px solid var(--border); border-radius: 6px; color: var(--brand-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(--brand-lt); background: rgba(37,99,235,.08); transform: translateY(-2px); }
.dropzone.datos.empty { border-color: rgba(6,182,212,.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, #06b6d4); }
.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(--brand-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; }
}
/* en móvil el panel en fila parte mal: vuelve a columna */
@media (max-width: 620px) {
  .bd-panel { flex-direction: column; }
  .bd-search { width: 100%; }
  .bd-toolbar { flex-wrap: wrap; }
  .bd-title { flex: 1 1 100%; }
}

/* ---- Export: glowing button + dropdown ---- */
.bd-stage { position: relative; }
.bd-export-menu { position: relative; }
.bd-export-btn {
  border-color: var(--brand); color: var(--brand-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(37,99,235,0); }
  50% { box-shadow: 0 0 16px -2px rgba(37,99,235,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(--brand-lt); }
.bd-menu-item:hover { background: rgba(37,99,235,0.14); }

/* ---- Export preview panel (occupies the builder's space) ---- */
.bd-export {
  position: absolute; inset: 0; z-index: 20; display: none;
  flex-direction: column; 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(37,99,235,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(--brand-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(--brand-lt); background: rgba(37,99,235,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: #e9edf5; }

/* 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: #1d4ed8; margin-bottom: 12px; letter-spacing: .08em; }
.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; }
/* resumen ejecutivo generado por IA, dentro de la hoja exportada */
.bd-page-ai { margin-top: 14px; padding: 11px 12px; border-radius: 6px; background: #eef4ff; border-left: 3px solid #1d4ed8; }
.bd-page-ai b { display: block; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #1d4ed8; margin-bottom: 5px; }
.bd-page-ai p { font-size: 0.68rem; line-height: 1.5; color: #334155; }
.bd-page.is-excel .bd-page-ai { display: none; }

/* 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(--brand-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, #06b6d4); box-shadow: 0 14px 34px -12px rgba(6,182,212,0.6);
  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 comercial (Kanban)
   ========================================================= */
.kanban-stage { width: 100%; max-width: 1240px; 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-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(174px, 1fr)); gap: 10px; 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(--brand-lt); background: rgba(37,99,235,0.08); }
.kcol-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; margin-bottom: 12px; line-height: 1.2; }
.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; flex-shrink: 0; }
.kdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
/* la etapa avanza de gris a verde pasando por el ámbar de negociación */
.kdot.s0 { background: #7086a3; } .kdot.s1 { background: #60a5fa; } .kdot.s2 { background: #22d3ee; }
.kdot.s3 { background: #f59e0b; } .kdot.s4 { background: #fb923c; } .kdot.s5 { 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(37,99,235,0.55); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.45; }
.kcard.justmoved { animation: kPulse .9s var(--ease); }
@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(37,99,235,0.55); } 60% { box-shadow: 0 0 0 7px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,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.15; }
.kc-prod { font-size: 0.68rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.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.86rem; color: var(--text); }
.kc-prob { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; padding: 2px 7px; border-radius: 6px; flex-shrink: 0; }
.kc-prob.p0 { color: #94a3b8; background: rgba(148,163,184,0.15); }
.kc-prob.p1 { color: #60a5fa; background: rgba(37,99,235,0.16); }
.kc-prob.p2 { color: #22d3ee; background: rgba(6,182,212,0.16); }
.kc-prob.p3 { color: #fbbf24; background: rgba(245,158,11,0.16); }
.kc-prob.p4 { color: #fdba74; background: rgba(251,146,60,0.16); }
.kc-prob.p5 { 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(--brand-lt); color: var(--brand-lt); background: rgba(37,99,235,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.62rem; color: #4ade80; display: inline-flex; align-items: center; gap: 5px; }
.kc-won svg { width: 13px; height: 13px; }

/* automatizaciones bajo el tablero */
.auto-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.auto-row > span { font-size: 0.74rem; color: var(--muted-lt); border: 1px solid var(--border-soft); border-radius: 999px; padding: 6px 13px; background: var(--surface); }
.auto-row .auto-head { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-lt); background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.3); }
.auto-row .auto-head svg { width: 14px; height: 14px; }

@media (max-width: 1024px) { .kanban { grid-template-columns: repeat(6, 186px); } }
@media (max-width: 768px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(6, 172px); }
}
@media (max-width: 480px) { .kpi-c .v { font-size: 1.2rem; } .kpi-c { padding: 12px 13px; } }
@media (prefers-reduced-motion: reduce) { .kcard, .kcard.justmoved { animation: none; } }

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

.arch-group {
  flex: 1; min-width: 0; border: 1.5px solid var(--gc, var(--border-soft)); border-radius: 14px;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; text-align: left;
  background: var(--surface); position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .3s;
}
.arch-group:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -26px rgba(37,99,235,0.6); }
.arch-group.g-origen   { --gc: rgba(148,163,184,0.35); }
.arch-group.g-canales  { --gc: rgba(6,182,212,0.45); }
.arch-group.g-sistemas { --gc: rgba(37,99,235,0.5); }
.arch-group.g-resultado{ --gc: rgba(245,158,11,0.5); }

.ag-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--border-soft); }
.ag-num { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); flex-shrink: 0; }
.ag-head b { font-family: var(--font-display); font-size: 0.88rem; color: var(--text); line-height: 1.2; }
.ag-list { display: flex; flex-direction: column; gap: 6px; }
.ag-list span { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted-lt); }
.ag-list svg { width: 14px; height: 14px; color: var(--gc, var(--brand-lt)); flex-shrink: 0; }
.arch-group.g-origen .ag-list svg { color: var(--muted-lt); }
.arch-group.g-canales .ag-list svg { color: var(--cyan-lt); }
.arch-group.g-sistemas .ag-list svg { color: var(--brand-lt); }
.arch-group.g-resultado .ag-list svg { color: var(--amber-lt); }

/* el hub es el centro: borde con degradé y halo propio */
.arch-group.g-hub {
  flex: 1.15; border-color: transparent;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 0 1.5px transparent, 0 22px 60px -30px rgba(37,99,235,0.8);
}
.arch-group.g-hub::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; padding: 1.5px;
  background: var(--grad-vc);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.arch-group.g-hub .ag-head b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-core { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0; }
.hub-ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-vc); color: #fff; box-shadow: 0 10px 28px -10px rgba(37,99,235,0.9);
  animation: hubPulse 3s ease-in-out infinite;
}
.hub-ico svg { width: 26px; height: 26px; }
@keyframes hubPulse { 0%,100% { box-shadow: 0 10px 28px -10px rgba(37,99,235,0.9), 0 0 0 0 rgba(37,99,235,0.45); } 50% { box-shadow: 0 10px 28px -10px rgba(37,99,235,0.9), 0 0 0 12px rgba(37,99,235,0); } }
.hub-verbs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.hub-verbs span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--cyan-lt); background: rgba(6,182,212,0.10); border: 1px solid rgba(6,182,212,0.25); border-radius: 999px; padding: 3px 9px; }

.arch-return { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.arch-return::before, .arch-return::after { content: ""; flex: 1; height: 0; border-top: 1.5px dashed rgba(37,99,235,0.4); }
.arch-return .ar-ico { width: 22px; height: 22px; color: var(--brand-lt); flex-shrink: 0; }
.arch-return span { font-family: var(--font-mono); font-size: 0.76rem; color: var(--brand-lt); text-align: center; }

@media (max-width: 1080px) {
  .arch-flow { flex-wrap: wrap; justify-content: center; }
  .arch-group { flex: 1 1 260px; max-width: 340px; }
  .arch-group.g-hub { flex: 1 1 100%; max-width: 100%; order: -1; }
  .arch-group.g-hub .hub-core { flex-direction: row; justify-content: center; }
  .arch-arrow { display: none; }
}
@media (max-width: 560px) {
  .arch-group { flex: 1 1 100%; max-width: 100%; }
  .arch-group.g-hub .hub-core { flex-direction: column; }
}

/* =========================================================
   Slide · Demo de incidencias (WhatsApp -> ticket)
   ========================================================= */
.inc {
  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(37,99,235,0.5);
}

/* stepper compartido */
.inc-steps { display: flex; align-items: center; justify-content: center; 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(--brand); color: #fff; background: var(--grad-vc); }
.ss-item.active .ss-label { color: var(--text); font-weight: 600; }
.ss-item.done .ss-circle { background: var(--brand); border-color: var(--brand); 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(--brand); }
.ss-circle svg { width: 15px; height: 15px; }

.inc-body { padding: 0; }
.inc-main { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.inc-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); }

.inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.inc-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: 9px; cursor: pointer; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .2s var(--ease); text-align: center; }
.inc-opt:hover { border-color: var(--brand-lt); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(37,99,235,0.6); }
.inc-opt.sel { border-color: var(--brand); background: rgba(37,99,235,0.08); }
.inc-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(37,99,235,0.12); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand-lt); transition: all .15s var(--ease); }
.inc-ico svg { width: 24px; height: 24px; }
.inc-opt:hover .inc-ico, .inc-opt.sel .inc-ico { background: var(--grad-vc); color: #fff; border-color: transparent; }
.inc-nombre { font-size: 0.86rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.inc-prio { font-family: var(--font-mono); font-size: 0.62rem; padding: 2px 9px; border-radius: 999px; }
.inc-prio.p-alta, .ir-grid strong.p-alta { color: #f87171; background: rgba(239,68,68,0.14); }
.inc-prio.p-media, .ir-grid strong.p-media { color: var(--amber-lt); background: rgba(245,158,11,0.14); }
.ir-grid strong.p-alta, .ir-grid strong.p-media { padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; }

/* hilo de WhatsApp simulado */
.wa-thread { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 13px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.wa-thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--border-soft); }
.wa-thread-head b { display: block; font-size: 0.82rem; }
.wa-thread-head span { font-size: 0.68rem; color: #25d366; }
.wa-thread-head svg { width: 18px; height: 18px; margin-left: auto; color: #25d366; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.wa-msg { position: relative; align-self: flex-start; max-width: 92%; background: rgba(37,211,102,0.10); border: 1px solid rgba(37,211,102,0.25); border-radius: 12px 12px 12px 4px; padding: 11px 14px 20px; font-size: 0.86rem; color: var(--text); line-height: 1.5; }
.wa-time { position: absolute; right: 11px; bottom: 6px; font-size: 0.6rem; color: var(--muted); font-family: var(--font-mono); }
.wa-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.wa-file { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface); font-size: 0.76rem; }
.wa-file svg { width: 16px; height: 16px; color: var(--cyan-lt); flex-shrink: 0; }
.wa-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-file b { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); flex-shrink: 0; }

/* checklist que se completa sola */
.proc-list { display: flex; flex-direction: column; gap: 9px; }
.proc-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--bg); font-size: 0.85rem; color: var(--muted); opacity: .55; transition: opacity .35s var(--ease), color .35s, border-color .35s, background .35s; }
.proc-item.done { opacity: 1; color: var(--text); border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.proc-chk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-soft); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .35s var(--ease); }
.proc-chk svg { width: 12px; height: 12px; }
.proc-item.done .proc-chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.proc-tag { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--text); background: rgba(37,99,235,0.08); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; animation: tokenIn .3s var(--ease); }
.proc-tag svg { width: 16px; height: 16px; color: var(--brand-lt); flex-shrink: 0; }
.proc-tag b { color: var(--brand-lt); }

/* ficha final de la incidencia */
.inc-result { border: 1px solid rgba(34,197,94,0.35); border-radius: 13px; padding: 16px; background: rgba(34,197,94,0.05); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; animation: tokenIn .3s var(--ease); }
.ir-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; }
.ir-head b { color: var(--ok); }
.ir-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ir-badge svg { width: 14px; height: 14px; }
.ir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; width: 100%; }
.ir-grid > div { display: flex; flex-direction: column; gap: 3px; }
.ir-grid span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ir-grid strong { font-size: 0.86rem; color: var(--text); align-self: flex-start; }

.inc-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.inc-nav .spacer { flex: 1; }
.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(--brand-lt); color: var(--text); }

@media (max-width: 768px) {
  .ss-label { display: none; }
  .ss-line { width: 18px; }
  .inc-main { padding: 18px 16px; }
}

/* =========================================================
   Slide · Asistente Veyra IA
   ========================================================= */
.chat-log { display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.chat-log::-webkit-scrollbar { width: 5px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
.bubble.typing { display: inline-flex; align-items: center; gap: 4px; padding: 14px; width: auto; align-self: flex-start; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-lt); animation: typeDot 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .18s; }
.bubble.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typeDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-actions { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 10px; }
.chat-actions button { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--cyan-lt); background: rgba(6,182,212,0.08); border: 1px solid rgba(6,182,212,0.25); border-radius: 999px; padding: 6px 12px; transition: all .15s var(--ease); }
.chat-actions button:hover { background: rgba(6,182,212,0.16); transform: translateY(-1px); }
.chat-actions svg { width: 13px; height: 13px; }

.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ask-chip { font-size: 0.78rem; color: var(--muted-lt); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; padding: 8px 14px; text-align: left; transition: all .18s var(--ease); }
.ask-chip:hover { border-color: var(--brand-lt); color: var(--text); transform: translateY(-2px); }
.ask-chip.sel { border-color: var(--brand); color: var(--brand-lt); background: rgba(37,99,235,0.10); }
@media (max-width: 1024px) { .ask-chips { justify-content: center; } }

/* =========================================================
   Slide · Documentación inteligente
   ========================================================= */
.doc-flow { margin-bottom: 34px; }
.doc-bottom { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; width: 100%; text-align: left; }
.doc-types, .doc-result { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; }
.doc-types-head, .dr-head { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted-lt); background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 12px; transition: all .18s var(--ease); }
.doc-chips span:hover { border-color: var(--cyan); color: var(--text); }
.doc-chips svg { width: 15px; height: 15px; color: var(--cyan-lt); }

.doc-result { border-color: rgba(34,197,94,0.3); background: linear-gradient(180deg, rgba(34,197,94,0.06), var(--surface)); }
.dr-head { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.dr-head svg { width: 17px; height: 17px; color: var(--ok); }
.dr-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.dr-row:last-child { border-bottom: none; }
.dr-row span { color: var(--muted); }
.dr-row strong { color: var(--text); text-align: right; font-weight: 600; }
.dr-warn { color: var(--warn) !important; }

@media (max-width: 860px) { .doc-bottom { grid-template-columns: 1fr; } }

/* =========================================================
   Slide · Agente de voz
   ========================================================= */
.voice-fns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.voice-fns span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--muted-lt); background: var(--surface); border: 1px solid var(--border-soft); border-radius: 999px; padding: 7px 13px; }
.voice-fns svg { width: 14px; height: 14px; color: var(--cyan-lt); flex-shrink: 0; }
@media (max-width: 1024px) { .voice-fns { justify-content: center; } }

.voice {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: left;
  box-shadow: 0 30px 80px -40px rgba(37,99,235,0.55);
}
.voice-head { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid var(--border-soft); }
.voice-avatar { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-vc); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.voice-avatar svg { width: 19px; height: 19px; }
.voice-head .meta b { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.voice-head .meta span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); }
.voice-timer { margin-left: auto; font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan-lt); }
.voice.playing .voice-avatar { animation: hubPulse 2s ease-in-out infinite; }

.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 52px; margin: 14px 0; }
.wave span { flex: 1 1 0; min-width: 2px; max-width: 5px; border-radius: 2px; background: linear-gradient(180deg, var(--brand-lt), var(--cyan)); opacity: .3; transform: scaleY(.35); transform-origin: center; transition: opacity .3s, transform .3s; }
.voice.playing .wave span { opacity: 1; animation: waveBar 1s ease-in-out infinite alternate; }
@keyframes waveBar { from { transform: scaleY(.28); } to { transform: scaleY(1); } }

.voice-log { display: flex; flex-direction: column; gap: 9px; min-height: 190px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.voice-log::-webkit-scrollbar { width: 5px; }
.voice-log::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
.vhint { font-size: 0.8rem; color: var(--muted); text-align: center; margin: auto 0; }
.vline { font-size: 0.84rem; line-height: 1.5; padding: 10px 13px; border-radius: 11px; animation: tokenIn .3s var(--ease); }
.vline .vwho { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.vline.cli { background: var(--bg); border: 1px solid var(--border-soft); color: var(--muted-lt); align-self: flex-start; max-width: 92%; }
.vline.cli .vwho { color: var(--muted); }
.vline.vey { background: rgba(37,99,235,0.10); border: 1px solid var(--border); color: var(--text); align-self: flex-end; max-width: 92%; }
.vline.vey .vwho { color: var(--brand-lt); }
.vdone { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.vdone span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ok); background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.3); border-radius: 999px; padding: 4px 10px; }
.vdone svg { width: 12px; height: 12px; }

.voice-ctrl { display: flex; gap: 9px; margin-top: 14px; }
.voice-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem; background: var(--grad-amber); color: #1a1206; transition: transform .2s var(--ease), box-shadow .25s var(--ease); box-shadow: 0 10px 26px -12px rgba(245,158,11,0.6); }
.voice-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(245,158,11,0.8); }
.voice-btn svg { width: 17px; height: 17px; }
.voice-btn.ghost { flex: 0 0 46px; background: none; border: 1px solid var(--border-soft); color: var(--muted-lt); box-shadow: none; }
.voice-btn.ghost:hover { border-color: var(--brand-lt); color: var(--text); transform: none; }

@media (prefers-reduced-motion: reduce) {
  .voice.playing .wave span, .voice.playing .voice-avatar, .hub-ico { animation: none; }
  .voice.playing .wave span { transform: scaleY(.7); }
}

/* =========================================================
   Cierre · datos institucionales
   ========================================================= */
.inst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 6px; }
.inst-grid > div { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 13px 15px; border: 1px solid var(--border-soft); border-radius: 11px; background: var(--surface); }
.inst-grid b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inst-grid span { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 1024px) { .inst-grid { max-width: 560px; margin-left: auto; margin-right: auto; } }

/* =========================================================
   WhatsApp flotante
   ========================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 14px 34px -12px rgba(37,211,102,0.7);
  opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .25s var(--ease);
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(37,211,102,0.9); }
.wa-ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; flex-shrink: 0; }
.wa-ico svg { width: 19px; height: 19px; }
@media (max-width: 1024px) { .wa-float { right: 14px; bottom: 14px; padding: 11px; } .wa-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: opacity .2s; transform: none; } .wa-float.show { transform: none; } }

/* toast global */
.g-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 130; transform: translate(-50%, 14px);
  padding: 12px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff; max-width: min(90vw, 460px); text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--cyan)); box-shadow: 0 14px 34px -12px rgba(37,99,235,0.7);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   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(37,99,235,0.16), rgba(6,182,212,0.06) 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(37,99,235,0.06), transparent 65%);
}

/* =========================================================
   Cursor-following edge glow on cards
   ========================================================= */
.tool, .stat-card, .use-card, .kcard, .inc-opt, .kpi-c, .arch-group, .contact-card, .integra, .doc-result {
  position: relative;
}
.tool::after, .stat-card::after, .use-card::after, .kcard::after, .inc-opt::after,
.kpi-c::after, .arch-group::after, .contact-card::after, .integra::after, .doc-result::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(96,165,250,0.9), rgba(6,182,212,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, .kcard:hover::after, .inc-opt:hover::after,
.kpi-c:hover::after, .arch-group:hover::after, .contact-card:hover::after, .integra:hover::after, .doc-result:hover::after {
  opacity: 1;
}
@media (hover: none) {
  .tool::after, .stat-card::after, .use-card::after, .kcard::after, .inc-opt::after,
  .kpi-c::after, .arch-group::after, .contact-card::after, .integra::after, .doc-result::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); }
.use-card .role { transition: color .25s var(--ease); }
