:root { --navy: #102a43; --blue: #1677ff; --orange: #f37b55; --ink: #122337; --muted: #6d7f91; --line: #dfe8f1; --paper: #fff; --canvas: #f6f9fc; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
.ui-icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; vertical-align: middle; }
[hidden] { display: none !important; }
.admin-shell { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 48px 0 70px; }
.login-card { width: min(430px, 100%); margin: 8vh auto 0; padding: 38px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 18px 50px rgba(22,57,93,.08); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--navy); font: 700 22px Georgia, serif; }
.eyebrow { margin: 20px 0 10px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; } h1 { margin-bottom: 12px; color: var(--navy); font: 600 38px/1.05 Georgia, serif; letter-spacing: -.04em; } h2 { margin: 0; color: var(--navy); font: 600 26px Georgia, serif; } h3 { margin-bottom: 15px; color: var(--navy); font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; }
form { display: grid; gap: 16px; margin-top: 28px; } label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; } input, select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid var(--line); outline-color: var(--blue); color: var(--ink); background: white; font-size: 13px; }
.button { min-height: 42px; padding: 0 15px; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; } .button:disabled { cursor: not-allowed; opacity: .45; } .button-primary { color: white; background: var(--navy); } .button-primary:hover:not(:disabled) { background: #071c30; } .button-secondary { color: var(--navy); border: 1px solid var(--line); background: white; } .button-secondary:hover:not(:disabled) { border-color: #a9c4e6; }
.form-error { margin: 0; color: #b74b42; font-size: 12px; line-height: 1.45; }
.session-recovery { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.session-recovery p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.session-recovery .button { width: 100%; }
.dashboard-header { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; } .dashboard-header .eyebrow { margin-top: 0; } .dashboard-header h1 { margin-bottom: 9px; }.header-actions { display: flex; gap: 13px; align-items: center; }.header-actions span { color: var(--muted); font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }.stats-grid article { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); background: var(--paper); }.stats-grid span { color: var(--muted); font-size: 11px; }.stats-grid strong { color: var(--navy); font: 600 26px Georgia, serif; }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 15px; }.search { display: flex; flex: 1; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); background: white; }.search span { color: var(--blue); font-size: 23px; }.search input { padding-left: 0; border: 0; outline: 0; }.toolbar select { width: 190px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); background: white; } table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; } th { padding: 13px 15px; color: var(--muted); background: #f8fafc; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; } td { padding: 16px 15px; border-top: 1px solid #edf2f6; font-size: 12px; vertical-align: middle; } td strong { color: var(--navy); } td span, td small { display: block; } td small { margin-top: 4px; color: var(--muted); font-size: 10px; }.score { color: var(--blue) !important; white-space: nowrap; }.status { display: inline-block; padding: 5px 7px; color: #275f4c; background: #e7f4ed; font-size: 10px !important; }.status-en_revision { color: #795b1c; background: #fff3d7; }.status-requiere_informacion { color: #8d423b; background: #fdeae7; }.link-button { padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }.empty-state { padding: 45px 20px; color: var(--muted); text-align: center; font-size: 13px; }.pagination { display: flex; justify-content: center; align-items: center; gap: 15px; padding-top: 20px; color: var(--muted); font-size: 11px; }
.detail-backdrop { position: fixed; z-index: 5; inset: 0; display: grid; justify-items: end; background: rgba(7,28,48,.58); }.detail-panel { width: min(720px, 100%); height: 100%; overflow-y: auto; padding: 28px 32px 60px; background: var(--canvas); box-shadow: -20px 0 50px rgba(0,0,0,.12); }.detail-panel > header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 25px; }.detail-panel .eyebrow { margin-top: 0; }.close-button { width: 34px; height: 34px; border: 0; color: var(--navy); background: white; cursor: pointer; font-size: 22px; }.detail-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-bottom: 25px; border: 1px solid var(--line); background: var(--line); }.detail-summary div { display: grid; gap: 6px; padding: 15px; background: white; }.detail-summary span, dt { color: var(--muted); font-size: 10px; }.detail-summary strong { color: var(--navy); font-size: 12px; }.detail-score { color: var(--blue) !important; }.detail-panel section { margin-bottom: 20px; padding: 20px; border: 1px solid var(--line); background: white; } dl { display: grid; grid-template-columns: 120px 1fr; gap: 11px 15px; margin: 0; } dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.45; }.answer-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }.answer-list li, .answer-list article { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #edf2f6; color: var(--ink); font-size: 12px; line-height: 1.45; }.answer-list article { display: grid; gap: 5px; }.answer-list article span { color: var(--muted); }.answer-list article b { color: var(--blue); }
@media (max-width: 700px) { .admin-shell { width: min(100% - 24px, 1180px); padding-top: 25px; }.login-card { padding: 27px 22px; }.dashboard-header { display: block; }.header-actions { justify-content: space-between; margin-top: 20px; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.toolbar { flex-wrap: wrap; }.search { flex-basis: 100%; }.toolbar select { flex: 1; width: auto; }.detail-panel { padding: 22px 18px 50px; } }
.admin-nav { display: flex; gap: 4px; margin-bottom: 30px; padding: 4px; border: 1px solid var(--line); background: white; }
.admin-nav-button { flex: 1; min-height: 42px; padding: 0 14px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-nav-button.active { color: white; background: var(--navy); }
.section-header { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 24px; }
.section-header .eyebrow { margin-top: 0; }
.section-header .muted { max-width: 680px; margin: 8px 0 0; }
.jobs-table { min-width: 980px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 9px 13px; min-width: 210px; }
.link-button.danger { color: #b74b42; }
.job-status { display: inline-block !important; padding: 5px 8px; font-size: 10px !important; font-weight: 700; }
.job-status-published { color: #275f4c; background: #e7f4ed; }
.job-status-draft { color: #795b1c; background: #fff3d7; }
.job-status-hidden { color: #8d423b; background: #fdeae7; }
.job-status-archived { color: #6d7f91; background: #edf2f6; }
.editor-form { margin: 24px 0 0; padding: 25px; border: 1px solid var(--line); background: white; box-shadow: 0 15px 40px rgba(22,57,93,.06); }
.editor-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.editor-header .eyebrow { margin-top: 0; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.editor-grid .wide { grid-column: 1 / -1; }
.editor-grid textarea { width: 100%; min-height: 90px; padding: 11px 12px; border: 1px solid var(--line); outline-color: var(--blue); color: var(--ink); background: white; font: 13px/1.45 Arial, sans-serif; resize: vertical; }
.editor-grid label > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.check-label { display: flex; align-items: center; align-self: end; min-height: 43px; grid-template-columns: auto 1fr; }
.check-label input { width: 17px; height: 17px; accent-color: var(--navy); }
.question-job-picker { width: min(500px, 100%); margin-bottom: 20px; }
.question-admin-list { display: grid; gap: 9px; }
.question-admin-item { display: grid; grid-template-columns: 36px 1fr auto; gap: 15px; align-items: start; padding: 17px; border: 1px solid var(--line); background: white; }
.question-order { display: grid; width: 32px; height: 32px; place-items: center; color: white; background: var(--navy); font-size: 11px; font-weight: 700; }
.question-admin-copy { display: grid; gap: 6px; }
.question-admin-copy small { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.question-admin-copy strong { color: var(--navy); font-size: 13px; line-height: 1.45; }
.question-admin-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.question-admin-actions { display: flex; gap: 12px; }
.bordered { border: 1px solid var(--line); background: white; }
@media (max-width: 700px) {
  .section-header { display: block; }
  .admin-nav { overflow-x: auto; }
  .admin-nav-button { flex: 0 0 auto; white-space: nowrap; }
  .section-header .button { margin-top: 15px; }
  .editor-form { padding: 19px 15px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid .wide { grid-column: auto; }
  .question-admin-item { grid-template-columns: 32px 1fr; }
  .question-admin-actions { grid-column: 2; }
}

/* Administrative workspace refresh */
:root {
  --navy: #102a43;
  --navy-soft: #183d59;
  --blue: #1677ff;
  --yellow: #f1cf00;
  --orange: #f37b55;
  --ink: #122337;
  --muted: #6d7f91;
  --line: #d8e3ec;
  --line-soft: #edf2f6;
  --paper: #ffffff;
  --canvas: #f3f7fa;
}

body {
  background:
    radial-gradient(circle at 100% 0, rgba(241, 207, 0, .12), transparent 26rem),
    var(--canvas);
}

.admin-shell {
  width: min(1240px, calc(100% - 48px));
  padding: 34px 0 80px;
}

.dashboard-header {
  position: relative;
  align-items: center;
  margin-bottom: 22px;
  padding: 27px 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 40px rgba(16, 42, 67, .06);
}

.dashboard-header::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--yellow);
}

.dashboard-heading {
  max-width: 650px;
}

.dashboard-heading .eyebrow {
  margin-bottom: 9px;
}

.dashboard-header h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 4vw, 44px);
}

.dashboard-header .muted {
  margin-bottom: 0;
}

.header-actions {
  gap: 16px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 185px;
}

.account-avatar {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  font: 700 18px Georgia, serif;
}

.account-chip span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-chip small {
  color: var(--muted);
  font-size: 10px;
}

.account-chip strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav {
  gap: 5px;
  margin-bottom: 35px;
  padding: 5px;
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(16, 42, 67, .04);
}

.admin-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 7px;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.admin-nav-button:hover:not(.active) {
  color: var(--navy);
  background: #f5f8fb;
}

.admin-nav-button.active {
  background: var(--navy);
  box-shadow: 0 5px 12px rgba(16, 42, 67, .14);
}

.admin-nav-button b {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  color: var(--navy);
  background: var(--yellow);
  font-size: 10px;
}

.admin-nav-button.active b {
  color: var(--navy);
}

.view-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 23px;
}

.view-heading .eyebrow {
  margin-top: 0;
  margin-bottom: 8px;
}

.view-heading h2 {
  margin-bottom: 7px;
}

.view-heading .muted {
  max-width: 700px;
  margin-bottom: 0;
}

.view-note {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: var(--paper);
  font-size: 11px;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37a66e;
  box-shadow: 0 0 0 4px rgba(55, 166, 110, .12);
}

.stats-grid {
  gap: 14px;
  margin-bottom: 34px;
}

.stat-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 4px 12px !important;
  min-height: 125px;
  padding: 18px !important;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 7px 20px rgba(16, 42, 67, .04);
}

.stat-card::after {
  position: absolute;
  right: -25px;
  bottom: -33px;
  width: 100px;
  height: 100px;
  border: 20px solid rgba(22, 119, 255, .05);
  border-radius: 50%;
  content: "";
}

.stat-card-yellow {
  border-color: #eadb78 !important;
  background: linear-gradient(135deg, #fffef4, #ffffff) !important;
}

.stat-card-yellow::after {
  border-color: rgba(241, 207, 0, .16);
}

.stat-card-blue {
  border-color: #c8dcf6 !important;
}

.stat-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  background: #edf4fb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.stat-card-yellow .stat-icon {
  background: var(--yellow);
}

.stat-card-blue .stat-icon {
  color: white;
  background: var(--blue);
}

.stat-card > div:nth-child(2) {
  display: grid;
  gap: 5px;
  align-content: center;
}

.stat-card span {
  font-size: 11px;
}

.stat-card strong {
  font-size: 28px;
}

.stat-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.list-header h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.list-header .muted {
  margin-bottom: 0;
  font-size: 11px;
}

.toolbar {
  gap: 9px;
  margin-bottom: 0;
}

.toolbar .search {
  width: 235px;
  flex: 0 1 235px;
  min-height: 43px;
  border-radius: 6px;
}

.toolbar select {
  width: 170px;
  border-radius: 6px;
}

.button {
  border-radius: 6px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  box-shadow: 0 5px 12px rgba(16, 42, 67, .13);
}

.button-secondary {
  background: var(--paper);
}

.button:focus-visible,
.link-button:focus-visible,
.admin-nav-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(22, 119, 255, .25);
  outline-offset: 2px;
}

.table-card {
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(16, 42, 67, .045);
}

table {
  min-width: 860px;
}

th {
  padding: 14px 16px;
  color: #688095;
  background: #f7fafc;
}

td {
  padding: 17px 16px;
}

tbody tr {
  transition: background-color .15s ease;
}

tbody tr:hover {
  background: #fbfdff;
}

.loading-row td {
  height: 170px;
  text-align: center;
}

.loading-indicator,
.list-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.list-loading {
  justify-content: center;
  width: 100%;
  min-height: 135px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #dbe7f1;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 55px 20px;
  background: var(--paper);
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #eef4f8;
  font-size: 22px;
}

.empty-state h3 {
  margin: 0;
  font-size: 16px;
}

.empty-state p {
  max-width: 390px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.pagination {
  justify-content: space-between;
  padding: 16px 2px 0;
}

.pagination span {
  color: var(--navy);
  font-weight: 700;
}

.section-header {
  margin-bottom: 23px;
}

.question-job-picker {
  width: min(500px, 100%);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.question-job-picker label {
  gap: 8px;
}

.question-admin-list {
  margin-top: 18px;
}

.question-admin-item,
.editor-form {
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(16, 42, 67, .035);
}

.question-admin-item {
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.question-admin-item:hover {
  border-color: #b9cee2;
  box-shadow: 0 9px 22px rgba(16, 42, 67, .06);
  transform: translateY(-1px);
}

.detail-panel {
  box-shadow: -20px 0 50px rgba(7, 28, 48, .18);
}

.close-button {
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .dashboard-header {
    align-items: start;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-chip {
    min-width: 0;
  }

  .list-header {
    display: block;
  }

  .toolbar {
    margin-top: 16px;
  }
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .dashboard-header {
    display: block;
    padding: 22px 20px;
  }

  .dashboard-header h1 {
    font-size: 34px;
  }

  .header-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 21px;
  }

  .admin-nav {
    margin-bottom: 28px;
  }

  .admin-nav-button {
    justify-content: space-between;
  }

  .view-heading {
    display: block;
  }

  .view-note {
    display: inline-flex;
    margin-top: 15px;
  }

  .stats-grid {
    gap: 9px;
    margin-bottom: 27px;
  }

  .stat-card {
    min-height: 110px;
    padding: 13px !important;
  }

  .stat-icon {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }

  .stat-card strong {
    font-size: 23px;
  }

  .list-header .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .search {
    grid-column: 1 / -1;
    width: auto;
    flex: none;
  }

  .toolbar select {
    width: auto;
  }

  .toolbar .button {
    width: 100%;
  }

  .pagination {
    gap: 8px;
  }

  .pagination .button {
    padding: 0 10px;
    font-size: 11px;
  }

  .view-heading .button {
    margin-top: 16px;
  }
}