/* Checkbox personalizado — todas las pantallas */
.check-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  transition: background 0.15s;
}
.check-item:hover {
  background: rgba(41, 67, 138, 0.06);
}
.check-item input.check-input,
.check-item input[type="checkbox"].check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.check-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 0.4rem;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.check-item:hover .check-box {
  border-color: #94a3b8;
}
.check-item input:checked + .check-box {
  background: #29438A;
  border-color: #29438A;
  box-shadow: 0 2px 8px rgba(41, 67, 138, 0.35);
}
.check-item input:checked + .check-box::after {
  content: "";
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}
.check-box--round { border-radius: 50%; }
.check-item input:checked + .check-box--round::after {
  width: 0.4rem;
  height: 0.4rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  transform: none;
  margin-top: 0;
}
.check-item input:focus-visible + .check-box {
  outline: 2px solid rgba(41, 67, 138, 0.4);
  outline-offset: 2px;
}
.check-label {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.35;
}
.check-label strong {
  display: block;
  font-weight: 600;
  color: #0f172a;
}
.check-label small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 400;
  margin-top: 0.1rem;
}

/* Lista de departamentos en modal usuario */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.check-list .check-item {
  width: 100%;
  margin: 0;
}
.check-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  max-height: 11rem;
}
@media (min-width: 640px) {
  .check-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.check-list--radio .check-item input.check-input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1.25rem;
  height: 1.25rem;
  left: 0.65rem;
  top: 0.75rem;
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}
.check-list .check-item .check-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* Toggle switch opcional para "activo" */
.check-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.check-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-switch-track {
  width: 2.75rem;
  height: 1.5rem;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.check-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.1rem;
  height: 1.1rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.check-switch input:checked + .check-switch-track {
  background: #29438A;
}
.check-switch input:checked + .check-switch-track::after {
  transform: translateX(1.25rem);
}
.check-switch-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
