/* ═══════════════════════════════════════════
   BUILGENT HOME — Design System
   Dark Blue/Violet Premium
═══════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg: #050c18;
  --bg-2: #070e1d;
  --bg-3: #060a16;
  --accent: #6b8eff;
  --violet: #a78bfa;
  --text: #e8eaf8;
  --muted: rgba(232, 234, 248, 0.5);
  --dim: rgba(232, 234, 248, 0.28);

  --glass: rgba(255, 255, 255, 0.05);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hi: rgba(107, 142, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --grad-accent: linear-gradient(135deg, var(--accent), var(--violet));
  --grad-bg: linear-gradient(180deg, var(--bg), var(--bg-2));

  --ff-head: 'Manrope', sans-serif;
  --ff-body: 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-gentle: cubic-bezier(0.25, 0, 0.3, 1);

  --max: 1320px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
  --topbar-h: 64px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ─── NOISE ─── */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: overlay;
}

/* ─── AMBIENT LIGHTS ─── */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.ambient-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(107, 142, 255, 0.14), transparent 70%);
  top: -250px; left: -200px;
  animation: float-a 18s ease-in-out infinite;
}
.ambient-b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 70%);
  bottom: 0; right: -150px;
  animation: float-b 22s ease-in-out infinite;
}
.ambient-c {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107, 142, 255, 0.08), transparent 70%);
  bottom: 20%; left: 30%;
  animation: float-a 26s ease-in-out infinite reverse;
}
@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(40px, 60px, 0); }
}
@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-50px, -40px, 0); }
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }
p { color: var(--muted); font-size: clamp(0.9rem, 1.5vw, 1.05rem); }

.eyebrow {
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ─── GLASS CARDS ─── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, opacity 0.2s;
  position: relative;
  will-change: transform;
}
.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(107, 142, 255, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(107, 142, 255, 0.5);
  opacity: 0.92;
}
.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border-hi);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--glass-hi);
  border-color: rgba(167, 139, 250, 0.4);
}
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.82rem; }

/* ─── SECTION COMMONS ─── */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.section-header h2 { margin-top: 0.25rem; }
.section-sub {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--topbar-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.topbar.scrolled {
  background: rgba(5, 12, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border),
              0 8px 32px rgba(0, 0, 0, 0.3);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}
.brand-mark {
  display: flex;
  gap: 4px;
  align-items: center;
}
.bm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.bm-dot:nth-child(2) { opacity: 0.7; }
.bm-dot:nth-child(3) { opacity: 0.4; }
.brand-name {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topnav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.topnav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.topnav a:hover { color: var(--text); }
.topbar-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1.5rem;
}
.topbar-ctas .btn { margin: 0; }

/* ═══════════════════════════════════════════
   SCROLLSTORY
═══════════════════════════════════════════ */
.story-section {
  position: relative;
  height: 600vh;
}
.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ─── SCENES ─── */
.story-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: var(--topbar-h) var(--gutter) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* visibility se demora para que la escena saliente termine de desvanecerse */
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.story-scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* al aparecer: visibility es inmediata, opacity se anima */
  transition: opacity 0.7s var(--ease-out), visibility 0s;
}

/* Visual areas */
.scene-network, .scene-funnel, .scene-chat,
.scene-flow, .scene-content-grid, .scene-dashboard {
  flex: 1.12;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-height: 560px;
  position: relative;
  z-index: 1;
}

/* Copy overlay */
.scene-overlay,
.scene-overlay-right {
  flex: 0 0 42%;
  position: relative;
  z-index: 20;
}

/* ─── SCENE BACKGROUNDS ─── */
.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}
.story-scene:not(.active) .scene-bg { opacity: 0; }

.scene-01-bg {
  background:
    radial-gradient(ellipse 80% 60% at 55% 50%, rgba(107, 142, 255, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(167, 139, 250, 0.1) 0%, transparent 55%),
    var(--bg);
}
.scene-02-bg {
  background:
    radial-gradient(ellipse 70% 60% at 25% 60%, rgba(236, 72, 153, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 25%, rgba(107, 142, 255, 0.12) 0%, transparent 60%),
    var(--bg);
}
.scene-03-bg {
  background:
    radial-gradient(ellipse 65% 50% at 70% 60%, rgba(107, 142, 255, 0.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 20% 20%, rgba(167, 139, 250, 0.10) 0%, transparent 55%),
    var(--bg);
}
.scene-04-bg {
  background:
    radial-gradient(ellipse 70% 55% at 40% 50%, rgba(34, 211, 186, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(107, 142, 255, 0.10) 0%, transparent 55%),
    var(--bg);
}
.scene-05-bg {
  background:
    radial-gradient(ellipse 65% 55% at 65% 45%, rgba(167, 139, 250, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 15% 70%, rgba(236, 72, 153, 0.08) 0%, transparent 55%),
    var(--bg);
}
.scene-06-bg {
  background:
    radial-gradient(ellipse 70% 55% at 35% 40%, rgba(251, 191, 36, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 75% 65%, rgba(107, 142, 255, 0.12) 0%, transparent 55%),
    var(--bg);
}

/* ─── SCENE COPY ─── */
.scene-copy { position: relative; z-index: 2; }
.scene-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}
.scene-desc {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.scene-list li {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.scene-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.scene-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--ff-head);
  color: var(--accent);
  transition: color 0.2s, gap 0.2s;
}
.scene-cta:hover { color: var(--violet); gap: 0.75rem; }
.scene-hotspots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.hotspot-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--glass-border-hi);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(107, 142, 255, 0.08);
  transition: all 0.2s;
  cursor: pointer;
}
.hotspot-btn:hover {
  background: rgba(107, 142, 255, 0.18);
  border-color: rgba(107, 142, 255, 0.5);
}

/* ─── SCENE 01: NETWORK ─── */
.scene-network {
  position: relative;
  width: 100%;
}
.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.net-line {
  stroke: rgba(107, 142, 255, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  animation: dash-flow 4s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -44; }
}
.net-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.node-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.net-node span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.node-center { top: 50%; left: 50%; }
.node-center .node-icon {
  width: 76px; height: 76px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(107, 142, 255, 0.25), rgba(167, 139, 250, 0.2));
  border-color: rgba(107, 142, 255, 0.4);
  box-shadow: 0 0 40px rgba(107, 142, 255, 0.25);
}
.node-1  { top: 23%; left: 30%; }
.node-2  { top: 27%; left: 72%; }
.node-3  { top: 57%; left: 80%; }
.node-4  { top: 80%; left: 65%; }
.node-5  { top: 73%; left: 26%; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 142, 255, 0.4), 0 0 20px rgba(107, 142, 255, 0.15); }
  50% { box-shadow: 0 0 0 14px rgba(107, 142, 255, 0), 0 0 30px rgba(107, 142, 255, 0.2); }
}
@keyframes pulse-glow-violet {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.4); }
  50% { box-shadow: 0 0 0 14px rgba(167, 139, 250, 0); }
}
.pulse-slow .node-icon  { animation: pulse-glow 3.5s ease-in-out infinite; }
.pulse-mid .node-icon   { animation: pulse-glow 2.5s ease-in-out infinite 0.5s; }
.pulse-fast .node-icon  { animation: pulse-glow-violet 2s ease-in-out infinite 1s; }

/* ─── SCENE 02: FUNNEL ─── */
.scene-funnel {
  flex-direction: column;
  gap: 0;
  max-width: 400px;
  width: 100%;
}
.funnel-stage {
  padding: 1.25rem 1.75rem;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  text-align: center;
  width: 100%;
  transition: border-color 0.3s ease;
}
.funnel-stage:hover { border-color: var(--glass-border-hi); }
.fs-1 { border-color: rgba(107, 142, 255, 0.35); }
.fs-2 { border-color: rgba(167, 139, 250, 0.3); width: 88%; }
.fs-3 { border-color: rgba(236, 72, 153, 0.28); width: 72%; }
.fs-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
}
.fs-count {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.funnel-stage small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.funnel-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0;
  opacity: 0.6;
}

/* ─── SCENE 03: CHAT ─── */
.scene-chat { justify-content: center; }
.chat-window {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-hi);
}
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(107, 142, 255, 0.3), rgba(167, 139, 250, 0.25));
  border: 1px solid var(--glass-border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.chat-header strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); }
.chat-status {
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 500;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  min-height: 180px;
}
.chat-msg {
  max-width: 78%;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}
.chat-msg.user {
  align-self: flex-end;
  background: rgba(107, 142, 255, 0.22);
  border: 1px solid rgba(107, 142, 255, 0.25);
  border-bottom-right-radius: 4px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--glass-hi);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--glass-hi);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.chat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--glass-border);
}
.chat-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.5rem;
  border-right: 1px solid var(--glass-border);
  gap: 2px;
}
.chat-stat:last-child { border-right: none; }
.chat-stat strong {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}
.chat-stat small { font-size: 0.65rem; color: var(--dim); text-align: center; }

/* ─── SCENE 04: FLOW ─── */
.scene-flow {
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 560px;
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.flow-node {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.fn-trigger { border-color: rgba(107, 142, 255, 0.3); }
.fn-process { border-color: rgba(167, 139, 250, 0.3); }
.fn-output  { border-color: rgba(74, 222, 128, 0.25); }
.fn-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: var(--glass-hi);
}
.flow-arrow {
  color: var(--accent);
  font-size: 1rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ─── SCENE 05: CONTENT GRID ─── */
.scene-content-grid {
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 1rem 0;
}
.content-cal {
  flex: 1;
  min-width: 260px;
  padding: 1.25rem;
}
.cal-header { margin-bottom: 1rem; }
.cal-badge {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(107, 142, 255, 0.18);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(107, 142, 255, 0.25);
}
.cal-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 0.35rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cal-item {
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.ci-ig  { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.25); color: #f472b6; }
.ci-fb  { background: rgba(59, 130, 246, 0.15);  border-color: rgba(59, 130, 246, 0.25); color: #60a5fa; }
.ci-yt  { background: rgba(239, 68, 68, 0.15);   border-color: rgba(239, 68, 68, 0.25); color: #f87171; }
.ci-tt  { background: rgba(20, 184, 166, 0.15);  border-color: rgba(20, 184, 166, 0.25); color: #2dd4bf; }
.ci-empty { background: transparent; }
.cal-footer { font-size: 0.72rem; color: var(--dim); text-align: center; padding-top: 0.75rem; border-top: 1px solid var(--glass-border); }
.content-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 140px;
}
.cm-card {
  padding: 1rem;
  text-align: center;
  border-radius: var(--r-sm);
}
.cm-card small { display: block; font-size: 0.65rem; color: var(--dim); margin-bottom: 0.2rem; }
.cm-card strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── SCENE 06: DASHBOARD ─── */
.scene-dashboard { justify-content: center; }
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-live { color: #4ade80; font-size: 0.72rem; }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--glass-border);
}
.kpi {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--glass-border);
}
.kpi:last-child { border-right: none; }
.kpi small { font-size: 0.65rem; color: var(--dim); }
.kpi-num {
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.kpi-trend {
  font-size: 0.7rem;
  font-weight: 700;
}
.kpi-trend.up { color: #4ade80; }
.kpi-trend.down { color: #f87171; }
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  padding: 1rem 1.25rem 0.5rem;
}
.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(107, 142, 255, 0.25) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 1s var(--ease-out);
}
.chart-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--dim);
  font-weight: 600;
}
.scene-dashboard .glass-card {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

/* ─── STORY PROGRESS ─── */
.story-progress {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 50;
}
.progress-track {
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  overflow: hidden;
}
.progress-fill {
  width: 100%;
  height: 0%;
  background: var(--grad-accent);
  border-radius: 1px;
  transition: height 0.35s var(--ease-out);
}
.progress-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.pdot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(107, 142, 255, 0.7);
  transform: scale(1.3);
}
.pdot:hover:not(.active) {
  border-color: var(--accent);
  background: rgba(107, 142, 255, 0.3);
}

/* ═══════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════ */
.trust-bar {
  padding: clamp(2rem, 4vh, 2.75rem) var(--gutter);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(107,142,255,0.06) 0%, transparent 70%),
    rgba(107, 142, 255, 0.025);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.trust-headline {
  font-family: var(--ff-head);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}
.trust-metrics {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
}
.tm-item {
  text-align: center;
  padding: 0.5rem 0.75rem;
  position: relative;
}
.tm-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--glass-border) 30%, var(--glass-border) 70%, transparent);
}
.tm-num {
  display: block;
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}
.tm-suf {
  font-size: 0.6em;
  font-weight: 700;
  margin-left: 0.05em;
}
.tm-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   SECTION PANELS
═══════════════════════════════════════════ */
.panel {
  background: var(--bg-2);
}

/* ═══════════════════════════════════════════
   PROBLEMS
═══════════════════════════════════════════ */
.section-problems {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 3rem auto 0;
}
.problem-card {
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.problem-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hi);
}
.prob-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.problem-card p { font-size: 0.875rem; }

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
.section-services {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 3rem auto 0;
}
.service-card {
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  cursor: default;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 142, 255, 0.3);
}
.srv-num {
  font-family: var(--ff-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.875rem; }

/* ═══════════════════════════════════════════
   USE CASES
═══════════════════════════════════════════ */
.section-usecases {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
}
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 3rem auto 0;
}
.usecase-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.usecase-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hi);
}
.uc-emoji { font-size: 2rem; display: block; }
.usecase-card h3 { font-size: 1.05rem; }
.usecase-card p { font-size: 0.875rem; }

/* ═══════════════════════════════════════════
   CASAIA
═══════════════════════════════════════════ */
.section-casaia {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
  position: relative;
  background: linear-gradient(135deg,
    rgba(107, 142, 255, 0.06) 0%,
    rgba(167, 139, 250, 0.06) 100%
  );
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.casaia-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.casaia-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.casaia-content {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.casaia-copy h2 {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}
.casaia-copy p {
  margin-bottom: 1.25rem;
  max-width: 480px;
}
.casaia-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.casaia-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.casaia-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.casaia-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cm-stat {
  padding: 1.5rem;
  text-align: center;
}
.cm-stat strong {
  display: block;
  font-family: var(--ff-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.cm-stat small {
  font-size: 0.75rem;
  color: var(--dim);
}

/* ═══════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════ */
.section-process {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
}
.process-track {
  position: relative;
  max-width: 880px;
  margin: 3.5rem auto 0;
  padding-left: 2rem;
}
.process-line {
  position: absolute;
  left: 46px;
  top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet), transparent);
  opacity: 0.4;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.step-content {
  flex: 1;
  padding: 1.5rem;
  margin-top: 0.25rem;
}
.step-content h3 { margin-bottom: 0.4rem; }
.step-content p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   BLOG
═══════════════════════════════════════════ */
.section-blog {
  padding: clamp(4rem, 8vh, 7rem) var(--gutter);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 3rem auto 0;
}
.blog-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  flex: 1;
}
.blog-card p { font-size: 0.85rem; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--dim);
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}
.blog-cta {
  color: var(--accent);
  font-weight: 700;
  transition: color 0.2s;
}
.blog-cta:hover { color: var(--violet); }

/* ═══════════════════════════════════════════
   CTA
═══════════════════════════════════════════ */
.section-cta {
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  background: linear-gradient(135deg,
    rgba(107, 142, 255, 0.1) 0%,
    rgba(167, 139, 250, 0.1) 50%,
    rgba(107, 142, 255, 0.05) 100%
  );
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(107, 142, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 { margin-top: 0.5rem; margin-bottom: 1rem; }
.cta-sub { font-size: clamp(0.95rem, 1.4vw, 1.1rem); margin-bottom: 2.5rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.cta-trust {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-trust span {
  font-size: 0.82rem;
  color: var(--dim);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  padding: clamp(3rem, 5vh, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-3);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.footer-brand .brand-lockup { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; max-width: 320px; }
.footer-links {
  display: flex;
  gap: 4rem;
}
.fl-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fl-col strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.fl-col a {
  font-size: 0.875rem;
  color: var(--dim);
  transition: color 0.2s;
}
.fl-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--dim);
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ═══════════════════════════════════════════
   F1 ADDITIONS — buttons / hotspots / hero CTAs / a11y
═══════════════════════════════════════════ */

/* Buttons grandes + variantes */
.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 0.98rem;
  border-radius: 100px;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5));
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  background: var(--glass);
  border-color: var(--glass-border-hi);
  color: #fff;
}

/* Focus-visible global */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.hotspot:focus-visible,
.pdot:focus-visible {
  outline-offset: 4px;
}

/* HERO CTAs (escena 1) */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-microcopy {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 380px;
}

/* CTA final microcopy */
.cta-microcopy {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ═══════════════════════════════════════════
   NODOS CLICABLES — el icono ES el botón
═══════════════════════════════════════════ */

/* Override: el .net-node ahora es <button>, mantiene posicionamiento */
button.net-node {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  z-index: 4;
}
button.net-node:hover .node-icon,
button.net-node:focus-visible .node-icon {
  transform: scale(1.12);
  box-shadow:
    0 0 0 1px var(--glass-border-hi),
    0 12px 40px rgba(107, 142, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(107, 142, 255, 0.22), rgba(167, 139, 250, 0.18));
}
button.net-node .node-icon {
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background 0.3s ease;
}

/* Label del nodo */
.node-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.node-tagline {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* KPI flotante: aparece al cargar con delay */
.node-kpi {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--ff-head);
  background: linear-gradient(135deg, rgba(107, 142, 255, 0.95), rgba(167, 139, 250, 0.95));
  color: #fff;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(107, 142, 255, 0.45);
  white-space: nowrap;
  opacity: 0;
  animation: kpi-in 0.6s var(--ease-out) forwards;
  pointer-events: none;
}
.node-1 .node-kpi { animation-delay: 0.5s; }
.node-2 .node-kpi { animation-delay: 0.7s; top: auto; bottom: -14px; }
.node-3 .node-kpi { animation-delay: 0.9s; top: auto; bottom: -14px; }
.node-4 .node-kpi { animation-delay: 1.1s; top: auto; bottom: -14px; }
.node-5 .node-kpi { animation-delay: 1.3s; }

@keyframes kpi-in {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-4px) scale(0.85); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Tooltip integrado en el nodo (aparece al hover) */
.node-tip {
  position: absolute;
  top: calc(100% + 38px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 190px;
  max-width: 240px;
  padding: 0.55rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  background: rgba(8, 14, 28, 0.96);
  border: 1px solid var(--glass-border-hi);
  border-radius: var(--r-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
  z-index: 10;
}
.node-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(8, 14, 28, 0.96);
}
button.net-node:hover .node-tip,
button.net-node:focus-visible .node-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Nodos cerca del borde superior: tooltip abajo del label */
.node-1 .node-tip,
.node-2 .node-tip {
  top: auto;
  bottom: calc(100% + 38px);
}
.node-1 .node-tip::before,
.node-2 .node-tip::before {
  bottom: auto;
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: rgba(8, 14, 28, 0.96);
}

/* Partículas */
.net-particle {
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.95));
  opacity: 0.9;
}

/* Hint sutil bajo el hub */
.net-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(8, 14, 28, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}
.hint-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: hint-blink 1.6s ease-in-out infinite;
}
@keyframes hint-blink {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ═══════════════════════════════════════════
   BACK TO HUB (escenas 2-6)
═══════════════════════════════════════════ */
.back-to-hub {
  position: absolute;
  top: calc(var(--topbar-h) + 0.85rem);
  left: var(--gutter);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--ff-head);
  color: var(--muted);
  background: rgba(8, 14, 28, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.back-to-hub:hover,
.back-to-hub:focus-visible {
  color: var(--text);
  border-color: var(--glass-border-hi);
  background: rgba(8, 14, 28, 0.85);
  transform: translateX(-2px);
}

/* ═══════════════════════════════════════════
   CAMERA-ZOOM transición entre escenas
═══════════════════════════════════════════ */
.story-scene {
  transform: scale(0.97);
  transition: opacity 0.7s var(--ease-out),
              visibility 0s linear 0.7s,
              transform 0.7s var(--ease-out);
}
.story-scene.active {
  transform: scale(1);
  transition: opacity 0.7s var(--ease-out),
              visibility 0s,
              transform 0.7s var(--ease-out);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .pulse-slow .node-icon,
  .pulse-mid .node-icon,
  .pulse-fast .node-icon { animation: none; }
  .ambient { animation: none; }
  .net-particle { display: none; }
  .node-kpi { animation: none; opacity: 1; }
  .story-scene { transform: none; }
  .story-scene.active { transform: none; }
}

/* ═══════════════════════════════════════════
   DIAGNÓSTICO — sección entre trust y problemas
═══════════════════════════════════════════ */
.section-diagnostico {
  padding: clamp(4rem, 8vh, 6.5rem) var(--gutter);
  position: relative;
}
.diag-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.diag-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
.diag-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  margin-top: 0.85rem;
  color: var(--muted);
}
.diag-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.diag-chip {
  padding: 1.25rem 1.1rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.diag-chip:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hi);
}
.diag-chip::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad-accent);
  opacity: 0.7;
}
.dc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(107, 142, 255, 0.12);
  border: 1px solid var(--glass-border);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.diag-chip strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.diag-chip small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.diag-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   CASAIA MOCK — composición de 4 ventanas
═══════════════════════════════════════════ */
.casaia-mock {
  position: relative;
  perspective: 1400px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 480px;
  transform-style: preserve-3d;
}
.mock-card {
  position: absolute;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(107, 142, 255, 0.15);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.mock-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.65), 0 8px 24px rgba(167, 139, 250, 0.25);
  z-index: 10;
}

.mock-crm  { top: 0;     left: 0;     width: 64%; transform: rotate(-3deg) translateZ(20px); }
.mock-wa   { top: 35%;   right: 0;    width: 48%; transform: rotate(3deg) translateZ(40px);  }
.mock-cal  { top: 58%;   left: 4%;    width: 44%; transform: rotate(-2deg) translateZ(30px); }
.mock-dash { top: 4%;    right: 6%;   width: 42%; transform: rotate(4deg) translateZ(50px);  }

.mock-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--glass-border);
}
.mock-dots {
  display: inline-flex;
  gap: 4px;
}
.mock-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.mock-dots i:nth-child(1) { background: #f87171; }
.mock-dots i:nth-child(2) { background: #fbbf24; }
.mock-dots i:nth-child(3) { background: #34d399; }
.mock-title {
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mock-disclaimer {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* CRM Kanban */
.crm-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.crm-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.crm-col-head {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.crm-col-2 { color: var(--violet); }
.crm-col-3 { color: #34d399; }
.crm-card {
  padding: 0.45rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.7rem;
  position: relative;
}
.crm-card strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.crm-card small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.crm-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  background: rgba(107, 142, 255, 0.15);
  color: var(--accent);
  letter-spacing: 0.04em;
}
.crm-tag-hot {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}
.crm-tag-won {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}
.crm-card-active {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.25);
}
.crm-card-won {
  border-color: rgba(52, 211, 153, 0.4);
}
.crm-card-ghost {
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
}

/* WhatsApp */
.mock-head-wa { gap: 0.5rem; }
.wa-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
}
.wa-id strong {
  display: block;
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
}
.wa-id small {
  display: block;
  font-size: 0.58rem;
  color: #34d399;
  letter-spacing: 0.05em;
}
.wa-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.25rem 0;
  margin-bottom: 0.6rem;
}
.wa-msg {
  font-size: 0.7rem;
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  max-width: 85%;
}
.wa-msg-in {
  background: rgba(255, 255, 255, 0.07);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.wa-msg-out {
  background: linear-gradient(135deg, rgba(107, 142, 255, 0.25), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(107, 142, 255, 0.3);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  color: var(--text);
}
.wa-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 3px;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.wa-typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: wa-bounce 1.2s ease-in-out infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40%           { transform: scale(1.1); opacity: 1; }
}
.wa-foot {
  display: flex;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}
.wa-stat {
  font-size: 0.6rem;
  color: var(--muted);
}
.wa-stat strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 800;
  font-family: var(--ff-head);
}

/* Calendario mini */
.cal-mini {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}
.cal-mini-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cal-mini-day {
  width: 16px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.cal-pill {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.cp-ig { background: linear-gradient(135deg, #ec4899, #a855f7); color: #fff; }
.cp-fb { background: rgba(59, 130, 246, 0.85); color: #fff; }
.cp-yt { background: rgba(239, 68, 68, 0.85); color: #fff; }
.cp-tt { background: rgba(20, 20, 20, 0.92); color: #fff; border: 1px solid rgba(255,255,255,0.1); }

/* Dashboard mini */
.dash-live-dot {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  color: #34d399;
  letter-spacing: 0.06em;
}
.dash-live-dot i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: hint-blink 1.4s ease-in-out infinite;
}
.dash-mini-kpi {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.dash-mini-kpi strong {
  font-family: var(--ff-head);
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.dash-mini-kpi .kpi-up {
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
}
.dash-mini-spark {
  width: 100%;
  height: 50px;
  margin-bottom: 0.5rem;
}
.dash-mini-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--muted);
  padding-top: 0.45rem;
  border-top: 1px solid var(--glass-border);
}
.dash-mini-foot strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 800;
  font-family: var(--ff-head);
}

/* CTAs Casaia */
.casaia-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.casaia-list { margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE — 1100px
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .casaia-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .casaia-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  .topnav { display: none; }
  .topbar-ctas { margin-left: auto; }
  /* En tablet/mobile, ocultar el botón "Hablar con IA" del topbar para no saturar */
  .topbar-ctas .btn-ghost { display: none; }
  .diag-chips { grid-template-columns: repeat(2, 1fr); }
  .casaia-mock { min-height: 420px; }
  .mock-stage { max-width: 480px; height: 420px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 760px
═══════════════════════════════════════════ */
@media (max-width: 760px) {
  :root { --gutter: 1.25rem; }

  /* Topbar — mantenemos solo "Solicitar diagnóstico" en topbar móvil */
  .topbar-ctas .btn-primary { padding: 0.5rem 1rem; font-size: 0.78rem; }

  /* Scrollstory */
  .story-section { height: 500vh; }
  .story-stage { height: 100svh; }
  .story-scene {
    flex-direction: column;
    padding: calc(var(--topbar-h) + 1rem) var(--gutter) 1rem;
    gap: 1rem;
  }
  .scene-overlay, .scene-overlay-right {
    flex: none;
    width: 100%;
    order: 1;
  }
  .scene-network, .scene-funnel, .scene-chat,
  .scene-flow, .scene-content-grid, .scene-dashboard {
    flex: none;
    order: 2;
    width: 100%;
    height: 230px;
    max-height: 230px;
  }
  /* En móvil mostramos descripción y lista compactas (no display:none) */
  .scene-desc {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    max-width: none;
    -webkit-line-clamp: 3;
  }
  .scene-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
  }
  .scene-list li {
    font-size: 0.72rem;
    padding-left: 0.85rem;
  }
  /* Solo mostramos los primeros 3 bullets para no saturar */
  .scene-list li:nth-child(n+4) { display: none; }
  .story-progress { right: 12px; }
  .progress-track { height: 80px; }
  .scene-copy h1 { font-size: 1.5rem; }
  .scene-copy h2 { font-size: 1.2rem; }
  .hero-microcopy { font-size: 0.78rem; max-width: 100%; }
  .hero-ctas { gap: 0.5rem; }
  .hero-ctas .btn-lg { padding: 0.85rem 1.4rem; font-size: 0.88rem; }

  /* Hotspots — en móvil, los puntos más pequeños y los tooltips siempre arriba con ancho contenido */
  .hotspot { width: 18px; height: 18px; }
  .hot-tip { min-width: 160px; max-width: 200px; font-size: 0.8em; }
  /* Los hotspots quedan dentro del network reducido */

  /* Trust bar — 2x2 grid */
  .trust-metrics { grid-template-columns: repeat(2, 1fr); gap: 0.75rem 0.5rem; }
  .trust-headline { font-size: 0.92rem; margin-bottom: 1.1rem; }
  .tm-num { font-size: 1.4rem; }
  .tm-item:nth-child(2)::after { display: none; }

  /* Network nodos — KPI más pequeño y tooltip oculto en móvil (toque = navegar) */
  .node-kpi { font-size: 0.54rem; padding: 0.18rem 0.45rem; top: -10px; }
  .node-2 .node-kpi, .node-3 .node-kpi, .node-4 .node-kpi { bottom: -10px; }
  .node-tip { display: none; }
  .node-icon { width: 44px !important; height: 44px !important; font-size: 1.1rem !important; }
  .node-center .node-icon { width: 56px !important; height: 56px !important; }
  .node-label { font-size: 0.55rem; }
  .net-hint { font-size: 0.62rem; padding: 0.25rem 0.7rem; bottom: 4px; }

  /* Back to hub */
  .back-to-hub { font-size: 0.7rem; padding: 0.4rem 0.7rem; top: calc(var(--topbar-h) + 0.5rem); }

  /* Diagnóstico chips */
  .diag-chips { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .diag-chip { padding: 0.9rem 0.85rem; }
  .diag-chip strong { font-size: 0.82rem; }
  .diag-chip small { font-size: 0.7rem; }
  .diag-cta { flex-direction: column; align-items: stretch; }
  .diag-cta .btn { justify-content: center; }

  /* Casaia mock — escalado y reorganizado */
  .casaia-mock { min-height: 380px; }
  .mock-stage { height: 380px; max-width: 100%; }
  .mock-card { font-size: 0.72rem; }
  .mock-crm  { width: 70%; }
  .mock-wa   { width: 56%; }
  .mock-cal  { width: 48%; }
  .mock-dash { width: 46%; }
  .mock-disclaimer { font-size: 0.6rem; bottom: -22px; }

  /* Dashboard mobile */
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }

  /* Casaia */
  .casaia-metrics { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-trust { gap: 1rem; flex-direction: column; }

  /* Process */
  .process-track { padding-left: 0.5rem; }
  .process-line { left: 28px; }
  .step-num { width: 44px; height: 44px; font-size: 0.7rem; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
}
