
/*Medium devices (tablets, 768px and up)*/

@media (min-width: 768px) {
    .frm_login{
        width: 100%;
        max-width: 420px;
        margin-left: 8rem;
    }

    .appbar{
        padding: 0rem 1rem;
    }

    .header{
        /* border: 1px solid black; */
        margin-bottom: 1.6rem;
        justify-content: end;
    }

    .appbar-title{
        margin-bottom: 0rem;
    }

    .main-card{
        max-width: 350px !important;
        padding: 0rem 0rem !important;
    }

    .dashboard-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        justify-items: center;
        padding: 1rem;
        /* max-width: 800px; */
        margin: 0 auto;
    }

    /* CRÍTICO: Elimina TODOS los márgenes de los contenedores */
    .dashboard-grid .mt-6,
    .dashboard-grid .mt-8,
    .dashboard-grid .mb-15 {
        margin: 0 !important;
        width: 100%;
        /* max-width: 350px; */
    }

    .app-card {
        max-width: 300px !important;
    }
}

@media (min-width: 1080px) {

    .frm_login{
        margin-top: 2rem !important;
    }

    .img_juan{
        width: 23rem !important;
        top: 0rem;
        right: 40rem;
    }

    .main-content{
        width: 90%;
        padding-top: 1rem;
    }

    .appbar{
        /* border: 1px solid green; */
        max-width: 980px !important;
        padding-top: 0.5rem;
        margin-top: 1.2rem;
    }

    .main-card{
        margin-right: 1.2rem;
    }

    .dashboard-grid {
        /* border: 1px solid saddlebrown !important; */
        max-width: 1200px !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        /* max-width: 900px; */
    }

    .app-card {
        /* max-width: 320px; */
        height: 16.6rem;
    }

    .appbar-title{
        text-align: left;
    }
}

@media (min-width: 1366px){

    .main-content{
        width: 90%;
        max-width: 1366px;
    }

    .main-card{
        margin-right: 2.8rem;
    }

    .dashboard-grid {
        max-width: 1500px !important;
    }

}