:root {
  --ground: #0f1115; --surface: #181b21; --border: #2a2f37; --text: #f4f1ea; --body: #c9c6be;
  --muted: #9aa0a6; --faint: #6f757c; --green: #009c3b; --green-deep: #0d6b35; --yellow: #ffdf00;
  --display: 'Unbounded', sans-serif; --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--text); font: 16px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
.app { max-width: 560px; margin: 0 auto; padding: 16px 20px 40px; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 900px) { .app { padding-top: 32px; } }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 20px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 16px var(--display); letter-spacing: -0.02em; }
.brand-text { font: 700 16px var(--display); }
.topbar-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.screen { display: flex; flex-direction: column; gap: 18px; flex-grow: 1; }
.hidden { display: none !important; }
h1 { margin: 0; font: 900 clamp(40px, 11vw, 52px)/1.02 var(--display); letter-spacing: -0.03em; }
h2 { margin: 0; font: 900 34px/1.05 var(--display); letter-spacing: -0.03em; }
.lead { margin: 0; color: var(--body); font-size: 17px; line-height: 1.45; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent, .accent { color: var(--yellow); }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 13px; line-height: 1.4; }
.footnote { margin: 0; font-size: 12px; line-height: 1.4; color: var(--faint); }
.push { margin-top: auto; }
.site-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.hero-logo { width: 96px; height: 96px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pin { color: var(--yellow); width: 20px; height: 20px; vertical-align: -4px; }

.card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px; border: 0; border-radius: 20px; text-align: left; cursor: pointer; font-family: var(--sans); }
.card span { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.card strong { font: 700 17px/1.2 var(--display); }
.card small { font-size: 14px; opacity: 0.85; }
.card-green { background: var(--green); color: var(--text); }
.card-yellow { background: var(--yellow); color: var(--ground); }

.stepbar { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.steps { flex-grow: 1; display: flex; gap: 6px; }
.steps i { flex-grow: 1; height: 6px; border-radius: 3px; background: var(--border); }
.steps i.on { background: var(--yellow); }

.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
select, .search, .num { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 17px var(--sans); }
select { appearance: none; }
.search { display: flex; align-items: center; gap: 12px; }
.search svg { width: 20px; height: 20px; color: var(--muted); }
.search input, .num input { flex-grow: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search:focus-within { border-color: var(--yellow); }
.suggestions { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; max-height: 260px; overflow: auto; }
.suggestions li { padding: 12px 14px; border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.suggestions li:hover, .suggestions li.active { background: var(--ground); }
.suggestions small { color: var(--muted); }

.panel { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); }
.panel.outline { background: transparent; border: 1.5px solid var(--border); }
.panel.outline p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.45; }
.panel.row { flex-direction: row; align-items: center; gap: 12px; font-size: 14px; color: var(--body); }
.panel.between { flex-direction: row; justify-content: space-between; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.junta-name { margin: 0; font: 700 18px/1.2 var(--display); }
.tiles { display: flex; gap: 10px; }
.tile { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; background: var(--ground); }
.tile b { font: 700 20px var(--display); }
.tile small { font-size: 12px; line-height: 1.3; color: var(--muted); }
#componentes .tile { background: var(--surface); }
#componentes .tile b { font-size: 26px; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--ground); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.row-link svg { width: 18px; height: 18px; color: var(--yellow); }

.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; border: 0; border-radius: 20px; background: var(--green); color: var(--text); font: 700 16px var(--display); cursor: pointer; }
.cta.secondary { background: var(--yellow); color: var(--ground); font: 700 15px var(--sans); min-height: 52px; }
.cta:disabled { opacity: 0.45; cursor: default; }

.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font-family: var(--sans); }
.option.on { background: var(--ground); border-color: var(--green); }
.option span { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.option b { font: 700 14px/1.25 var(--display); }
.option small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.option i { width: 18px; height: 18px; border-radius: 9px; border: 2px solid var(--faint); flex-shrink: 0; }
.option.on i { border-color: var(--green); background: var(--green); }
.option.static { cursor: default; }
.option .insight { font-size: 14px; line-height: 1.4; color: var(--body); }
.option .insight b { color: var(--text); }
.option svg.up { color: var(--green); }
.option svg.down { color: var(--yellow); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.num { min-height: 64px; display: flex; align-items: center; gap: 8px; }
.num input { font: 700 24px var(--display); }
.num b { color: var(--muted); font-weight: 400; font-size: 15px; }
.hint { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--body); font-size: 14px; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 14px; border-radius: 22px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 500 14px var(--sans); cursor: pointer; }
.chip.on { background: var(--yellow); border-color: var(--yellow); color: var(--ground); font-weight: 700; }
.segmented { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--surface); margin-top: 8px; }
.segmented button { flex: 1 1 0; min-height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: 500 14px var(--sans); cursor: pointer; }
.segmented button.on { background: var(--yellow); color: var(--ground); font-weight: 700; }

.big { display: flex; align-items: baseline; gap: 6px; }
.big span:first-child { font: 900 clamp(96px, 30vw, 128px)/0.95 var(--display); letter-spacing: -0.06em; }
.big .pct { font: 700 44px/1 var(--display); }
.verdict { margin: 0; font: 500 18px/1.3 var(--display); }
.band { position: relative; height: 14px; border-radius: 7px; background: var(--ground); margin: 4px 0; }
.band-fill { position: absolute; top: 0; height: 14px; border-radius: 7px; background: var(--green-deep); }
.band-mark { position: absolute; top: -4px; width: 12px; height: 22px; border-radius: 4px; background: var(--yellow); transform: translateX(-50%); }
.step { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); }
.step i { flex-shrink: 0; width: 36px; height: 36px; border-radius: 18px; background: var(--yellow); color: var(--ground); font: 700 15px var(--display); display: flex; align-items: center; justify-content: center; font-style: normal; }
.step b { font: 700 15px var(--display); }
.step p { margin: 4px 0 0; color: var(--body); font-size: 14px; line-height: 1.45; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 90vw; padding: 12px 16px; border-radius: 14px; background: #3a1d1d; color: var(--text); border: 1.5px solid #7a2e2e; font-size: 14px; z-index: 10; }
