
.main{
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        300px
        /* minmax(300px, 1fr) */
    );
    gap: 10px;
    justify-content: center;
    justify-items: flex-start;
    padding: 10px 0 90px 0;
    box-sizing: content-box;
    margin-left: var(--margen);
    margin-right: var(--margen);
    min-height: 100dvh;
}

.main  .cards {
    display: inline-block;
    text-decoration: none;
    color: black;
    width: 300px;
    height: 475px;
    order: 2;
}

/* CARD DE NOTICIAS */
.main .cards{
    margin: 50px 15px 0 15px;
}
.card{
    display: flex;
    flex-direction: column;
    padding: 0 0 80px 0;
    position: relative;
    gap: 5px;
    width: 300px;
    height: 480px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition:
    box-shadow  .5s linear 0s,
    scale .2s linear 0ms;
}
.card:hover{
    box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.1);
    scale: 102%;
}
.card img{
    transition:
    filter  .5s linear 0s;
}
.card:hover img{
    filter: contrast(150%);
}
.imgnew{
    width: 100%;
    height: auto;
    max-height: 150px;
    border-radius: 10px;
}
.typenews{
    color: #05ADEA;
}
.titlenews{
    color: black;
}
.datenews{
    color: rgba(128, 128, 128, 0.507);
}

.news{
    position: relative;
    width: 100%;
    max-height: 100px;
    padding-bottom: 10px;
    overflow: hidden;
}

.news p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* TARJETA DE USUARIO */

.usernews{
    display: flex;
    flex-direction: row;
    align-self: flex-end;
    position: absolute;
    bottom: 20px;
    left: 0;
    gap: 10px;
    height: 60px;
    width: 100%;
}

.perfil{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 100%;
}

.name{ 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 225px;
    height: 50px;
}

/* BOTONES CARDS */

#pagination{
    display: flex;
    justify-content: center;
    padding: 0 0 20em 0;
}

.botonNoticias{
    padding: 0.7em 5em;
    font-size: 1.2em;
    font-weight: 500;
    background-color: #0EB1E8;
    border: none;
}

.botonNoticias:hover{
    cursor: pointer;
    filter: brightness(1.5);
}

.pagIndicador{
    padding: 0.7em 5em;
    font-size: 1.2em;
    font-weight: 500;
}


@media (max-width: 780px){
    #pagination{
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 1000px){
    .main{
        justify-content: center;
    }
}
@media (max-width: 600px) {
    .userNoticia{
        padding: 0;
    }
    .nameNoticia{
        padding: 0;
        font-size: large;
        text-align: center;
    }
    
}

@media (max-width: 400px) {
    .nameNoticia{
        font-size: small;
        text-align: center;
    }

}