/* =========================================================
   SentryOpen — AI-Native Premium UI
   ========================================================= */

:root {
  /* Color tokens */
  --bg: #060611;
  --bg-2: #0B0B17;
  --bg-3: #11111F;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #ECEEF4;
  --text-2: #B6BCCB;
  --text-3: #7A8092;
  --muted: #5A6075;

  /* Accents */
  --cyan: #00D4FF;
  --cyan-2: #38BDF8;
  --violet: #8B5CF6;
  --violet-2: #A78BFA;
  --pink: #F472B6;
  --gold: #FBBF24;
  --green: #34D399;
  --red: #F87171;

  --grad-1: linear-gradient(120deg, #00D4FF 0%, #8B5CF6 50%, #F472B6 100%);
  --grad-2: linear-gradient(135deg, #00D4FF 0%, #8B5CF6 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.35), transparent 60%);

  /* Type */
  --font-display: 'Montserrat', 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing & radii */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: rgba(0, 212, 255, 0.3); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .55;
  animation: float 22s var(--ease) infinite;
}
.mesh-1 {
  width: 720px; height: 720px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(0, 212, 255, .55), transparent 65%);
}
.mesh-2 {
  width: 640px; height: 640px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 65%);
  animation-duration: 28s;
  animation-delay: -8s;
}
.mesh-3 {
  width: 540px; height: 540px;
  bottom: -180px; left: 35%;
  background: radial-gradient(circle, rgba(244, 114, 182, .35), transparent 65%);
  animation-duration: 34s;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.05); }
  66% { transform: translate(-40px, 50px) scale(.95); }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 50;
  padding: 0 16px;
  transition: transform .3s var(--ease);
}
.nav.hidden { transform: translateY(-120%); }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  background: rgba(11, 11, 23, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.brand {
  display: flex; align-items: center;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(1.05);
  transition: filter .2s;
}
.brand:hover .brand-logo { filter: brightness(1.2); }
/* legacy — unused */
.brand-text span {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex; gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-cta { display: flex; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(0, 212, 255, .12), rgba(139, 92, 246, .12));
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: all .2s var(--ease);
}
.pill:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, .2), rgba(139, 92, 246, .2));
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-1px);
}
.pill-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

/* =========================================================
   HERO — Full-screen centered, word-reveal
   ========================================================= */
/* ---- Video full-screen hero (igual que producción) ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---- ANIMATED BACKGROUND ---- */
.hero-vbg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060611;
}

/* Star canvas */
.star-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Aurora blobs */
.aurora-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: screen;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: auroraFloat 14s ease-in-out infinite;
  will-change: transform, opacity;
}
.aurora-1 {
  width: 70vw; height: 60vh;
  top: -20%; left: -15%;
  background: radial-gradient(ellipse, rgba(0,212,255,.55) 0%, rgba(139,92,246,.3) 50%, transparent 70%);
  animation-duration: 16s;
  animation-delay: 0s;
}
.aurora-2 {
  width: 60vw; height: 55vh;
  top: -10%; right: -10%;
  background: radial-gradient(ellipse, rgba(139,92,246,.5) 0%, rgba(244,114,182,.25) 50%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -5s;
}
.aurora-3 {
  width: 55vw; height: 50vh;
  bottom: -20%; left: 20%;
  background: radial-gradient(ellipse, rgba(0,212,255,.4) 0%, rgba(59,130,246,.3) 50%, transparent 70%);
  animation-duration: 18s;
  animation-delay: -9s;
}
.aurora-4 {
  width: 40vw; height: 40vh;
  top: 30%; right: 5%;
  background: radial-gradient(ellipse, rgba(244,114,182,.35) 0%, rgba(139,92,246,.2) 50%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -13s;
}
@keyframes auroraFloat {
  0%   { opacity: 0;   transform: translate(0, 0) scale(1); }
  15%  { opacity: .9; }
  50%  { opacity: .7;  transform: translate(4%, -5%) scale(1.08); }
  85%  { opacity: .9; }
  100% { opacity: 0;   transform: translate(0, 0) scale(1); }
}

/* Shooting stars */
.shooting-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}
.shooting-star {
  position: absolute;
  top: -4px;
  left: var(--x, 50%);
  width: 3px; height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: shoot 6s linear infinite;
  animation-delay: var(--d, 0s);
  transform-origin: top left;
  transform: rotate(var(--a, 35deg));
}
.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 120px; height: 1.5px;
  background: linear-gradient(to right, rgba(255,255,255,.9), rgba(0,212,255,.4), transparent);
  transform: translateY(-50%) translateX(-100%);
  border-radius: 2px;
}
@keyframes shoot {
  0%   { transform: rotate(var(--a,35deg)) translateX(0);   opacity: 0; }
  5%   { opacity: 1; }
  70%  { opacity: .8; }
  100% { transform: rotate(var(--a,35deg)) translateX(110vw); opacity: 0; }
}

.hero-vbg-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(6,6,17,0) 0%, rgba(6,6,17,.5) 70%),
    linear-gradient(to bottom, rgba(6,6,17,.3) 0%, rgba(6,6,17,0) 40%, rgba(6,6,17,.6) 100%);
}

/* Orbs decorativos sutiles encima del video */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.hero-orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%);
}
.hero-orb-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, .2), transparent 65%);
}

/* Contenido centrado verticalmente sobre el video */
.hero-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 60px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  margin-bottom: 36px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 1.8s infinite;
}

/* H1 word-reveal */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 150px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 900;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: .08em;
}

.h1-line {
  display: block;
  overflow: visible;
  line-height: 1.05;
  padding-bottom: 0.04em;
}

.h1-sub-line {
  font-size: clamp(28px, 4.5vw, 58px);
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--text-2);
  margin-top: .2em;
}

/* word by word */
.hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%);
  will-change: transform, opacity;
}
.hw.revealed {
  animation: wordIn .7s var(--ease-spring) forwards;
}
.hw-space { display: inline-block; width: .25em; opacity: 1; transform: none; }

@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

.hw-sep {
  color: var(--cyan);
  opacity: .5;
  font-weight: 300;
  font-size: .7em;
}
.hw-grad {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}
.hw-light { color: var(--text-2); }

.grad {
  background: var(--grad-1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* hero-anim: fade+slide up with delay var */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp .7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

/* keyword pills */
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}
.kpill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  letter-spacing: .04em;
}

.hero-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--text-3);
}
.trust-stars { display: flex; gap: 2px; color: var(--gold); }
.trust-stars svg { width: 14px; height: 14px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 8px 28px rgba(0,212,255,.2);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-1);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(139,92,246,.45); }
.btn-primary:hover::before { opacity: 1; }

.btn-glow {
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 28px rgba(139,92,246,.35), 0 0 60px rgba(0,212,255,.12);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.hero-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--text-3);
}
.trust-stars { display: flex; gap: 2px; color: var(--gold); }
.trust-stars svg { width: 14px; height: 14px; }

/* =========================================================
   TERMINAL
   ========================================================= */
.terminal {
  background: linear-gradient(170deg, rgba(20, 20, 35, .95), rgba(11, 11, 23, .9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(0, 212, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .5s var(--ease);
}
.terminal:hover { transform: translateY(-3px); }

.terminal::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-1);
  border-radius: var(--r-lg);
  z-index: -1;
  opacity: .35;
  filter: blur(20px);
}

.terminal-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid var(--border);
}
.t-dots { display: flex; gap: 6px; }
.t-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, .15);
}
.t-dots i:nth-child(1) { background: #ff5f57; }
.t-dots i:nth-child(2) { background: #febc2e; }
.t-dots i:nth-child(3) { background: #28c840; }

.t-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-3); margin: 0 auto;
}
.t-title svg {
  width: 12px; height: 12px;
  color: var(--cyan);
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.t-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green);
}
.t-pulse {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}

.terminal-body {
  padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 80px;
  overflow: hidden;
  position: relative;
}

.term-line {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  opacity: 0;
  animation: termFade .4s var(--ease) forwards;
}
.term-line.user { color: var(--cyan-2); }
.term-line.tool { color: var(--violet-2); }
.term-line.assistant { color: var(--text); }
.term-line.success { color: var(--green); }
.term-line.system { color: var(--text-3); }

.term-line .term-tag {
  flex-shrink: 0;
  font-weight: 700;
  opacity: .8;
}

@keyframes termFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-foot {
  padding: 12px 16px;
  background: rgba(0, 0, 0, .3);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.t-input {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px;
  flex: 1;
  min-width: 0;
}
.t-prompt { color: var(--cyan); }
.t-typing { color: var(--text); white-space: nowrap; overflow: hidden; }
.t-caret {
  width: 8px; height: 14px;
  background: var(--cyan);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.t-tools {
  display: flex; gap: 6px; flex-shrink: 0;
}
.t-tool {
  font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 4px;
}
.t-tool i {
  font-style: normal;
  color: var(--cyan);
  font-weight: 700;
}

/* Chips (demo lateral) */
.chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(11, 11, 23, .9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.chip svg { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chip-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.chip-dot.ai { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* =========================================================
   VIDEO SHOWCASE
   ========================================================= */
.vid-showcase {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
/* Fondo distintivo */
.vid-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(139,92,246,.07), transparent 70%);
  pointer-events: none;
}

.vid-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(139,92,246,.15);
  background: var(--bg-3);
  margin-bottom: 32px;
}

.vid-glow {
  position: absolute;
  inset: -2px;
  background: var(--grad-1);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: .4;
  filter: blur(30px);
}

/* Agent demo layout — proporción 55/45 */
.agent-demo-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.agent-frame {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,212,255,.08);
}
.agent-frame .terminal {
  transform: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.agent-frame .terminal-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow: hidden;
}

/* ---- FLOW ANIMATION PANEL — rediseñado ---- */
.flow-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.flow-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 1.5s infinite;
}

/* Nodo */
.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.flow-node.active {
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Shimmer sweep cuando activo */
.flow-node::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
  transform: translateX(-100%);
}
.flow-node.active::before {
  animation: nodeSweep .6s var(--ease) forwards;
}
@keyframes nodeSweep {
  to { transform: translateX(100%); }
}

.flow-node.active {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.flow-node--wa.active     { border-color: rgba(37,211,102,.4); }
.flow-node--agent.active  { border-color: rgba(139,92,246,.4); }
.flow-node--odoo.active   { border-color: rgba(0,212,255,.4); }

/* Icono del nodo — más grande */
.flow-node-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all .35s var(--ease);
}
.flow-node-icon svg { width: 22px; height: 22px; }
.flow-node--wa.active .flow-node-icon     { background: rgba(37,211,102,.15); border-color: rgba(37,211,102,.45); color: #25D366; box-shadow: 0 0 18px rgba(37,211,102,.25); }
.flow-node--agent.active .flow-node-icon  { background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.45); color: var(--violet-2); box-shadow: 0 0 18px rgba(139,92,246,.25); }
.flow-node--odoo.active .flow-node-icon   { background: rgba(0,212,255,.15);  border-color: rgba(0,212,255,.45);  color: var(--cyan); box-shadow: 0 0 18px rgba(0,212,255,.25); }

/* Body del nodo */
.flow-node-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-node-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
}
.flow-node-msg {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 190px;
}

/* Status badge */
.flow-node-status {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  flex-shrink: 0;
}
.flow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  transition: background .3s, box-shadow .3s;
}
.flow-node--wa.active .flow-dot     { background: #25D366; box-shadow: 0 0 8px #25D366; animation: pulse 1.5s infinite; }
.flow-node--agent.active .flow-dot  { background: var(--violet); box-shadow: 0 0 8px var(--violet); animation: pulse 1.5s infinite; }
.flow-node--odoo.active .flow-dot   { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.5s infinite; }
.flow-node-tag { transition: color .3s; }
.flow-node--wa.active .flow-node-tag     { color: #25D366; }
.flow-node--agent.active .flow-node-tag  { color: var(--violet-2); }
.flow-node--odoo.active .flow-node-tag   { color: var(--cyan); }

/* Conector entre nodos */
.flow-connector {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
.flow-line {
  position: absolute;
  left: 23px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  transition: background .4s;
}
.flow-connector.sending .flow-line {
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
}
.flow-connector-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: .08em;
  background: var(--bg-2);
  padding: 2px 10px 2px 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  z-index: 1;
}
/* Paquete de datos viajando */
.flow-packet {
  position: absolute;
  left: 20px;
  top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateY(-50%);
  opacity: 0;
}
.flow-connector.sending .flow-packet {
  animation: packetTravel .6s var(--ease) forwards;
}
@keyframes packetTravel {
  0%   { top: 0%;   opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- CRM CARD ---- */
.crm-card {
  margin-top: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(139,92,246,.06));
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--r-lg);
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.crm-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.crm-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.crm-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-2);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.crm-header-info {
  display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0;
}
.crm-name { font-size: 14px; font-weight: 700; }
.crm-company { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.crm-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(0,212,255,.12);
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 999px;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pipeline */
.crm-pipeline {
  display: flex; gap: 6px;
  margin-bottom: 12px;
}
.crm-stage-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.crm-stage-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  transition: background .4s;
}
.crm-stage-wrap span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  white-space: nowrap;
}
.crm-stage-wrap--done .crm-stage-bar   { background: rgba(0,212,255,.45); }
.crm-stage-wrap--done span             { color: var(--cyan); }
.crm-stage-wrap--active .crm-stage-bar { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: stagePulse 1.5s infinite; }
.crm-stage-wrap--active span           { color: var(--cyan); font-weight: 700; }
@keyframes stagePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}

/* Detalles */
.crm-details { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.crm-detail {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2);
}
.crm-detail svg { width: 13px; height: 13px; color: var(--cyan); flex-shrink: 0; }

/* Footer */
.crm-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.crm-id { font-family: var(--font-mono); font-size: 11px; color: var(--violet-2); }
.crm-ts { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }

/* Footer del flow */
.flow-footer {
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--text-3);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.flow-footer strong { color: var(--text); }
.flow-footer .flow-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 1.5s infinite; }

.vid-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(6, 6, 17, .85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}
.vid-badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}

.vid-cta {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.vid-cta p {
  color: var(--text-2);
  font-size: 17px;
}

/* =========================================================
   STRIP / MARQUEE
   ========================================================= */
.strip {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, .25);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.strip-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.strip-inner {
  display: flex; gap: 30px; align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-3);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.strip-inner span:nth-child(odd) {
  color: var(--text);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   METRICS
   ========================================================= */
.metrics {
  padding: 80px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Metric card — horizontal layout con icono + body + bar */
.metric {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease);
  cursor: default;
}

/* Glow accent al hover */
.metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .12), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.metric::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(var(--accent-rgb), .7);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.metric.counted::after { transform: scaleX(1); }
.metric:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-4px); }
.metric:hover::before { opacity: 1; }

/* Icono */
.metric-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), .1);
  border: 1px solid rgba(var(--accent-rgb), .25);
  color: var(--accent, var(--cyan));
  flex-shrink: 0;
}
.metric-icon svg { width: 20px; height: 20px; }

/* Body */
.metric-body { display: flex; flex-direction: column; gap: 4px; }

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--accent, var(--cyan));
  line-height: 1;
}
.metric-suffix {
  font-size: .65em;
  font-weight: 700;
  color: var(--accent, var(--cyan));
  opacity: .85;
}
.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.metric-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 2px;
}

/* Barra de progreso */
.metric-bar {
  height: 3px;
  background: rgba(var(--accent-rgb), .12);
  border-radius: 999px;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  width: 0;
  background: rgba(var(--accent-rgb), .7);
  border-radius: 999px;
  transition: width 1.4s var(--ease);
  --pct: 70%;
}
.metric.counted .metric-bar-fill { width: var(--pct); }

/* =========================================================
   SECTION HEADERS
   ========================================================= */
.section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .25em;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 999px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
}

/* =========================================================
   BENTO
   ========================================================= */
.bento-section { padding: 100px 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

/* Stagger reveal vía CSS delay */
.bento-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* stagger */
  opacity: 0;
  transform: translateY(24px);
}
.bento-card.in {
  animation: bentoPop .6s var(--ease-spring) var(--card-delay, 0s) forwards;
}
@keyframes bentoPop {
  to { opacity: 1; transform: translateY(0); }
}

/* Spotlight follow cursor */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, .09), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 0;
}

/* Gradient top border on hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-1);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.bento-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  background: var(--surface-2);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after  { transform: scaleX(1); }

/* Numbered badge */
.bento-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .05em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  line-height: 1.6;
}

/* Layout 3 servicios + banner ancho */
.bento-3col {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}
.bento-service { /* igual altura entre las 3 */ }
.bento-full    { grid-column: 1 / -1; }

/* Legado — mantener por si hay referencias */
.bento-hero { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }

/* Make children sit above pseudo-elements */
.bento-card > *:not(.bento-num) { position: relative; z-index: 1; }

.bento-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-icon.ai { background: linear-gradient(135deg, rgba(0, 212, 255, .15), rgba(139, 92, 246, .15)); border-color: rgba(139, 92, 246, .3); color: var(--violet-2); }
.bento-icon.flow { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); color: var(--cyan); }
.bento-icon.odoo { background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .3); color: var(--violet-2); }
.bento-icon.web { background: rgba(244, 114, 182, .12); border-color: rgba(244, 114, 182, .3); color: var(--pink); }
.bento-icon.sec { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: var(--green); }
.bento-icon.data { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); color: var(--gold); }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Servicio card layout */
.bento-service { gap: 0; }
.bento-service-content { flex: 1; display: flex; flex-direction: column; }

/* Bullets dentro del servicio */
.bento-bullets {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
  list-style: none;
}
.bento-bullets li {
  font-size: 14px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.bento-bullets li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-card, var(--cyan));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-card, var(--cyan));
}

/* CTA dentro de la card */
.bento-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 14px; font-weight: 600;
  color: var(--accent-card, var(--cyan));
  transition: gap .25s var(--ease);
}
.bento-cta:hover { gap: 10px; }
.bento-cta svg { width: 14px; height: 14px; }

/* Card ancha — todo conectado */
.bento-full {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, rgba(0,212,255,.06), rgba(139,92,246,.06));
  border-color: rgba(0,212,255,.15);
  flex-wrap: wrap;
}
.bento-full-content {
  display: flex; align-items: flex-start; gap: 16px;
  flex: 1; min-width: 280px;
}
.bento-full-content h3 { font-size: 20px; margin-bottom: 6px; }
.bento-full-content p  { font-size: 14px; color: var(--text-2); max-width: 480px; }
.bento-full-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-self: center;
}
.bento-full-tags span {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
}

.bento-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
}
.bento-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
}

/* ---- MINI WORKFLOW (Automatización) ---- */
.mini-flow {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px;
}
.mf-node {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.mf-trigger { background: rgba(0,212,255,.12); border: 1px solid rgba(0,212,255,.3); color: var(--cyan); }
.mf-process { background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.35); color: var(--violet-2); animation: mfPulse 2s infinite; }
.mf-action  { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: var(--green); }
@keyframes mfPulse {
  0%,100% { box-shadow: 0 0 0 rgba(139,92,246,0); }
  50%      { box-shadow: 0 0 12px rgba(139,92,246,.5); }
}
.mf-arrow {
  flex: 1; height: 1px; background: var(--border); position: relative; min-width: 14px;
}
.mf-arrow i {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%; transform: translateY(-50%);
  animation: arrowTravel 1.8s linear infinite;
  box-shadow: 0 0 6px var(--cyan);
}
@keyframes arrowTravel {
  from { left: 0; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  to   { left: 100%; opacity: 0; }
}

/* ---- MINI ODOO MODULES ---- */
.mini-odoo {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px;
}
.mo-mod {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-3);
  animation: moLight 4s calc(var(--i) * .8s) ease-in-out infinite;
}
@keyframes moLight {
  0%,60%,100% { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }
  30%          { background: rgba(167,139,250,.18); border-color: rgba(167,139,250,.45); color: var(--violet-2); box-shadow: 0 0 10px rgba(167,139,250,.25); }
}

/* ---- MINI SPEED BARS (Web) ---- */
.mini-speed {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.ms-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
}
.ms-row > span:first-child { width: 65px; flex-shrink: 0; }
.ms-row > span:last-child   { width: 22px; text-align: right; color: var(--text-2); font-weight: 700; }
.ms-bar {
  flex: 1; height: 5px;
  background: var(--surface-2);
  border-radius: 999px; overflow: hidden;
}
.ms-fill {
  height: 100%; width: 0;
  background: var(--c, var(--cyan));
  border-radius: 999px;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 8px var(--c, var(--cyan));
}
.bento-card.in .ms-fill { width: var(--w, 80%); }

/* ---- MINI INTEGRATIONS (Hub) ---- */
.mini-integrations {
  display: flex; align-items: center; gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mi-dot {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  animation: miPulse 3s calc(var(--d)) ease-in-out infinite;
}
@keyframes miPulse {
  0%,70%,100% { border-color: var(--border); color: var(--text-3); }
  35%          { border-color: rgba(52,211,153,.5); color: var(--green); box-shadow: 0 0 8px rgba(52,211,153,.3); }
}
.mi-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(52,211,153,.4), var(--border));
  min-width: 12px;
  animation: miLine 3s ease-in-out infinite;
}
@keyframes miLine {
  0%,100% { opacity: .3; }
  50%      { opacity: 1; }
}
.mi-center {
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(139,92,246,.15));
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 8px;
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(0,212,255,.2);
}
.mi-top, .mi-bot {
  position: relative;
}

/* ---- MINI BAR CHART (Datos) ---- */
.mini-chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 44px;
  margin-top: 16px;
  padding: 0 2px;
}
.mc-bar {
  flex: 1;
  height: 0;
  background: var(--c, var(--violet));
  border-radius: 4px 4px 0 0;
  opacity: .7;
  transition: height 1s calc(var(--d)) var(--ease);
}
.bento-card.in .mc-bar { height: var(--h, 50%); }

/* ---- BENTO ART (chat) ---- */
.bento-art {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
  max-width: 420px;
}
.msg {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 75%;
}
.msg-user {
  background: var(--surface-2);
  border: 1px solid var(--border);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  background: linear-gradient(135deg, rgba(0, 212, 255, .15), rgba(139, 92, 246, .15));
  border: 1px solid rgba(139, 92, 246, .3);
  border-bottom-left-radius: 4px;
}
.msg-bot.delayed {
  animation: msgFadeIn .5s 1.2s var(--ease) both;
}
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(10px); } }

.dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.dots i {
  width: 6px; height: 6px;
  background: var(--text-2);
  border-radius: 50%;
  animation: dotJump 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotJump {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* =========================================================
   PROCESS / STEPS
   ========================================================= */
.process {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

/* Barra de progreso superior */
.process-track {
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 48px;
  overflow: hidden;
}
.process-track-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink), var(--gold));
  border-radius: 999px;
  transition: width 1.8s var(--ease);
}
.process.in-view .process-track-fill { width: 100%; }

/* Grid de pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  position: relative;
}


.step {
  position: relative;
  padding: 0 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .35s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--step-color, var(--cyan));
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity .3s, transform .5s var(--ease);
}
.step:hover {
  border-color: color-mix(in srgb, var(--step-color, var(--cyan)) 40%, transparent);
  background: var(--surface-2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.step:hover::before { opacity: 1; transform: scaleX(1); }

/* Círculo con ícono */
.step-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: grid; place-items: center;
  margin: -1px auto 0;
  position: relative;
  z-index: 1;
  margin-top: 28px;
  margin-bottom: 4px;
  transition: all .35s var(--ease);
  color: var(--step-color, var(--cyan));
}
.step-circle svg { width: 22px; height: 22px; }

/* Anillo pulsante */
.step-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--step-color, var(--cyan));
  opacity: 0;
  transition: opacity .3s;
  animation: ringPulse 2s ease-in-out infinite;
}
.step:hover .step-circle {
  background: color-mix(in srgb, var(--step-color, var(--cyan)) 15%, transparent);
  border-color: var(--step-color, var(--cyan));
  box-shadow: 0 0 20px color-mix(in srgb, var(--step-color) 40%, transparent);
}
.step:hover .step-ring { opacity: 1; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1);   opacity: .6; }
  50%       { transform: scale(1.2); opacity: 0; }
}

/* Semana tag */
.step-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--step-color, var(--cyan));
  text-align: center;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
  line-height: 1.25;
}
.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  text-align: center;
  flex: 1;
}

/* Badge inferior */
.step-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--step-color, var(--cyan)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-color, var(--cyan)) 30%, transparent);
  color: var(--step-color, var(--cyan));
  border-radius: 999px;
  text-align: center;
  align-self: center;
}

/* =========================================================
   CASES
   ========================================================= */
.cases {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* Base card */
.case-card {
  position: relative;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

/* Color bar top */
.case-top-bar {
  height: 3px;
  width: 100%;
}
.case-card--green { border-color: rgba(52,211,153,.2); }
.case-card--green:hover { border-color: rgba(52,211,153,.4); }
.case-card--green .case-top-bar { background: linear-gradient(90deg, #34D399, #059669); }

.case-card--violet { border-color: rgba(139,92,246,.2); }
.case-card--violet:hover { border-color: rgba(139,92,246,.4); }
.case-card--violet .case-top-bar { background: linear-gradient(90deg, var(--violet), var(--violet-2)); }

/* Inner padding */
.case-card > *:not(.case-top-bar):not(.case-cta-content) {
  padding-left: 28px;
  padding-right: 28px;
}
.case-card > .case-meta { padding-top: 24px; }
.case-card > .case-footer { padding-bottom: 24px; }

/* Meta row */
.case-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.case-category {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.case-category svg { width: 12px; height: 12px; flex-shrink: 0; }

.case-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--green);
}
.case-live i {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green); animation: pulse 1.5s infinite;
}

/* Título */
.case-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Descripción */
.case-card > p {
  color: var(--text-2);
  font-size: 14px; line-height: 1.65;
  margin-bottom: 16px;
}

/* Quote */
.case-quote {
  font-size: 14px;
  font-style: italic;
  color: var(--text-2);
  border-left: 2px solid var(--border-2);
  padding: 8px 12px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.02);
  border-radius: 0 6px 6px 0;
}
.case-card--green .case-quote { border-left-color: rgba(52,211,153,.5); }
.case-card--violet .case-quote { border-left-color: rgba(139,92,246,.5); }
.case-quote cite {
  display: block; margin-top: 4px;
  font-style: normal; font-size: 11px;
  color: var(--text-3); font-family: var(--font-mono);
}

/* Stats */
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.case-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 14px 8px;
  background: var(--bg-2);
  text-align: center;
}
.case-stat svg { width: 14px; height: 14px; color: var(--text-3); margin-bottom: 2px; }
.case-card--green .case-stat svg  { color: rgba(52,211,153,.7); }
.case-card--violet .case-stat svg { color: rgba(139,92,246,.7); }
.case-stat strong {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -.03em; line-height: 1;
}
.case-card--green .case-stat strong  { color: #34D399; }
.case-card--violet .case-stat strong { color: var(--violet-2); }
.case-stat span { font-size: 11px; color: var(--text-3); line-height: 1.3; }

/* Footer */
.case-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 6px;
}
.case-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  transition: gap .25s var(--ease);
}
.case-link svg { width: 14px; height: 14px; }
.case-link:hover { gap: 10px; }
.case-link--green  { color: #34D399; }
.case-link--violet { color: var(--violet-2); }
.case-tech {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-3);
  letter-spacing: .06em;
}

/* CTA card — tercera columna */
.case-card--cta {
  background: linear-gradient(145deg, rgba(0,212,255,.06), rgba(139,92,246,.08));
  border-color: rgba(0,212,255,.15);
  display: flex; align-items: stretch;
}
.case-cta-content {
  display: flex; flex-direction: column;
  padding: 36px 28px;
  gap: 12px;
  width: 100%;
}
.case-cta-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(139,92,246,.15));
  border: 1px solid rgba(0,212,255,.3);
  border-radius: 12px;
  color: var(--cyan);
}
.case-cta-icon svg { width: 22px; height: 22px; }
.case-cta-content h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2;
  margin: 0;
}
.case-cta-content p {
  color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 0;
}
.case-cta-meta {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.case-cta-meta span {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.dot-green {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

/* =========================================================
   STACK
   ========================================================= */
.stack {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stack-cat {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .3s var(--ease);
}
.stack-cat:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.stack-cat h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* Tech pills con logo */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: default;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.tech-pill:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--border-2);
  color: var(--text);
  transform: translateY(-1px);
}
.tech-pill img {
  width: 14px; height: 14px;
  object-fit: contain;
  opacity: .75;
  flex-shrink: 0;
}
.tech-pill:hover img { opacity: 1; }
.tech-pill svg { flex-shrink: 0; opacity: .7; }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: 100px 0; }

.cta-card {
  position: relative;
  padding: 80px 60px;
  background: linear-gradient(160deg, rgba(15, 15, 30, .9), rgba(8, 8, 18, .9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-align: center;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-1);
  border-radius: var(--r-xl);
  z-index: -1;
  opacity: .5;
  filter: blur(40px);
}

.cta-orb {
  position: absolute;
  width: 500px; height: 500px;
  top: -250px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 212, 255, .25), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-content { position: relative; max-width: 720px; margin: 0 auto; }
.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 16px 0 18px;
}
.cta-content p {
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-meta {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-3);
}
.cta-meta > div { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.dot.ok { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, .25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: 14px;
  margin: 14px 0 18px;
  max-width: 280px;
}
.footer-social {
  display: flex; gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-2);
  transition: all .25s var(--ease);
}
.footer-social a:hover {
  background: var(--surface-2);
  color: var(--cyan);
  border-color: rgba(0, 212, 255, .3);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-col h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col li {
  color: var(--text-2);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal {
  display: flex; align-items: center; gap: 8px;
}
.footer-legal a {
  color: var(--text-3);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--text); }
.footer-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
}
.footer-status i {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite;
}

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  transition: all .3s var(--ease);
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(37, 211, 102, .5);
}
.wa-float svg { width: 22px; height: 22px; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .mesh, .strip-track { animation: none; }
}

/* =========================================================
   PERFORMANCE — content-visibility for below-the-fold sections
   Browser skips render+paint until section approaches viewport
   ========================================================= */
.metrics, .vid-showcase, .bento-section, .process, .cases, .stack, .cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .agent-demo-wrap { grid-template-columns: 1fr; }
  .flow-panel { max-width: 600px; margin: 0 auto; }
  .bento-3col { grid-template-columns: repeat(2, 1fr); }
  .bento-full { flex-direction: column; gap: 20px; }
  .bento-hero { grid-column: span 2; grid-row: auto; }
  .bento-wide { grid-column: span 2; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::after { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---- Tablet intermedio (768px) ---- */
@media (max-width: 768px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-card--cta { grid-column: auto; }
}

/* ---- Mobile (640px) ---- */
@media (max-width: 640px) {
  /* Hero — ocupa pantalla completa y centrado */
  .hero { height: 100svh; min-height: 600px; }
  .hero-center { padding: 90px 18px 40px; gap: 0; }

  /* Nav mobile */
  .nav-cta { display: none; }
  .nav-inner { padding: 8px 12px 8px 16px; }
  .brand-logo { height: 30px; }
  .nav-burger { display: flex; margin-left: auto; }

  /* Eyebrow — no quebrar en dos líneas */
  .eyebrow { font-size: 11px; padding: 5px 12px 5px 10px; text-align: center; }

  /* H1 — más pequeño y compacto */
  .hero-title {
    font-size: clamp(34px, 11vw, 52px);
    gap: .06em;
    margin-bottom: 16px;
  }
  .h1-line { line-height: 1.05; }
  .h1-sub-line {
    font-size: clamp(16px, 5vw, 24px);
    margin-top: .15em;
  }

  /* Subtítulo */
  .hero-sub { font-size: 14px; margin-bottom: 22px; line-height: 1.55; }

  /* CTAs — columna centrada */
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
  }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Pills — scroll horizontal, no wrap */
  .hero-pills {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start;
    max-width: 100%;
    mask-image: linear-gradient(to right, #000 80%, transparent);
  }
  .kpill { font-size: 10px; padding: 4px 10px; flex-shrink: 0; }

  /* Trust */
  .hero-trust { font-size: 11px; flex-wrap: wrap; justify-content: center; gap: 6px; }

  /* Bento */
  .bento-3col { grid-template-columns: 1fr; }
  .bento-hero, .bento-wide { grid-column: auto; }
  .bento-full { flex-direction: column; }

  /* Métricas */
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 18px; }
  .metric-desc { display: none; }

  /* Stack */
  .stack-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tech-pill { font-size: 11px; padding: 5px 9px; }
  .tech-pill img { width: 12px; height: 12px; }

  /* Pasos */
  .steps { grid-template-columns: 1fr; }
  .process-track { display: none; }

  /* Casos */
  .case-grid { grid-template-columns: 1fr; }
  .case-card--cta { grid-column: auto; }
  .case-cta-content { flex-direction: column; }

  /* Demo agente — en mobile oculto el flow panel, terminal altura fija */
  .agent-demo-wrap { grid-template-columns: 1fr; }
  .flow-panel { display: none; }
  .agent-frame { height: 300px; }
  .agent-frame .terminal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  /* Nav mobile — solo logo + burger */
  .nav-cta { display: none; }
  .nav-inner { padding: 8px 12px 8px 16px; gap: 0; }
  .brand-logo { height: 32px; }
  .nav-burger { display: flex; margin-left: auto; }

  /* CTA */
  .cta-card { padding: 40px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Misc */
  .scroll-hint { display: none; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }

  /* Section titles más compactos */
  .section-title { letter-spacing: -.025em; }
}

/* =========================================================
   BLOG STRIP — Internal linking homepage
   ========================================================= */
.blog-strip {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.blog-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-strip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.blog-strip-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.blog-strip-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
}
.blog-strip-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.blog-strip-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  flex: 1;
}
.blog-strip-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  margin-top: 4px;
  transition: letter-spacing .2s;
}
.blog-strip-card:hover .blog-strip-link { letter-spacing: .03em; }

@media (max-width: 768px) {
  .blog-strip-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .blog-strip { padding: 50px 0; }
}
