/* =============================================================
   KAVORA · Demo interactiva de gestión de taller (datos ficticios)
   ============================================================= */
:root {
  --bg: #f4f5f3;
  --surface: #ffffff;
  --surface-2: #f8f9f8;
  --border: #e6e9e7;
  --border-strong: #d5dbd8;
  --text: #16211f;
  --text-2: #3d4946;
  --muted: #6b7673;
  --faint: #9aa4a1;

  --side: #0e2b30;
  --side-2: #153a40;
  --side-3: #1c474e;
  --side-text: #c3d3d1;
  --side-muted: #7f9b98;

  --sage: #7aa18a;
  --sage-600: #5b8770;
  --sage-700: #44705a;
  --sage-50: #eef4f0;
  --sage-100: #dce9e0;

  --amber: #a2741f;
  --amber-50: #fbf3e2;
  --rose: #ad5547;
  --rose-50: #fbeeeb;
  --blue: #3c6a82;
  --blue-50: #eaf1f5;
  --gray: #66706d;
  --gray-50: #f0f2f1;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 43, 48, .05);
  --shadow: 0 1px 2px rgba(14, 43, 48, .04), 0 6px 20px rgba(14, 43, 48, .05);
  --shadow-lg: 0 24px 70px rgba(10, 30, 32, .22);
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --kv-h: 44px;   /* alto de la franja KAVORA */
  --kv-off: 44px; /* cuánto tapa la franja arriba (0 en celular, donde no es fija) */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -.015em; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }
.ic { flex-shrink: 0; display: block; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.sub-label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 8px; }
.fade-in { animation: fadeIn .32s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: calc(100vh - var(--kv-h)); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view { padding: 28px 32px 120px; max-width: 1440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------------- Sidebar ---------------- */
.sidebar {
  width: 252px; flex-shrink: 0;
  background: var(--side);
  color: var(--side-text);
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky; top: var(--kv-off); height: calc(100vh - var(--kv-off));
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { color: #fff; font-size: 15.5px; letter-spacing: .08em; font-weight: 700; }
.brand-text span { font-size: 10.5px; letter-spacing: .26em; color: var(--sage); font-weight: 600; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--side-muted); padding: 16px 10px 6px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--side-text); font-weight: 500; font-size: 13.5px; text-align: left;
  transition: background .18s, color .18s;
}
.nav-item .ic { opacity: .75; }
.nav-item:hover { background: var(--side-2); color: #fff; }
.nav-item.active { background: var(--side-3); color: #fff; box-shadow: inset 2px 0 0 var(--sage); }
.nav-item.active .ic { opacity: 1; color: var(--sage); }
.nav-badge {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .09); color: var(--side-text);
  padding: 1px 7px; border-radius: 20px; min-width: 22px; text-align: center;
}
.nav-badge.accent { background: var(--sage); color: var(--side); }
.side-demo { background: var(--side-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 14px; margin: 12px 0; }
.side-demo-title { color: #fff; font-weight: 600; font-size: 13px; }
.side-demo-text { font-size: 12px; color: var(--side-muted); margin: 2px 0 11px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-user div { display: flex; flex-direction: column; line-height: 1.25; }
.side-user strong { color: #fff; font-size: 13px; font-weight: 600; }
.side-user span { font-size: 12px; color: var(--side-muted); }
.avatar-side { background: var(--sage) !important; color: var(--side) !important; }
.scrim { display: none; }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky; top: var(--kv-off); z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  background: rgba(244, 245, 243, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h2 { font-size: 17px; }
.topbar-title p { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { display: none !important; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 12px; height: 38px; width: 300px;
  color: var(--faint); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-50); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); font-size: 13.5px; }
.search input::placeholder { color: var(--faint); }
.search-inline { width: 280px; }
.search-wrap { position: relative; }
.search-plate { width: 340px; }
.search-plate input { letter-spacing: .01em; }
.search kbd { font-family: var(--font); font-size: 11px; color: var(--faint); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; line-height: 17px; }
.search:focus-within kbd { display: none; }
.search-results {
  position: absolute; top: 46px; left: 0; width: max(100%, 420px); z-index: 55;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; animation: fadeIn .18s var(--ease);
}
.search-results[hidden] { display: none; }
.sr-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 6px 10px 8px; }
.sr-head span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sr-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; }
.sr-item .plate { min-width: 92px; }
.sr-item:hover, .sr-item.sel { background: var(--sage-50); }
.sr-empty { display: flex; gap: 11px; padding: 12px 10px; color: var(--muted); }
.sr-empty div { display: flex; flex-direction: column; }
.sr-empty strong { color: var(--text); font-weight: 600; font-size: 13px; }
.sr-empty span { font-size: 12px; }
.plate mark { background: #fde9a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.proto-chip {
  font-size: 11.5px; font-weight: 500; color: var(--sage-700);
  background: var(--sage-50); border: 1px solid var(--sage-100);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px;
  font-weight: 550; font-size: 13.5px; white-space: nowrap;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .12s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--side); color: #fff; box-shadow: 0 1px 2px rgba(14, 43, 48, .2); }
.btn-primary:hover { background: var(--side-3); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-600); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-link { height: auto; padding: 4px 0; color: var(--sage-700); font-weight: 550; }
.btn-link:hover { color: var(--side); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; gap: 5px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 1px solid var(--border); background: var(--surface);
  position: relative; transition: background .18s, border-color .18s, color .18s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.icon-btn-sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); border: 2px solid var(--surface); }

/* ---------------- Popover notificaciones ---------------- */
.notif-wrap { position: relative; }
.popover {
  position: absolute; right: 0; top: 46px; width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; z-index: 50;
  animation: fadeIn .2s var(--ease);
}
.popover[hidden] { display: none; }
.popover-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.notif { display: flex; gap: 11px; align-items: flex-start; text-align: left; width: 100%; padding: 10px; border-radius: 9px; }
.notif:hover { background: var(--surface-2); }
.notif div { display: flex; flex-direction: column; }
.notif strong { font-size: 13px; font-weight: 600; }
.notif span { font-size: 12px; color: var(--muted); }
.notif .ic { margin-top: 2px; }
.rose-ic { color: var(--rose); } .amber-ic { color: var(--amber); } .sage-ic { color: var(--sage-600); }

/* ---------------- Tarjetas y piezas comunes ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-head p { font-size: 12.5px; margin-top: 2px; }
.card-head.pad { padding: 20px 20px 0; }
.card-accent { border-color: var(--sage-100); background: linear-gradient(180deg, #fbfdfb 0%, #fff 60%); box-shadow: var(--shadow); }
.accent-ic { color: var(--sage-600); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11.5px; font-weight: 550; padding: 3px 9px; border-radius: 20px;
  border: 1px solid transparent;
}
.pill-sage { background: var(--sage-50); color: var(--sage-700); border-color: var(--sage-100); }
.pill-amber { background: var(--amber-50); color: var(--amber); border-color: #f1e2c1; }
.pill-rose { background: var(--rose-50); color: var(--rose); border-color: #f2d6d0; }
.pill-gray { background: var(--gray-50); color: var(--gray); border-color: var(--border); }
.pill-blue { background: var(--blue-50); color: var(--blue); border-color: #d5e3ec; }

.dot-st { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-st.amber, .bg-amber { background: #d6a64d; }
.dot-st.sage, .bg-sage { background: var(--sage); }
.dot-st.gray, .bg-gray { background: #a8b1ae; }
.dot-st.blue, .bg-blue { background: #6e98ae; }
.dot-st.rose, .bg-rose { background: #c97a6d; }

.plate {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Segoe UI', var(--font); font-weight: 700; letter-spacing: .08em;
  background: #fff; color: #1b1f22; border: 1.5px solid #2a2f33; border-radius: 5px;
  position: relative; padding: 6px 8px 2px; font-size: 12px; white-space: nowrap; line-height: 1.2;
}
.plate::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #2f5d9b; border-radius: 3px 3px 0 0; }
.plate.sm { font-size: 11px; padding: 5px 6px 1px; border-width: 1.2px; }
.plate.sm::before { height: 3px; }
.plate.lg { font-size: 15px; padding: 11px 12px 4px; border-width: 2px; border-radius: 7px; }
.plate.lg::before { height: 7px; content: 'REPÚBLICA ARGENTINA'; font-size: 5px; color: #fff; letter-spacing: .12em; line-height: 7px; text-align: center; }

.type-ico { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.type-ico.auto { background: var(--blue-50); color: var(--blue); }
.type-ico.moto { background: var(--amber-50); color: var(--amber); }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { fill: #dfe3e1; }
.stars svg.on { fill: #d4a43c; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; }
.list-row + .list-row { border-top: 1px solid var(--border); }
.clickable { cursor: pointer; transition: background .15s; }
.list-row.clickable:hover { background: var(--surface-2); }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.list-main strong { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-end { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; }
.list-end strong { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.list-end span { font-size: 12px; color: var(--muted); }
.job-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.job-dot.service { background: var(--sage); }
.job-dot.reparacion { background: #6e98ae; }
.job-dot.diagnostico { background: #d6a64d; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; color: var(--muted); text-align: center; }

/* Grillas */
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.grid-1-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }

/* ---------------- Dashboard ---------------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 4px 2px 4px; }
.hero h1 { font-size: 28px; margin: 4px 0 6px; letter-spacing: -.025em; }
.hero-text { color: var(--text-2); font-size: 14.5px; max-width: 620px; }
.hero-text strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; transition: box-shadow .2s, transform .2s; }
.kpi:hover { box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--sage-50); color: var(--sage-700); display: inline-flex; align-items: center; justify-content: center; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 27px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; line-height: 1.15; }
.kpi-foot { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kpi-foot.up { color: var(--sage-700); }

.opp-feature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.opp-mini { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.opp-mini:hover { border-color: var(--sage-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.opp-mini-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opp-value { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 15px; }
.opp-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.opp-person > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.opp-person strong { font-weight: 600; }
.opp-person span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opp-person span .type-ico { width: 20px; height: 20px; border-radius: 6px; }
.opp-person span .type-ico .ic { width: 13px; height: 13px; }
.opp-mini p { font-size: 13px; color: var(--text-2); flex: 1; }
.opp-mini-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); }

.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-auto { background: var(--side); }
.lg-moto { background: var(--sage); }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gl { stroke: var(--border); stroke-width: 1; }
.chart .ax { font-size: 11px; fill: var(--faint); font-family: var(--font); }
.chart .hit { fill: transparent; }
.chart .b-auto { fill: var(--side); transition: opacity .2s; }
.chart .b-moto { fill: var(--sage); transition: opacity .2s; }
.chart .bar.partial .b-auto, .chart .bar.partial .b-moto { opacity: .45; }
.chart .bar:hover .hit { fill: rgba(122, 161, 138, .08); }
.chart:hover .bar:not(:hover) .b-auto, .chart:hover .bar:not(:hover) .b-moto { opacity: .55; }
.chart-tip {
  position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--side); color: #e6efee; font-size: 12px; padding: 7px 10px; border-radius: 8px;
  box-shadow: var(--shadow-lg); white-space: nowrap; line-height: 1.45;
}
.chart-tip strong { color: #fff; }
.chart-tip[hidden] { display: none; }

.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.funnel-label strong { font-variant-numeric: tabular-nums; }
.funnel-track { height: 8px; border-radius: 8px; background: var(--gray-50); overflow: hidden; }
.funnel-track i { display: block; height: 100%; border-radius: 8px; transition: width .6s var(--ease); }
.f-all { background: var(--side); } .f-ok { background: var(--sage); } .f-pend { background: #d6a64d; } .f-post { background: #b4bcb9; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.mini-stats div { display: flex; flex-direction: column; }
.mini-stats strong { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }

/* ---------------- Toolbars, segmentados, chips ---------------- */
.page-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 13px; color: var(--muted); font-size: 13px; }
.stat-chip strong { color: var(--text); font-weight: 650; }
.stat-chip.rose { color: var(--rose); background: var(--rose-50); border-color: #f2d6d0; }
.stat-chip.rose strong { color: var(--rose); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #e9ece9; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; transition: background .18s, color .18s, box-shadow .18s; }
.seg button em { font-style: normal; font-size: 11px; color: var(--faint); font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(14, 43, 48, .1); }
.seg-sm button { padding: 5px 10px; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .18s; }
.chip em { font-style: normal; color: var(--faint); font-weight: 600; margin-left: 3px; }
.chip:hover { border-color: var(--border-strong); }
.chip.active { background: var(--side); color: #fff; border-color: var(--side); }
.chip.active em { color: var(--sage); }

/* ---------------- Clientes ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 20px; align-items: start; }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.selected { background: var(--sage-50); box-shadow: inset 3px 0 0 var(--sage); }
.cell-person, .cell-vehicle { display: flex; align-items: center; gap: 11px; }
.cell-person div, .cell-vehicle div { display: flex; flex-direction: column; line-height: 1.3; }
.cell-person strong, .cell-vehicle strong { font-weight: 600; font-size: 13.5px; }
.cell-person span, .cell-vehicle span { font-size: 12px; color: var(--muted); }

.ficha { position: sticky; top: calc(86px + var(--kv-off)); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 106px - var(--kv-off)); overflow-y: auto; }
.ficha-head { display: flex; align-items: center; gap: 14px; }
.ficha-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ficha-ico.auto { background: var(--blue-50); color: var(--blue); }
.ficha-ico.moto { background: var(--amber-50); color: var(--amber); }
.ficha-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ficha-title h3 { font-size: 18px; letter-spacing: -.02em; }
.owner { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.owner-flat { padding: 0; border: 0; background: none; }
.ficha-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ficha-stats div { background: #fff; padding: 11px 12px; display: flex; flex-direction: column; }
.ficha-stats span { font-size: 11.5px; color: var(--muted); }
.ficha-stats strong { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

.next-card { border-radius: 12px; padding: 14px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; transition: box-shadow .3s; }
.next-card.vencido { background: var(--rose-50); border-color: #f0d3cd; }
.next-card.proximo { background: var(--amber-50); border-color: #f0e0bd; }
.next-card.ok { background: var(--sage-50); border-color: var(--sage-100); }
.next-top { display: flex; align-items: center; gap: 11px; }
.next-ico { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.next-card.vencido .next-ico { color: var(--rose); }
.next-card.proximo .next-ico { color: var(--amber); }
.next-card.ok .next-ico { color: var(--sage-700); }
.next-label { font-size: 11.5px !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.next-card p { font-size: 13px; color: var(--text-2); }
.next-card .btn { align-self: flex-start; }
.km-bar { height: 7px; border-radius: 8px; background: rgba(14, 43, 48, .08); overflow: hidden; }
.km-bar i { display: block; height: 100%; background: var(--sage); border-radius: 8px; transition: width .6s var(--ease); }
.next-card.vencido .km-bar i { background: #c97a6d; }
.next-card.proximo .km-bar i { background: #d6a64d; }
.km-bar.light { background: rgba(255, 255, 255, .15); }
.km-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: -4px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s, border-color .18s; }
.tab em { font-style: normal; font-size: 11px; background: var(--gray-50); padding: 0 6px; border-radius: 10px; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--side); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 20px 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border-strong); }
.tl-dot.service { background: var(--sage); }
.tl-dot.reparacion { background: #6e98ae; }
.tl-dot.diagnostico { background: #d6a64d; }
.tl-dot.budget { background: #fff; box-shadow: 0 0 0 2px #d6a64d; border-color: #fff; }
.tl-dot.start { background: var(--border-strong); }
.tl-body { display: flex; flex-direction: column; gap: 4px; }
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl-top strong { font-weight: 600; }
.tl-amount { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.tl-meta { font-size: 12px; color: var(--muted); }
.tl-body p { font-size: 13px; color: var(--text-2); }
.tl-budget .tl-body { border: 1px dashed #e5cf9f; background: #fffcf5; border-radius: 10px; padding: 11px 12px; }
.tl-budget .btn { align-self: flex-start; margin-top: 4px; }
.thumbs { display: flex; gap: 8px; margin-top: 4px; }

.photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; border-radius: 10px; overflow: hidden; background: #2a3634; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.photo:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 43, 48, .18); }
.photo svg { width: 100%; height: 100%; display: block; }
.photo-badge { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .32); color: #fff; border-radius: 6px; padding: 3px; display: flex; }
.photo-cap { position: absolute; left: 6px; bottom: 6px; right: 6px; font-size: 11px; font-weight: 500; color: #fff; background: rgba(10, 20, 20, .48); backdrop-filter: blur(4px); padding: 2px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.photo.thumb { width: 96px; flex-shrink: 0; }
.photo.thumb .photo-cap { font-size: 10px; padding: 1px 5px; }
.photo.thumb .photo-badge { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.rep-list { display: flex; flex-direction: column; gap: 6px; }
.rep-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.rep-row strong { font-variant-numeric: tabular-nums; }
.rep-row.clickable:hover { background: var(--surface-2); }
.rep-list .sub-label { margin: 12px 0 4px; }

/* ---------------- Presupuestos ---------------- */
.kpis-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-sm { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.kpi-sm > div { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.kpi-sm span { font-size: 12.5px; color: var(--muted); }
.kpi-sm strong { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.kpi-sm em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.split-budget { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.b-list { display: flex; flex-direction: column; gap: 10px; }
.b-item { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.b-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.b-item.active { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-50), var(--shadow); }
.b-item-top, .b-item-foot { display: flex; justify-content: space-between; align-items: center; }
.b-id { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.b-item-main { display: flex; align-items: center; gap: 11px; }
.b-item-foot { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.b-item-foot strong { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.b-detail { padding: 24px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(86px + var(--kv-off)); }
.bd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bd-head h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; letter-spacing: -.02em; }
.bd-actions { display: flex; gap: 8px; }
.bd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.bd-box.clickable:hover { border-color: var(--border-strong); }
.bd-section p { color: var(--text-2); font-size: 13.5px; }
.bd-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.items th { font-size: 11.5px; color: var(--faint); font-weight: 500; text-align: left; padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.items th.num { text-align: right; }
.items td { padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-2); }
.items td.num { padding-left: 14px; white-space: nowrap; }
.totals { margin-left: auto; width: min(320px, 100%); display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .total { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; color: var(--text); font-size: 15px; font-weight: 600; }
.totals .total strong { font-size: 22px; letter-spacing: -.02em; }
.notes { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.notes .sub-label { color: var(--blue); opacity: .75; margin-bottom: 3px; }
.notes p { color: var(--text-2); }
.status-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---------------- Modales ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(9, 25, 28, .5);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .22s;
}
.overlay.show { opacity: 1; }
.modal { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; transform: translateY(12px) scale(.98); transition: transform .28s var(--ease); }
.overlay.show .modal { transform: none; }
.modal-bare { background: transparent; box-shadow: none; width: auto; overflow: visible; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }

.wa-contact { display: flex; align-items: center; gap: 11px; }
.wa-contact div { display: flex; flex-direction: column; line-height: 1.3; }
.wa-contact strong { font-weight: 600; }
.wa-contact span { font-size: 12.5px; color: var(--muted); }
.wa-title { padding: 10px 18px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.wa-chat {
  padding: 20px 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  background-color: #f1efe8;
  background-image: radial-gradient(rgba(14, 43, 48, .05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-chat-sm { border-radius: 12px; margin-bottom: 14px; padding: 16px; }
.wa-day { align-self: center; font-size: 11px; background: rgba(255, 255, 255, .8); color: var(--muted); padding: 2px 10px; border-radius: 8px; }
.wa-bubble { background: #dbeedd; color: #1c2a24; border-radius: 12px 12px 3px 12px; padding: 10px 12px 6px; max-width: 92%; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); white-space: pre-wrap; }
.wa-bubble[hidden] { display: none; }
.wa-time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 10.5px; color: #6c8a78; margin-top: 2px; }
.wa-time .ic { color: #4f9bb0; }
.wa-edit { width: 100%; min-height: 150px; border: 1px solid var(--sage); border-radius: 12px; padding: 12px; outline: 0; resize: vertical; background: #fff; line-height: 1.5; box-shadow: 0 0 0 3px var(--sage-50); }
.wa-edit[hidden] { display: none; }
.wa-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 12px 18px 0; }

/* ---------------- Teléfono ---------------- */
.phone-modal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-close { position: absolute; top: 0; right: -54px; background: rgba(255, 255, 255, .92); }
.phone-caption { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); font-size: 12.5px; }
.phone {
  width: 340px; height: min(700px, calc(100vh - 90px));
  background: #0c1517; border-radius: 46px; padding: 11px;
  box-shadow: 0 0 0 2px #2a3537, 0 30px 80px rgba(0, 0, 0, .35);
  position: relative; display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0c1517; border-radius: 20px; z-index: 3; }
.phone-status { position: absolute; top: 11px; left: 11px; right: 11px; height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; font-size: 13px; font-weight: 600; z-index: 2; color: var(--text); }
.phone-sig { display: flex; align-items: flex-end; gap: 2px; }
.phone-sig i { width: 3px; background: var(--text); border-radius: 1px; }
.phone-sig i:nth-child(1) { height: 5px; } .phone-sig i:nth-child(2) { height: 7px; } .phone-sig i:nth-child(3) { height: 9px; }
.phone-sig b { width: 20px; height: 10px; border: 1.5px solid var(--text); border-radius: 3px; margin-left: 5px; position: relative; }
.phone-sig b::after { content: ''; position: absolute; inset: 1.5px; right: 4px; background: var(--text); border-radius: 1px; }
.phone-screen { flex: 1; background: #f6f7f5; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; padding-top: 46px; position: relative; }
.mini-logo { width: 30px; height: 30px; flex-shrink: 0; }
.p-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 12px; border-bottom: 1px solid var(--border); background: #fff; }
.p-head div { display: flex; flex-direction: column; line-height: 1.25; }
.p-head strong { font-size: 13.5px; font-weight: 650; }
.p-head span { font-size: 11.5px; color: var(--muted); }
.p-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.p-scroll::-webkit-scrollbar { display: none; }
.p-scroll h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-top: 4px; }
.p-hello { font-size: 17px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.p-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; }
.p-card > div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.p-card strong { font-size: 13.5px; font-weight: 600; }
.p-card span { font-size: 12px; color: var(--muted); }
.p-vehicle .ic { color: var(--blue); }
.p-text { font-size: 13px; color: var(--text-2); }
.p-scroll > * { flex-shrink: 0; } /* evita que la tira de fotos colapse a altura 0 */
.p-scroll h5 { display: flex; align-items: center; gap: 6px; }
.p-photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.p-gallery { display: flex; flex-direction: column; gap: 8px; }
.p-gal-main { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 16px rgba(14, 43, 48, .16); }
.p-gal-main .photo { border-radius: 14px; aspect-ratio: 4 / 3; }
.p-gal-main .photo-cap { font-size: 12px; padding: 4px 9px; left: 10px; bottom: 10px; right: auto; max-width: calc(100% - 20px); }
.p-gal-count { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .38); padding: 2px 8px; border-radius: 10px; pointer-events: none; }
.p-gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.p-gal-thumb { border-radius: 9px; overflow: hidden; aspect-ratio: 16 / 11; opacity: .6; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .18s, outline-color .18s; }
.p-gal-thumb svg { width: 100%; height: 100%; display: block; }
.p-gal-thumb.on { opacity: 1; outline-color: var(--sage-600); }
.p-gal-hint { font-size: 11px; color: var(--faint); text-align: center; }
.p-photo { width: 128px; flex-shrink: 0; }
.p-lines { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 4px 12px; }
.p-lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 8px 0; color: var(--text-2); }
.p-lines div + div { border-top: 1px solid var(--border); }
.p-lines span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text); }
.p-total { display: flex; justify-content: space-between; align-items: center; background: var(--side); color: #fff; border-radius: 14px; padding: 14px 16px; }
.p-total span { font-size: 13px; color: var(--side-text); }
.p-total strong { font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-fine { font-size: 11.5px; color: var(--muted); }
.phone-actions { padding: 12px 14px 18px; background: #fff; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.p-btn { width: 100%; height: 44px; border-radius: 12px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .18s, transform .12s; flex-shrink: 0; }
.p-btn:active { transform: scale(.98); }
.p-btn-primary { background: var(--sage-600); color: #fff; }
.p-btn-primary:hover { background: var(--sage-700); }
.p-btn-ghost { background: #fff; border: 1px solid var(--border-strong); color: var(--text-2); }
.p-btn-link { height: 32px; color: var(--muted); font-weight: 500; font-size: 13px; }
.p-success { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 22px 22px; gap: 12px; animation: fadeIn .4s var(--ease); overflow-y: auto; }
.p-success-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--sage-50); color: var(--sage-600); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(122, 161, 138, .12); animation: popIn .5s var(--ease); }
.p-success-ico.blue { background: var(--blue-50); color: var(--blue); box-shadow: 0 0 0 8px rgba(60, 106, 130, .1); }
@keyframes popIn { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.p-success h4 { font-size: 19px; margin-top: 6px; }
.p-success p { font-size: 13px; color: var(--text-2); }
.p-summary { justify-content: space-between; margin-top: 6px; }
.p-summary span { font-size: 12.5px; }
.p-summary strong { font-size: 15px; }
.p-next { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; background: var(--sage-50); color: var(--sage-700); }
.p-next div { display: flex; flex-direction: column; line-height: 1.3; }
.p-next strong { font-size: 13px; color: var(--text); }
.p-next span { font-size: 12px; }
.p-success .p-btn { margin-top: auto; }
.p-modify { display: flex; flex-direction: column; gap: 9px; animation: fadeIn .25s var(--ease); }
.p-modify strong { font-size: 13.5px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip { font-size: 12px; padding: 5px 10px; border-radius: 16px; border: 1px solid var(--border-strong); color: var(--text-2); background: #fff; }
.p-chip.on { background: var(--sage-50); border-color: var(--sage); color: var(--sage-700); }
.p-modify textarea { border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; font-size: 13px; resize: none; outline: 0; }
.p-modify textarea:focus { border-color: var(--sage); }

/* Portal app */
.p-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.p-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--border); padding: 7px 6px 16px; }
.p-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--faint); font-weight: 500; padding: 4px 0; transition: color .18s; }
.p-nav button.active { color: var(--sage-700); }
.p-car { background: var(--side); color: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 24px rgba(14, 43, 48, .25); }
.p-car-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p-car-top div { display: flex; flex-direction: column; line-height: 1.3; }
.p-car-top span { font-size: 11.5px; color: var(--side-muted); }
.p-car-top strong { font-size: 15px; font-weight: 600; }
.p-car-km { display: flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-car-km .ic { color: var(--sage); }
.p-car-next { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px; }
.p-car-next div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.p-car-next span { font-size: 11px; color: var(--side-muted); }
.p-car-next strong { font-size: 12.5px; font-weight: 600; }
.p-car-next em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: rgba(122, 161, 138, .25); color: #cfe3d6; white-space: nowrap; }
.p-car-next.vencido em { background: rgba(201, 122, 109, .3); color: #f6d5ce; }
.p-car .km-bar i { background: var(--sage); }
.p-car-next.vencido + .km-bar i { background: #d98f82; }
.p-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-quick button { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: var(--text-2); transition: border-color .18s; }
.p-quick button .ic { color: var(--sage-600); }
.p-quick button:hover { border-color: var(--sage); }
.p-budget-link .ic { color: var(--amber); }
.p-job .p-mini { width: 64px; flex-shrink: 0; border-radius: 8px; }
.p-job .p-mini .photo-badge { display: none; }
.p-h { font-size: 15px !important; text-transform: none !important; letter-spacing: -.01em !important; color: var(--text) !important; }
.p-tl { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: flex; flex-direction: column; gap: 16px; }
.p-tl::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.p-tl li { position: relative; padding-left: 28px; }
.p-tl li > div { display: flex; flex-direction: column; gap: 3px; }
.p-tl strong { font-size: 13px; font-weight: 600; }
.p-tl span { font-size: 11.5px; color: var(--muted); }
.p-tl p { font-size: 12.5px; color: var(--text-2); }
.p-tl .p-photo { width: 110px; }
.p-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); padding: 60px 10px; text-align: center; }
.p-map { position: relative; border-radius: 14px; overflow: hidden; height: 130px; border: 1px solid var(--border); }
.p-map svg { width: 100%; height: 100%; display: block; }
.p-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); color: #fff; background: var(--side); border-radius: 50%; padding: 7px; box-shadow: 0 6px 14px rgba(14, 43, 48, .35); }
.p-info { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.p-info div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.p-info .ic { color: var(--sage-600); }

/* ---------------- Recuperación ---------------- */
.recovery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding: 24px; background: linear-gradient(135deg, #fff 0%, #f6faf7 100%); border-color: var(--sage-100); }
.rh-main { display: flex; flex-direction: column; gap: 6px; }
.rh-value { font-size: 38px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rh-progress { margin-top: 14px; max-width: 360px; }
.rh-progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.rh-progress-top strong { color: var(--text); }
.rh-break { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.rh-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rh-label { flex: 1; color: var(--text-2); }
.rh-row strong { font-variant-numeric: tabular-nums; min-width: 96px; text-align: right; }
.rh-track { height: 5px; border-radius: 5px; background: var(--gray-50); overflow: hidden; margin-bottom: 6px; }
.rh-track i { display: block; height: 100%; border-radius: 5px; }
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.opp-card { display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s, opacity .2s; }
.opp-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.opp-card.done { opacity: .62; }
.opp-card.done:hover { opacity: .9; }
.opp-card-top { display: flex; justify-content: space-between; align-items: center; }
.contacted { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--sage-700); }
.opp-reason { font-size: 13px; color: var(--text-2); flex: 1; }
.opp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.opp-meta div { background: var(--surface-2); padding: 10px 12px; display: flex; flex-direction: column; line-height: 1.35; }
.opp-meta span { font-size: 11.5px; color: var(--muted); }
.opp-meta strong { font-size: 13.5px; font-weight: 600; }
.opp-meta strong.money { font-size: 16px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.opp-meta em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.opp-actions { display: flex; gap: 8px; }

/* ---------------- Reputación ---------------- */
.review-row { align-items: flex-start; }
.review-row .list-main span { white-space: normal; }
.review-text { font-style: normal; font-size: 12.5px; color: var(--text-2); margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.review-row .pill, .review-row .btn { margin-top: 3px; }
.review-example { display: flex; flex-direction: column; }
.guidelines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.guidelines span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.guidelines .ic { color: var(--sage-600); }
.review-example .btn { margin-top: auto; }
.ref-flows { display: flex; flex-direction: column; gap: 18px; }
.ref-flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ref-node { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-sm); min-width: 200px; }
.ref-node div { display: flex; flex-direction: column; line-height: 1.3; }
.ref-node strong { font-size: 13px; font-weight: 600; }
.ref-node span { font-size: 12px; color: var(--muted); }
.ref-arrow { flex: 1; min-width: 90px; max-width: 160px; height: 2px; background: repeating-linear-gradient(90deg, var(--sage) 0 6px, transparent 6px 11px); position: relative; margin: 0 12px; }
.ref-arrow::after { content: ''; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--sage); border-right: 0; }
.ref-arrow span { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 11px; color: var(--sage-700); background: var(--surface-2); padding: 0 6px; white-space: nowrap; font-weight: 500; }
.ref-branch { display: flex; flex-direction: column; gap: 10px; position: relative; }

/* ---------------- Portal ---------------- */
.portal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 8px 0 0; max-width: 1100px; margin: 0 auto; width: 100%; }
.portal-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.portal-copy h1 { font-size: 32px; letter-spacing: -.03em; line-height: 1.15; max-width: 480px; }
.portal-copy .sub-label { margin: 8px 0 -4px; }
.portal-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 440px; }
.pick { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.pick div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pick strong { font-size: 13px; font-weight: 600; }
.pick span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick:hover { border-color: var(--border-strong); }
.pick.active { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-50); }
.benefits { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits li > .ic { color: var(--sage-600); background: var(--sage-50); padding: 7px; width: 32px; height: 32px; border-radius: 9px; }
.benefits div { display: flex; flex-direction: column; line-height: 1.35; }
.benefits strong { font-weight: 600; font-size: 13.5px; }
.benefits span { font-size: 12.5px; color: var(--muted); }
.portal-phone .phone { height: 700px; }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(6, 16, 18, .82); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; opacity: 0; transition: opacity .2s; }
.lightbox.show { opacity: 1; }
.lightbox figure { margin: 0; width: min(760px, 100%); }
.lightbox svg { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 500; display: flex; justify-content: space-between; gap: 10px; }
.lightbox figcaption span { color: rgba(255, 255, 255, .55); font-size: 12.5px; font-weight: 400; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; top: calc(76px + var(--kv-off)); right: 24px; z-index: 110; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--side); color: #eaf2f1; padding: 11px 15px 11px 11px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 380px; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: none; }
.toast-ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); flex-shrink: 0; }
.toast-ok .toast-ico { background: var(--sage); color: var(--side); }
.toast-warn .toast-ico { background: #d6a64d; color: var(--side); }

/* ---------------- Recorrido ---------------- */
.tour {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 380px;
  background: var(--side); color: var(--side-text); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(6, 20, 22, .4), 0 0 0 1px rgba(255, 255, 255, .06);
}
.tour[hidden] { display: none; }
.tour.pop { animation: tourPop .35s var(--ease); }
@keyframes tourPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-step { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.tour .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .12); color: var(--side-text); }
.tour .icon-btn:hover { background: var(--side-2); }
.tour h3 { color: #fff; font-size: 16.5px; margin-bottom: 6px; letter-spacing: -.01em; }
.tour p { font-size: 13.5px; line-height: 1.55; }
.tour-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .18); transition: all .25s; }
.tour-dots i.done { background: var(--sage-600); }
.tour-dots i.on { width: 20px; background: var(--sage); }
.tour-btns { display: flex; gap: 6px; }
.tour .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--side-text); }
.tour .btn-ghost:hover { background: var(--side-2); }
.tour .btn-primary { background: var(--sage); color: var(--side); }
.tour .btn-primary:hover { background: #8db29b; }
.tour-focus { position: relative; animation: focusRing 1.8s var(--ease) infinite; border-radius: 14px; }
@keyframes focusRing {
  0%, 100% { box-shadow: 0 0 0 3px rgba(122, 161, 138, .55), 0 0 0 10px rgba(122, 161, 138, .12); }
  50% { box-shadow: 0 0 0 3px rgba(122, 161, 138, .9), 0 0 0 16px rgba(122, 161, 138, 0); }
}
.wa-bubble.tour-focus { border-radius: 12px 12px 3px 12px; }
.phone-actions.tour-focus { border-radius: 0 0 0 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1280px) {
  .search { width: 230px; }
  .search-plate { width: 270px; }
  .proto-chip { display: none; }
}
@media (max-width: 1100px) {
  .split, .split-budget { grid-template-columns: minmax(0, 1fr); }
  .ficha, .b-detail { position: static; max-height: none; }
  .grid-2-1, .grid-3-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opp-feature { grid-template-columns: 1fr; }
  .portal { grid-template-columns: 1fr; justify-items: center; gap: 28px; }
  .portal-copy { align-items: center; text-align: center; }
  .portal-pick { margin: 0 auto; }
  .benefits li { text-align: left; }
}
@media (max-width: 880px) {
  :root { --kv-off: 0px; }
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; height: 100dvh; transform: translateX(-100%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s .28s; transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(9, 25, 28, .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex !important; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar { flex-wrap: wrap; }
  .search-wrap { order: 10; width: 100%; }
  .search-plate { width: 100%; }
  .search-results { width: 100%; }
  .search kbd { display: none; }
  .view { padding: 20px 16px 140px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .grid-1-1 { grid-template-columns: minmax(0, 1fr); }
  .card-head { flex-wrap: wrap; }
  .list-row { flex-wrap: wrap; }
  .recovery-hero { grid-template-columns: 1fr; gap: 20px; }
  .hide-md { display: none; }
  .search-inline { width: 100%; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tour { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .phone-close { right: 0; top: -48px; }
  .modal-bare { padding-top: 40px; }
}
@media (max-width: 560px) {
  .kpis, .kpis-sm { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .btn-new { width: 38px; padding: 0; }
  .hero h1 { font-size: 24px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .ficha-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ficha-head { flex-wrap: wrap; }
  .bd-grid2, .guidelines { grid-template-columns: 1fr; }
  .bd-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-flow { flex-direction: column; align-items: stretch; }
  .ref-arrow { width: 2px; height: 36px; min-width: 0; max-width: none; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--sage) 0 6px, transparent 6px 11px); }
  .ref-arrow::after { right: -4px; top: auto; bottom: -3px; border: 5px solid transparent; border-top: 7px solid var(--sage); border-bottom: 0; }
  .ref-arrow span { top: 50%; left: 14px; transform: translateY(-50%); }
  .opp-grid { grid-template-columns: 1fr; }
  .sr-item .pill { display: none; }
  .phone { width: min(340px, calc(100vw - 32px)); }
  .portal-copy h1 { font-size: 26px; }
  .tbl td, .tbl th { padding: 10px 12px; }
  .rh-value { font-size: 30px; }
}


/* =============================================================
   Franja KAVORA (arriba de la demo, no tapa la app)
   ============================================================= */
.kv-strip {
  position: sticky; top: 0; z-index: 50;
  height: var(--kv-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  background: #0D1618;
  color: #F6F5F0;
  border-bottom: 1px solid rgba(246, 245, 240, .12);
  font-size: 13px;
}
.kv-home { display: inline-flex; align-items: center; gap: 9px; color: #F6F5F0; text-decoration: none; font-weight: 700; letter-spacing: .14em; font-size: 12.5px; border-radius: 6px; }
.kv-home img { width: 22px; height: 22px; display: block; }
.kv-tag { display: inline-flex; align-items: center; gap: 7px; color: #A9B6BA; font-size: 12.5px; white-space: nowrap; }
.kv-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5FC5AE; flex-shrink: 0; }
.kv-spacer { flex: 1; }
.kv-back { color: #F6F5F0; text-decoration: none; font-size: 13px; white-space: nowrap; padding: 6px 4px; border-radius: 6px; opacity: .88; }
.kv-back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.kv-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #5FC5AE; color: #0D1618; text-decoration: none; font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: 8px; white-space: nowrap; transition: background .18s;
}
.kv-cta:hover { background: #7fd3c0; }
.kv-short { display: none; }

/* Foco visible para teclado en toda la demo */
:focus-visible { outline: 2px solid var(--sage-600); outline-offset: 2px; }
.sidebar :focus-visible, .tour :focus-visible, .kv-strip :focus-visible { outline-color: #9fd0b5; }
tr[data-action]:focus-visible td { background: var(--sage-50); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: #0D1618; color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .kv-tag-long { display: none; }
}
@media (max-width: 880px) {
  .kv-strip { position: relative; z-index: 20; padding: 0 16px; gap: 10px; }
}
@media (max-width: 560px) {
  .kv-home span, .kv-tag { display: none; }
  .kv-long { display: none; }
  .kv-short { display: inline; }
  .kv-cta { padding: 7px 11px; font-size: 12.5px; }
  .kv-back { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =============================================================
   Presentación de la demo (bloque de valor + secciones)
   ============================================================= */
.tj-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tj-intro { background: #0D1618; color: #F6F5F0; padding: 48px 0 52px; }
.tj-crumb { font-size: 12.5px; color: #A9B6BA; margin-bottom: 22px; }
.tj-crumb a { color: #A9B6BA; text-decoration: none; }
.tj-crumb a:hover { color: #F6F5F0; text-decoration: underline; text-underline-offset: 3px; }
.tj-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #5FC5AE; margin-bottom: 14px; }
.tj-eyebrow-dark { color: #0B6A5B; }
.tj-intro h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.16; font-weight: 700; letter-spacing: -.02em; max-width: 30ch; }
.tj-lead { margin-top: 18px; font-size: 17px; line-height: 1.6; color: #D6DDDF; max-width: 68ch; }
.tj-results { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tj-results li { border: 1px solid rgba(246, 245, 240, .14); border-radius: 12px; padding: 16px 18px; background: rgba(246, 245, 240, .03); }
.tj-results strong { display: block; font-size: 15px; color: #5FC5AE; margin-bottom: 6px; }
.tj-results span { font-size: 14px; color: #C9D2D4; line-height: 1.5; }
.tj-principle { margin-top: 22px; font-size: 14.5px; color: #C9D2D4; max-width: 72ch; }
.tj-principle strong { color: #F6F5F0; }
.tj-principle a { color: #5FC5AE; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tj-principle a:hover { color: #F6F5F0; }
.tj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tj-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .18s, border-color .18s; text-align: left; }
.tj-btn-primary { background: #5FC5AE; color: #0D1618; }
.tj-btn-primary:hover { background: #7fd3c0; }
.tj-btn-ghost { border: 1px solid rgba(246, 245, 240, .35); color: #F6F5F0; }
.tj-btn-ghost:hover { border-color: #F6F5F0; }
.tj-h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.tj-intro-text { margin-top: 10px; font-size: 15.5px; color: var(--text-2); max-width: 70ch; line-height: 1.6; }
.tj-how { background: #F6F5F0; padding: 44px 0; border-bottom: 1px solid var(--border); }
.tj-steps, .tj-includes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.tj-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tj-includes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tj-steps li, .tj-includes li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.tj-num { display: block; font-size: 13px; font-weight: 700; color: #0B6A5B; letter-spacing: .06em; margin-bottom: 8px; }
.tj-steps h3, .tj-includes h3 { font-size: 15.5px; margin-bottom: 6px; }
.tj-steps p, .tj-includes p { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.tj-demo-head { padding: 36px 0 22px; background: var(--bg); outline: none; }
.tj-note-wrap { background: var(--bg); padding: 20px 0 8px; border-top: 1px solid var(--border); }
.tj-note { font-size: 13.5px; color: var(--muted); max-width: 90ch; line-height: 1.6; }
.tj-note strong { color: var(--text-2); }
.tj-includes-sec { background: var(--bg); padding: 36px 0 48px; }
.tj-cta { background: #0D1618; color: #F6F5F0; padding: 48px 0 64px; }
.tj-cta .tj-intro-text { color: #C9D2D4; }
@media (max-width: 1000px) {
  .tj-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tj-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tj-wrap { padding: 0 16px; }
  .tj-intro { padding: 32px 0 36px; }
  .tj-lead { font-size: 16px; }
  .tj-results, .tj-steps, .tj-includes { grid-template-columns: minmax(0, 1fr); }
  .tj-btn { width: 100%; justify-content: center; text-align: center; }
  .tj-cta { padding-bottom: 96px; }
}
