:root {
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --ink: #1a1d22;
  --ink-soft: #5a6068;
  --line: #e5e2db;
  --accent: #1d3a5a;
  --warn: #b34a1c;
  --ok: #2f7a52;
  --mono: ui-monospace, "Cascadia Code", "Consolas", monospace;
  --sans: "Inter", "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", "Marcellus", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.4;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.meta {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
  font-family: var(--mono);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.kpi {
  background: var(--bg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi .num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.kpi.warn .num { color: var(--warn); }

.kpi .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}

.breakdown {
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
}

.breakdown h2 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.breakdown li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 3px;
}

.breakdown li strong {
  color: var(--accent);
  margin-left: 6px;
}

.specs {
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.specs h2 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.specs-note {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: italic;
}

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

.spec-gama {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
}

.spec-gama h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--accent);
}

.spec-gama .modelos-list {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}

.spec-row:last-child { border-bottom: none; }

.spec-row .label {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.spec-row .vals {
  font-family: var(--mono);
  text-align: right;
  max-width: 60%;
}

.spec-frentes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.spec-frentes .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
  display: block;
}

.spec-frentes .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.spec-frentes .chip {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.filters {
  display: flex;
  gap: 12px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
}

.filters input[type="search"] {
  flex: 1;
  min-width: 240px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
}

.filters select {
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 3px;
}

.filters label {
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}

.filters .counter {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.filters .downloads {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filters .downloads button,
.filters .downloads a {
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.filters .downloads button:hover,
.filters .downloads a:hover {
  background: var(--accent);
  color: var(--bg);
}

.table-wrap {
  padding: 0 32px 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--mono);
}

thead th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--bg);
  font-family: var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

tbody td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:hover { background: var(--bg-alt); }
tbody tr.has-note { background: #fff5ec; }
tbody tr.has-note:hover { background: #ffe9d4; }

td.desc {
  font-family: var(--sans);
  white-space: normal;
  max-width: 380px;
}

td.notes {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  max-width: 220px;
  white-space: normal;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0 0;
  font-size: 13px;
}

.pagination button {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}

.pagination button:hover:not(:disabled) { background: var(--bg-alt); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

#page-info {
  font-family: var(--mono);
  color: var(--ink-soft);
}

footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

footer code {
  font-family: var(--mono);
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
}
