/* ==========================================================================
   ProjexaAI Landing — Design System v2
   Navy dark hero · Modales de features · Tour animado · Inter
   ========================================================================== */

:root {
  --primary: #1e40af;
  --primary-hover: #1e3a8a;
  --primary-soft: #dde7ff;
  --accent: #0891b2;
  --accent-soft: #cffafe;
  --navy: #050b1c;
  --navy-2: #0c1730;
  --navy-3: #1a2848;
  --purple: #6d28d9;
  --success: #047857;
  --warning: #d97706;
  --danger: #b91c1c;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #eef2f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0a0f1d;
  --text-2: #1f2a44;
  --text-muted: #4a5876;
  --text-faint: #7a8499;
  --shadow-sm: 0 1px 3px rgba(8,14,32,.07), 0 1px 2px rgba(8,14,32,.05);
  --shadow: 0 4px 12px -2px rgba(8,14,32,.10), 0 2px 6px -2px rgba(8,14,32,.06);
  --shadow-lg: 0 24px 48px -12px rgba(8,14,32,.22), 0 10px 18px -6px rgba(8,14,32,.10);
  --shadow-xl: 0 40px 80px -20px rgba(8,14,32,.35);
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; color: var(--text); }
p { margin: 0 0 1em; color: var(--text-2); }
img { display: block; max-width: 100%; }

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

/* ── Reveal animations ─────────────────────────────────────────── */
[data-reveal], [data-reveal-delay] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal-delay] { transition-delay: .18s; }
[data-reveal].visible, [data-reveal-delay].visible { opacity: 1; transform: none; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; line-height: 1.2; font-family: var(--font);
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
  background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(30,64,175,.35);
}
.btn-cta:hover { box-shadow: 0 6px 20px rgba(30,64,175,.45); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-xl { padding: 15px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }

/* ── Topbar ─────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 200;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.light {
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar.dark {
  background: rgba(5,11,28,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.07);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand-link { display: flex; align-items: center; }
.logo { height: 38px; width: auto; }
.topbar.light .logo-dark { display: none; }
.topbar.light .logo-light { display: block; }
.topbar.dark .logo-light { display: none; }
.topbar.dark .logo-dark { display: block; }

.topnav { display: flex; gap: 28px; }
.topnav a { font-weight: 500; font-size: 15px; transition: color .15s; }
.topbar.light .topnav a { color: var(--text-2); }
.topbar.light .topnav a:hover { color: var(--primary); }
.topbar.dark .topnav a { color: rgba(255,255,255,.75); }
.topbar.dark .topnav a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-soft); }
.topbar.dark .lang-switch { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.lang-btn { background: transparent; border: 0; padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: 999px; cursor: pointer; font-family: var(--font); transition: all .15s; }
.topbar.dark .lang-btn { color: rgba(255,255,255,.5); }
.lang-btn.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.topbar.dark .lang-btn.active { background: rgba(255,255,255,.15); color: #fff; }
.topbar.light .btn-ghost { color: var(--text-2); }
.topbar.dark .btn-ghost { color: rgba(255,255,255,.8); }
.topbar.dark .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--border); width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; font-size: 18px; }
.topbar.dark .mobile-toggle { border-color: rgba(255,255,255,.2); color: #fff; }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  padding: 80px 0 0;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .45;
  animation: drift 12s ease-in-out infinite alternate;
}
.hero .orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #1e40af 0%, transparent 70%); top: -200px; right: -100px; animation-delay: 0s; }
.hero .orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #0891b2 0%, transparent 70%); bottom: -100px; left: -100px; animation-delay: -4s; }
.hero .orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, #6d28d9 0%, transparent 70%); top: 30%; left: 35%; animation-delay: -8s; opacity: .25; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(40px,30px) scale(1.08); } }

.blueprint-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,64,175,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75);
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

.hero-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
  color: #fff; margin-bottom: 20px;
}
.hero-grad {
  background: linear-gradient(120deg, #60a5fa 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 32px; max-width: 520px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: rgba(255,255,255,.5); }
.hero-pills span { display: flex; align-items: center; gap: 7px; }
.hero-pills i { color: #34d399; }

/* App frame mockup */
.hero-visual { position: relative; z-index: 2; }
.app-frame {
  display: flex;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.1);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .4s ease;
  border: 1px solid rgba(255,255,255,.08);
}
.app-frame:hover { transform: perspective(1400px) rotateY(-1deg) rotateX(.5deg); }

.app-sidebar { width: 52px; background: var(--navy); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; flex-shrink: 0; }
.app-brand { margin-bottom: 12px; }
.app-logo-dot { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--navy-2), var(--primary)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.app-nav-items { display: flex; flex-direction: column; gap: 2px; width: 100%; align-items: center; }
.app-nav-item { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); font-size: 14px; cursor: pointer; }
.app-nav-item.active { background: rgba(30,64,175,.5); color: #60a5fa; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar { height: 42px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; flex-shrink: 0; }
.app-breadcrumb { font-size: 12px; color: var(--text-muted); }
.app-breadcrumb span { color: var(--primary); font-weight: 600; }
.app-topbar-right { display: flex; align-items: center; gap: 8px; }
.app-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.app-badge.green { background: #d1fae5; color: #047857; }
.app-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.app-content { padding: 12px; flex: 1; }
.evm-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 10px; }
.evm-kpi { border-radius: 8px; padding: 8px; }
.evm-k { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.evm-v { font-size: 16px; font-weight: 800; margin-top: 2px; }
.evm-kpi.blue { background: #dbeafe; } .evm-kpi.blue .evm-v { color: var(--primary); }
.evm-kpi.teal { background: #cffafe; } .evm-kpi.teal .evm-v { color: var(--accent); }
.evm-kpi.green { background: #d1fae5; } .evm-kpi.green .evm-v { color: var(--success); }
.evm-kpi.amber { background: #fef3c7; } .evm-kpi.amber .evm-v { color: var(--warning); }
.evm-kpi.purple { background: #ede9fe; } .evm-kpi.purple .evm-v { color: var(--purple); }

.dash-chart-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.dash-chart, .dash-phases { background: var(--bg-soft); border-radius: 8px; padding: 10px; border: 1px solid var(--border); }
.dc-label, .dp-label { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.dc-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.dc-group { display: flex; gap: 2px; align-items: flex-end; flex: 1; }
.dc-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 4px; }
.b-budget { background: var(--primary); opacity: .5; }
.b-real { background: var(--accent); }
.dc-tag { display: none; }

.dp-row { display: flex; align-items: center; gap: 6px; font-size: 10px; margin-bottom: 5px; }
.dp-row span:first-child { width: 72px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-row span:last-child { width: 26px; text-align: right; color: var(--text-2); font-weight: 700; font-size: 10px; }
.dp-progress { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.dp-progress div { height: 100%; border-radius: 3px; }

/* Hero stat strip */
.hero-stats { position: relative; z-index: 2; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.08); }
.hero-stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.hstat { padding: 22px 0; text-align: center; }
.hstat-val { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.01em; background: linear-gradient(120deg,#60a5fa,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat-lbl { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }
.hstat-divider { border-left: 1px solid rgba(255,255,255,.08); margin: 12px 0; }

/* Floaters */
.float-badge {
  position: absolute;
  background: rgba(5,11,28,.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  animation: floatAnim 4s ease-in-out infinite alternate;
}
.float-badge i { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.float-badge strong { display: block; font-size: 12px; color: #fff; font-weight: 600; }
.float-badge small { font-size: 11px; color: rgba(255,255,255,.5); }
.float-ai { bottom: -16px; left: -20px; }
.float-ai i { background: linear-gradient(135deg, var(--purple), var(--accent)); }
.float-alert { top: -16px; right: -20px; animation-delay: -2s; }
.float-alert i { background: linear-gradient(135deg, #b91c1c, #f97316); }
@keyframes floatAnim { 0%{transform:translateY(0)} 100%{transform:translateY(-8px)} }

/* ── Section commons ────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.section h2 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.section-lead { font-size: 17px; color: var(--text-muted); }

/* ── Features grid ──────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  outline: none;
}
.feature-card:hover, .feature-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.fc-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin-bottom: 16px; }
.feat-blue { background: linear-gradient(135deg, var(--primary), #3b82f6); }
.feat-teal { background: linear-gradient(135deg, var(--accent), #06b6d4); }
.feat-purple { background: linear-gradient(135deg, var(--purple), #8b5cf6); }
.feat-amber { background: linear-gradient(135deg, var(--warning), #f59e0b); }
.feat-green { background: linear-gradient(135deg, var(--success), #10b981); }
.feat-red { background: linear-gradient(135deg, var(--danger), #ef4444); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }
.fc-cta { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; transition: gap .15s; }
.feature-card:hover .fc-cta { gap: 10px; }

/* ── Tour section ───────────────────────────────────────────────── */
.tour-section { background: var(--bg-soft); }
.tour-wrap { display: flex; flex-direction: column; gap: 0; }
.tour-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.tour-tab {
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}
.tour-tab.active, .tour-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.tour-stage { position: relative; }
.tour-slides { position: relative; }
.tour-slide { display: none; }
.tour-slide.active { display: flex; flex-direction: column; gap: 0; }

/* Browser mockup */
.ts-browser {
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1.5px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ts-bar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 6px;
}
.ts-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ts-dot.r { background: #ef4444; } .ts-dot.y { background: #eab308; } .ts-dot.g { background: #22c55e; }
.ts-url { margin-left: 12px; font-size: 11px; color: var(--text-faint); background: #fff; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); font-family: monospace; }
.ts-screen { display: flex; height: 360px; }

/* App sidebar in tour */
.ts-sidebar {
  width: 140px; background: var(--navy); display: flex; flex-direction: column; gap: 2px;
  padding: 12px 8px; flex-shrink: 0;
}
.ts-logo { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--navy-2), var(--primary)); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.ts-navg { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.4); font-size: 12px; cursor: pointer; }
.ts-navg i { width: 16px; text-align: center; flex-shrink: 0; }
.ts-navg.active { background: rgba(30,64,175,.45); color: #93c5fd; }

/* App main area in tour */
.ts-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.ts-toprow { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ts-toprow h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.ts-proj-badge { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.ts-actions { display: flex; gap: 6px; }
.ts-btn { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; font-family: var(--font); }
.ts-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Tour EVM */
.ts-evm-row { display: flex; gap: 6px; padding: 10px 12px; flex-shrink: 0; }
.ts-kpi { flex: 1; padding: 8px; border-radius: 8px; }
.k-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.k-val { font-size: 18px; font-weight: 800; }
.k-blue { background: #dbeafe; } .k-blue .k-val { color: var(--primary); }
.k-teal { background: #cffafe; } .k-teal .k-val { color: var(--accent); }
.k-green { background: #d1fae5; } .k-green .k-val { color: var(--success); }
.k-amber { background: #fef3c7; } .k-amber .k-val { color: var(--warning); }
.k-red { background: #fee2e2; } .k-red .k-val { color: var(--danger); }

.ts-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; padding: 0 12px 12px; flex: 1; }
.ts-card { background: var(--bg-soft); border-radius: 10px; padding: 10px; border: 1px solid var(--border); }
.ts-card-title { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.ts-minibars { display: flex; align-items: flex-end; gap: 5px; height: 50px; }
.ts-minibars > div { display: flex; gap: 2px; align-items: flex-end; flex: 1; }
.mb { flex: 1; border-radius: 2px 2px 0 0; min-height: 4px; }
.b-budget { background: var(--primary); opacity: .4; }
.b-real { background: var(--accent); }
.ts-legend { font-size: 9px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.leg-dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.ts-phase-list { display: flex; flex-direction: column; gap: 6px; }
.ts-phase { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.ts-phase > span:first-child { width: 70px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-phase > span:last-child { width: 26px; text-align: right; font-weight: 700; color: var(--text-2); }
.ts-pbar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ts-pbar div { height: 100%; border-radius: 3px; }

/* Gantt in tour */
.ts-gantt-wrap { padding: 0 12px 12px; flex: 1; overflow: hidden; }
.ts-gantt-header { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 6px; font-size: 10px; color: var(--text-faint); font-weight: 600; }
.tgh-label { width: 100px; flex-shrink: 0; }
.tgh-months { flex: 1; display: flex; justify-content: space-between; }
.ts-gantt-rows { display: flex; flex-direction: column; gap: 5px; position: relative; }
.tgr { display: flex; align-items: center; gap: 0; height: 26px; position: relative; }
.tgr-name { width: 100px; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.tgr-track { flex: 1; height: 100%; background: var(--bg-deep); border-radius: 4px; position: relative; overflow: hidden; }
.tgr-bar { position: absolute; top: 4px; bottom: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.tgr-bar.critical { background: linear-gradient(90deg, var(--danger), #f97316); }
.critical-tag { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 8px; font-weight: 700; color: #fff; background: rgba(185,28,28,.7); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.tgr-pct { width: 32px; text-align: right; font-size: 10px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.today-line { display: none; }

/* IA in tour */
.ts-ia-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; padding: 10px 12px 12px; flex: 1; overflow: hidden; }
.ts-upload-zone { background: var(--bg-soft); border: 1.5px dashed var(--border-strong); border-radius: 10px; padding: 12px; text-align: center; margin-bottom: 8px; }
.ts-upload-zone i { font-size: 22px; color: var(--primary); margin-bottom: 4px; }
.ts-upload-name { font-size: 10px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-upload-status { font-size: 10px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ts-upload-status.ok { color: var(--success); }
.ts-ia-prompt { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ts-ia-msg { font-size: 10px; padding: 6px 9px; border-radius: 8px; line-height: 1.4; max-width: 90%; }
.ts-ia-msg.sys { background: var(--bg-deep); color: var(--text-2); align-self: flex-start; }
.ts-ia-msg.usr { background: var(--primary); color: #fff; align-self: flex-end; }
.ts-ia-msg.thinking { background: var(--bg-deep); display: flex; align-items: center; gap: 4px; padding: 8px 12px; }
.ts-ia-msg.thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: thinking .9s ease-in-out infinite alternate; }
.ts-ia-msg.thinking span:nth-child(2) { animation-delay: .15s; }
.ts-ia-msg.thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes thinking { 0%{opacity:.3;transform:translateY(0)} 100%{opacity:1;transform:translateY(-4px)} }
.ts-ia-right { display: flex; flex-direction: column; }
.ts-ia-table-title { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ts-badge-new { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: linear-gradient(135deg, var(--purple), var(--accent)); color: #fff; }
.ts-ia-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; }
.ts-ia-row { display: grid; grid-template-columns: 1fr 40px 40px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.ts-ia-row:last-child { border-bottom: none; }
.ts-ia-row.h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; }
.ts-ia-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ia-row span:not(:first-child) { text-align: right; }

/* Costs in tour */
.ts-cost-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 10px 12px; flex-shrink: 0; }
.ts-cs { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.ts-cs-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--text-faint); margin-bottom: 3px; }
.ts-cs-val { font-size: 16px; font-weight: 800; }
.ts-cs-val.navy { color: var(--navy); } .ts-cs-val.blue { color: var(--primary); }
.ts-cs-val.green { color: var(--success); } .ts-cs-val.amber { color: var(--warning); }
.ts-cost-table { flex: 1; margin: 0 12px 12px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; }
.tct-row { display: grid; grid-template-columns: 1fr 80px 80px 64px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.tct-row:last-child { border-bottom: none; }
.tct-row.h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.tct-cat { font-weight: 600; padding: 1px 6px; border-radius: 4px; font-size: 9px; display: inline-flex; align-items: center; }
.tct-cat.mat { background: #dbeafe; color: var(--primary); }
.tct-cat.lab { background: #fef3c7; color: var(--warning); }
.tct-cat.eq { background: #ede9fe; color: var(--purple); }

/* Bitácora in tour */
.ts-bita-list { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.ts-bita-entry { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ts-bita-date { font-size: 10px; font-weight: 600; color: var(--text-muted); padding: 6px 10px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.ts-bita-body { display: flex; gap: 10px; padding: 10px; }
.ts-bita-photos { display: flex; gap: 4px; flex-shrink: 0; }
.ts-photo { width: 44px; height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.ts-photo.p1 { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.ts-photo.p2 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.ts-photo.p3 { background: linear-gradient(135deg, #6d28d9, #8b5cf6); font-size: 11px; }
.ts-bita-text { flex: 1; min-width: 0; }
.ts-bita-title { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ts-bita-text p { font-size: 10px; color: var(--text-muted); margin: 0 0 5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-bita-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ts-bita-tags span { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--bg-deep); color: var(--text-muted); }

/* Projects in tour */
.ts-proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 12px; flex: 1; }
.ts-proj-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; transition: all .15s; }
.ts-proj-card.active-proj { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ts-pcard-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 6px; }
.ts-pcard-name { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; }
.ts-pbadge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.ts-pbadge.on { background: #d1fae5; color: var(--success); }
.ts-pbadge.plan { background: var(--primary-soft); color: var(--primary); }
.ts-pcard-stat { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; font-size: 10px; color: var(--text-muted); }
.ts-pcard-stat strong { font-size: 14px; font-weight: 800; color: var(--text); }
.ts-pcard-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.ts-pcard-bar div { height: 100%; border-radius: 3px; }
.ts-pcard-meta { font-size: 9px; color: var(--text-faint); }

/* Tour controls */
.tour-controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: #fff; border: 1.5px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.tour-prev, .tour-next { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .15s; }
.tour-prev:hover, .tour-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tour-dots { display: flex; gap: 6px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; transition: all .2s; padding: 0; }
.tdot.active { background: var(--primary); width: 24px; border-radius: 4px; }

.tour-caption {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 28px 32px; color: #fff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  display: none;
}
.tour-caption h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tour-caption p { font-size: 14px; color: rgba(255,255,255,.65); margin: 0; }

/* ── How it works ───────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(30,64,175,.3); }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 22px; display: flex; flex-direction: column; position: relative; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 4px 16px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.plan-badge-promo { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 2px; }
.price-amount { font-size: 38px; font-weight: 900; letter-spacing: -.02em; }
.price-period { font-size: 14px; color: var(--text-muted); }
.price-original { font-size: 13px; color: #94a3b8; text-decoration: line-through; margin-bottom: 2px; font-weight: 500; }
.price-annual { font-size: 12px; color: #10b981; font-weight: 700; margin-bottom: 10px; }
.price-trial { font-size: 13px; color: #10b981; font-weight: 600; margin-bottom: 8px; }
.plan-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.early-access-banner { display: inline-block; margin-top: 16px; background: linear-gradient(135deg, #fef3c7, #fee2e2); border: 1.5px solid #fbbf24; color: #92400e; padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; padding: 7px 0; color: var(--text-2); border-bottom: 1px solid var(--border); }
.plan-feats li:last-child { border-bottom: none; }
.plan-feats i { color: var(--success); margin-top: 3px; flex-shrink: 0; font-size: 12px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 22px; transition: border-color .15s; }
.faq[open] { border-color: var(--primary); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; color: var(--primary); font-weight: 300; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── Final CTA ──────────────────────────────────────────────────── */
.cta-final {
  padding: 100px 0; position: relative; overflow: hidden;
  background: var(--navy);
}
.cta-final .cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-final .orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, #1e40af 0%, transparent 70%); top: -300px; left: -200px; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.cta-final .orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #0891b2 0%, transparent 70%); bottom: -200px; right: -100px; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.cta-final h2 { font-size: clamp(26px, 4vw, 44px); color: #fff; margin-bottom: 14px; font-weight: 900; letter-spacing: -.025em; }
.cta-final p { font-size: 18px; color: rgba(255,255,255,.6); margin-bottom: 36px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--navy); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 64px; }
.footer-tagline { font-size: 14px; color: #8896b2; margin-top: 14px; max-width: 300px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.footer-col a { display: block; color: #8896b2; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; color: #6c7791; }

/* ── Feature Modals ─────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(5,11,28,.8);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: var(--radius-xl);
  max-width: 900px; width: 100%;
  display: grid; grid-template-columns: 1fr 1.4fr;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.95) translateY(12px); } to { opacity:1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--text-muted);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-left { padding: 36px 32px; display: flex; flex-direction: column; overflow-y: auto; }
.modal-left .ml-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); margin-bottom: 10px; }
.modal-left h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.modal-left .ml-lead { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.7; }
.modal-left ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.modal-left li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.modal-left li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }
.modal-left .ml-cta { margin-top: auto; }
.modal-right { background: var(--navy-2); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; }

/* Modal screen mockups */
.mscreen {
  width: 100%; background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xl);
  font-size: 11px;
}
.ms-topbar { background: var(--bg-deep); border-bottom: 1px solid var(--border); padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; }
.ms-dot.r{background:#ef4444;} .ms-dot.y{background:#eab308;} .ms-dot.g{background:#22c55e;}
.ms-title { font-size: 11px; color: var(--text-faint); margin-left: 10px; font-weight: 600; }
.ms-body { padding: 14px; }
.ms-section-title { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 8px 0 6px; }
.ms-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 10px; }
.ms-kpi { padding: 8px; border-radius: 7px; }
.ms-kl { font-size: 8px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.ms-kv { font-size: 20px; font-weight: 800; }
.ms-kpi.b{background:#dbeafe;} .ms-kpi.b .ms-kv{color:var(--primary);}
.ms-kpi.t{background:#cffafe;} .ms-kpi.t .ms-kv{color:var(--accent);}
.ms-kpi.g{background:#d1fae5;} .ms-kpi.g .ms-kv{color:var(--success);}
.ms-kpi.a{background:#fef3c7;} .ms-kpi.a .ms-kv{color:var(--warning);}
.ms-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.ms-row:last-child { border-bottom: none; }
.ms-tag { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.ms-tag.blue { background: #dbeafe; color: var(--primary); }
.ms-tag.teal { background: #cffafe; color: var(--accent); }
.ms-tag.amber { background: #fef3c7; color: var(--warning); }
.ms-tag.red { background: #fee2e2; color: var(--danger); }
.ms-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ms-bar-row > span:first-child { width: 80px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-bar-row > span:last-child { width: 30px; text-align: right; font-weight: 700; }
.ms-pbar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.ms-pbar div { height: 100%; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════════
   INTERACTIVE DEMO — idemo / idd styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Wrapper & layout ───────────────────────────────────────────── */
.demo-section { background: var(--navy); padding: 96px 0; }
.demo-section .section-head h2 { color: #fff; }
.demo-section .section-head .kicker { color: #22d3ee; }
.demo-section .section-lead { color: rgba(255,255,255,.55); }

.idemo-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Scene buttons (left rail) ──────────────────────────────────── */
.ids-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ids-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.5);
  cursor: pointer; text-align: left;
  font-family: var(--font);
  transition: background .15s, border-color .15s, color .15s;
  position: relative; overflow: hidden;
}
.ids-btn:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.ids-btn.active {
  background: rgba(30,64,175,.35);
  border-color: rgba(96,165,250,.4);
  color: #fff;
}
.ids-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; flex-shrink: 0;
}
.ids-txt { min-width: 0; flex: 1; }
.ids-txt strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.ids-txt span { display: block; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; line-height: 1.3; }
.ids-btn.active .ids-txt span { color: rgba(255,255,255,.55); }

/* scene progress bar inside button */
.ids-prog-wrap {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.08);
}
.ids-prog-fill { height: 100%; width: 0%; background: #60a5fa; }

/* ── Browser frame (right side) ─────────────────────────────────── */
.idemo-frame-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.idemo-browser {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.idemo-chrome {
  background: #1a2030;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.idb-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.idb-dot.r { background: #ef4444; } .idb-dot.y { background: #eab308; } .idb-dot.g { background: #22c55e; }
.idemo-url-bar {
  flex: 1; margin-left: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 4px 10px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
}
.idemo-url-bar i { color: #22c55e; font-size: 10px; }
#idemoUrl { color: rgba(255,255,255,.55); font-family: monospace; font-size: 11px; }

/* progress bar under chrome */
.idemo-prog-bar { height: 3px; background: rgba(255,255,255,.06); }
#idemoProgress { height: 100%; width: 0%; background: linear-gradient(90deg, #1e40af, #22d3ee); }

.idemo-screen {
  background: #f6f8fc;
  min-height: 420px;
  max-height: 480px;
  overflow: hidden;
  position: relative;
}

/* ── Controls bar ───────────────────────────────────────────────── */
.idemo-controls-bar {
  background: #111827;
  border: 1px solid rgba(255,255,255,.07);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.idemo-dots { display: flex; gap: 6px; }
.idemo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; padding: 0; cursor: pointer;
  transition: all .2s;
}
.idemo-dot.active { background: #60a5fa; width: 22px; border-radius: 4px; }
.idemo-ctrl {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all .15s;
}
.idemo-ctrl:hover { background: rgba(255,255,255,.14); color: #fff; }
.idemo-ctrl-group { display: flex; gap: 6px; align-items: center; }

.idemo-cta-row {
  display: flex; justify-content: center;
  margin-top: 32px;
}

/* ══ IDD (in-demo) app styles ════════════════════════════════════ */
.idd-layout {
  display: flex; height: 100%; min-height: 420px; font-family: var(--font);
}

/* sidebar */
.idd-side {
  width: 140px; background: var(--navy); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 8px;
}
.idd-logo {
  width: 30px; height: 30px; border-radius: 7px;
  background: linear-gradient(135deg, var(--navy-2), var(--primary));
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.idd-nav {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 7px;
  color: rgba(255,255,255,.38); font-size: 11px; cursor: default;
}
.idd-nav i { width: 14px; text-align: center; flex-shrink: 0; }
.idd-nav.active { background: rgba(30,64,175,.4); color: #93c5fd; }

/* main area */
.idd-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: #f6f8fc;
}
.idd-toprow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: #fff; flex-shrink: 0;
}
.idd-page-title { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.idd-proj-name  { font-size: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.idd-status-badge { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #d1fae5; color: #047857; }
.idd-btn-pri { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: none; background: var(--primary); color: #fff; cursor: pointer; font-family: var(--font); display:flex;align-items:center;gap:5px; }
.idd-btn-sec { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; font-family: var(--font); }
.idd-btn-pulse { animation: btnPulse .35s ease; }
@keyframes btnPulse { 0%{transform:scale(1)} 50%{transform:scale(.92)} 100%{transform:scale(1)} }

/* ── Scene 0: KPIs + charts ─────────────────────────────────────── */
.idd-kpis {
  display: flex; gap: 6px; padding: 10px 12px;
  flex-shrink: 0; flex-wrap: wrap;
}
.idd-kpi { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; }
.idd-kl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.idd-kv { font-size: 18px; font-weight: 800; }
.k-blue { background: #dbeafe; } .k-blue .idd-kv { color: var(--primary); }
.k-teal { background: #cffafe; } .k-teal .idd-kv { color: var(--accent); }
.k-green { background: #d1fae5; } .k-green .idd-kv { color: var(--success); }
.k-amber { background: #fef3c7; } .k-amber .idd-kv { color: var(--warning); }
.k-red   { background: #fee2e2; } .k-red .idd-kv   { color: var(--danger); }
.k-purple{ background: #ede9fe; } .k-purple .idd-kv{ color: var(--purple); }

.idd-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; padding: 0 12px 10px; flex: 1; min-height: 0; }
.idd-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; overflow: hidden; }
.idd-card-hd { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 8px; }

.idd-bars-wrap { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.idd-bar-grp { display: flex; gap: 2px; align-items: flex-end; flex: 1; flex-direction: column; position: relative; }
.idd-bar-grp > span { font-size: 8px; color: var(--text-faint); text-align: center; width: 100%; margin-top: 3px; }
.idd-bar { flex-shrink: 0; width: 100%; border-radius: 2px 2px 0 0; min-height: 0; height: 0; }
.bar-bg { background: var(--primary); opacity: .45; }
.bar-rl { background: var(--accent); }
.idd-legend { font-size: 9px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.idd-ldot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

.idd-phase-list { display: flex; flex-direction: column; gap: 7px; }
.idd-phase-row { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.idd-phase-row > span:first-child { width: 68px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.idd-phase-row > span:last-child  { width: 26px; text-align: right; font-weight: 700; color: var(--text-2); }
.idd-pb { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.idd-pb-fill { height: 100%; border-radius: 3px; width: 0; }

.idd-ai-pill {
  margin: 0 12px 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(109,40,217,.12), rgba(8,145,178,.12));
  border: 1px solid rgba(109,40,217,.25);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2); flex-shrink: 0;
}
.idd-ai-pill i { color: var(--purple); font-size: 13px; flex-shrink: 0; }
.idd-ai-pill strong { color: var(--purple); }

/* ── Scene 1: AI quantifier ─────────────────────────────────────── */
.idd-ia-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; padding: 10px 12px; flex: 1; min-height: 0; overflow: hidden; }
.idd-ia-left { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.idd-ia-right { display: flex; flex-direction: column; }

.idd-upload-zone {
  background: #fff; border: 1.5px dashed var(--border-strong);
  border-radius: 10px; padding: 14px; flex-shrink: 0;
}
.idd-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.idd-upload-inner i { font-size: 22px; color: var(--primary); }
.idd-upload-inner span { font-size: 11px; color: var(--text-muted); }
.idd-upload-done { display: flex; align-items: center; gap: 8px; }
.idd-upload-done i { font-size: 22px; flex-shrink: 0; }
.idd-fname { font-size: 11px; font-weight: 700; color: var(--text); }
.idd-fstatus { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.idd-chat { display: flex; flex-direction: column; gap: 6px; overflow: hidden; flex: 1; }
.idd-msg { font-size: 10px; padding: 7px 10px; border-radius: 8px; line-height: 1.45; max-width: 92%; }
.idd-msg-sys { background: var(--bg-deep); color: var(--text-2); align-self: flex-start; }
.idd-msg-usr { background: var(--primary); color: #fff; align-self: flex-end; }
.idd-msg-think {
  background: var(--bg-deep); display: flex; align-items: center; gap: 4px;
  padding: 9px 14px; align-self: flex-start;
}
.idd-msg-think span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: thinkBob .8s ease-in-out infinite alternate;
}
.idd-msg-think span:nth-child(2) { animation-delay: .15s; }
.idd-msg-think span:nth-child(3) { animation-delay: .3s; }
@keyframes thinkBob { 0%{opacity:.3;transform:translateY(0)} 100%{opacity:1;transform:translateY(-4px)} }

.idd-table-title { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.idd-ai-badge { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: linear-gradient(135deg, var(--purple), var(--accent)); color: #fff; }
.idd-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; flex: 1; }
.idd-tr { display: grid; grid-template-columns: 1fr 38px 38px 48px; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.idd-tr:last-child { border-bottom: none; }
.idd-tr-h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .4px; }
.idd-tr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idd-tr span:not(:first-child) { text-align: right; }
.idd-import-btn {
  margin-top: 8px; padding: 7px; border-radius: 7px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  border: none; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font);
}

/* ── Scene 2: Gantt ─────────────────────────────────────────────── */
.idd-gantt-wrap { padding: 10px 12px; flex: 1; overflow: hidden; }
.idd-gantt-hdr {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px; margin-bottom: 4px;
  font-size: 10px; color: var(--text-faint); font-weight: 600;
}
.idd-gh-label { width: 96px; flex-shrink: 0; }
.idd-gh-months { flex: 1; display: flex; justify-content: space-between; font-size: 9px; }
.idd-gantt-rows { display: flex; flex-direction: column; gap: 4px; position: relative; }
.idd-gr { display: flex; align-items: center; gap: 0; height: 28px; }
.idd-gr-name { width: 96px; font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.idd-gr-track { flex: 1; height: 100%; background: var(--bg-deep); border-radius: 4px; position: relative; overflow: visible; }
.idd-gr-bar {
  position: absolute; top: 4px; bottom: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px; overflow: hidden;
  transition: width .7s cubic-bezier(.4,0,.2,1);
}
.idd-gr-bar.crit { background: linear-gradient(90deg, var(--danger), #f97316); }
.idd-crit-tag {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 8px; font-weight: 700; color: #fff;
  background: rgba(185,28,28,.75); padding: 1px 5px; border-radius: 3px; white-space: nowrap;
}
.idd-gr-pct { width: 30px; text-align: right; font-size: 10px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; padding-left: 4px; }
.idd-today-line {
  position: absolute; left: calc(52% + 96px); top: -2px; bottom: -2px;
  width: 1.5px; background: #ef4444;
  pointer-events: none;
}
.idd-cpm-pill {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(185,28,28,.1), rgba(249,115,22,.1));
  border: 1px solid rgba(185,28,28,.3);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2); flex-shrink: 0;
}
.idd-cpm-pill i { color: var(--danger); font-size: 13px; flex-shrink: 0; }
.idd-cpm-pill strong { color: var(--danger); }

/* ── Scene 3: Costs ─────────────────────────────────────────────── */
.idd-cost-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px 12px; flex-shrink: 0;
}
.idd-cs { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.idd-cs-l { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--text-faint); margin-bottom: 3px; }
.idd-cs-v { font-size: 15px; font-weight: 800; }
.idd-cs-v.navy  { color: var(--navy); }
.idd-cs-v.blue  { color: var(--primary); }
.idd-cs-v.green { color: var(--success); }
.idd-cs-v.amber { color: var(--warning); }

.idd-cost-table { flex: 1; margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; background: #fff; }
.idd-ctr { display: grid; grid-template-columns: 1fr 72px 72px 56px; padding: 6px 10px; border-bottom: 1px solid var(--border); align-items: center; }
.idd-ctr:last-child { border-bottom: none; }
.idd-ctr-h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.idd-ctr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idd-ctr span:last-child { text-align: right; font-weight: 700; }
.idd-cat { font-weight: 700; padding: 2px 6px; border-radius: 4px; font-size: 9px; display: inline-flex; align-items: center; }
.idd-cat.mat { background: #dbeafe; color: var(--primary); }
.idd-cat.lab { background: #fef3c7; color: var(--warning); }
.idd-cat.eq  { background: #ede9fe; color: var(--purple); }

.idd-new-entry-form { padding: 6px 10px; background: linear-gradient(90deg, #f0f7ff, #f6f8fc); border-top: 2px dashed var(--primary); }
.idd-nef-fields { display: grid; grid-template-columns: 1fr 72px 72px 56px; align-items: center; gap: 0; }
.idd-nef-input { font-size: 10px; color: var(--text); }
.idd-nef-input::after { content: '|'; animation: blink 1s infinite; color: var(--primary); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.idd-nef-amount { font-size: 10px; font-weight: 700; text-align: right; }

/* ── Scene 4: Bitácora ──────────────────────────────────────────── */
.idd-bita-list { flex: 1; overflow-y: hidden; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.idd-bcard { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.idd-bcard-date { font-size: 9px; font-weight: 700; color: var(--text-muted); padding: 5px 10px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.idd-bcard-body { display: flex; gap: 8px; padding: 8px 10px; }
.idd-bphotos { display: flex; gap: 3px; flex-shrink: 0; }
.idd-bphoto { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.idd-btext { flex: 1; min-width: 0; }
.idd-btitle { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.idd-bdesc { font-size: 10px; color: var(--text-muted); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idd-btags { display: flex; gap: 4px; flex-wrap: wrap; }
.idd-btag { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--bg-deep); color: var(--text-muted); }
.idd-bita-cta {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(4,120,87,.08), rgba(8,145,178,.08));
  border: 1px solid rgba(4,120,87,.2);
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-2); flex-shrink: 0; margin: 0 12px 10px;
}
.idd-bita-cta i { color: var(--success); font-size: 13px; flex-shrink: 0; }

/* ── Rail group labels ──────────────────────────────────────────── */
.ids-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  padding: 8px 4px 4px; margin-top: 2px;
}
.ids-group-label:first-child { padding-top: 0; margin-top: 0; }

/* Rail scrollable when many scenes */
.ids-rail {
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
  padding-right: 4px;
}
.ids-rail::-webkit-scrollbar { width: 4px; }
.ids-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* ── Scene 3: Presupuesto ───────────────────────────────────────── */
.idd-budget-summary {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
  padding: 10px 12px; flex-shrink: 0;
}
.idd-bscard { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.idd-bsl { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; color: var(--text-faint); margin-bottom: 3px; }
.idd-bsv { font-size: 14px; font-weight: 800; }
.idd-bsv.navy   { color: var(--navy); }
.idd-bsv.blue   { color: var(--primary); }
.idd-bsv.purple { color: var(--purple); }
.idd-bsv.amber  { color: var(--warning); }

.idd-budget-table { flex: 1; margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; background: #fff; }
.idd-btr { display: grid; grid-template-columns: 1.4fr 80px 36px 40px 48px 56px; padding: 5px 8px; border-bottom: 1px solid var(--border); align-items: center; }
.idd-btr:last-child { border-bottom: none; }
.idd-btr-h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.idd-btr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idd-bold { font-weight: 800; color: var(--text); text-align: right; }
.idd-btotal { background: linear-gradient(90deg, #dbeafe, #cffafe); font-weight: 700; }
.idd-phase-tag { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: #dbeafe; color: var(--primary); }
.idd-phase-tag.mamp { background: #cffafe; color: var(--accent); }
.idd-phase-tag.inst { background: #ede9fe; color: var(--purple); }

/* ── Scene 5: Trabajadores ──────────────────────────────────────── */
.idd-workers-summary {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
  padding: 10px 12px; flex-shrink: 0;
}
.idd-ws {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
}
.idd-ws > i { font-size: 16px; flex-shrink: 0; }
.idd-ws-v { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.idd-ws-l { font-size: 9px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

.idd-worker-table { flex: 1; margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 10px; background: #fff; }
.idd-wtr { display: grid; grid-template-columns: 1.4fr 72px repeat(5,26px) 44px; padding: 6px 8px; border-bottom: 1px solid var(--border); align-items: center; gap: 2px; }
.idd-wtr:last-child { border-bottom: none; }
.idd-wtr-h { background: var(--bg-deep); font-weight: 700; color: var(--text-muted); font-size: 9px; text-transform: uppercase; }
.idd-wname { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idd-wavatar { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.idd-wspec { color: var(--text-muted); font-size: 10px; }
.idd-wday { width: 22px; height: 22px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; background: var(--bg-deep); color: var(--text-faint); }
.idd-wday.ok.filled { background: #d1fae5; color: #047857; }
.idd-wday.absent  { background: #fee2e2; color: var(--danger); }
.idd-wday.half    { background: #fef3c7; color: var(--warning); }
.idd-whrs { font-size: 10px; font-weight: 700; color: var(--text-2); text-align: right; }

/* ── Scene 7: Multi-proyecto ────────────────────────────────────── */
.idd-proj-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  padding: 10px 12px; flex: 1;
}
.idd-pcard { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; background: #fff; }
.idd-pcard.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.idd-pcard-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 4px; }
.idd-pcard-name { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.3; }
.idd-pbadge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.idd-pbadge.on   { background: #d1fae5; color: var(--success); }
.idd-pbadge.plan { background: var(--primary-soft); color: var(--primary); }
.idd-pcard-stats { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-bottom: 5px; }
.idd-pcard-stats strong { font-size: 16px; font-weight: 800; color: var(--text); }
.idd-pbar-wrap { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.idd-pbar-fill { height: 100%; border-radius: 3px; width: 0; }
.idd-pcard-meta { font-size: 9px; color: var(--text-faint); margin-bottom: 8px; }
.idd-pcard-kpis { display: flex; gap: 4px; }
.idd-pkpi { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }

/* ── Scene 8: Calculadora concreto ──────────────────────────────── */
.idd-concrete-wrap { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.idd-concrete-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idd-ci-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.idd-ci-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 6px; }
.idd-ci-select { display: flex; gap: 4px; }
.idd-fc-opt { padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--bg-deep); color: var(--text-muted); cursor: pointer; }
.idd-fc-opt.active { background: var(--primary); color: #fff; }
.idd-ci-value { font-size: 22px; font-weight: 800; color: var(--text); }
.idd-ci-unit { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.idd-concrete-ratio { background: linear-gradient(135deg,#dbeafe,#ede9fe); border: 1px solid rgba(30,64,175,.2); border-radius: 10px; padding: 10px 12px; flex-shrink: 0; }
.idd-cr-title { font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.idd-cr-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; text-align: center; }
.idd-cr-item {}
.idd-cr-val { font-size: 20px; font-weight: 800; color: var(--primary); }
.idd-cr-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 2px; }

.idd-concrete-results { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.idd-cr-head { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); background: var(--bg-deep); padding: 6px 10px; }
.idd-crr { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 11px; }
.idd-crr:last-child { border-bottom: none; }
.idd-crr > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--text-2); }

/* ── Scene 9: Auditoría ─────────────────────────────────────────── */
.idd-audit-filters { display: flex; gap: 6px; padding: 8px 12px; flex-shrink: 0; flex-wrap: wrap; }
.idd-filter-pill { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; }
.idd-filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.idd-audit-list { flex: 1; overflow-y: hidden; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.idd-arow { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-shrink: 0; }
.idd-arow-left { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; }
.idd-aavatar { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.idd-auser { font-size: 10px; font-weight: 700; color: var(--text); }
.idd-adetail { font-size: 10px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idd-arow-right { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.idd-aaction { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.idd-aentity { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--bg-deep); color: var(--text-muted); }
.idd-atime { font-size: 9px; color: var(--text-faint); }
.idd-adiff { margin-top: 6px; padding: 5px 8px; background: #f8fafc; border-radius: 6px; border: 1px solid var(--border); font-family: monospace; }
.idd-diff-add { display: block; font-size: 9px; color: #047857; }

/* ── Scene 10: Reportes PDF ─────────────────────────────────────── */
.idd-reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px; flex: 1; }
.idd-rep-card { background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.idd-rep-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex-shrink: 0; }
.idd-rep-info { flex: 1; min-width: 0; }
.idd-rep-title { font-size: 11px; font-weight: 700; color: var(--text); }
.idd-rep-desc { font-size: 9px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idd-rep-btn { padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; border: 1px solid var(--primary); color: var(--primary); background: #fff; cursor: pointer; font-family: var(--font); white-space: nowrap; flex-shrink: 0; }

.idd-gen-overlay {
  position: absolute; inset: 0; background: rgba(246,248,252,.96);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.idd-gen-box { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; max-width: 320px; width: 90%; text-align: center; box-shadow: var(--shadow-lg); }
.idd-gen-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.idd-gen-bar-wrap { height: 6px; background: var(--bg-deep); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.idd-gen-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.idd-gen-steps { text-align: left; display: flex; flex-direction: column; gap: 5px; }
.idd-gen-step { font-size: 11px; color: var(--success); font-weight: 600; }
.idd-gen-step.dimmed { color: var(--text-muted); }
.idd-gen-done { font-size: 12px; font-weight: 700; color: var(--success); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.idd-gen-done i { font-size: 22px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 580px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: repeat(2,1fr); }
  .plan-featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats-inner { grid-template-columns: repeat(2,1fr); }
  .modal-box { grid-template-columns: 1fr; max-width: 540px; }
  .modal-right { display: none; }
  /* Demo responsive */
  .idemo-wrap { grid-template-columns: 1fr; gap: 20px; }
  .ids-rail { flex-direction: row; flex-wrap: wrap; gap: 6px; max-height: none; overflow: visible; }
  .ids-btn { flex: 1; min-width: 130px; }
  .ids-txt span { display: none; }
  .ids-group-label { width: 100%; }
}
@media (max-width: 768px) {
  .topnav { display: none; }
  .topnav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 24px; gap: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.08); }
  .topbar.light .topnav.open { background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .topnav.open a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); color: rgba(255,255,255,.75); }
  .topbar.light .topnav.open a { border-color: var(--border); color: var(--text-2); }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-actions .btn-ghost { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ts-sidebar { width: 100px; }
  .ts-navg span { display: none; }
  .ts-sidebar { width: 44px; }
  .float-ai, .float-alert { display: none; }
  .hero-stats-inner { grid-template-columns: repeat(2,1fr); }
  /* Demo mobile */
  .demo-section { padding: 64px 0; }
  .ids-rail { gap: 5px; }
  .ids-btn { padding: 7px 8px; min-width: 110px; }
  .ids-icon { width: 28px; height: 28px; font-size: 12px; }
  .ids-txt strong { font-size: 11px; }
  .idd-side { display: none; }
  .idd-ia-grid { grid-template-columns: 1fr; }
  .idd-cost-summary { grid-template-columns: repeat(2,1fr); }
  .idd-two-col { grid-template-columns: 1fr; }
  .idd-budget-summary { grid-template-columns: repeat(2,1fr); }
  .idd-workers-summary { grid-template-columns: repeat(2,1fr); }
  .idd-proj-grid { grid-template-columns: 1fr; }
  .idd-concrete-inputs { grid-template-columns: 1fr; }
  .idd-reports-grid { grid-template-columns: 1fr; }
}
