/* ==========================================================================
   FOOTER COMÚN — Admin · Client · Operator
   Archivo: /bonos/assets/css/footer.css

   - Estilos compartidos del footer
   - Anti-footer-gigante (logos e imágenes controladas)
   - Responsive y centrado
   - Ajuste de “aire” por rol
   ========================================================================== */

/* -----------------------------
   ESPACIADO POR ROL (CLAVE)
------------------------------ */
body.ui-admin .admin-footer{ margin-top: 60px; }
body.ui-client .admin-footer,
body.ui-operator .admin-footer{ margin-top: 24px; }

/* Base visual común */
:is(body.ui-admin, body.ui-client, body.ui-operator) .admin-footer{
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,.15));
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.35;
}

/* Contenedor */
:is(body.ui-admin, body.ui-client, body.ui-operator) .admin-footer-inner{
  width: min(var(--container, 1100px), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* Bloques */
.admin-footer-left{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-footer-center{
  display:flex;
  justify-content:center;
}

.admin-footer-right{
  text-align:right;
  font-size: 12px;
  opacity: .85;
}

/* Logo */
.admin-footer-logo{
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 100%;
  display:block;
  opacity: .92;
  transition: transform .2s ease, opacity .2s ease;
}
.admin-footer-logo:hover{
  transform: scale(1.05);
  opacity: 1;
}

/* Anti-footer gigante (defensivo) */
.admin-footer img,
.admin-footer svg{
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 640px){
  :is(body.ui-admin, body.ui-client, body.ui-operator) .admin-footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-footer-left,
  .admin-footer-right{
    justify-content: center;
    text-align: center;
  }
}
