/* Source Code — Cotizaciones */
:root {
  --primary: #5058F2;
  --primary-hover: #0597F2;
  --accent: #0597F2;
  --text: #0D1B2A;
  --text-2: #707070;
  --navy: #161725;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-soft: #EEF1F6;
  --green: #16A34A;
  --green-bg: #DCFCE7;
  --amber: #B45309;
  --amber-bg: #FEF3C7;
  --red: #DC2626;
  --red-bg: #FEE2E2;
  --blue-bg: #E0E7FF;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 1px 2px rgba(13, 27, 42, 0.04), 0 6px 18px rgba(13, 27, 42, 0.06);
  --radius-card: 14px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --pad-x: 40px;
  --row-h: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: var(--text); }
input:focus, textarea:focus, select:focus { outline: none; }
.poppins { font-family: 'Poppins', sans-serif; }
.mono-num { font-variant-numeric: tabular-nums; }

/* SECTION LABEL — uppercase tracked, Poppins 500, #707070 */
.section-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-2);
  font-size: 11px;
}

/* APP SHELL */
.app { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand .mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.brand span.l1 { color: #fff; }
.brand span.l2 { color: #BDC1FA; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: rgba(255,255,255,0.62);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-item.active { color: #fff; background: rgba(80, 88, 242, 0.18); }
.nav-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: 0; }
.nav-item.active .dot { opacity: 1; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13px;
}

.main { padding: 32px var(--pad-x) 80px; max-width: 1400px; width: 100%; }

/* TOPBAR / TITLES */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 24px; }
.page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  color: var(--text);
}
.page-subtitle { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* BUTTONS */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--border-soft); }
.btn-danger-ghost { background: transparent; color: var(--text-2); }
.btn-danger-ghost:hover { color: var(--red); background: var(--red-bg); }
.btn-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.14); }
.btn-light:hover { background: rgba(255,255,255,0.14); }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-pad-lg { padding: 28px 32px; }

/* STATS STRIP */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat .stat-num {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 28px; letter-spacing: -0.02em; color: var(--text);
  margin-top: 8px;
}
.stat .stat-delta { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.stat .stat-delta.up { color: var(--green); }
.stat .stat-delta.down { color: var(--red); }

/* TABLE */
.table-card { padding: 0; overflow: hidden; }
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  flex: 1; max-width: 360px;
}
.search input {
  border: 0; background: transparent; flex: 1;
  font-size: 14px; color: var(--text); font-weight: 400;
}
.search input::placeholder { color: var(--text-2); }
.filter-chips { display: flex; gap: 6px; }
.chip {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid transparent;
}
.chip.active { background: var(--text); color: #fff; }
.chip:not(.active):hover { color: var(--text); border-color: var(--border); }

table.quotes { width: 100%; border-collapse: collapse; }
table.quotes thead th {
  text-align: left;
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-2);
  padding: 14px 22px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--border);
}
table.quotes tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  vertical-align: middle;
}
table.quotes tbody tr { cursor: pointer; transition: background .12s ease; }
table.quotes tbody tr:hover { background: #FAFBFD; }
table.quotes tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
td.id { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; color: var(--text); letter-spacing: 0.02em; }
td.client-name { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text); }
td.client-name .project { display: block; font-family: 'Helvetica Neue', sans-serif; font-weight: 400; font-size: 13px; color: var(--text-2); margin-top: 2px; }
td.amount { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; }
td.date { color: var(--text-2); }

/* STATUS PILL */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 11.5px; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; }
.pill.draft { background: #EEF1F6; color: #475569; }
.pill.draft .pdot { background: #94A3B8; }
.pill.sent { background: var(--blue-bg); color: var(--primary); }
.pill.sent .pdot { background: var(--primary); }
.pill.accepted { background: var(--green-bg); color: var(--green); }
.pill.accepted .pdot { background: var(--green); }
.pill.rejected { background: var(--red-bg); color: var(--red); }
.pill.rejected .pdot { background: var(--red); }
.pill.expired { background: var(--amber-bg); color: var(--amber); }
.pill.expired .pdot { background: var(--amber); }

/* EDITOR */
.editor-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.editor-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 13px; border: 0; background: transparent;
  padding: 0; margin-bottom: 14px;
}
.editor-back:hover { color: var(--primary); }

.field-group { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.field-label {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.field-input, .field-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus, .field-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(80, 88, 242, 0.12);
}
.field-textarea { resize: vertical; min-height: 92px; font-family: inherit; }

/* LINE ITEMS */
.items-card { padding: 0; overflow: hidden; }
.items-head {
  display: grid; grid-template-columns: 28px 1fr 80px 130px 130px 32px;
  gap: 14px; padding: 14px 22px;
  background: #FAFBFD; border-bottom: 1px solid var(--border);
}
.items-head .section-label { font-size: 10.5px; }
.item-row {
  display: grid; grid-template-columns: 28px 1fr 80px 130px 130px 32px;
  gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.item-row:last-of-type { border-bottom: 0; }
.item-row .handle {
  color: #CBD5E1; cursor: grab; user-select: none;
  font-size: 16px; text-align: center;
}
.item-row .handle:hover { color: var(--text-2); }
.item-desc input, .item-qty input, .item-price input {
  border: 0; padding: 6px 0;
  width: 100%; background: transparent;
  font-weight: 400; font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.item-desc input { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px; color: var(--text); }
.item-desc .subdesc {
  border: 0; padding: 4px 0; width: 100%; background: transparent;
  font-weight: 400; font-size: 13px; color: var(--text-2);
  border-bottom: 1px solid transparent;
}
.item-desc input:focus, .item-desc .subdesc:focus, .item-qty input:focus, .item-price input:focus {
  border-bottom-color: var(--primary);
}
.item-qty input, .item-price input { font-variant-numeric: tabular-nums; text-align: right; }
.item-total {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  text-align: right; font-variant-numeric: tabular-nums;
}
.item-remove {
  background: transparent; border: 0; color: #CBD5E1;
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
}
.item-remove:hover { color: var(--red); background: var(--red-bg); }

.items-foot { padding: 16px 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); background: #FAFBFD; }
.catalog-picker { position: relative; }
.catalog-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-md);
  min-width: 320px; padding: 8px; z-index: 1000;
}
.catalog-item {
  padding: 10px 12px; border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 12px;
}
.catalog-item:hover { background: var(--bg); }
.catalog-item .ci-name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; color: var(--text); }
.catalog-item .ci-price { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; color: var(--primary); font-variant-numeric: tabular-nums; }
.catalog-item .ci-sub { font-size: 12px; color: var(--text-2); font-weight: 400; }

/* SIDEBAR TOTALS */
.totals-side { position: sticky; top: 32px; display: grid; gap: 16px; }
.totals-card { padding: 22px 22px; }
.totals-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-variant-numeric: tabular-nums;
}
.totals-row:last-child { border-bottom: 0; }
.totals-row .lbl { color: var(--text-2); font-size: 13.5px; }
.totals-row .val { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px; }
.totals-row.grand .lbl { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--text); font-size: 14px; text-transform: uppercase; letter-spacing: 2px; }
.totals-row.grand .val { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 24px; color: var(--primary); }
.totals-row.discount .val { color: var(--green); }

.schedule-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px; padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  align-items: center;
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row .when { font-size: 13px; color: var(--text-2); }
.schedule-row .amount { font-family: 'Poppins', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.schedule-row .pct { color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11px; margin-left: 6px; }

/* TOGGLE / SWITCH */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle .track { width: 32px; height: 18px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; }
.toggle .knob { width: 14px; height: 14px; border-radius: 50%; background: #fff; position: absolute; top: 2px; left: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input { display: none; }
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track .knob { transform: translateX(14px); }
.toggle .lbl { font-size: 13.5px; color: var(--text); }

/* PREVIEW (client-facing) */
.preview-stage {
  background: linear-gradient(180deg, #ECEFF5 0%, #F5F7FA 240px);
  min-height: calc(100vh - 0px);
  padding: 32px var(--pad-x) 80px;
}
.preview-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px;
}
.preview-doc {
  max-width: 880px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13,27,42,0.04), 0 20px 60px rgba(13,27,42,0.08);
}
.doc-hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 44px 28px;
  position: relative;
  overflow: hidden;
}
.doc-hero::after {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(80,88,242,0.5), transparent 65%);
  pointer-events: none;
}
.doc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: relative; z-index: 1; }
.doc-hero .doc-num { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.doc-hero h1 {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 36px; letter-spacing: -0.02em; line-height: 1.15;
  margin: 18px 0 6px; max-width: 560px;
}
.doc-hero .doc-sub { color: rgba(255,255,255,0.72); font-weight: 400; font-size: 15.5px; max-width: 560px; }
.doc-meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative; z-index: 1;
}
.doc-meta-grid .label { font-family: 'Poppins', sans-serif; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; }
.doc-meta-grid .value { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: #fff; margin-top: 6px; }

.doc-body { padding: 40px 44px; }
.doc-section { margin-bottom: 36px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
}
.doc-section h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em; margin: 8px 0 0;
}
.doc-section p { color: var(--text); font-weight: 400; font-size: 15.5px; line-height: 1.7; }

table.doc-items { width: 100%; border-collapse: collapse; }
table.doc-items th {
  text-align: left;
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-2); padding: 10px 0; border-bottom: 1px solid var(--border);
}
table.doc-items th.r, table.doc-items td.r { text-align: right; }
table.doc-items td { padding: 16px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.doc-items td.desc .name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }
table.doc-items td.desc .sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; font-weight: 400; max-width: 460px; }
table.doc-items td.num { font-variant-numeric: tabular-nums; font-family: 'Poppins', sans-serif; }
table.doc-items td.total { font-family: 'Poppins', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }

.doc-totals { margin-top: 24px; display: flex; justify-content: flex-end; }
.doc-totals-inner { min-width: 320px; }
.doc-totals-row { display: flex; justify-content: space-between; padding: 8px 0; font-variant-numeric: tabular-nums; }
.doc-totals-row.grand {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.doc-totals-row.grand .l { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); }
.doc-totals-row.grand .v { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 30px; color: var(--primary); }
.doc-totals-row .l { color: var(--text-2); font-size: 14px; }
.doc-totals-row .v { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; }

.doc-schedule {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 14px; padding: 18px 0;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.doc-schedule:last-child { border-bottom: 0; }
.doc-schedule .step {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); color: var(--primary);
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px;
}
.doc-schedule .label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px; }
.doc-schedule .sub { font-size: 13px; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.doc-schedule .amt { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.doc-schedule .pct { font-size: 11.5px; color: var(--text-2); font-weight: 400; margin-top: 2px; text-align: right; }

.doc-cta {
  margin-top: 36px; padding: 26px 28px;
  background: #FAFBFD; border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.doc-cta h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.doc-cta p { margin: 0; color: var(--text-2); font-size: 14px; }
.doc-cta-actions { display: flex; gap: 10px; }
.btn-lg { padding: 12px 22px; font-size: 13.5px; }

.doc-foot {
  padding: 24px 44px;
  background: #FAFBFD;
  border-top: 1px solid var(--border);
  color: var(--text-2); font-size: 12.5px;
  display: flex; justify-content: space-between; gap: 16px;
}

/* PROPOSAL SECTIONS (Preview) */
.client-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #FAFBFD;
}
.client-strip > div { padding: 18px 20px; border-right: 1px solid var(--border); }
.client-strip > div:last-child { border-right: 0; }
.client-strip .label { font-family: 'Poppins', sans-serif; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); font-weight: 500; }
.client-strip .value { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--text); margin-top: 6px; }
.client-strip .sub { font-size: 13px; color: var(--text-2); font-weight: 400; margin-top: 2px; }

.executive-summary {
  font-size: 17px; line-height: 1.7; color: var(--text);
  font-weight: 400; margin: 12px 0 0;
}
.executive-summary::first-letter { color: var(--primary); }

.objective-card {
  margin-top: 12px;
  padding: 22px 24px;
  background: #F4F6FF;
  border: 1px solid #D9DEFE;
  border-radius: 14px;
  display: grid; grid-template-columns: 38px 1fr; gap: 16px;
  align-items: start;
}
.objective-card .glyph {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif; font-weight: 700;
}
.objective-card p { margin: 0; font-size: 15.5px; color: var(--text); line-height: 1.65; }
.objective-card .kicker {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 12.5px; color: var(--primary); letter-spacing: 0.04em;
  margin-bottom: 6px; text-transform: uppercase;
}

/* TECH */
.tech-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 14px; }
.tech-block {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.tech-platform {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 19px; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.tech-platform .glyph {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--navy); color: #5058F2;
  display: grid; place-items: center;
}
.tech-rationale { color: var(--text); font-weight: 400; font-size: 14.5px; line-height: 1.65; margin-top: 12px; }
.tech-list-label { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); margin-top: 18px; margin-bottom: 8px; }
.tech-list-label:first-child { margin-top: 0; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 12px;
  background: #F2F4F9;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}
.tech-chip.integration { background: #fff; border-color: var(--border); }

/* SCOPE — numbered deliverables */
.scope-list { display: grid; gap: 0; margin-top: 14px; }
.scope-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  align-items: start;
}
.scope-item:first-child { border-top: 1px solid var(--border); }
.scope-item .num {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.scope-item .title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--text); }
.scope-item .desc { color: var(--text); font-weight: 400; font-size: 14.5px; line-height: 1.6; margin-top: 6px; max-width: 580px; }

/* INVESTMENT */
.invest-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.invest-table th { text-align: left; font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-2); padding: 12px 0; border-bottom: 1px solid var(--border); }
.invest-table th.r, .invest-table td.r { text-align: right; }
.invest-table td { padding: 16px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.invest-table td.desc .name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: var(--text); }
.invest-table td.desc .sub { font-size: 13.5px; color: var(--text-2); margin-top: 4px; font-weight: 400; max-width: 460px; }
.invest-table td.num { font-variant-numeric: tabular-nums; font-family: 'Poppins', sans-serif; }
.invest-table td.tot { font-family: 'Poppins', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }

.total-band {
  margin-top: 22px;
  padding: 28px 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  position: relative; overflow: hidden;
}
.total-band::after {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(80,88,242,0.45), transparent 65%);
}
.total-band .label { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.total-band .total { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -0.025em; line-height: 1; margin-top: 8px; position: relative; z-index: 1; }
.total-band .total .ccy { font-size: 16px; color: rgba(255,255,255,0.7); margin-left: 8px; font-weight: 500; letter-spacing: 0.04em; }
.total-band .breakdown { text-align: right; font-size: 13.5px; color: rgba(255,255,255,0.75); line-height: 1.8; position: relative; z-index: 1; }
.total-band .breakdown b { font-family: 'Poppins', sans-serif; font-weight: 600; color: #fff; }

.invest-note {
  margin-top: 14px;
  padding: 14px 18px;
  background: #FAFBFD;
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-2);
}
.invest-note b { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text); }

/* TIMELINE — phases */
.timeline { margin-top: 14px; }
.timeline-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .step {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-2);
}
.timeline-row .name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px; color: var(--text); }
.timeline-bar {
  height: 8px; background: var(--bg); border-radius: 999px;
  margin-top: 8px; overflow: hidden;
}
.timeline-bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}
.timeline-row .duration { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.timeline-total {
  margin-top: 18px;
  padding: 16px 20px;
  background: #F4F6FF;
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.timeline-total .l { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); }
.timeline-total .v { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }

/* NO INCLUYE — pills */
.exclude-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.exclude-pill {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 6px;
}
.exclude-pill::before { content: '×'; color: var(--text-2); font-weight: 700; }

/* NEXT STEPS */
.next-step-card {
  margin-top: 14px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center;
}
@media (max-width: 720px) {
  .next-step-card { grid-template-columns: 1fr; }
}
.next-step-card .ns-text { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.35; max-width: 540px; }
.next-step-card .btn { background: #fff; color: var(--primary); border-color: transparent; }
.next-step-card .btn:hover { background: #fff; opacity: 0.9; }

/* DENSITY (tweak) */
.app[data-density="dense"] { --pad-x: 28px; }
.app[data-density="dense"] .card-pad { padding: 16px 18px; }
.app[data-density="dense"] table.quotes tbody td { padding: 12px 18px; }
.app[data-density="dense"] table.quotes thead th { padding: 10px 18px; }
.app[data-density="airy"] { --pad-x: 56px; }
.app[data-density="airy"] .card-pad { padding: 28px 32px; }
.app[data-density="airy"] table.quotes tbody td { padding: 22px 26px; }

/* SCROLLBARS */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D5DBE5; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #B4BDCC; }
