body {
  background-color: #f8f9fa;
  font-size: .9rem;
}

.navbar-brand {
  letter-spacing: .03em;
}

.table-responsive thead.sticky-top th {
  top: 0;
  z-index: 1;
}

.wa-badge {
  cursor: default;
  font-size: .8rem;
  min-width: 1.6rem;
}

.card-header.fw-semibold {
  font-size: .85rem;
}

.form-range::-webkit-slider-thumb {
  background: #0d6efd;
}

.score-display {
  font-size: .9rem;
  width: 2.2rem;
  text-align: center;
}

dl.row dt { font-size: .8rem; }
dl.row dd { font-size: .85rem; }

.card.shadow-sm {
  border: none;
  border-radius: .75rem;
}

.progress { border-radius: .5rem; }
.alert    { border-radius: .5rem; }

@media (max-width: 576px) {
  .table-responsive::after {
    content: '← desliza →';
    display: block;
    text-align: center;
    font-size: .75rem;
    color: #adb5bd;
    padding: .25rem 0;
  }
}

/* UX-1 — Skeleton loader */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skeleton-row td {
  background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
  background-size: 400px 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 4px;
  color: transparent !important;
  user-select: none;
}

/* UX-3 — Área táctil mínima */
.btn {
  min-height: 44px;
  padding: .55rem 1.1rem;
  font-size: .95rem;
}
.btn-sm {
  min-height: 38px;
  padding: .4rem .85rem;
  font-size: .875rem;
}

.btn-success.w-100 {
  min-height: 48px;
  font-size: 1rem;
  letter-spacing: .01em;
}

.btn-group .btn {
  min-height: 40px;
}

button[type="submit"].btn-primary.px-4 {
  min-height: 52px;
  font-size: 1.05rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.table .btn-outline-primary {
  min-height: 36px;
  padding: .3rem .8rem;
}

/* UX-4b — Ocultar columnas WA en móvil */
@media (max-width: 767px) {
  .col-wa { display: none; }
}

/* UX-4c — Botón Guardar sticky en móvil */
@media (max-width: 767px) {
  .eval-submit-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: .75rem 1rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,.12);
    margin: 0 -12px;
    z-index: 10;
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
  }
}

/* UX-4d — Espaciado y tipografía general */
.card-header {
  padding: .75rem 1rem;
  letter-spacing: .01em;
}

.card.mb-3 {
  margin-bottom: 1.25rem !important;
}

.table td,
.table th {
  padding: .65rem .75rem;
}
