@import url('https://fonts.googleapis.com/css2?family=Boldonse&display=swap');


*{
    margin: 0;
    padding: 0;
    color: #2986ea ;

}

body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    font-family: "Boldonse", system-ui;
    font-weight: lighter;
    font-size: small;
}

header{
    grid-column: span 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

header h1{
    margin-right: auto;
}

nav {
    display: flex;
    justify-content: right;
    gap: 50px;
}

a{
    text-decoration: none;
    transition: 1s ease;
}

a:hover{
    transform: scale(1.2);

}

article {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

article img {
    width: 100%;
    height: 100%;

}
aside{
    grid-column: 2;
    grid-row: 2;
    background-color: #9c9abf;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

aside h4{
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

aside h3{
    margin-bottom: 10px;
}

aside p{
    color: white;
}
footer{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-row: 3;
    grid-column: span 2;
    padding: 10px;
}

footer div{
    display: flex;
    flex-direction: column;
}

footer div strong{
    color: black;
    margin-bottom: 10px;
}

footer div h3{
    margin-bottom: 10px;

}

footer div p{
    color: black;
}

@media screen and (min-width:576px) and (max-width:992px) {
    aside{
        grid-row: 2;
        grid-column: 1;
    }

    article{
        grid-row: 2;
        grid-column: 2;
    }

    article img{
        height: 100%;
    }
}

@media screen and (max-width:576px) {
    body{
        display: grid;
        grid-template-rows: repeat(4, auto);
        grid-template-columns: repeat(1,auto);
    }

    header {
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        grid-column: 1;
        
    }

    article{
        grid-row: 3;
        display: grid;
        grid-template-columns: repeat(4, auto);
        grid-template-rows: auto;
        grid-column: 1;

    }

    article img {
        width: 100%;
        height: auto;
        display: block;
    }
    

    aside{
        grid-row: 2;
        background-color: #9c9abf;
        padding: 15px;
        display: flex;
        flex-direction: column;
        grid-column: 1;

    }

    footer{
        grid-row: 4;
        display: grid;
        grid-template-rows: repeat(4, auto);
        grid-template-columns: 1fr;
    }

    .nueve{
        display: none;
    }

    nav{
        display: none;
    }
}