.footer-fixed {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-top: 0px solid #ced4da;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

/* Segundo footer arriba del primero */
.footer-fixed-secondary {
    position: fixed;
    bottom: 50px;
    /* Ajusta este valor para colocarlo más arriba del primer footer */
    width: 100%;
    background-color: #e9ecef;
    border-top: 0px solid #ced4da;
    z-index: 999;
    /* Asegúrate de que esté debajo del primer footer si es necesario */
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}


.btn-footer {
    flex: 1;
    border: 0px solid #ced4da;
    border-left: none;
    background-color: transparent;
    color: #000;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.btn-footer:first-child {
    border-left: 1px solid #ced4da;
    /* Para que el primero tenga borde izquierdo */
}

.btn-footer:hover {
    background-color: #1b6b2f;
    color: #fff;
    font-weight: bold;
}

.btn-footer.active {
    background-color: #1b6b2f;
    color: #fff;
    font-weight: bold;
}

.btn-footer span {
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Quitar borde entre botones si quieres un look más de "botonera sólida" */
.btn-footer+.btn-footer {
    border-left: none;
}

/* Opcional: quitar doble borde al hacer focus */
.btn-footer:focus {
    outline: none;
    box-shadow: none;
}

a.btn-footer {
    text-decoration: none;
}

a.btn-footer:hover {
    text-decoration: none;
    color: #f8f9fa !important;
}

a.btn-footer.active {
    text-decoration: none;
    color: #f8f9fa !important;
}

.fa-file-pdf {
    display: none !important;
}

@media (min-width: 1232px) {

    .footer-fixed,
    .footer-fixed-secondary {
        display: none;
    }

    .container-unimo {
        height: 90vh !important;
    }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    .fa-file-pdf {
        display: block !important;
    }

    .pdf-thumbnail-container {
        display: none !important;
    }
    .recent-files {
        margin-bottom: 170px;
    }

    .search-results-panel {
        position: absolute;
        top: 88%;
        left: -22px;
        width: 409px;
        background: #ffffff;
        border: 0;
        z-index: 1000;
        max-height: 360px;
        overflow-y: auto;
        border-radius: 15px !important;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        padding: 0;
        transition: all 0.3s ease-in-out;
    }
}

@media screen and (max-width: 1024px) and (orientation: landscape) {

    .footer-fixed,
    .footer-fixed-secondary {
        justify-content: flex-end !important;
        position: fixed;
        height: 100%;
        bottom: 0;
        right: 0;
        top: 0;
        width: 6%;
        background-color: #f8f9fa;
        z-index: 1000;
        display: flex;
        align-items: stretch;
        overflow: hidden;
        flex-direction: column;
    }

    .footer-fixed-secondary {
        left: 0;
        /* Ajusta este valor para colocarlo más arriba del primer footer */
        width: 6%;
        background-color: #e9ecef;
        z-index: 999;
        /* Asegúrate de que esté debajo del primer footer si es necesario */
    }

    .btn-footer i {
        transition: transform 0.5s ease;
    }

    .footer-fixed-secondary span,
    .footer-fixed span {
        display: none;
    }

    .container-unimo {
        width: 85% !important;
        margin-left: 0 !important;
        padding: 2rem;
        position: fixed;
        left: 69px;
        margin-bottom: 15px;
        height: 80% !important;
    }

    .navbar-collapse {
        width: 25% !important;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    
    .search-results-panel {
        max-height: 220px;
    }

}

