/* ============================================================
   license-client.css — Licencia y complementos en la interfaz
   ============================================================ */

/* ─── Badge ADDON en el menú ─────────────────────────────────
   Ámbar para distinguirse del azul del sistema base: señala que
   ese módulo se compró aparte. */
#staff-sidebar .snav-link .addon-badge,
.addon-badge {
  display: inline-block;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.5;
  color: #7a4a05;
  background-image: linear-gradient(180deg, #fcd77a 0%, #f5b93c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 1px 2px rgba(122,74,5,.28);
  flex-shrink: 0;
}
/* Sobre el ítem activo (azul) se aclara para mantener contraste */
#staff-sidebar .snav-link.snav-active .addon-badge {
  color: #4a2c02;
  background-image: linear-gradient(180deg, #ffe9a8 0%, #fbcb63 100%);
}

/* ─── Cinta de aviso ─────────────────────────────────────────*/
.gd-lic-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(20,24,31,.22);
}
.gd-lic-bar i { margin-right: 7px; }
.gd-lic-warn {
  background-image: linear-gradient(180deg, #f0a93c 0%, #d97706 100%);
}
.gd-lic-danger {
  background-image: linear-gradient(180deg, #ef5350 0%, #c62828 100%);
  animation: gdLicPulso 2.4s ease-in-out infinite;
}
@keyframes gdLicPulso {
  0%,100% { box-shadow: 0 2px 10px rgba(198,40,40,.35) }
  50%     { box-shadow: 0 2px 22px rgba(198,40,40,.65) }
}
@media (prefers-reduced-motion: reduce) {
  .gd-lic-danger { animation: none }
}

/* Con cinta visible se empuja el contenido para no taparlo */
body:has(#gd-license-bar) .top-nav { padding-top: 46px !important; }

/* ─── Pantalla de bloqueo ────────────────────────────────────*/
.gd-lic-block {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(12,16,22,.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gd-lic-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 20px;
  padding: 38px 34px 30px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 24px 60px -12px rgba(0,0,0,.55);
}
.gd-lic-ic {
  width: 68px; height: 68px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  background-image: linear-gradient(160deg, #f0787a, #c62828);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 8px 20px -5px rgba(198,40,40,.5);
}
.gd-lic-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #14181f;
  margin: 0 0 12px;
}
.gd-lic-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5b6676;
  margin: 0 0 10px;
}
.gd-lic-motivo {
  color: #c62828 !important;
  font-weight: 600;
}

/* Código de equipo destacado: es lo que el municipio dicta */
.gd-lic-hw {
  margin: 22px 0 14px;
  padding: 14px;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(20,24,31,.07);
}
.gd-lic-hw span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa4b2;
  margin-bottom: 6px;
}
.gd-lic-hw strong {
  font-family: Consolas, Menlo, monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #2f80ed;
}
.gd-lic-pie {
  font-size: 12px !important;
  color: #9aa4b2 !important;
  margin: 0 !important;
}
