.app-footer {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.65rem 1rem;
    background: #202b36;
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
}

.main-content > .container {
    flex: 1 0 auto !important;
    height: auto;
    min-height: 0;
}

/* En páginas largas el contenido debe crecer antes que el pie. Así la cinta
   queda después de la última fila, en lugar de superponerse durante el scroll. */
.main-content > .container > main {
    height: auto;
    min-height: 100%;
}

.app-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1440px;
    margin: 0 auto;
}

.app-footer__brand,
.app-footer__version,
.app-footer__links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.app-footer__links {
    gap: 0;
}

.app-footer__links a {
    color: #fff;
    text-decoration: none;
    padding: 0 0.65rem;
}

.app-footer__links a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.app-footer__ownership {
    font-weight: 600;
    color: #fff;
}

.app-footer__links a:hover,
.app-footer__links a:focus-visible {
    color: #8fd3ff;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .app-footer__content {
        flex-direction: column;
        gap: 0.45rem;
        text-align: center;
    }

    .app-footer__brand {
        flex-direction: column;
    }

    .app-footer__links a {
        padding: 0 0.4rem;
    }
}
