/* Pie fijo de los sistemas de MSOFT (línea HIDISPA / ARQ360), con los colores de FirmAccounting. */
.brand-foot {
    --bf-bg: #fff; --bf-line: #e2e8f0; --bf-ink: #0f2740; --bf-muted: #5b6f84; --bf-faint: #8a9bb0;
    --bf-green: #12a06e; --bf-green-soft: rgba(141, 198, 63, .14); --bf-msoft: #8dc63f;
    position: sticky; bottom: 0; z-index: 20; margin-top: auto; padding: 6px 14px;
    background: var(--bf-bg); border-top: 1px solid var(--bf-line); box-shadow: 0 -6px 20px rgba(11, 29, 47, .05);
    font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif; color: var(--bf-ink);
}
.bf-in { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 4px 12px; align-items: center; max-width: 1500px; margin: 0 auto; }
.bf-item { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.bf-item > div { min-width: 0; }
.bf-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--bf-green); background: var(--bf-green-soft); border: 1px solid rgba(141, 198, 63, .28); }
.bf-ic .icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-item strong { display: block; margin-bottom: 1px; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--bf-faint); }
.bf-item p { margin: 0; font-size: 10.5px; line-height: 1.3; color: var(--bf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-marcas { display: flex; align-items: center; gap: 12px; padding-left: 12px; border-left: 1px solid var(--bf-line); }
.bf-logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.bf-logo > div { display: grid; line-height: 1.2; }
.bf-logo small { font-size: 10px; color: var(--bf-muted); white-space: nowrap; }
.bf-bars { width: 32px; height: 32px; flex: none; display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 6px 5px; border-radius: 9px; background: #0f263c; }
.bf-bars i { display: block; width: 4px; border-radius: 2px 2px 1px 1px; background: linear-gradient(180deg, #2f9fff, #12c68b); }
.bf-bars i:nth-child(1) { height: 7px; } .bf-bars i:nth-child(2) { height: 11px; } .bf-bars i:nth-child(3) { height: 15px; }
.bf-bars i:nth-child(4) { height: 19px; background: linear-gradient(180deg, #4fd38f, var(--bf-msoft)); }
.bf-name { font-size: 14.5px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.bf-name span { color: var(--bf-ink); } .bf-name em { font-style: normal; color: #18b67f; }
.bf-div { width: 1px; align-self: stretch; min-height: 32px; background: var(--bf-line); }
.bf-msoft img { width: 34px; height: auto; flex: none; }
.bf-msoft b { font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.bf-msoft:hover b { color: var(--bf-green); }
.bf-contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; max-width: 1500px; margin: 4px auto 0; padding-top: 4px; border-top: 1px solid var(--bf-line); font-size: 11px; color: var(--bf-muted); }
.bf-contacto span, .bf-contacto a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.bf-contacto a:hover { color: var(--bf-green); }
.bf-contacto .icon { width: 14px; height: 14px; color: var(--bf-green); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Oscuro (sistema) */
[data-theme="dark"] .brand-foot { --bf-bg: #0d1b2a; --bf-line: rgba(255, 255, 255, .07); --bf-ink: #e8eef6; --bf-muted: #a9bdd3; --bf-faint: #7f93a8; --bf-green: #8dc63f;
    background: linear-gradient(180deg, #0f2133, #0a1622); box-shadow: 0 -6px 24px rgba(0, 0, 0, .35); }

/* Dónde va: en el sistema, al final de la columna principal; en el acceso, al final de la página. */
.main:has(> .brand-foot) { display: flex; flex-direction: column; min-height: 100vh; }
.main:has(> .brand-foot) > .content { flex: 1 0 auto; }
/* En el acceso el pie queda fijo como en HIDISPA: la página reserva su alto y las columnas se acortan. */
.login-body:has(> .brand-foot) { --bf-h: 62px; padding-bottom: var(--bf-h); }
.login-body:has(> .brand-foot--contact) { --bf-h: 90px; }
.login-body:has(> .brand-foot) .login-shell, .login-body:has(> .brand-foot) .gate, .login-body:has(> .brand-foot) .auth-side { min-height: calc(100vh - var(--bf-h)); }
.login-body > .brand-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bf-bg) 94%, transparent); backdrop-filter: saturate(1.3) blur(12px); }

@media (max-width: 1280px) {
    .bf-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bf-item:nth-child(n+4) { display: none; }
    .bf-marcas { grid-column: 1 / -1; justify-content: center; border-left: 0; padding: 4px 0 0; border-top: 1px solid var(--bf-line); }
}
@media (max-width: 1180px) {
    .login-body > .brand-foot .bf-item { display: none; }
    .login-body > .brand-foot .bf-in { grid-template-columns: 1fr; }
    .login-body > .brand-foot .bf-marcas { border-top: 0; padding: 0; }
    .login-body:has(> .brand-foot) { --bf-h: 58px; }
    .login-body:has(> .brand-foot--contact) { --bf-h: 84px; }
}
@media (max-width: 980px) {
    .main > .brand-foot { position: static; }
    .bf-in { grid-template-columns: 1fr; }
    .bf-item { display: none; }
    .bf-marcas { border-top: 0; padding: 0; }
}
@media (max-width: 420px) {
    .bf-logo small { display: none; }
    .bf-marcas { gap: 8px; }
    .bf-contacto span { display: none; }
}
@media print { .brand-foot { display: none; } }
@media (max-width: 420px) {
    .bf-marcas { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
    .bf-logo, .bf-logo > div { min-width: 0; }
    .bf-msoft b { font-size: 10px; }
}
