/* salescript — tema «tinta, papel y cobre» para el login y la app (2026-11-17).
   Se carga DESPUÉS del CSS del build (ver public/index.html) y pisa la paleta naranja
   sin tocar los componentes. Misma paleta que la landing de salescript.online:
   tinta #16202A · papel #FBF8F3 · arena #F3EDE3 · línea #E3D9CA · cobre #C2541C (texto #A2441A) */

:root {
  /* variables de wizard.css */
  --ss-bg: #FBF8F3;
  --ss-bg-2: #FFFFFF;
  --ss-card: #FFFFFF;
  --ss-primary: #A2441A;
  --ss-primary-d: #8A3914;
  --ss-primary-l: #C2541C;
  --ss-accent: #C2541C;
  --ss-gradient: #16202A;
  --ss-danger: #B42318;
  --ss-ok: #2F7D5B;
  --ss-text: #16202A;
  --ss-muted: #5E6670;
  --ss-border: #E3D9CA;
  --ss-shadow: 0 1px 2px rgba(22, 32, 42, .05), 0 16px 40px rgba(22, 32, 42, .08);
  --ss-radius: 14px;

  /* variables de landing-chat.css (landing vieja y chat) */
  --primary-orange: #C2541C;
  --primary-black: #16202A;
  --text-gray: #5E6670;
  --light-gray: #F3EDE3;
  --border-gray: #E3D9CA;
  --gradient-bg: #16202A;
}

body { background: #FBF8F3; }

::-webkit-scrollbar-track { background: #F3EDE3; }
::-webkit-scrollbar-thumb { background: #D9CDB9; }
::-webkit-scrollbar-thumb:hover { background: #A2441A; }

/* Spinner de carga inicial (App.js) */
.spinner { border-color: rgba(22, 32, 42, .1); border-top-color: #C2541C; }

/* ================= LOGIN ================= */
.login-container {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(194, 84, 28, .10), transparent 70%),
    #F3EDE3;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.login-box {
  border: 1px solid #E3D9CA; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(22, 32, 42, .05), 0 20px 48px rgba(22, 32, 42, .10);
  padding: 2.4rem 2rem 2rem;
}
.login-logo { height: 44px; }
.login-title {
  font-family: "Newsreader", Georgia, serif; font-weight: 500;
  font-size: 1.75rem; letter-spacing: -0.01em; color: #16202A;
}
.login-field label { color: #5E6670; font-weight: 500; }
.login-field input { border-color: #E3D9CA; background: #FFFFFF; color: #16202A; }
.login-field input:focus { border-color: #A2441A; box-shadow: 0 0 0 3px rgba(194, 84, 28, .15); }
.login-error { color: #B42318; }
.login-submit {
  background: #16202A; border-radius: 8px; box-shadow: none; padding: .8rem;
}
.login-submit:hover:not(:disabled) { background: #A2441A; transform: none; box-shadow: none; }
.login-back { color: #5E6670; }
.login-back:hover { color: #A2441A; }

/* ================= APP ================= */
.app-shell {
  background: #FBF8F3;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* barra superior: papel con línea, como la landing */
.topbar {
  background: rgba(251, 248, 243, .94);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid #E3D9CA;
  box-shadow: none;
}
.topbar-brand img { height: 30px; }
.topbar-tabs button { color: #5E6670; font-weight: 500; }
.topbar-tabs button:hover { color: #16202A; background: #F3EDE3; }
.topbar-tabs button.active { color: #FFFFFF; background: #16202A; box-shadow: none; }
.topbar-username { color: #5E6670; }
.btn-logout { background: transparent; color: #16202A; border-color: #E3D9CA; }
.btn-logout:hover { background: #F3EDE3; border-color: #16202A; }

/* tarjeta del asistente */
.wizard-card, .files-card { border: 1px solid #E3D9CA; }
.wizard-step-dot { background: #F3EDE3; }
.wizard-step.current .wizard-step-dot { box-shadow: 0 0 0 4px rgba(194, 84, 28, .15); }
.wizard-bar { background: #F3EDE3; }
.wizard-bar-fill { background: #C2541C; }
.step-title, .files-head h2, .modal-title {
  font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -0.01em;
}
.step-title { font-size: 1.6rem; }
.files-head h2 { font-size: 1.5rem; }
.step-sub code { background: #F3EDE3; }

.dropzone { border-color: #D9CDB9; background: #FBF8F3; }
.dropzone:hover { border-color: #C2541C; background: #FBEEE4; }
.dropzone.drag { border-color: #A2441A; background: #F7E3D5; }
.dropzone.has-file { background: #EEF6F1; }
.dropzone-clear { background: #FDE8E6; }

.field label { color: #2D343C; }
.field input:focus, .field select:focus,
.summary-edit .summary-input:focus { box-shadow: 0 0 0 3px rgba(194, 84, 28, .15); }

.preset-card { background: #FBF8F3; }
.preset-card:hover { background: #FBEEE4; }
.preset-card.selected { background: #F7E3D5; box-shadow: 0 8px 22px rgba(194, 84, 28, .14); }
.preset-icon { background: #16202A; }
.preset-count, .browser-title span, .vector-badge { background: #F3EDE3; }

.confirm-warn { background: #FDE8E6; }
.btn-text:hover:not(:disabled) { background: #FDE8E6; }

.btn { border-radius: 8px; }
.btn-primary { background: #16202A; box-shadow: none; }
.btn-primary:hover:not(:disabled) { background: #A2441A; transform: none; box-shadow: none; }
.btn-ghost { background: #F3EDE3; color: #16202A; }
.btn-ghost:hover:not(:disabled) { background: #E9E0D2; }
.btn-danger { background: #B42318; box-shadow: none; }
.btn-danger:hover { background: #8F1C13; transform: none; }

/* archivos */
.file-row { background: #FBF8F3; }
.file-row:hover { background: #FBEEE4; }
.file-row-btn { background: #F3EDE3; color: #16202A; }
.file-row-btn:hover { background: #16202A; color: #FFFFFF; }
.vector-head:hover { background: #FBF8F3; }
.browser-empty svg { color: #D9CDB9; }
.browser-empty p { color: #2D343C; }

/* cargando / procesando */
.logo-spinner-ring { border-color: rgba(194, 84, 28, .18); border-top-color: #C2541C; border-right-color: #16202A; }
.processing-overlay { background: rgba(22, 32, 42, .86); }
.processing-overlay .logo-spinner-ring { border-right-color: #F3EDE3; }
.processing-box h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.45rem; }
.up-bar-fill { background: #F0A06E; }

/* modales y avisos */
.modal-overlay { background: rgba(22, 32, 42, .6); }
.modal-card { border-radius: 16px; }
.modal-icon { background: rgba(194, 84, 28, .12); }
.modal-close { background: #F3EDE3; color: #5E6670; }
.modal-close:hover { background: #E9E0D2; }
.toast.success { background: #2F7D5B; }
.toast.error { background: #B42318; }

/* términos (modal de la landing vieja) */
.tc-header { background: #16202A; }
.tc-body li::marker { color: #A2441A; }
.tc-body li strong { color: #16202A; }
.tc-body::-webkit-scrollbar-thumb:hover { background: #A2441A; }

/* celular: los botones del asistente no entraban en el ancho */
@media (max-width: 560px) {
  .wizard-nav { flex-wrap: wrap; gap: .5rem; }
  .wizard-nav-right { order: -1; width: 100%; }
  .wizard-nav-right .btn { flex: 1 1 0; justify-content: center; padding: .75rem .8rem; }
  .wizard-nav .btn-text { margin: 0 auto; }
  .topbar { padding: .75rem 1rem; }
}
