/* Pie compartido: plataforma y pantallas de acceso, siempre en el flujo normal. */
/* Se sirve directamente para que las páginas de error no dependan del manifiesto de Vite. */
.app-layout { min-height: 100vh; min-height: 100dvh; }
.app-platform-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app-platform-main > .app-footer { margin-top: auto; }
.app-layout--public { display: flex; flex-direction: column; }
.app-layout--public > .login-page { display: flex; flex: 1 0 auto; flex-direction: column; min-height: 0; }
.app-layout--public > .login-page .login-shell { flex: 1; width: 100%; min-height: 0; }
.app-footer {
    flex: 0 0 auto;
    color: #506b58;
    font-size: .75rem;
    line-height: 1.65;
}
.app-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; min-width: 0; }
.app-footer-copyright { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; margin: 0; font-size: inherit; line-height: inherit; }
.app-footer-divider { width: 1px; height: 13px; background: #cbdcd1; }
.app-footer-company { color: #3b5d49; font-weight: 600; overflow-wrap: anywhere; }
.app-footer-certificate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #dce8e0;
    border-radius: 10px;
    background: #f5f9f6;
    color: #31664e;
    text-decoration: none;
}
.app-footer-certificate-copy { min-width: 0; overflow-wrap: anywhere; }
.app-footer-certificate-copy strong { font-weight: 600; }
.app-footer-shield { flex: 0 0 20px; }
.app-footer-external { flex: 0 0 15px; color: #54715e; }
.app-footer-certificate:hover { border-color: #a8cbb8; background: #eaf3ed; color: #214f39; text-decoration: none; }
.app-footer-certificate:focus-visible { outline: 3px solid #5b8e70; outline-offset: 3px; }
.app-footer--platform { margin: 0 24px 24px; padding: 16px 20px; border: 1px solid #e0e9e3; border-radius: 15px; background: #fff; box-shadow: 0 4px 16px #294d4005; }
.app-footer--public { margin: auto 24px 20px; padding: 0 4px; }
.app-footer--public .app-footer-inner { padding-top: 12px; border-top: 1px solid #dce8e0; }
.app-footer--public .app-footer-certificate { background: #fff; }
.app-footer--public .app-footer-certificate:hover { background: #eaf3ed; }
body.app-layout--error { height: auto; align-items: stretch; }
.app-layout--error > .app-error-main { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; padding: 24px; }
.app-layout--error .app-error-main > .error-card { width: 100%; }
@media (max-width: 767.98px) {
    .app-footer-inner { justify-content: center; gap: 8px 20px; }
    .app-footer-copyright { justify-content: center; }
}
@media (max-width: 575.98px) {
    .app-footer--platform { margin-right: 12px; margin-bottom: 12px; margin-left: 12px; padding: 14px 12px; }
    .app-footer--public { margin-right: 12px; margin-bottom: 16px; margin-left: 12px; padding: 0 4px; }
    .app-footer-inner { flex-direction: column; }
    .app-footer-certificate { padding-right: 10px; padding-left: 10px; text-align: center; }
    .app-layout--error > .app-error-main { padding: 16px; }
}
