/* =============================================================================
   Calculadora de Viabilidad Inmobiliaria Pro
   Design tokens & layout — recreated from the Ciclo de Riqueza handoff.
   ========================================================================== */

:root {
  --black:      #0A0A0C; /* base background */
  --navy:       #0F1B2D; /* cards, panels */
  --navy-up:    #16263D; /* elevated navy */
  --gold:       #E6C788; /* primary accent */
  --gold-deep:  #B8945A; /* secondary */
  --gold-hover: #F0D7A4; /* CTA hover */
  --cream:      #F4EFE6; /* headlines */
  --gray:       #D7D7D9; /* body */
  --muted:      #9DA1A8; /* captions */
  --faint:      #6f7682; /* disclaimer */
  --alert:      #d98b6a; /* capacity exceeded */

  --hairline:   rgba(215,215,217,0.12);
  --border-in:  rgba(215,215,217,0.18);
  --gold-line:  rgba(230,199,136,0.16);

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

/* The native [hidden] attribute is a weak UA rule; author `display` (e.g.
   .login-screen{display:flex}) overrides it, which would leave the login
   screen visible after sign-in. Force it so screen switching actually hides. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--gray);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--black); }

a { color: inherit; }

@keyframes orbita { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orbit svg { display: block; animation: orbita 30s linear infinite; transform-origin: 50% 50%; }
.alliance svg { animation: orbita 24s linear infinite; transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  .orbit svg, .alliance svg { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Eyebrows */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.card > .eyebrow { letter-spacing: 0.18em; margin-bottom: 6px; }

/* ---------------------------------------------------------------- Language */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: rgba(215,215,217,0.06);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.lang-btn {
  padding: 6px 13px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-btn.active { background: var(--gold); color: var(--black); }

/* =============================================================== LOGIN ==== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card { width: 100%; max-width: 392px; position: relative; }

.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.eyebrow-brand {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.login-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.12;
  color: var(--cream);
  text-wrap: balance;
}
.login-sub { margin: 0 0 36px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.field { margin-bottom: 18px; }
.field-gap { margin-bottom: 26px; }
.field-label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.text-input {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border-in);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease;
}
.text-input:focus { border-color: var(--gold); }
.text-input::placeholder { color: #5f6470; }

.btn-primary {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; font-weight: 600;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(230,199,136,0.16);
  transition: background 0.18s ease;
}
.btn-primary:hover { background: var(--gold-hover); }

.login-error { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--alert); }
.login-help { margin-top: 18px; text-align: center; }
.link-muted { font-size: 13px; color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--gold); }

.login-footer {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(215,215,217,0.1);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.alliance { display: inline-flex; align-items: center; gap: 11px; }
.alliance svg { flex-shrink: 0; }
.alliance-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.alliance-name {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold);
}
.demo-note { font-size: 10px; color: var(--faint); letter-spacing: 0.04em; }

.lang-switch-login { margin-top: 28px; }

/* ================================================================= APP ==== */
.app-screen { min-height: 100vh; }
.app-inner { max-width: 1180px; margin: 0 auto; padding: 30px 30px 34px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 20px;
}
.app-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.orbit { flex-shrink: 0; line-height: 0; }
.app-brand-text { min-width: 0; }
.app-name {
  font-size: 14px; font-weight: 600; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-sub { font-size: 11px; color: var(--muted); }
.app-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-logout {
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--gray);
  background: transparent;
  border: 1px solid rgba(215,215,217,0.2);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-logout:hover { border-color: var(--gold); color: var(--gold); }

/* tabs — only visible on mobile */
.tabs { display: none; padding: 3px; background: rgba(215,215,217,0.06);
  border: 1px solid var(--hairline); border-radius: 999px; margin-bottom: 18px; }
.tab-btn {
  flex: 1; padding: 11px 0; border: none; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  background: transparent; color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.tab-btn.active { background: var(--gold); color: var(--black); }

/* layout */
.main-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* panels & cards */
.panel {
  background: var(--navy);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px 22px;
}
.card-accent { border-color: rgba(230,199,136,0.32); }
.card-span { grid-column: 1 / -1; }

/* ------------------------------------------------------------- Inputs ----- */
.input-group { margin-bottom: 18px; }
.input-group-tight { margin-bottom: 6px; }
.input-label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 7px; }

.num-wrap { position: relative; }
.num-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border-in);
  border-radius: 8px;
  padding: 12px 54px 12px 14px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease;
}
.num-input:focus { border-color: var(--gold); }
.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-input { -moz-appearance: textfield; }
.num-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--muted); letter-spacing: 0.06em; pointer-events: none;
}

.slider-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 9px;
}
.slider-val { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--gold); }

/* range */
.rng {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px;
  background: var(--border-in); outline: none; cursor: pointer;
}
.rng::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px;
  background: var(--gold); border: none; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(230,199,136,0.14);
}
.rng::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 999px;
  background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px rgba(230,199,136,0.14);
}
.rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(230,199,136,0.3); }

/* segmented controls */
.seg { display: grid; gap: 8px; }
.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg-2x2 { grid-template-columns: 1fr 1fr; }
.seg-btn {
  padding: 11px 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border-in);
  background: transparent;
  color: var(--gray);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.seg-btn.market { padding: 11px 13px; text-align: left; font-size: 13px; }
.seg-btn.active { border-color: var(--gold); background: rgba(230,199,136,0.12); color: var(--gold); }
.seg-btn .unit { font-weight: 400; opacity: 0.7; font-size: 12px; }

.hairline { height: 1px; background: rgba(215,215,217,0.1); margin: 26px 0; }

/* tax vehicle select */
.sel-fiscal {
  width: 100%; background: var(--black); border: 1px solid var(--border-in);
  border-radius: 8px; padding: 12px 38px 12px 14px; color: var(--cream);
  font-family: var(--sans); font-size: 15px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E6C788' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color 0.18s ease;
}
.sel-fiscal:focus { border-color: var(--gold); }
.sel-fiscal:focus-visible { box-shadow: 0 0 0 3px rgba(230,199,136,0.35); }
.sel-fiscal option { background: var(--navy); color: var(--cream); }

/* real IRR in USD (currency risk) */
.tir-usd { margin-top: 12px; font-size: 13px; color: var(--gray); }
.tir-usd-val { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--gold); }

/* toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 16px; border-top: 1px solid rgba(215,215,217,0.1);
}
.toggle-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  border: none; cursor: pointer; flex-shrink: 0;
  background: rgba(215,215,217,0.2);
  transition: background 0.2s ease;
}
.switch.on { background: var(--gold); }
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 999px; background: var(--black);
  transition: transform 0.2s ease;
}
.switch.on .switch-knob { transform: translateX(20px); }

/* ------------------------------------------------------------- Cards ------ */
.card-help { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.card-help-mb { margin-bottom: 18px; }

.hero-num-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.hero-num { font-family: var(--serif); font-weight: 800; font-size: 60px; line-height: 0.9; color: var(--gold); }
.hero-num-unit { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--gold); }
.hero-caption { font-size: 13px; color: var(--gray); }

.card-footer { display: flex; flex-wrap: wrap; gap: 20px 24px; margin-top: 20px; padding-top: 16px; }
.card-footer-2 { border-top: 1px solid var(--hairline); }
.card-accent .card-footer-2 { border-top-color: var(--gold-line); }
.foot-num { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--cream); line-height: 1; }
.foot-num-gold { color: var(--gold); }
.foot-num-sm { font-size: 18px; font-weight: 600; color: var(--cream); line-height: 1; }
.foot-unit { font-size: 11px; color: var(--muted); }
.foot-cap { font-size: 11px; color: var(--muted); margin-top: 5px; }
.card-footer-2 .foot-cap { margin-top: 6px; }

.big-num-row { display: flex; align-items: baseline; gap: 7px; margin: 18px 0 3px; }
.big-num { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--cream); line-height: 1; }
.big-num-unit { font-size: 13px; color: var(--muted); }
.sub-line { font-size: 12px; color: var(--muted); }

/* usage bar (debt capacity) */
.usage { margin-top: 18px; }
.usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.usage-label { font-size: 12px; color: var(--muted); }
.usage-strong { color: var(--gray); }
.usage-pct { font-size: 12px; font-weight: 600; }
.usage-status { margin-top: 9px; font-size: 12px; }

.bar-track { background: var(--hairline); border-radius: 999px; overflow: hidden; }
.bar-track-6 { height: 6px; }
.bar-track-8 { height: 8px; background: rgba(215,215,217,0.1); }
.bar-fill { height: 100%; border-radius: 999px; transition: width 0.3s ease, background 0.2s ease; }
.bar-fill-gold { background: var(--gold); }
.bar-fill-gray { background: rgba(215,215,217,0.38); }

/* taxes */
.tax-bars { margin-top: 18px; display: flex; flex-direction: column; gap: 15px; }
.tax-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.tax-bar-label { font-size: 12px; color: var(--muted); }
.tax-bar-val { font-size: 13px; font-weight: 600; }
.strong-cream { color: var(--cream); }
.strong-gray { color: var(--gray); }
.highlight {
  margin-top: 16px; padding: 11px 14px;
  background: rgba(230,199,136,0.08);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}
.highlight-label { font-size: 12px; color: var(--muted); }
.highlight-val { font-size: 13px; font-weight: 700; color: var(--gold); }

/* projection */
.proj-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.proj-end { text-align: right; }
.proj-end-num { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--gold); line-height: 1; }
.chart-wrap { margin-top: 18px; }
#chart { display: block; height: auto; overflow: visible; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; }
.chart-axis span { font-size: 11px; color: var(--muted); }

/* market comparison */
.market-list { display: flex; flex-direction: column; gap: 16px; }
.market-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.market-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.market-dot { width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0; }
.market-tir { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--cream); }
.market-fx { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: var(--alert); }
.market-fx-note { margin-top: 16px; }

/* IRR verdict badge (Cap. 9 benchmarks) */
.verdict {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(230,199,136,0.32);
  background: rgba(230,199,136,0.08);
}
.verdict::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.verdict.mid  { color: var(--cream); border-color: var(--hairline); background: rgba(215,215,217,0.06); }
.verdict.warn { color: var(--alert); border-color: rgba(217,139,106,0.4); background: rgba(217,139,106,0.08); }

/* valuation scenarios */
.scen-list { display: flex; flex-direction: column; gap: 16px; }
.scen-verdict {
  margin-top: 16px; padding: 11px 14px;
  border-left: 2px solid var(--gold); border-radius: 0 8px 8px 0;
  background: rgba(230,199,136,0.08);
  font-size: 12px; line-height: 1.5; color: var(--gray);
}
.scen-verdict.warn { border-left-color: var(--alert); background: rgba(217,139,106,0.08); }
.scen-verdict.mid { border-left-color: rgba(215,215,217,0.5); background: rgba(215,215,217,0.05); color: var(--gray); }

/* 5 P — deal quality checklist */
.p5-list { display: flex; flex-direction: column; margin-top: 6px; }
.p5-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--hairline);
}
.p5-row:last-child { border-bottom: none; }
.p5-info { min-width: 0; }
.p5-name { display: block; font-size: 14px; font-weight: 600; color: var(--cream); }
.p5-hint { display: block; font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.p5-seg {
  display: inline-flex; gap: 4px; flex-shrink: 0;
  background: rgba(215,215,217,0.06); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 3px;
}
.p5-btn {
  width: 34px; height: 28px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  font-family: var(--sans); font-size: 13px; font-weight: 700; line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.p5-btn:hover { color: var(--gray); }
.p5-btn.on.falla   { background: var(--alert); color: var(--black); }
.p5-btn.on.parcial { background: rgba(215,215,217,0.55); color: var(--black); }
.p5-btn.on.cumple  { background: var(--gold); color: var(--black); }
.p5-btn:focus-visible { box-shadow: 0 0 0 3px rgba(230,199,136,0.35); }

/* ------------------------------------------------------- Projects bar ----- */
.projects-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-width: 0; }
.projects-label {
  flex-shrink: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.projects-bar {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: thin; scrollbar-color: rgba(230,199,136,0.3) transparent;
}
.projects-bar::-webkit-scrollbar { height: 5px; }
.projects-bar::-webkit-scrollbar-thumb { background: rgba(230,199,136,0.25); border-radius: 999px; }
.proj-chip {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); text-align: left;
  border: 1px solid var(--border-in); background: transparent; color: var(--gray);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.proj-chip:hover { border-color: rgba(230,199,136,0.5); }
.proj-chip.active { border-color: var(--gold); background: rgba(230,199,136,0.12); color: var(--gold); }
.proj-chip-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.proj-chip-loc { font-size: 10px; color: var(--muted); white-space: nowrap; }
.proj-chip.active .proj-chip-loc { color: rgba(230,199,136,0.7); }
.proj-add { flex-direction: row; align-items: center; color: var(--muted); border-style: dashed; }
.proj-add:hover { color: var(--gold); border-color: var(--gold); }
.proj-add span { font-size: 13px; font-weight: 600; }

/* section head with a right-aligned action */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.eyebrow-tight { margin-bottom: 20px; }
.link-del {
  flex-shrink: 0; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted); background: transparent; border: none;
  cursor: pointer; padding: 0; transition: color 0.18s ease;
}
.link-del:hover { color: var(--alert); }
.sec-note { margin: -8px 0 16px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* two-up input row (location + currency) */
.input-row-2 { display: grid; grid-template-columns: 1fr 88px; gap: 10px; }
.num-input.plain { padding-right: 14px; }

/* debt-capacity extra lines */
.cap-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 16px; font-size: 12px; color: var(--muted);
}
.cap-line-val { color: var(--gray); font-weight: 600; }
.cap-mini-status { margin-top: 5px; font-size: 12px; }
.cap-saldo-line { margin-top: 12px; }
.cap-saldo-line span:last-child { color: var(--gray); }
.cap-faltante-line { margin-top: 6px; }
.cap-faltante-line span:last-child { color: var(--alert); font-weight: 600; }
.cap-poder-line { margin-top: 12px; }
.cap-poder-line span:last-child { color: var(--gold); font-weight: 600; }
.ciclo-list { margin-top: 18px; }

/* viability badge in project comparison */
.market-right { display: inline-flex; align-items: center; gap: 10px; }
.viab-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
}
.viab-badge.ok  { color: var(--gold); background: rgba(230,199,136,0.12); }
.viab-badge.no  { color: var(--alert); background: rgba(217,139,106,0.12); }

/* disclaimer */
.disclaimer { margin: 20px 0 0; font-size: 11px; line-height: 1.6; color: var(--faint); text-align: center; }

/* focus visibility — gold ring, never a harsh white outline */
:focus-visible { outline: none; }
.btn-primary:focus-visible,
.btn-logout:focus-visible,
.seg-btn:focus-visible,
.lang-btn:focus-visible,
.tab-btn:focus-visible,
.switch:focus-visible,
.text-input:focus-visible,
.num-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(230,199,136,0.35);
}

/* ============================================================ RESPONSIVE == */
@media (max-width: 899px) {
  .app-inner { padding: 22px 16px 26px; }
  .main-grid { display: block; }
  .results-grid { display: flex; flex-direction: column; gap: 14px; }
  .tabs { display: flex; }
  .inputs-panel { margin-bottom: 0; }

  /* tab visibility toggled by JS on <main> */
  .app-screen[data-tab="datos"] .results-grid { display: none; }
  .app-screen[data-tab="resultados"] .inputs-panel { display: none; }

  .hero-num { font-size: 52px; }
  .login-title { font-size: 30px; }
}
