/* Footer plataforma — estilo moderno (mantiene .footer de Velzon) */
.footer.app-footer {
    padding: 0.85rem 1.5rem;
    height: auto;
    min-height: 3.25rem;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #f1f5f9 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-family: inherit;
}

.app-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1.25rem;
    max-width: 100%;
}

.app-footer__left,
.app-footer__right {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.app-footer__copy {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
}

.app-footer__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.app-footer__version {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.18);
}

.app-footer__credit {
    font-size: 0.8rem;
    color: #94a3b8;
}

.app-footer__credit strong {
    font-weight: 600;
    color: #475569;
}

/* Compatibilidad con layout Velzon (.main-content / .page-content) */
.footer:not(.app-footer) {
    /* por si queda alguna clase antigua */
}

[data-layout-mode="dark"] .footer.app-footer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
    border-top-color: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

[data-layout-mode="dark"] .app-footer__copy {
    color: #94a3b8;
}

[data-layout-mode="dark"] .app-footer__sep {
    background: #475569;
}

[data-layout-mode="dark"] .app-footer__version {
    color: #5eead4;
    background: rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.2);
}

[data-layout-mode="dark"] .app-footer__credit {
    color: #64748b;
}

[data-layout-mode="dark"] .app-footer__credit strong {
    color: #cbd5e1;
}

@media (max-width: 575.98px) {
    .footer.app-footer {
        padding: 0.75rem 0.9rem;
        text-align: center;
    }

    .app-footer__inner {
        flex-direction: column;
        justify-content: center;
    }

    .app-footer__left,
    .app-footer__right {
        justify-content: center;
    }
}
