/* Apariencia propia: superficies monocromáticas con profundidad por capas,
 * sombras neutras y tipografía Instrument Sans. Conserva distribución y reglas.
 * Todos los recursos son locales; no se distribuye código de la plantilla.
 */
@font-face { font-family:'Instrument Sans'; font-style:normal; font-weight:400 700; font-display:swap; src:url('/assets/fonts/instrument-sans/instrument-sans-latin-variable.woff2') format('woff2'); }

:root{
  color-scheme:light;
  --bg:#e8e8e8; --surface:#f5f5f5; --ink:#242424; --muted:#626262;
  --line:#d6d6d6; --soft:#eaeaea; --accent:#0047ba; --accent-soft:#e8e8e8;
  --input-surface:#fafafa; --card-soft:#eeeeee; --avatar-surface:#e5e5e5; --avatar-line:#cbcbcb;
  --vehicle-frame-center:#f3f3f3; --vehicle-frame-edge:#dedede;
  --primary-button:#0047ba; --primary-hover:#003b9c; --on-primary:#fff;
  --success-surface:#ebebeb; --success-line:#b9cdbf; --success-ink:#236d43;
  --warning-surface:#ebebeb; --warning-line:#cdbd98; --warning-ink:#865510;
  --proposal-surface:#eaeaea; --neutral-surface:#e5e5e5; --progress-track:#d9d9d9;
  --dollar-surface:#dfdfdf; --dollar-ink:#176b43; --scroll-thumb:#b6b6b6;
  --soft-shadow:0 2px 4px rgb(0 0 0 / 4%),0 12px 28px rgb(0 0 0 / 6%),inset 0 1px 0 rgb(255 255 255 / 75%);
  --card-shadow:0 2px 5px rgb(0 0 0 / 4%),inset 0 1px 0 rgb(255 255 255 / 60%);
  --field-shadow:inset 0 1px 3px rgb(0 0 0 / 5%);
  --popup-shadow:0 4px 8px rgb(0 0 0 / 5%),0 16px 36px rgb(0 0 0 / 14%);
  font-family:'Instrument Sans',Inter,Arial,Helvetica,sans-serif;
}

:root[data-theme=dark]{
  color-scheme:dark;
  --bg:#171717; --surface:#242424; --ink:#eeeeee; --muted:#b0b0b0;
  --line:#3b3b3b; --soft:#2d2d2d; --accent:#94b6ff; --accent-soft:#303030;
  --input-surface:#1e1e1e; --card-soft:#2b2b2b; --avatar-surface:#303030; --avatar-line:#525252;
  --vehicle-frame-center:#3c3c3c; --vehicle-frame-edge:#282828;
  --primary-button:#3975e5; --primary-hover:#4b88f4; --on-primary:#fff;
  --success-surface:#2d2d2d; --success-line:#476551; --success-ink:#98d9ae;
  --warning-surface:#2d2d2d; --warning-line:#806b3a; --warning-ink:#e9c67e;
  --proposal-surface:#2d2d2d; --neutral-surface:#303030; --progress-track:#3b3b3b;
  --dollar-surface:#363636; --dollar-ink:#91d9ad; --scroll-thumb:#666666;
  --potential:#45ae79; --proposal:#e7bd49; --selected:#a6c0ff;
  --soft-shadow:0 2px 4px rgb(0 0 0 / 18%),0 16px 34px rgb(0 0 0 / 25%),inset 0 1px 0 rgb(255 255 255 / 4%);
  --card-shadow:0 3px 8px rgb(0 0 0 / 16%),inset 0 1px 0 rgb(255 255 255 / 3%);
  --field-shadow:inset 0 2px 4px rgb(0 0 0 / 18%);
  --popup-shadow:0 4px 10px rgb(0 0 0 / 20%),0 20px 44px rgb(0 0 0 / 42%);
}
/* El sistema también decide el color inicial si JavaScript está desactivado. */
@media (prefers-color-scheme:dark) {

:root:not([data-theme]){ color-scheme:dark; --bg:#171717; --surface:#242424; --ink:#eeeeee; --muted:#b0b0b0; --line:#3b3b3b; --soft:#2d2d2d; --accent:#94b6ff; --accent-soft:#303030; --input-surface:#1e1e1e; --card-soft:#2b2b2b; --avatar-surface:#303030; --avatar-line:#525252; --primary-button:#3975e5; --primary-hover:#4b88f4; --on-primary:#fff; --success-surface:#2d2d2d; --success-line:#476551; --success-ink:#98d9ae; --warning-surface:#2d2d2d; --warning-line:#806b3a; --warning-ink:#e9c67e; --proposal-surface:#2d2d2d; --neutral-surface:#303030; --progress-track:#3b3b3b; --dollar-surface:#363636; --dollar-ink:#91d9ad; --scroll-thumb:#666666; --potential:#45ae79; --proposal:#e7bd49; --selected:#a6c0ff; --soft-shadow:0 2px 4px rgb(0 0 0 / 18%),0 16px 34px rgb(0 0 0 / 25%),inset 0 1px 0 rgb(255 255 255 / 4%); --card-shadow:0 3px 8px rgb(0 0 0 / 16%); --field-shadow:inset 0 2px 4px rgb(0 0 0 / 18%); --popup-shadow:0 4px 10px rgb(0 0 0 / 20%),0 20px 44px rgb(0 0 0 / 42%); }
}
/* Cabecera y selector. La elección manual permanece solo en esta página. */
.page-heading{ flex-wrap:wrap; gap:10px; margin-bottom:16px; }

.page-heading h1{ font-size:27px; font-weight:700; letter-spacing:-.65px; }

.theme-toggle{ display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:3px; height:36px; padding:4px 6px; background:var(--soft); border:1px solid var(--line); border-radius:24px; color:var(--muted); }

.theme-toggle [data-icon]{ width:23px; height:23px; border-radius:50%; }

.theme-toggle [data-icon] > svg{ width:13px; height:13px; }

.theme-toggle [data-theme-label]{ min-width:29px; padding:0 3px; font-size:10px; font-weight:600; }
/* Acceso permanente al catálogo, con la misma altura y cápsula que el tema. */
.catalog-pill{ display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; gap:7px; height:36px; padding:4px 10px; border:1px solid var(--line); border-radius:24px; color:var(--ink); background:var(--soft); font-size:12px; font-weight:600; text-decoration:none; white-space:nowrap; }

.catalog-pill > [data-icon]{ width:18px; height:18px; }

.catalog-pill > [data-icon] > svg{ width:16px; height:16px; }

.catalog-pill:hover{ color:var(--accent); background:var(--surface); box-shadow:var(--card-shadow); }

:root:not([data-theme=dark]) .theme-toggle .theme-sun,:root[data-theme=dark] .theme-toggle .theme-moon{ color:var(--ink); background:var(--surface); box-shadow:0 1px 4px rgb(0 0 0 / 7%); }
.document-title-row{ display:flex; align-items:center; flex-wrap:wrap; gap:12px; }

.document-title-row{ margin:22px 0 8px; }

.document-title-row h1{ margin:0; }
/* Superficies: se cambia la piel, sin introducir otra navegación o columnas. */
body{ background:var(--bg); color:var(--ink); }

.panel{ border-color:var(--line); border-radius:10px; box-shadow:var(--soft-shadow); }

.card{ border-color:var(--line); border-radius:10px; box-shadow:var(--card-shadow); }

button,input,select{ border-color:var(--line); border-radius:8px; background:var(--surface); }

.primary-button{ color:var(--on-primary); background:var(--primary-button); border-color:var(--primary-button); }

.primary-button:hover{ background:var(--primary-hover); border-color:var(--primary-hover); }

.secondary-button{ color:var(--accent); background:var(--surface); }

.settings-button{ border-color:var(--line); box-shadow:var(--soft-shadow); }

.advisor-panel{ background:var(--surface); border-top-width:3px; }

.advisor-avatar{ background:var(--avatar-surface); border-color:var(--avatar-line); }

button.advisor-avatar:hover{ background:var(--accent-soft); }
.advisor-eyebrow{ color:var(--muted); }

.money-input,.search-box{ background:var(--input-surface); border-color:var(--line); border-radius:8px; box-shadow:var(--field-shadow); }

.money-input input,.search-box input{ background:transparent; }

.vehicle-version-field select{ background:var(--input-surface); }

.vehicle-preview{ background:var(--soft); }

.vehicle-preview > img{ background:transparent; border-radius:0; mix-blend-mode:normal; }
:root[data-theme=dark] .vehicle-default-icon,:root[data-theme=dark] #advisor-login-icon{ filter:invert(1) grayscale(1) brightness(1.3); }

.suggestions{ background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:var(--popup-shadow); }

.vehicle-reference{ border-left-color:var(--line); }

.big-money,.result-money{ font-weight:700; }

.money-symbol.is-usd,.currency-prefix.is-usd,.usd{ color:var(--dollar-ink); background:var(--dollar-surface); }

.status{ color:var(--accent); background:var(--accent-soft); border-color:var(--line); }

.status.is-warning{ color:var(--warning-ink); background:var(--warning-surface); border-color:var(--warning-line); }

.field-error,.input-feedback{ color:var(--warning-ink); }

.money-input.has-input-error,input[aria-invalid=true]{ background:var(--warning-surface); border-color:var(--warning-line); }

.plan-toggle,.plan-badge,.tag{ color:var(--accent); background:var(--accent-soft); border-color:var(--line); }

.certificate-option[aria-checked=true]{ background:var(--accent-soft); }

.certificate-options{ scrollbar-color:var(--scroll-thumb) transparent; }

.field-currency-switch{ background:var(--soft); border-color:var(--line); }

.field-currency-switch[aria-checked=false]::before{ background:#237c52; }

.field-currency-switch[aria-checked=true]::before{ background:var(--primary-button); }

.field-currency-switch[aria-checked=false] span:first-child,.field-currency-switch[aria-checked=true] span:last-child{ color:#fff; }

.field-currency-switch[aria-checked=true] span:first-child{ color:var(--dollar-ink); }

progress,progress::-webkit-progress-bar{ background:var(--progress-track); }
/* Diálogos y documentos conservan el mismo tema que la cotización. */
dialog{ color:var(--ink); background:var(--surface); border-color:var(--line); box-shadow:var(--popup-shadow); }

dialog::backdrop{ background:rgb(9 15 31 / 55%); }

.exchange-reference{ background:var(--soft); border-color:var(--line); }

.legal-document section{ background:var(--surface); border-radius:10px; box-shadow:var(--soft-shadow); }
/* Catálogo: misma paleta, fotografías sobre una base clara para no alterarlas. */
.catalog-header,.catalog-search,.vehicle-card,.empty-message{ background:var(--surface); }

.catalog-toolbar,.brand-sidebar,.vehicle-card,.vehicle-card:nth-child(odd){ border-color:var(--line); }

#catalog-brands button:hover,#catalog-brands button[aria-pressed=true],.brand-group > summary{ background:var(--accent-soft); }

.brand-group > summary{ border-radius:0; }

.brand-group{ box-shadow:var(--card-shadow); }

.vehicle-card > img{ border-radius:8px; }

.vehicle-preview,.vehicle-card > img{ background:radial-gradient(ellipse at 50% 45%,var(--vehicle-frame-center),var(--vehicle-frame-edge)); }

.version-selector{ background:var(--input-surface); }

@media (max-width:560px) {

.page-heading{ gap:8px; }

.page-heading h1{ font-size:25px; }

.theme-toggle{ height:34px; padding:3px 5px; }

.catalog-pill{ height:34px; width:34px; padding:3px; }

.catalog-pill-label{ display:none; }
}
@media (max-width:380px) {

.theme-toggle [data-theme-label]{ display:none; } }
@media print {

:root[data-theme]{ color-scheme:light; --bg:#fff; --surface:#fff; --ink:#172338; --muted:#64748b; --line:#dce5f2; --soft:#f5f6fb; --accent:#0047ba; --accent-soft:#edf4ff; --input-surface:#fcfcff; --card-soft:#f5f7ff; --avatar-surface:#edf2ff; --avatar-line:#d5e1ff; --primary-button:#0047ba; --primary-hover:#003b9c; --success-surface:#edf8f1; --success-line:#cce8d7; --success-ink:#237b4a; --warning-surface:#fff8e9; --warning-line:#eed49a; --warning-ink:#976117; --proposal-surface:#fff7df; --neutral-surface:#f1f3f7; --progress-track:#eceef6; --dollar-surface:#e8f5ed; --dollar-ink:#176e48; --potential:#39a56c; --proposal:#f4c84b; --selected:#0047ba; }

.theme-toggle,.catalog-pill{ display:none; }

.panel,.card{ box-shadow:none; }
:root[data-theme] .vehicle-default-icon,:root[data-theme] #advisor-login-icon{ filter:none; }
}
