/* ================================================================================= */
/*                                 CSS GENERAL DEL SISTEMA                           */
/* ================================================================================= */

/* -------------- ESTILOS GENERALES -------------- */

/* Fuente general del sitio */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

/* Estilo general para todos los enlaces */
a {
    text-decoration: none;
}

/* Botones de Bootstrap */
.btn {
    font-size: 13px;
}

/* ================================================================================= */
/*                                ESTILOS DEL NAVBAR                                 */
/* ================================================================================= */

/* Altura mínima del navbar */
.navbar {
    min-height: 50px;
}

/* Logo del navbar (SGO) */
.navbar-brand {
    font-size: 13px;
}

/* Indicadores USD / UF en el header */
.indicadores-navbar {
    font-size: 11px;
}

/* Menú de navegación principal */
.navbar-nav {
    font-size: 12px;
}

/* ================================================================================= */
/*                                ESTILOS DEL LOGIN                                  */
/* ================================================================================= */

/* Fondo solo para login (cuando sea index.php) */
.bg-login {
    background-color: #f2f6fc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
}

/* Caja blanca centrada del login */
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Título "Iniciar Sesión" */
.login-box h4 {
    font-weight: bold;
    font-size: 22px;
}

/* Inputs del formulario de login */
.form-control {
    font-size: 14px;
    padding: 10px;
}

/* Botón de "Entrar" en login */
.btn-login {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
}

/* Ícono de "mostrar/ocultar contraseña" */
.toggle-password {
    cursor: pointer;
}

/* ================================================================================= */
/*                                ESTILOS DEL DASHBOARD                              */
/* ================================================================================= */

/* Fondo general del sitio */
.bg-body {
    background-color: #f2f2f2;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}
/* Contenedor de botones del dashboard */
.grid-buttons {
    max-width: 1000px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

/* Estilos de los botones principales */
.btn-tile {
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 8px;
    text-align: center;
    padding: 18px 5px;
    font-size: 14px;
    color: #0d6efd;
    font-weight: 500;
    transition: 0.3s;
}

/* Efecto hover en los botones */
.btn-tile:hover {
    background: #e9f1ff;
    transform: scale(1.03);
    text-decoration: none;
}

/* Íconos de los botones */
.btn-tile i {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

/* Botón negro especial para "Mi Perfil" */
.btn-tile-black {
    border-color: #000;
    color: #000;
}

/* Botón verde especial para "Plan de Trabajo" */
.btn-tile-success {
    border-color: #198754;
    color: #198754;
}

/* ================================================================================= */
/*                                 ESTILOS DEL FOOTER                                */
/* ================================================================================= */

/* Estilo del pie de página */
footer {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 40px;
}
/* ================================================================================= */
/*                       OPTIMIZACIÓN RESPONSIVE PARA MÓVILES                        */
/* ================================================================================= */

/* Ajustes para pantallas menores a 576px (celulares) */
@media (max-width: 575.98px) {
    
    /* Grid botones: menos espacio en móvil */
    .grid-buttons {
        grid-template-columns: repeat(2, 1fr); /* 2 botones por fila */
        gap: 10px;
        margin-top: 20px;
    }

    /* Botones individuales */
    .btn-tile {
        font-size: 12px;
        padding: 15px 5px;
    }

    .btn-tile i {
        font-size: 18px;
        margin-bottom: 5px;
    }

    /* Footer */
    footer {
        font-size: 12px;
        margin-top: 30px;
    }
}

/* Ajustes para pantallas medianas (tablets pequeñas) */
@media (max-width: 768px) {
    
    .grid-buttons {
        grid-template-columns: repeat(3, 1fr); /* 3 botones por fila */
        gap: 12px;
    }
}
