@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* Estilos Especiales y Variables */
:root {
    --color01: #ffffff; /* 255, 255, 255, */
    --color02: #ffe000; /* 255, 224, 0 */
    --color03: #87c300; /* 135, 195, 0 */
    --color04: #00abe3; /* 0, 171, 227 */
    --color05: #005f7f; /* 0, 95, 127 */
    --color06: #000000; /* 0, 0, 0 */
    --color07: #f8f9f9; /* 248, 249, 249 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    font-family: "Roboto", sans-serif;
}

/* Titulo - Correcto */
.title {
    grid-area: 2 / 1 / span 1 /span 1;
    background: var(--color03);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    border-bottom-right-radius: 20px;
}

.title h1 {
    color: var(--color01);
}

.title span {
    color: transparent;
    -webkit-text-stroke-width: 1.2px; -moz-text-stroke-width: 1.2px; -ms-text-stroke-width: 1.2px; -o-text-stroke-width: 1.2px;
    -webkit-text-stroke-color: var(--color01); -moz-text-stroke-color: var(--color01); -ms-text-stroke-color: var(--color01); -o-text-stroke-color: var(--color01);
}

/* Main - Correcto */
.main {
    grid-area: 3 / 1 / span 4 /span 5;
    display: grid;
    place-content: center;
    place-items: center;
    height: 440px;
    height: 860px;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.card-content>a {
    background-color: var(--color03);
    width: 100%;
    padding: 2px 30px;
    border-radius: 8px;
    color: var(--color01);
}

.card-pagina {
    padding-top: 10px;
    width: 100%;
    height: 20px;
    display: flex;
    flex-direction: row;
    margin-top: 14px;
    justify-content: center;
}

.card-active {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    background: var(--color03);
    color: var(--color01);
    border-radius: 50%;
    margin-left: 10px;
    cursor: no-drop;

}

.card-btnpag {
    letter-spacing: bold;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    background: var(--color01);
    color: var(--color03);
    border-radius: 50%;
    margin-left: 10px;
    font-weight: bold;
    cursor: pointer;
}

    /* Nuevo arreglo*/ 
    .new_paper {    
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .n_item {
        display: grid;
        grid-template-columns: 0.8fr 1fr 4fr 1fr;
        place-content: center;
        place-items: center;
        padding: 10px 20px;
        border: 2px solid var(--color03);
        border-radius: 5px;
        width: 90%;
        box-sizing: border-box;
        margin: 2px;
    }

    .n_item h2 {
        font-size:medium;
        color: var(--color03);
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        text-align: center;

    }

    .n_item p {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: var(--color05);
        width: 80%;
    }

    .n_btn {
        background: var(--color03);
        color: var(--color01);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 40px;
        margin: 0px 6px;
        border-radius: 10px;
    }

    .n_btn:hover {
        background: var(--color05);
    }

    .n_img {
        width: 100px;
        height: 100px;
        border-radius: 10%;
    }

/* Media Queries */
@media screen and (max-width: 900px) {
    .main {
        margin: 0 20px;
        margin-bottom: 60px;
    }
}





@media screen and (max-width: 768px) {
    .main {
        display: flex;
        flex-direction: column;
        grid-area: 3 / 1 / span 3 /span 5;
        height: 920px;
        background-color: var(--color01);
        margin-top: 10px;
        margin-bottom: -30px;
    }
    .footer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

    }

    



}

@media screen and (max-width: 480px) {
    .container {
        display: grid;
        grid-template-columns: 12fr;
        grid-template-rows: 80px 60px 60px auto 60px;
        grid-template-areas:
            "header"
            "redes"
            "title"
            "main"
            "footer";
    }

    .redes {
        grid-area: "redes";
        width: 100%;
        grid-column: 1 / 2; 
        grid-row: 2 / 3;
    }

    .title {
        grid-area: "title";
        width: 100%;
        grid-column: 1 / 1; 
        grid-row: 3 / 4;
    }

    .main {
        grid-area: "main";
        width: 320px;
        grid-column: 1 / 1; 
        grid-row: 5 / 7;
        flex-direction: column;
        height: 800px;
        margin-left: -2px;
        margin-top: 40px;
        margin-bottom: 80px;
        box-sizing: border-box;
    }

    .new_paper {    
        width: 100%;
        margin-top: -70px;
        margin-left: 4px;
    }

    .n_item {
        display: grid;
        grid-template-columns: 0.8fr 1fr 4fr 1fr;
        place-content: center;
        place-items: center;
        padding: 10px 20px;
        border: 2px solid var(--color03);
        border-radius: 5px;
        width: 98%;
        box-sizing: border-box;
        text-align: center;
        margin-left: 8px;
    }

    .n_item h2 {
        font-size: 12px;
    }

    .n_item p {
        font-size: 10px;
    }

    .footer {
        grid-area: "footer";
        width: 100%;
        grid-column: 1 / 1; 
        grid-row: 7 / 7;
        flex-direction: column;
        box-sizing: border-box;
    }

}