*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

@font-face {
    font-family: "Achemost";
    src: url(fonts/achemost-webfont.woff);
}

@font-face {
    font-family: "Roboto";
    src: url(fonts/roboto-bold-webfont.woff);
    font-weight: bold;
}

@font-face {
    font-family: "Roboto";
    src: url(fonts/roboto-regular-webfont.woff);
    font-weight: normal;
}

body{
    font-family: "Roboto";
}

#logo{
    font-family: "Achemost";
    font-weight: bold;
    font-size: 2em;
    animation: color;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}

@keyframes color{
    0%{color:blue}
    20%{color:gold}
    40%{color:green}
    60%{color:orangered}
    80%{color:#c919c9}
    100%{color:blue;}
}

#menu{
    background-color: gold;
    display: inline-block;
    padding: 15px;
    border-radius: 100px;
}

#menu img{
    width: 20px;    
    display: block;
}

nav{
    display: none;
}

header{
    display:flex ;
    justify-content: space-between;
    padding: 1em;
    align-items: center;
    position: fixed;
    top:0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.758);
    z-index: 2;
}


h1{
    font-family: "Achemost"; 
    font-weight: normal;
    margin-bottom: 0.5em;
}

h1 span{
    color:#c919c9;
    font-size: 1.5em;
    display: block;
}

#destacado div{
    background-color: white;
    padding: 2em;
    position: relative;
    top:-4em; 
    width: 80%;
    position: relative;
}

#destacado div::after{
    content: "";
    display:block;
    width:50px;
    height: 50px;
    background-color: gold;
    position: absolute;
    right: -20px;
    top: -20px;

}
#destacado img{
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

section{
    max-width: 90%;
    margin:auto;
}

section img{
    width: 100%;
    border-radius: 5px;
}

section h2{
    font-family: "Achemost"; 
    text-align: center;
    font-size: 2em;
    margin: 1em 0;
    font-weight: normal;
}

section article{
    margin-bottom: 1em;
}

h3{ 
    font-family: "Achemost"; 
    margin:1em 0;
    font-weight: normal;
    font-size: 1.5em;
}
@media all and (min-width:768px){
    #destacado {position: relative;}
    
    #destacado div{
        position: absolute;
        width: 50%;
        right:10%;
        top:30%
    }

    #destacado img{
        width: 100%;
        height: 90vh;
    }

    #menu{
        display:none
    }

    nav{display: block;}

    nav a{
        color:black;
        padding: 0 1em;
    }

    section{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap:1em
     
    }

    section h2{
        grid-column: span 3;
    }

    
    section article:nth-of-type(1){
        grid-column: span 2;
    }
}


@media all and (min-width:1200px){
    section{
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap:2em;
    }

    section h2{
        grid-column: span 4;
        font-size: 3em;
    }

    section article:nth-of-type(1){
        grid-row: span 2;
    }
}