/* ============================================================
   AcadexIA — Shared UI System
   Tokens y componentes comunes a todas las verticales.
   Cada página define sus propios --primary / --primary-light /
   --primary-dark en su :root local; el resto viene de aquí.
   ============================================================ */

/* ── Tipografía ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Reset base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg-base);
  min-height: 100vh;
  color: var(--text-primary);
}

/* ── Tokens compartidos — paleta completa ────────────────────── */
:root {
  /* Brand */
  --primary:        #0066CC;
  --primary-light:  #4A9EFF;
  --primary-dark:   #003D7A;
  --accent:         #00C896;
  --accent-dark:    #00A07A;

  /* Superficies */
  --bg-base:        #f5f9ff;
  --bg-surface:     #ffffff;
  --bg-surface-2:   #f8fafd;
  --bg-surface-3:   #eef4fb;

  /* Texto */
  --text-primary:   #1a2332;
  --text-secondary: #374151;
  --text-muted:     #6b7a8d;

  /* Bordes y sombras */
  --border-color:   #e2eaf4;
  --shadow:         0 4px 24px rgba(0,102,204,.10);
  --shadow-lg:      0 8px 40px rgba(0,102,204,.18);

  /* Aliases legacy (compatibilidad con código existente) */
  --bg-light:       var(--bg-base);
  --text-dark:      var(--text-primary);
  --border:         var(--border-color);

  /* Radios */
  --radius-card:    16px;
  --radius-btn:     12px;
  --radius-input:   12px;
  --radius-badge:   9999px;
  --radius-nav:     8px;
}

/* ── Dark mode ───────────────────────────────────────────────── */
html.dark {
  --bg-base:        #0f172a;
  --bg-surface:     #1e293b;
  --bg-surface-2:   #263347;
  --bg-surface-3:   #2d3d52;
  --text-primary:   #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted:     #64748b;
  --border-color:   #334155;
  --shadow:         0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.50);

  /* Aliases */
  --bg-light:       var(--bg-base);
  --text-dark:      var(--text-primary);
  --border:         var(--border-color);
}

/* Dark mode: sidebar */
html.dark .sidebar { background: var(--bg-surface); border-right-color: var(--border-color); }
html.dark .sidebar-logo { border-bottom-color: var(--border-color); }
html.dark .sidebar-logo-icon { background: rgba(74,158,255,.15); color: var(--primary-light); }
html.dark .sidebar-logo-text strong { color: var(--text-primary); }
html.dark .sidebar-logo-text span { color: var(--text-muted); }
html.dark .nav-item-btn { color: var(--text-secondary); }
html.dark .nav-item-btn i { color: var(--text-muted); }
html.dark .nav-item-btn:hover { background: var(--bg-surface-3); color: var(--primary-light); }
html.dark .nav-item-btn:hover i { color: var(--primary-light); }
html.dark .nav-item-btn.active { background: rgba(74,158,255,.15); color: var(--primary-light); }
html.dark .nav-item-btn.active i { color: var(--primary-light); }

/* Dark mode: override inline background whites on landing sections */
html.dark .lp-section[style*="background:white"],
html.dark .lp-section[style*="background: white"] { background: var(--bg-surface) !important; }
html.dark .lp-section[style*="background:var(--bg-light)"],
html.dark .lp-section[style*="background: var(--bg-light)"] { background: var(--bg-surface-2) !important; }
html.dark .lp-section-sm { background: var(--bg-surface-2) !important; border-color: var(--border-color) !important; }
html.dark .luna-demo-card,
html.dark .sofia-demo-card { background: var(--bg-surface-2) !important; border-color: var(--border-color) !important; }
html.dark .pain-card[style*="background:linear-gradient(135deg,#f0f7ff"],
html.dark .pain-card[style*="background:linear-gradient(135deg,#f0f4ff"] { background: var(--bg-surface-3) !important; border-color: var(--border-color) !important; }
html.dark .feature-card[style*="background:linear-gradient"] { background: var(--bg-surface-3) !important; border-color: var(--border-color) !important; }
html.dark [style*="background:white"] { background: var(--bg-surface) !important; }
html.dark [style*="background: white"] { background: var(--bg-surface) !important; }
html.dark [style*="background:#f0f7ff"],
html.dark [style*="background:#f0f4ff"],
html.dark [style*="background:#f8f9fa"] { background: var(--bg-surface-2) !important; }
html.dark [style*="color:var(--primary-dark)"] { color: var(--primary-light) !important; }
html.dark .table thead th { background: var(--bg-surface-2); color: var(--text-primary); border-color: var(--border-color); }
html.dark .table tbody td { color: var(--text-secondary); border-color: var(--border-color); }
html.dark .table-hover tbody tr:hover { background: var(--bg-surface-3); }
html.dark .modal-content { background: var(--bg-surface); color: var(--text-primary); border-color: var(--border-color); }
html.dark .modal-body { background: var(--bg-surface); }
html.dark .modal-footer { background: var(--bg-surface); border-color: var(--border-color); }
html.dark .form-control,
html.dark .form-select { background: var(--bg-surface-2); color: var(--text-primary); border-color: var(--border-color); }
html.dark .form-control:focus,
html.dark .form-select:focus { background: var(--bg-surface-2); color: var(--text-primary); }
html.dark .form-control::placeholder { color: var(--text-muted); }
html.dark .alert { background: var(--bg-surface-2) !important; border-color: var(--border-color) !important; color: var(--text-secondary) !important; }
html.dark code { background: var(--bg-surface-3); color: var(--primary-light); padding: 1px 5px; border-radius: 4px; }
html.dark .btn-outline-secondary { color: var(--text-secondary); border-color: var(--border-color); }
html.dark .btn-outline-secondary:hover { background: var(--bg-surface-3); color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════════
   APP SHELL — Sidebar + Header layout
   ══════════════════════════════════════════════════════════════ */

html, body { height: 100%; margin: 0; }

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .2s ease, min-width .2s ease;
  z-index: 200;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 64px;
  min-width: 64px;
}

/* Logo block */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-color);
  min-height: 64px;
  overflow: hidden;
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: none;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,102,204,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo-text strong {
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

.sidebar-logo-text span {
  color: var(--text-muted);
  font-size: .72rem;
}

.sidebar.collapsed .sidebar-logo-text { display: none; }
.sidebar.collapsed .sidebar-logo img  { display: none; }

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-item-btn i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.nav-item-btn:hover {
  background: var(--bg-surface-3);
  color: var(--primary);
}
.nav-item-btn:hover i { color: var(--primary); }

.nav-item-btn.active {
  background: rgba(0,102,204,.1);
  color: var(--primary);
  font-weight: 700;
}
.nav-item-btn.active i { color: var(--primary); }

.nav-item-label { overflow: hidden; }
.sidebar.collapsed .nav-item-label { display: none; }

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}

/* ── App main area ───────────────────────────────────────────── */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Top header ──────────────────────────────────────────────── */
.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 100;
}

.app-header-hamburger {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background .15s;
  flex-shrink: 0;
}
.app-header-hamburger:hover { background: rgba(255,255,255,.15); }

.app-header-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  line-height: 1.4;
}
.header-btn:hover { background: rgba(255,255,255,.25); }
.header-btn.active { background: rgba(255,255,255,.3); }

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Content area ────────────────────────────────────────────── */
.app-content {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-base);
}

/* Sections (replaces tab-pane) */
.app-section { display: none; }
.app-section.active { display: block; }

/* Landing fills full width — no extra padding */
.app-section#section-landing { background: var(--bg-surface); }

/* ── Main content wrapper ────────────────────────────────────── */
.main-content { width: 100%; padding: 20px 24px; }

/* ── Tab content fix (keep for Bootstrap compat) ─────────────── */
.tab-pane.fade { transition: none !important; }
.tab-pane.fade:not(.show) { display: none !important; }
.tab-content { padding-top: 0 !important; margin-top: 0 !important; }

/* ── Responsive sidebar ──────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 300;
    width: 256px !important;
    min-width: 256px !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-overlay.visible { display: block; }
  .sidebar.collapsed { width: 256px !important; min-width: 256px !important; }
  .sidebar.collapsed .sidebar-logo-text,
  .sidebar.collapsed .nav-item-label { display: flex !important; }
}

/* ── Cards ───────────────────────────────────────────────────── */
.admin-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.config-card { border-left: 4px solid var(--primary); }

/* ── Tab page header ─────────────────────────────────────────── */
.tab-page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 18px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-page-header h5 { margin: 0; font-size: 1.15rem; font-weight: 700; color: white; }

.tab-page-header .btn-action-primary {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
  transition: all .2s;
  border-radius: var(--radius-btn);
}
.tab-page-header .btn-action-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.tab-page-header .btn-action-secondary {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  font-weight: 600;
  transition: all .2s;
  border-radius: var(--radius-btn);
}
.tab-page-header .btn-action-secondary:hover { background: rgba(255,255,255,.25); color: white; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-ui {
  background: var(--primary);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all .2s;
}
.btn-primary-ui:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,102,204,.3);
}

/* Hero CTA buttons */
.btn-hero-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(0,200,150,.4);
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,.5);
}

.btn-hero-secondary {
  background: rgba(255,255,255,.15);
  color: white;
  border: 2px solid rgba(255,255,255,.5);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.25); color: white; transform: translateY(-2px); }

/* ── Status badges ───────────────────────────────────────────── */
.status-badge {
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-size: .78rem;
  font-weight: 700;
  display: inline-block;
}

.status-confirmado, .status-activo,
.s-active, .s-completed, .s-up_to_date { background: #d4edda; color: #155724; }

.status-pendiente,
.s-pending, .s-in_progress, .s-pending_payment { background: #fff3cd; color: #856404; }

.status-cancelado, .status-inactivo,
.s-inactive, .s-cancelled, .s-dropped { background: #f8d7da; color: #721c24; }

/* ── Tables ──────────────────────────────────────────────────── */
.table thead th {
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
  padding: 12px 14px;
}

.table tbody td { padding: 12px 14px; vertical-align: middle; font-size: .9rem; }
.table-hover tbody tr:hover { background: rgba(0, 102, 204, .04); }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}
.modal-header .btn-close { filter: brightness(0) invert(1); }

/* ── Forms ───────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  font-size: .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,.12);
}

.form-section { background: var(--bg-surface-2); padding: 18px; border-radius: 10px; margin-bottom: 18px; }
.form-section h6 { color: var(--primary); font-weight: 700; margin-bottom: 12px; }

/* Config section header */
.config-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(0,102,204,.08) 0%, rgba(0,102,204,.03) 100%);
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}
.config-section-header i { font-size: 1.2rem; color: var(--primary); }
.config-section-header h6 { margin: 0; font-weight: 700; color: var(--primary-dark); }

/* ── Connection status ───────────────────────────────────────── */
.connection-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-badge);
  font-size: .85rem;
  font-weight: 600;
}
.connection-status.connected  { background: #d4edda; color: #155724; border: 2px solid #28a745; }
.connection-status.disconnected { background: #f8d7da; color: #721c24; border: 2px solid #dc3545; }

/* ── Loading overlay ─────────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.loading-spinner { text-align: center; color: white; }

/* ── Landing — shared sections ───────────────────────────────── */
.lp-section   { padding: 80px 0; }
.lp-section-sm{ padding: 56px 0; }
.lp-container { width: 100%; padding: 0 40px; }

.lp-hero {
  color: var(--text-primary);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}
.lp-hero::before { display: none; }

.lp-hero-title    { font-size: clamp(2rem,4vw,3.2rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; color: var(--text-primary); }
.lp-hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); opacity: 1; margin-bottom: 36px; max-width: 560px; line-height: 1.6; }
.lp-hero-ctas     { display: flex; gap: 14px; flex-wrap: wrap; }

.lp-hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.lp-section-title    { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.lp-section-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 48px; max-width: 600px; }

.lp-label {
  display: inline-block;
  background: rgba(0,102,204,.1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 14px;
}
.lp-label-green { background: rgba(0,200,150,.12); color: var(--accent-dark); }

/* Pain cards */
.pain-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: all .25s;
  height: 100%;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.pain-icon { font-size: 2rem; margin-bottom: 14px; }
.pain-card h5 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.pain-card p  { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Architecture flow */
.arch-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.arch-node {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  color: var(--text-primary);
}
.arch-node.highlight       { background: var(--primary); color: white; border-color: var(--primary); }
.arch-node.highlight-green { background: var(--accent);  color: white; border-color: var(--accent); }
.arch-arrow { color: var(--primary-light); font-size: 1.2rem; }

/* Feature cards */
.feature-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-icon.blue   { background: rgba(0,102,204,.1);   color: var(--primary); }
.feature-icon.green  { background: rgba(0,200,150,.12);  color: var(--accent-dark); }
.feature-icon.orange { background: rgba(255,152,0,.12);  color: #e65100; }
.feature-icon.purple { background: rgba(103,58,183,.1);  color: #673ab7; }

/* Metric cards */
.metric-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all .25s;
  height: 100%;
}
.metric-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.metric-number { font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.metric-label  { font-size: .9rem; color: var(--text-muted); font-weight: 500; }

/* Roadmap cards */
.roadmap-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border-color);
  height: 100%;
  border-top: 4px solid var(--primary);
}
.roadmap-card.phase2 { border-top-color: var(--accent); }
.roadmap-card.phase3 { border-top-color: #673ab7; }
.roadmap-card h5 { font-weight: 700; margin-bottom: 16px; }
.roadmap-card ul { padding-left: 18px; margin: 0; }
.roadmap-card li { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }

/* CTA section */
.lp-cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 0;
}
.lp-cta-section .lp-section-title    { color: white; }
.lp-cta-section .lp-section-subtitle { color: rgba(255,255,255,.8); }

/* Contact form */
.contact-form {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-card);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.contact-form .form-control {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  border-radius: var(--radius-input);
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,.6); }
.contact-form .form-control:focus {
  background: rgba(255,255,255,.2);
  border-color: var(--accent);
  box-shadow: none;
  color: white;
}
.contact-form label { color: rgba(255,255,255,.9); font-weight: 500; font-size: .9rem; }

/* Channel badges */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all .2s;
  margin: 4px;
}
.channel-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary); }
.channel-badge.whatsapp { border-color: #25D366; color: #25D366; }
.channel-badge.whatsapp:hover { background: #25D366; color: white; }
.channel-badge.soon { opacity: .55; cursor: default; pointer-events: none; }

/* Diff items */
.diff-item  { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.diff-check { color: var(--accent); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* Stat cards */
.stat-card { background: var(--bg-surface); border-radius: 14px; padding: 20px; border: 1px solid var(--border-color); text-align: center; transition: all .2s; }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-icon  { font-size: 1.8rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* Chat bubbles */
.chat-bubble-demo { margin-bottom: 12px; }
.chat-bubble-demo .bubble {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: .88rem;
  max-width: 85%;
  line-height: 1.4;
}
.bubble-bot  { background: var(--bg-surface); color: var(--text-primary); border-bottom-left-radius: 4px; }
.bubble-user { background: var(--accent); color: white; border-bottom-right-radius: 4px; float: right; }
.chat-bubble-demo.user { text-align: right; }
.chat-bubble-demo::after { content: ''; display: table; clear: both; }

/* Hybrid levels */
.hybrid-level {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.hybrid-level-badge {
  min-width: 80px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .8rem;
}

/* Query example chips */
.query-chip {
  background: var(--bg-surface-3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  display: inline-block;
}

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: 32px 0;
  text-align: center;
  font-size: .88rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-hero    { padding: 60px 0 48px; }
  .lp-section { padding: 56px 0; }
  .header-inner { flex-direction: column; text-align: center; }
  .arch-flow  { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .main-tabs-wrap { padding: 0 12px; }
  .nav-tabs .nav-link { padding: 12px 14px; font-size: .85rem; }
}
