:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d2a24;
  --muted: #5b6b63;
  --line: #e2e0d8;
  --brand: #0f6b4f;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ec;
  --accent: #c2410c;
  --radius: 12px;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714; --surface: #1b221e; --text: #e8eee9; --muted: #a3b3aa;
    --line: #2c3631; --brand: #3fb38a; --brand-ink: #0c1410; --brand-soft: #1f3129; --accent: #fb923c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
nav.top { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.92rem; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current] { color: var(--brand); }
main { padding: 24px 0 40px; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.updated { font-size: 0.85rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
form.calc { display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); width: 100%; min-height: 44px;
}
label.check input { width: 20px; min-height: 20px; }
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
button.go {
  font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 12px 18px; min-height: 48px;
  background: var(--brand); color: var(--brand-ink); cursor: pointer;
}
button.go:hover { filter: brightness(1.08); }
#resultado { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.res-big { margin: 0 0 12px; display: grid; }
.res-big span { color: var(--muted); font-size: 0.9rem; }
.res-big strong { font-size: 1.9rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.res-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.res-table th, .res-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.res-table th { font-weight: 500; }
.res-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-table .res-total th, .res-table .res-total td { font-weight: 800; }
.res-table .res-sub th, .res-table .res-sub td { font-weight: 700; background: var(--brand-soft); }
.res-note { font-size: 0.9rem; color: var(--muted); }
.res-error { color: var(--accent); font-weight: 600; }
.tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 16px 0; padding: 0; list-style: none; }
.tools a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); }
.tools a:hover { border-color: var(--brand); }
.tools strong { display: block; color: var(--brand); margin-bottom: 4px; }
.tools span { font-size: 0.92rem; color: var(--muted); }
.ad-slot { margin: 24px 0; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.ad-slot:empty::before { content: ""; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
.disclaimer { font-size: 0.85rem; color: var(--muted); background: var(--brand-soft); border-radius: 8px; padding: 12px 14px; margin-top: 28px; }
.related { margin-top: 32px; }
footer.site { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 0.88rem; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 8px 0; }
table.data th, table.data td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.table-scroll { overflow-x: auto; }
