/* ============================================================
   Brain — Dark Tech Design System
   Paleta: Azul Royal (#2563EB) sobre fondo oscuro (#070c14)
   Compatibilidad: mantiene variables usadas por chat-widget.css
   ============================================================ */

/* ── FUENTES ─────────────────────────────────────────────── */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;
}

/* ── TOKENS DE COLOR ──────────────────────────────────────── */
:root {
  /* Fondos */
  --background-color: #070c14;
  --bg-elevated:      #0b1221;
  --bg-footer:        #050810;

  /* Marca azul (basada en logo) */
  --accent-color:     #2563EB;   /* usado por chat-widget.css */
  --accent-secondary: #1D4ED8;
  --accent-light:     #3B82F6;
  --accent-glow:      rgba(37, 99, 235, 0.35);
  --accent-border:    rgba(37, 99, 235, 0.25);
  --accent-bg:        rgba(37, 99, 235, 0.08);
  --accent-bg-hover:  rgba(37, 99, 235, 0.12);

  /* Superficies */
  --surface-color: #0f1929;    /* usado por chat-widget.css */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(37, 99, 235, 0.3);

  /* Texto */
  --default-color:  rgba(255, 255, 255, 0.80); /* chat-widget.css */
  --heading-color:  #f9fafb;
  --contrast-color: #ffffff;                   /* chat-widget.css */
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;
  --text-disabled:  #374151;

  /* Nav */
  --nav-color:                      rgba(255, 255, 255, 0.80);
  --nav-hover-color:                #3B82F6;
  --nav-mobile-background-color:    #0b1221;
  --nav-dropdown-background-color:  #0b1221;
  --nav-dropdown-color:             rgba(255, 255, 255, 0.80);
  --nav-dropdown-hover-color:       #3B82F6;
}

/* ── RESET / BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root { scroll-behavior: smooth; }

body {
  font-family: var(--default-font);
  background-color: var(--background-color);
  color: var(--default-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-color); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-weight: 900;
}

img { max-width: 100%; }

section { padding: 100px 0; }

/* ── SHARED SECTION HEADER ────────────────────────────────── */
.section-label {
  display: block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900; letter-spacing: -1.5px;
  color: var(--heading-color); line-height: 1.1;
  margin-bottom: 14px;
}

.section-title .accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 16px; color: var(--text-muted); line-height: 1.6;
}

/* ── PRELOADER ────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--background-color);
  display: flex; align-items: center; justify-content: center;
}

#preloader:after {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-color);
  animation: spin .8s linear infinite;
}

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

/* ── SCROLL TOP ───────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 90px; right: 20px; z-index: 99998;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-color);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, box-shadow .2s;
  box-shadow: 0 0 20px var(--accent-glow);
}

.scroll-top.active { opacity: 1; pointer-events: auto; }
.scroll-top:hover { box-shadow: 0 0 30px var(--accent-glow); }

/* ── HEADER / NAV ─────────────────────────────────────────── */
#header {
  background: rgba(7, 12, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  z-index: 9997;
  transition: background .3s;
}

#header .logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}

#header .logo h1.sitename {
  display: none;
}

.navmenu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }

.navmenu a {
  font-size: 14px; font-weight: 500;
  color: var(--nav-color);
  transition: color .2s;
  padding: 4px 0;
  position: relative;
}

.navmenu a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--accent-color);
  transform: scaleX(0); transition: transform .2s;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--heading-color);
}

.navmenu a:hover::after,
.navmenu a.active::after { transform: scaleX(1); }

.btn-getstarted {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  color: #fff !important; border: none; border-radius: 8px;
  padding: 9px 20px; font-size: 13px; font-weight: 600;
  transition: box-shadow .2s, opacity .2s;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-getstarted:hover { opacity: .9; box-shadow: 0 0 30px var(--accent-glow); }

/* Mobile nav */
.mobile-nav-toggle {
  display: none;
  font-size: 24px; color: var(--heading-color);
  cursor: pointer; line-height: 1;
}

@media (max-width: 1200px) {
  .mobile-nav-toggle { display: block; }
  .navmenu { display: none; }
  .navmenu.mobile-nav-active { display: block; }

  .navmenu ul {
    flex-direction: column; gap: 0;
    background: var(--nav-mobile-background-color);
    border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 12px 0;
    position: absolute; top: 72px; right: 16px; left: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
  }

  .navmenu ul li a {
    display: block; padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .navmenu ul li:last-child a { border-bottom: none; }
}

body.mobile-nav-active .mobile-nav-toggle .bi-list { display: none; }
body.mobile-nav-active .mobile-nav-toggle .bi-x { display: block; }
body:not(.mobile-nav-active) .mobile-nav-toggle .bi-x { display: none; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--background-color);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}

/* Mesh gradient blobs */
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .14; pointer-events: none;
}
.hero-blob-1 { width: 600px; height: 600px; background: var(--accent-color); top: -200px; right: -100px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--accent-secondary); bottom: -100px; left: 200px; }
.hero-blob-3 { width: 300px; height: 300px; background: #0EA5E9; top: 200px; right: 300px; opacity: .07; }

/* Grid overlay */
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero .container { position: relative; z-index: 2; }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 5px 14px 5px 8px; margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-color); box-shadow: 0 0 8px var(--accent-color);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-badge span { font-size: 12px; font-weight: 600; color: var(--accent-light); letter-spacing: .5px; }

/* Title */
.hero-title {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; color: var(--heading-color);
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light), #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 36px; max-width: 460px;
}

/* CTAs */
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  color: #fff; border: none; border-radius: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 30px var(--accent-glow);
  transition: box-shadow .2s, transform .2s;
}

.btn-hero-primary:hover { color: #fff; box-shadow: 0 0 50px var(--accent-glow); transform: translateY(-1px); }

.btn-hero-secondary {
  background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-secondary); border-radius: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s;
}

.btn-hero-secondary:hover { border-color: rgba(255,255,255,.3); color: var(--heading-color); }

/* Stats */
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
  font-size: 28px; font-weight: 800;
  color: var(--heading-color); letter-spacing: -1px;
}

.hero-stat-value span { color: var(--accent-light); }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* Dashboard card (right column) */
.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  position: relative;
}

.hero-card-title { font-size: 13px; font-weight: 600; color: var(--heading-color); }

.hero-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; color: #4ade80;
}

.hero-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }

.hero-flow-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}

.hero-flow-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

.hero-flow-name { font-size: 12px; font-weight: 600; color: var(--heading-color); }
.hero-flow-desc { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.hero-flow-status {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: auto;
}
.s-active  { background: rgba(34,197,94,.1);  color: #4ade80; }
.s-running { background: var(--accent-bg);     color: var(--accent-light); }
.s-done    { background: rgba(156,163,175,.1); color: #9ca3af; }

.hero-metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.hero-metric {
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  border-radius: 10px; padding: 8px; text-align: center;
}

.hero-metric-num { font-size: 18px; font-weight: 800; color: var(--accent-light); }
.hero-metric-lbl { font-size: 10px; color: var(--text-muted); }

/* Toast cards flotantes */
.hero-toast {
  position: absolute;
  background: rgba(11,18,33,.9); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 10px 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; z-index: 3;
}

.hero-toast-top    { top: -20px; right: -20px; }
.hero-toast-bottom { bottom: -20px; left: -20px; }

.hero-toast-icon { font-size: 20px; color: var(--accent-light); }
.hero-toast-main { font-weight: 700; color: var(--heading-color); font-size: 13px; }
.hero-toast-sub  { color: var(--text-muted); font-size: 10px; }

/* ── PAIN / SOLUTION ─────────────────────────────────────── */
.pain-section { background: var(--background-color); }

.pain-grid {
  display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0;
  align-items: stretch;
}

.pain-col { display: flex; flex-direction: column; gap: 16px; }

.pain-col-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 10px; margin-bottom: 4px;
  font-size: 13px; font-weight: 700;
}

.pain-col-header.pain  { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.15); color: #f87171; }
.pain-col-header.brain { background: var(--accent-bg);    border: 1px solid var(--accent-border); color: var(--accent-light); }

.pain-item {
  background: rgba(239,68,68,.04);
  border: 1px solid rgba(239,68,68,.10);
  border-radius: 12px; padding: 20px 22px;
}

.solution-item {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 20px 22px;
}

.pain-item-icon, .solution-item-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 12px;
}

.pain-item-icon { background: rgba(239,68,68,.12); color: #f87171; }
.solution-item-icon { background: rgba(37,99,235,.15); color: var(--accent-light); }

.pain-item-title, .solution-item-title {
  font-size: 14px; font-weight: 700; margin-bottom: 5px;
}

.pain-item-title     { color: #fca5a5; }
.solution-item-title { color: #93c5fd; }
.pain-item-desc, .solution-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.pain-divider {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 52px;
}

.pain-divider-line {
  flex: 1; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-border), transparent);
}

.pain-divider-node {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-divider { display: none; }
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services { background: linear-gradient(180deg, var(--background-color) 0%, var(--bg-elevated) 100%); }

.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}

.services-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-light); font-size: 13px; font-weight: 600;
  border-bottom: 1px solid rgba(59,130,246,.3); padding-bottom: 2px;
  transition: color .2s;
}
.services-link:hover { color: var(--accent-color); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 28px;
  position: relative; overflow: visible;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), transparent);
  opacity: 0; transition: opacity .3s;
}

.service-card:hover { border-color: var(--border-hover); background: var(--accent-bg); }
.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}

.service-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #374151; margin-bottom: 7px;
}

.service-card-title {
  font-size: 17px; font-weight: 800; color: var(--heading-color);
  letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.2;
}

.service-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.service-card-footer { display: flex; align-items: center; justify-content: space-between; }

.service-card-tool {
  font-size: 11px; font-weight: 600; color: #4b5563;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 3px 9px;
}

.service-card-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--accent-light);
  transition: background .2s, border-color .2s;
}

.service-card:hover .service-card-arrow { background: var(--accent-bg); border-color: var(--accent-border); }

/* ── STEPS ────────────────────────────────────────────────── */
.steps { background: var(--bg-elevated); }

.steps-track {
  max-width: 840px; margin: 0 auto;
  position: relative;
}

.steps-track::before {
  content: '';
  position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px;
  background: linear-gradient(to bottom, var(--accent-color), rgba(37,99,235,.2), rgba(37,99,235,.05));
}

.step-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 28px;
  padding: 28px 0; position: relative;
}

.step-row:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.03); }

.step-node {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; position: relative; z-index: 2;
  border: 1px solid var(--accent-border); background: var(--accent-bg); color: var(--accent-light);
  transition: background .2s, box-shadow .2s;
}

.step-row:hover .step-node {
  background: rgba(37,99,235,.2);
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 20px var(--accent-glow);
}

.step-body { padding-top: 10px; }

.step-num-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #4b5563; text-transform: uppercase; margin-bottom: 6px;
}

.step-title {
  font-size: 20px; font-weight: 800; letter-spacing: -.5px;
  color: var(--heading-color); margin-bottom: 8px;
}

.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 580px; }

.step-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.step-chip {
  font-size: 11px; font-weight: 600; color: var(--accent-light);
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 3px 10px;
}

/* ── SOCIAL PROOF ─────────────────────────────────────────── */
.social-proof { background: var(--background-color); }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-subtle);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 56px;
}

@media (max-width: 768px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-cell {
  background: rgba(255,255,255,.02); padding: 28px 24px; text-align: center;
  transition: background .2s;
}

.stat-cell:hover { background: var(--accent-bg); }

.stat-value {
  font-size: clamp(28px, 4vw, 36px); font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, var(--heading-color), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

@media (max-width: 992px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border-subtle);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, background .2s;
}

.testimonial-card:hover { border-color: var(--border-hover); background: var(--accent-bg); }
.testimonial-card.featured { grid-column: span 2; background: var(--accent-bg); border-color: var(--accent-border); }

@media (max-width: 992px) { .testimonial-card.featured { grid-column: span 1; } }

.testimonial-quote-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light); font-size: 15px; flex-shrink: 0;
}

.testimonial-text {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.65; font-style: italic; flex: 1;
}

.testimonial-card.featured .testimonial-text { font-size: 17px; }

.testimonial-meta {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}

.testimonial-name { font-size: 13px; font-weight: 700; color: var(--heading-color); }
.testimonial-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.testimonial-tag {
  margin-left: auto; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-bg);
  border: 1px solid var(--accent-border); border-radius: 20px; padding: 3px 9px;
}

/* ── PRICING ──────────────────────────────────────────────── */
.pricing { background: var(--bg-elevated); }

.billing-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 30px; padding: 6px 16px; margin-top: 20px;
  font-size: 13px; color: var(--text-muted);
}

.billing-toggle .active { color: var(--accent-light); font-weight: 700; }

.toggle-pill {
  width: 36px; height: 20px; background: var(--accent-bg);
  border-radius: 20px; position: relative; cursor: pointer;
}

.toggle-pill::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent-color);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: start; max-width: 1060px; margin: 0 auto;
}

@media (max-width: 992px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; } }

.pricing-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 32px 28px;
  position: relative; overflow: visible;
  display: flex; flex-direction: column;
  transition: border-color .2s;
}

.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), transparent);
  opacity: 0; transition: opacity .3s;
}

.pricing-card:hover { border-color: var(--border-hover); }
.pricing-card:hover::before { opacity: 1; }

.pricing-card.popular {
  background: var(--accent-bg); border-color: rgba(37,99,235,.4);
  transform: scale(1.04);
  box-shadow: 0 0 60px rgba(37,99,235,.18), 0 0 0 1px rgba(37,99,235,.25);
}
.pricing-card.popular::before { opacity: 1; }

.popular-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 18px;
  border-radius: 0 0 12px 12px;
}

.plan-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-bottom: 20px;
}

.plan-tier {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #4b5563; background: rgba(255,255,255,.04);
  border: 1px solid var(--border-subtle); border-radius: 20px; padding: 3px 10px;
}

.plan-name { font-size: 22px; font-weight: 900; color: var(--heading-color); letter-spacing: -.5px; margin-bottom: 4px; }
.plan-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.plan-price-block {
  padding: 20px 0; margin: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price { display: flex; align-items: baseline; gap: 3px; }
.price-usd    { font-size: 15px; font-weight: 700; color: var(--text-muted); }
.price-num    { font-size: 52px; font-weight: 900; letter-spacing: -3px; color: var(--heading-color); line-height: 1; }
.price-per    { font-size: 13px; color: #4b5563; align-self: flex-end; padding-bottom: 5px; }
.price-note   { font-size: 11px; color: #374151; margin-top: 6px; }

.plan-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #374151; margin: 20px 0 10px;
}

.stack-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 9px;
}

.chip-wa   { background: rgba(37,211,102,.10); color: #4ade80; border: 1px solid rgba(37,211,102,.20); }
.chip-ct   { background: var(--accent-bg);     color: var(--accent-light); border: 1px solid var(--accent-border); }
.chip-mb   { background: rgba(6,182,212,.10);  color: #22d3ee; border: 1px solid rgba(6,182,212,.20); }
.chip-n8n  { background: rgba(245,158,11,.10); color: #fbbf24; border: 1px solid rgba(245,158,11,.20); }
.chip-noco { background: rgba(139,92,246,.10); color: #a78bfa; border: 1px solid rgba(139,92,246,.20); }
.chip-llm  { background: rgba(16,185,129,.10); color: #34d399; border: 1px solid rgba(16,185,129,.20); }

.plan-features { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }

.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
}

.plan-features li i { font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.feat-on   { color: var(--accent-color); }
.feat-off  { color: #1f2937; }
.plan-features li.feat-disabled { color: #2d3748; }
.feat-highlight { color: var(--heading-color); font-weight: 600; }

.plan-cta {
  display: block; width: 100%; padding: 14px;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  text-align: center; cursor: pointer; text-decoration: none;
  margin-top: auto; transition: all .2s;
}

.cta-ghost {
  background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); color: var(--text-secondary);
}
.cta-ghost:hover { background: rgba(255,255,255,.08); color: var(--heading-color); border-color: rgba(255,255,255,.2); }

.cta-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  border: none; color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}
.cta-primary:hover { color: #fff; box-shadow: 0 0 50px var(--accent-glow); transform: translateY(-1px); }

.pricing-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: #374151; margin-top: 32px;
}
.pricing-note i { color: var(--accent-color); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { background: var(--background-color); }

.faq-layout {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  align-items: start;
}

@media (max-width: 992px) { .faq-layout { grid-template-columns: 1fr; gap: 40px; } }

.faq-left { position: sticky; top: 100px; }

.faq-cta-box {
  margin-top: 32px; background: var(--accent-bg);
  border: 1px solid var(--accent-border); border-radius: 14px; padding: 20px;
}

.faq-cta-box p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }

.faq-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.15); border: 1px solid var(--accent-border);
  color: var(--accent-light); border-radius: 8px; padding: 9px 16px;
  font-size: 13px; font-weight: 600; transition: background .2s;
}
.faq-cta-btn:hover { background: rgba(37,99,235,.25); color: var(--accent-light); }

.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s;
}

.faq-item:hover { border-color: var(--border-hover); }

.faq-item.faq-active {
  border-color: rgba(37,99,235,.25);
  background: var(--accent-bg);
}

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; cursor: pointer; gap: 16px;
}

.faq-question h3 {
  font-size: 14px; font-weight: 600; color: var(--heading-color);
  margin: 0; flex: 1;
}

.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted);
  transition: all .2s;
}

.faq-item.faq-active .faq-toggle {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent-light);
  transform: rotate(45deg);
}

.faq-content { display: none; padding: 0 20px 18px; }
.faq-item.faq-active .faq-content { display: block; }
.faq-content p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { background: var(--bg-elevated); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px;
  align-items: start;
}

@media (max-width: 992px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }

.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }

.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--accent-light);
}

.contact-info-label {
  font-size: 11px; font-weight: 700; color: #4b5563;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px;
}

.contact-info-value { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.contact-info-value a { color: var(--accent-light); }
.contact-info-value a:hover { color: var(--accent-color); }

.contact-social { display: flex; gap: 10px; margin-top: 32px; }

.social-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.social-icon-btn:hover { border-color: var(--border-hover); color: var(--accent-light); background: var(--accent-bg); }

/* Contact form */
.contact-form-card {
  background: rgba(255,255,255,.02); border: 1px solid var(--border-subtle);
  border-radius: 20px; padding: 36px;
}

.contact-form-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.contact-form-card .form-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

@media (max-width: 576px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: span 2; }
@media (max-width: 576px) { .form-field.full { grid-column: span 1; } }

.form-field label {
  font-size: 11px; font-weight: 700; color: #4b5563;
  text-transform: uppercase; letter-spacing: 1px;
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 12px 14px;
  font-size: 14px; color: var(--heading-color); outline: none;
  transition: border-color .2s; font-family: var(--default-font);
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus { border-color: rgba(37,99,235,.4); }

.form-field textarea { resize: vertical; min-height: 110px; }

/* Loading / error / success states (contact-form.js) */
.loading, .error-message, .sent-message { display: none; margin-top: 12px; font-size: 13px; border-radius: 8px; padding: 10px 14px; }
.loading { display: none; color: var(--text-muted); }
.loading.d-block { display: block; }
.error-message { background: rgba(239,68,68,.1); color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.error-message.d-block { display: block; }
.sent-message { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.sent-message.d-block { display: block; }

.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-color));
  border: none; border-radius: 10px;
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 30px var(--accent-glow); margin-top: 4px;
  transition: box-shadow .2s, transform .2s;
}

.btn-submit:hover { box-shadow: 0 0 50px var(--accent-glow); transform: translateY(-1px); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 36px; width: auto; object-fit: contain; border-radius: 8px; }
.footer-logo .sitename { display: none; }

.footer-tagline { font-size: 13px; color: #4b5563; line-height: 1.6; max-width: 280px; margin-bottom: 20px; }

.footer-social { display: flex; gap: 8px; }

.footer-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #4b5563; cursor: pointer;
  transition: all .2s;
}

.footer-social-btn:hover { color: var(--accent-light); border-color: var(--accent-border); background: var(--accent-bg); }

.footer-col h5 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--heading-color); margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a { font-size: 13px; color: #4b5563; transition: color .2s; }
.footer-col ul a:hover { color: var(--text-secondary); }

.footer-contact-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-contact-row i { color: var(--accent-color); font-size: 14px; flex-shrink: 0; }
.footer-contact-row span { font-size: 13px; color: #4b5563; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: #374151;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #374151; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ── PRICING MOCKUPS ──────────────────────────────────────── */
.plan-mock {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #04080f;
  margin: 20px 0 24px;
  flex-shrink: 0;
}

.mock-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: #080e1a;
  border-bottom: 1px solid var(--border-subtle);
}

.mock-dots { display: flex; gap: 4px; }
.mock-dots span { width: 7px; height: 7px; border-radius: 50%; }
.mock-dots span:nth-child(1) { background: #ef4444; opacity: .7; }
.mock-dots span:nth-child(2) { background: #f59e0b; opacity: .7; }
.mock-dots span:nth-child(3) { background: #22c55e; opacity: .7; }

.mock-chrome-title {
  flex: 1; font-size: 9px; color: #374151; font-weight: 500; text-align: center;
}

.mock-live {
  display: flex; align-items: center; gap: 3px;
  font-size: 8px; font-weight: 700; color: #4ade80; letter-spacing: .5px;
}
.mock-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 5px #4ade80;
}

/* ── Chat mock (Bot Essential) ── */
.mock-chat-body {
  padding: 10px; display: flex; flex-direction: column;
  gap: 7px; height: 148px; overflow: hidden;
}

.mock-msg { display: flex; align-items: flex-end; gap: 5px; }
.mock-msg-bot { flex-direction: row; }
.mock-msg-user { flex-direction: row-reverse; }

.mock-bot-avatar {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--accent-light);
}

.mock-bubble {
  border-radius: 10px 10px 10px 2px;
  padding: 5px 9px; max-width: 78%;
  font-size: 9px; line-height: 1.45; color: #9ca3af;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle);
}

.mock-msg-user .mock-bubble {
  background: var(--accent-bg); border-color: var(--accent-border);
  color: #93c5fd; border-radius: 10px 10px 2px 10px;
}

.mock-typing {
  display: flex; gap: 3px; padding-left: 25px; align-items: center; height: 16px;
}
.mock-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: #374151;
  animation: typing-dot .9s infinite ease-in-out;
}
.mock-typing span:nth-child(2) { animation-delay: .18s; }
.mock-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); background: #374151; }
  30% { transform: translateY(-4px); background: var(--accent-light); }
}

/* ── Flow mock (Automation Suite) ── */
.mock-flow-body { padding: 12px 10px 10px; }

.mock-nodes {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 10px; overflow: hidden;
}

.mock-node {
  border-radius: 6px; padding: 5px 7px;
  font-size: 8px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap; flex-shrink: 0; text-align: center;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,.04); color: #4b5563;
}
.mock-node-trigger { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-light); }
.mock-node-green   { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.2); color: #4ade80; }
.mock-node-cyan    { background: rgba(6,182,212,.08);  border-color: rgba(6,182,212,.2); color: #22d3ee; }
.mock-node-amber   { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2); color: #fbbf24; }

.mock-edge {
  flex: 1; min-width: 6px; height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), rgba(37,99,235,.3));
  position: relative;
}
.mock-edge::after {
  content: '▸'; position: absolute; right: -5px; top: -6px;
  font-size: 8px; color: #374151; line-height: 1;
}

.mock-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 40px; padding: 0 2px;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
}
.mock-bar-item { flex: 1; border-radius: 2px 2px 0 0; background: rgba(37,99,235,.2); }
.mock-bar-item.hi { background: var(--accent-color); }
.mock-bar-item.md { background: rgba(37,99,235,.45); }

.mock-bar-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 5px;
}
.mock-bar-label { font-size: 8px; color: #374151; }
.mock-bar-value { font-size: 9px; font-weight: 700; color: var(--accent-light); }

/* ── Dashboard mock (Full Stack) ── */
.mock-dash-body { padding: 10px; }

.mock-kpi-row {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 8px;
}
.mock-kpi {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle);
  border-radius: 7px; padding: 6px; text-align: center;
}
.mock-kpi-num {
  font-size: 14px; font-weight: 900; letter-spacing: -0.5px;
  color: var(--accent-light); line-height: 1;
}
.mock-kpi-lbl { font-size: 8px; color: #374151; margin-top: 2px; }

.mock-area {
  height: 44px; position: relative; margin-bottom: 7px;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  overflow: hidden;
}
.mock-area svg { width: 100%; height: 100%; display: block; }

.mock-table-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.03);
}
.mock-table-row:last-child { border-bottom: none; }
.mock-table-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mock-table-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); }
.mock-table-tag {
  margin-left: auto; font-size: 7px; font-weight: 700;
  border-radius: 4px; padding: 1px 5px; flex-shrink: 0;
}

/* ── PERSPECTIVE MOCKUPS (service cards + steps + service details) ── */

/* Wrapper que establece el contexto de perspectiva */
.tilt-wrap {
  perspective: 700px;
  margin: 14px 0;
  height: 96px;   /* +8px: more breathing room for 3-col cards */
}

/* Variante más alta para service-details cards */
.tilt-wrap-lg {
  perspective: 800px;
  margin: 20px 0;
  height: 124px;  /* +14px: room for 2 node rows + chart / 5 term lines / 4 chat bubbles */
  max-width: 480px; /* wider to match service-detail card column */
}

/* Variante compacta para steps */
.tilt-wrap-sm {
  perspective: 600px;
  margin: 14px 0;
  height: 68px;   /* slightly shorter — single-row content fits cleanly */
  max-width: 360px;
}

/* Pantalla principal con transform 3D */
.tilt-screen {
  width: 100%;
  height: 100%;
  background: #070c14;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  transform: rotateX(12deg) rotateY(-4deg) scale(0.97);
  transform-origin: bottom center;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.65), 0 0 0 1px rgba(37,99,235,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Chrome bar superior con los dots */
.tilt-bar {
  background: #111827;
  height: 16px;   /* 16px: proportional across all three wrapper sizes */
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.tilt-dots { display: flex; gap: 4px; }
.tilt-dot { width: 5px; height: 5px; border-radius: 50%; }
.tilt-dot-r { background: #ef4444; }
.tilt-dot-y { background: #f59e0b; }
.tilt-dot-g { background: #22c55e; }

.tilt-title {
  font-size: 8px;
  color: #374151;
  font-weight: 500;
  flex: 1;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Área de contenido del mockup */
.tilt-body {
  padding: 7px 10px;  /* balanced: not too tight, not wasteful */
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Overlay de glow — cada card le pone su color via style */
.tilt-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Elementos internos reutilizables ── */

/* Nodos de n8n */
.tilt-nodes { display: flex; align-items: center; gap: 3px; margin-bottom: 5px; }
.tilt-node {
  font-size: 7.5px; font-weight: 700;
  padding: 3px 6px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.tilt-node-blue  { background: rgba(37,99,235,.15);  color: #60a5fa; border: 1px solid rgba(37,99,235,.25); }
.tilt-node-green { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.tilt-node-cyan  { background: rgba(6,182,212,.12);  color: #22d3ee; border: 1px solid rgba(6,182,212,.2); }
.tilt-node-amber { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }
.tilt-edge {
  flex: 1; height: 1px; background: rgba(255,255,255,.08);
  position: relative; min-width: 5px;
}
.tilt-edge::after {
  content: '▶'; position: absolute; right: -3px; top: -5px;
  font-size: 6px; color: rgba(255,255,255,.18);
}

/* Mini bar chart */
.tilt-bars { display: flex; align-items: flex-end; gap: 2px; height: 24px; }
.tilt-bar-item { flex: 1; border-radius: 2px 2px 0 0; }

/* KPI row para Metabase */
.tilt-kpis { display: flex; gap: 5px; margin-bottom: 5px; }
.tilt-kpi {
  flex: 1; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px; padding: 4px 5px;
}
.tilt-kpi-num { font-size: 10px; font-weight: 900; line-height: 1; }
.tilt-kpi-lbl { font-size: 7px; color: #4b5563; margin-top: 2px; }

/* SVG chart — taller in base and lg variants */
.tilt-chart { height: 26px; position: relative; overflow: hidden; }
.tilt-chart svg { width: 100%; height: 100%; display: block; }

/* Table rows para NocoDB */
.tilt-thead { display: flex; gap: 3px; margin-bottom: 2px; }
.tilt-th {
  flex: 1; font-size: 7px; font-weight: 700;
  color: #374151; text-transform: uppercase;
  letter-spacing: .4px; padding: 2px 3px;
  background: rgba(255,255,255,.03); border-radius: 3px;
}
.tilt-tr { display: flex; gap: 3px; margin-bottom: 2px; }
.tilt-td {
  flex: 1; font-size: 7px; color: #9ca3af;
  padding: 2px 3px;
  border-bottom: 1px solid rgba(255,255,255,.03);
  white-space: nowrap; overflow: hidden;
}
.tilt-badge {
  display: inline-block; font-size: 6px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
}
.tilt-badge-green { background: rgba(74,222,128,.1);  color: #4ade80; }
.tilt-badge-blue  { background: rgba(37,99,235,.1);   color: #60a5fa; }

/* Terminal para API */
.tilt-term { display: flex; flex-direction: column; gap: 2.5px; }
.tilt-term-line { font-family: 'Courier New', monospace; font-size: 7.5px; line-height: 1.35; }
.tc-green { color: #4ade80; }
.tc-blue  { color: #60a5fa; }
.tc-amber { color: #fbbf24; }
.tc-gray  { color: #4b5563; }
.tc-white { color: #d1d5db; }

/* Chat bubbles para Chatwoot */
.tilt-chat { display: flex; flex-direction: column; gap: 3px; }
.tilt-msg { display: flex; gap: 4px; align-items: flex-end; }
.tilt-msg-user { flex-direction: row-reverse; }
.tilt-avatar {
  width: 11px; height: 11px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; flex-shrink: 0;
}
.tilt-bubble { padding: 3px 6px; border-radius: 7px; font-size: 7px; line-height: 1.35; max-width: 85%; }
.tilt-bubble-bot  { background: rgba(37,99,235,.15);  color: #93c5fd; border-radius: 7px 7px 7px 2px; }
.tilt-bubble-user { background: rgba(37,99,235,.3);   color: #e0f2fe; border-radius: 7px 7px 2px 7px; }
.tilt-typing { display: flex; gap: 2px; align-items: center; padding: 2px 6px; }
.tilt-typing span {
  width: 3px; height: 3px; border-radius: 50%;
  background: #60a5fa; opacity: 0.6;
  animation: tiltTyping 1.2s infinite;
}
.tilt-typing span:nth-child(2) { animation-delay: 0.2s; }
.tilt-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tiltTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-2px); opacity: 1; }
}

/* Report rows */
.tilt-report { display: flex; flex-direction: column; gap: 0; }
.tilt-report-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.tilt-report-title { font-size: 8px; font-weight: 700; color: #d1d5db; }
.tilt-report-badge {
  font-size: 7px; background: rgba(74,222,128,.15);
  color: #4ade80; padding: 1px 5px; border-radius: 4px; font-weight: 700;
}
.tilt-report-row {
  display: flex; align-items: center; gap: 5px;
  padding: 2.5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.tilt-report-lbl { font-size: 7px; color: #6b7280; width: 28px; flex-shrink: 0; }
.tilt-report-bar-wrap { flex: 1; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; }
.tilt-report-bar { height: 100%; border-radius: 2px; }
.tilt-report-val { font-size: 7px; font-weight: 700; color: #f9fafb; width: 26px; text-align: right; flex-shrink: 0; }

/* Deploy terminal para step 03 — children use .tilt-term-line + .tc-* color classes */
.tilt-deploy { display: flex; flex-direction: column; gap: 3px; }
