:root {
  --verde: #3b693c;
  --verde-claro: #6ead3b;
  --rojo: #de3d25;
  --amarillo: #f6d600;
}
body { font-size: 16px; background: #f4f7f4; }
.navbar-altas { background: linear-gradient(90deg, var(--verde), var(--verde-claro)); }
.btn-verde { background: var(--verde); color: #fff; min-height: 44px; }
.btn-verde:hover { background: #2f5530; color: #fff; }
.btn-rojo { background: var(--rojo); color: #fff; min-height: 44px; }
.form-control, .form-select { min-height: 44px; }
.texto-mayus { text-transform: uppercase; }
.lista-panel { height: calc(100vh - 88px); display: flex; flex-direction: column; min-height: 240px; }
.lista-filtros { flex: 0 0 auto; }
.lista-scroll { flex: 1 1 auto; overflow: auto; min-height: 0; background: #fff; }
.lista-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--verde); color: #fff; }
.campo-error { color: var(--rojo); font-size: 0.875rem; min-height: 1.25rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--amarillo); outline-offset: 2px;
}

.btn { min-height: 44px; }
.btn-rojo:hover { background: #b8321e; color: #fff; }
.navbar-altas .navbar-brand,
.navbar-altas .nav-link,
.navbar-altas #sesion-nombre { color: #fff; }
.navbar-altas .nav-link:hover,
.navbar-altas .nav-link:focus { color: #fff; }
.lista-scroll .table { border-collapse: separate; border-spacing: 0; }
.form-control:focus, .form-select:focus, .btn:focus {
  box-shadow: none;
  border-color: var(--verde);
}
.tarjeta-acceso { border-top: 4px solid var(--verde); color: #212529; }
.tarjeta-acceso:hover { color: #212529; box-shadow: 0 8px 24px rgba(59, 105, 60, 0.16); }

.marca-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 85% 12%, rgba(246, 214, 0, 0.22), transparent 26%),
    linear-gradient(160deg, #2f5530 0%, #3b693c 46%, #6ead3b 100%);
}
.login-card {
  max-width: 28rem;
  width: 100%;
  border: 0;
  overflow: hidden;
}
.login-card::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--verde) 0 40%, var(--rojo) 40% 76%, var(--amarillo) 76% 100%);
}
.login-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.navbar-altas .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 0.75rem;
}
.navbar-altas .nav-link.active { background: rgba(255, 255, 255, 0.22); }
.sesion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
}
.seccion-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.seccion-titulo > i { color: var(--verde); }
.form-label { display: flex; align-items: center; gap: 0.35rem; }
.form-label > i { color: var(--verde); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; }
.icono-opcion {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--verde), var(--verde-claro));
  color: #fff;
  font-size: 1.6rem;
}
.estado { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; }
.estado-activo { color: var(--verde); }
.estado-baja { color: var(--rojo); }

.modal-header .btn-close {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin: 0;
  box-sizing: border-box;
  background-size: 1rem auto;
  background-position: center;
}

.lista-scroll .form-check.form-switch {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.combo { position: relative; }
.combo-lista {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.combo-lista button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: #fff;
  text-align: left;
  color: #212529;
}
.combo-lista button:hover,
.combo-lista button[aria-selected="true"] {
  background: #e7f2e4;
}
.combo-vacio {
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: #6c757d;
}

.roles-usuario {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #d7e4d6;
  border-left: 4px solid var(--verde);
  border-radius: 0.5rem;
}
.roles-usuario-titulo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
  color: var(--verde);
  font-weight: 600;
}
.roles-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rol-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e7f3e4;
  color: #2f5530;
  font-weight: 600;
}
.rol-chip-vacio { background: #f4f4f4; color: #6c757d; font-weight: 500; }
.fase-usuarios { display: flex; flex-direction: column; gap: 0.45rem; }
.fase-usuario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  background: #e7f3e4;
  color: #2f5530;
}
.fase-usuario-nombre { font-weight: 600; }
.fase-usuario-orden { min-width: 6rem; }

.asignacion-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.asignacion-tab {
  min-height: 44px;
  border: 1px solid var(--verde);
  background: #fff;
  color: var(--verde);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
}
.asignacion-tab.active { background: var(--verde); color: #fff; }

.lista-scroll .form-check.form-switch .form-check-input {
  width: 5.5rem;
  height: 44px;
  min-height: 44px;
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
}
