*{
    margin: 0;
    padding: 0;
}
header{
    margin: 0;
    padding: 0;    
    position: fixed;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    }
#navTop, #navBot {
    height: 36px;
    width: 100vw;
    display: grid;
    grid-row: 1;    
    align-content: start;
    justify-content: center;
    background-color: #111;
    overflow: visible;
    background: linear-gradient(to left, #d60757, #00308f 20%, #130133 90%, #6e00ad);
    border-bottom: 2px solid #ffffff;
    box-shadow: #48eaff 0px 1px 10px;
    pointer-events: auto; 
    }
.navTop{
    width: 100vw;
    max-width: 1200px;  
    display: grid;
    grid-template-columns: 200px 1fr;        
    align-content: start;
    justify-content: start;
}
#navBot{
    position: absolute;
    bottom: 0;
    display: none;      /* DESACTIVADO */
    grid-template-columns: 200px 1fr;        
    align-items: center;
    justify-items: center;
    background-color: black;
    opacity: 0.2;
    pointer-events: none; 
    }
#navMain{ height: 100%;  }
.logo{       
    justify-self: center;
    align-self: start;
    margin: 3px 3px;
    z-index: 2;
    }
.logo > a{
    display: block;
    position: relative;  
    }
#logo{
    max-width: 120px;
    pointer-events: none;   
    }     
    
.barra{
    /* display: flex;  */   
    justify-self: flex-end;
    align-self: start;
    margin-right: 10px;
    padding-right: 10px;
    }


    /*                Menú                  */
    /*######################################*/

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    }

.menu > li {
    margin: 0 .5rem;
    overflow: hidden;
    border: 4px solid transparent;
    transition: border 0.2s ease-in-out;
    }
.menu li:hover{
    color: white;
    border-bottom: 4px solid white;
    transition: border 0.2s ease-in-out;
}

.menu li a{
    color: white;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    }
.menu-button-container {
    display: none;
    height: 35px;
    width: 35px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

#menu-toggle {
    display: none;
    }

.menu-button,
    .menu-button::before,
    .menu-button::after {
        display: grid;
        background-color: #fff;
        position: relative;
        height: 5px;
        width: 35px;
        transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 2px;        
        }

.menu-button::before {
    content: '';
    margin-top: -8px;
    }

.menu-button::after {
    content: '';
    margin-top: 8px;
    }

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
    }

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
    }

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
    }


@media (max-width: 768px) {
    .menu-button-container {
        display: flex;
        height: 35px;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 36px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
        }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
        }
    #menu-toggle:checked ~ .menu li {
        border-bottom: 1px solid #64b2c0;
        height: 2.5em;
        padding: 0.5em;
        width: 100%;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
        }
    #menu-toggle:checked ~ .menu > li:last-child {
        border-bottom: none;
        } 
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
        background: linear-gradient(to left, #303236, #111);

        }
        .menu li:hover{
            background: linear-gradient(to left, #2f7479, #424242);
            font-weight: 700;
        }
    }