/* ===============================
   MENU STYLES BY JUAN
================================= */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Navigation bar */
nav {
    background: #242526;
    height: 80px;
    width: 100%;
    display: grid;
    justify-content: end;
    align-items: center;
}

.enlace {
    position: absolute;
    padding: 20px 50px;
}

.logo {
    height: 50px;
}

nav ul {
    float: right;
    margin-right: 20px;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}

nav ul li a {
    color: #ffffff !important;
    font-size: 18px;
    padding: 10px 16px;
    border-radius: 5px;
    text-transform: uppercase;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #e2000f;
    color: #ffffff !important;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

section {
    background: url(fondo.jpg) no-repeat;
    background-size: cover;
    background-position: center center;
    height: calc(100vh - 80px);
}

/* Responsive styles */
@media (max-width: 952px) {
    .enlace {
        padding-left: 20px;
    }

    nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 858px) {
    .checkbtn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #242526;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all 0.5s;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: none;
        color: #ffffff !important;
    }

    #check:checked ~ ul {
        left: 0;
    }
}
