/* Crédito CB Consulting — visible en todas las vistas de la aplicación */

.app-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 1.25rem 1.15rem;
  font-family: var(--font-body, "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted, #9a8a7e);
  text-align: center;
  border-top: 1px solid var(--line, #e5d9c7);
  background: linear-gradient(180deg, transparent 0%, rgba(250, 246, 239, 0.65) 100%);
}

.app-credit-label {
  color: var(--ink-soft, #6b5a4f);
  font-weight: 500;
}

.app-credit-link {
  color: var(--primary, #7a1f1f);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.app-credit-link:hover {
  color: var(--primary-deep, #5b1414);
  border-bottom-color: currentColor;
  text-decoration: none;
}

/* Layout con sidebar */
body.has-sidebar .app-credit {
  margin-left: 248px;
}

body.has-sidebar .content {
  margin-bottom: 0;
}

/* Login (fondo oscuro) — crédito va dentro de la tarjeta; ocultar footer global */
.login-body > .app-credit {
  display: none;
}

/* Ventanas popup / armado */
.etq-page .app-credit,
.arm-captura-page .app-credit {
  max-width: 440px;
  margin: 0 auto;
  border-top: none;
  background: transparent;
  padding-bottom: 1.5rem;
}

.cobro-popup .app-credit {
  border-top: 1px solid var(--line, #e2e8f0);
  background: var(--bg, #f7fafc);
  padding: 0.65rem 1rem 0.85rem;
}

.cobro-ok-page .app-credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: none;
  background: transparent;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 900px) {
  body.has-sidebar .app-credit {
    margin-left: 0;
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0) + 0.85rem);
  }
}
