/* Estilos generales */
* 
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html, body 
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Estilos para páginas con barra lateral */
.with-sidebar html, .with-sidebar body 
{
    overflow: hidden;
}

/* Contenedor principal para páginas con barra lateral */
.main-container 
{
    display: flex;
    width: 100%;
    margin: 0;
    height: 100vh;
    background-color: #FFFAF5;
    overflow: hidden;
}

body 
{
    position: relative;
}

#app 
{
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible; 
}

html, body 
{
    height: 100%;
    width: 100%;
    background-color: #f8f9fa;
    color: #333;
}

/* Loading overlay */
#loading-overlay 
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Spinner de carga */
.spinner 
{
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

#app 
{
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: #FFFAF5;
    min-height: 100vh;
}

.screen 
{
    background-color: #FFFAF5;
    width: 100%;
    height: 100%;
    position: relative;
}

.screen.active 
{
    background-color: #FFFAF5;
    display: block;
}

.button:hover 
{
    opacity: 0.9;
}

/* Footer */
.app-footer 
{
    background-color: #FFFCF9;
    border-top: 2px solid #C14B36;
    margin-top: 40px;
    padding: 30px 20px 20px;
    font-family: 'Roboto', sans-serif;
}

/* Contenido del footer */
.footer-content 
{
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 20px auto;
}

/* Sección del footer */
.footer-section 
{
    display: flex;
    flex-direction: column;
}

/* Enlaces del footer */
.footer-links 
{
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Elementos del footer */
.footer-links li 
{
    margin-bottom: 8px;
}

.footer-links a 
{
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover 
{
    color: #C14B36;
}

.footer-bottom 
{
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
    color: #888;
    font-size: 13px;
}

.footer-links-inline 
{
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.footer-links-inline li
{
    margin-bottom: 0; 
}

@media (max-width: 768px)
{
    .footer-content
    { 
        text-align: center;
    }
    
    .footer-links-inline 
    {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links-inline a
    { 
        font-size: 13px; 
    }
    
    .app-footer
    { 
        padding: 25px 15px 15px; 
    }
}
