/* Menu */
.menu{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-auto-flow: row;
    position: relative;
    transition: all .2s ease;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
	z-index: 5000;
}
    .menu .logo,
    .menu .logo-tech{
        grid-column: 1/-1;
        grid-row: 1/2;
        display: grid;
        grid-template-columns: 1fr;
        padding: 18px 20px;
        justify-self: stretch;
        text-align: left;
        justify-content: space-between;
        align-items: center;
    }
        .menu .logo a{
            width: 205px;
            height: 47px;
            display: block;
            background-image: url(../img/logo.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }
        .menu .logo-tech a{
            width: 185px;
            height: 35px;
            display: block;
            background-image: url(../img/logo-tech.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
        }
            .menu > label{
                cursor: pointer;
            }
            .menu nav > div label{
                font-size: 20px;
            }
                .menu > label::before{
                    content: 'menu_outlined';
                    font-family: var(--iconos);
                    border-radius: 5px;
                    font-size: 24px;
                    padding: 12px 15px;
                    display: block;
                    max-width: 54px;
					max-height: 60px;
                    box-sizing: border-box;
                    transition: all .2s ease;
                    text-align: center;
                    position: absolute;
                    right: 20px;
                    top: 12px;
                }
    .menu #nav-main{
        grid-column: 1/-1;
        grid-row: 2/-1;
        display: none;
        grid-auto-flow: row;
		font-family: var(--roboto);
    }
		.menu #menu-main a{
			text-decoration: none;
		}
        #check_0,
        #check_1, #check_2,
        #check_3, #check_4,
        #check_5, #check_6,
        #check_7, #check_8,
        #check_9, #check_10,
        #check_11, #check_12,
        #check_b1, #check_b2,
        #check_b3, #check_b4,
        #check_b5, #check_b6,
        #check_b7, #check_b8,
        #check_b9, #check_b10,
        #check_b11, #check_b12{
          display: none;
        }
            #check_0:checked ~ nav,
            #check_1:checked ~ ul:first-of-type,
            #check_2:checked ~ ul,
            #check_3:checked ~ ul:first-of-type,
            #check_4:checked ~ ul,
            #check_5:checked ~ ul:first-of-type,
            #check_6:checked ~ ul,
            #check_7:checked ~ ul:first-of-type,
            #check_8:checked ~ ul,
            #check_9:checked ~ ul:first-of-type,
            #check_10:checked ~ ul ,
            #check_11:checked ~ ul:first-of-type,
            #check_12:checked ~ ul,
            #check_b1:checked ~ ul:first-of-type,
            #check_b2:checked ~ ul,
            #check_b3:checked ~ ul:first-of-type,
            #check_b4:checked ~ ul,
            #check_b5:checked ~ ul:first-of-type,
            #check_b6:checked ~ ul,
            #check_b7:checked ~ ul:first-of-type,
            #check_b8:checked ~ ul,
            #check_b9:checked ~ ul:first-of-type,
            #check_b10:checked ~ ul ,
            #check_b11:checked ~ ul:first-of-type,
            #check_b12:checked ~ ul {
            display: grid;
            }
                #check_0:checked ~ label::before {
                    content: 'close';
                }
        .menu nav a,
        .menu nav div label{
            font-weight: 700;
            display: inline-block;
            padding: 17px 15px;
            transition: all .2s ease;
            font-size: 15px;
            cursor: pointer;
            width: 100%;
            margin-bottom: 0 !important;
        }
            .menu nav label > a{
                padding: 12px 0;
                display: inline;
            }
    /*Submenu - Categorias*/
    .menu nav div{
        position: relative;
    }
            .menu nav div label::after{
                font-family: var(--iconos);
                content: 'navigate_next';
                display: inline-block;
                position: relative;
                top: 3px;
                font-weight: 700;
                transform: rotate(0deg);
                margin-left: 2px;
                transition: all .2s ease;
            }
        .menu nav .sub-menu{
            display: none;
            position: relative;
            z-index: 999;
        }
            .menu nav .sub-menu li{
                padding: 0;
            }  
            .menu nav .sub-menu li a{
                padding: 11px 20px;
                border-bottom: 0;
            }
                .menu nav .sub-menu a:hover::after,
                .menu nav .sub-menu label:hover::after{
                    transform: rotate(90deg) scale(1.35);
                }
                .menu nav .campus-virtual{
                    transition: all .2s ease;
                    border-bottom: 0;
                }
                    .menu nav .campus-virtual:hover{
                        border-bottom: 0;
                    }
                    .menu nav .campus-virtual::before{
                        content: 'cast_for_education';
                        font-family: var(--iconos);
                        font-weight: normal;
                        margin-right: 5px;
                        position: relative;
                        top: 3px;
                        font-size: 1.15em;
                     }
    /*Categorias - listado de cursos*/
    .menu nav .sub-menu > li{
        position: relative;
    }
    .menu nav .sub-menu > li .sub-menu{
        display: none;
        position: relative;
        left: 0;
        top: 0;
    }
        .menu nav .sub-menu > li .sub-menu li{
            display: block;
            padding: 0;
        }
            .menu nav .sub-menu > li > label{
                padding: 12px 15px;
                display: block;
            }
            .menu nav .sub-menu > li .sub-menu li a{
                padding: 9px 20px;
                font-weight: 400;
                transition: all .2s ease;
                width: 100%;
                pointer-events: none;
                transition: all .5s ease;
            }
                .menu nav .sub-menu > li .sub-menu li:hover a{
                    pointer-events: auto;
                }
            .menu nav .sub-menu > li .sub-menu li::after{
                content: '';
            }

    /* --- Menu sticky --- */
        .menu-fixed {
            position:fixed;
            transition: all .2 ease;
            z-index:1000;
            top:0;
            border-radius: 0 0 10px 10px;
            max-width: 1320px;
            grid-template-rows: 60px auto;
        }
            .menu-fixed .logo{
                padding: 6px 20px;
                border-radius: 0 0 10px 10px;
                position: absolute;
                top: 0;
                margin-left: 3%;
            }
                .menu-fixed .logo a{
                    background-image: url(../img/logo-sticky.svg);
                    background-position: left;
                }
                .menu-fixed > label::before{
                    top: 5px;
                    padding: 9px 12px !important;
                    max-width: 48px;
					max-height: 48px;
                }
                    .menu-fixed > label:hover::before{
                        transform: none;
                        box-shadow: none;
                    }

/*--=============================================*/
/*----- Media -----*/
@media only screen and (min-width:768px){
.menu-fixed{
    top: 0 !important;
}
    .menu-fixed nav > div:first-of-type{
        border-top: 0;
    }
.menu{
    grid-template-columns: 250px 1fr;
    padding: 0 3%;
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    box-shadow: none;
}
    .menu .logo{
        grid-column: 1/2;
        position: absolute;
        top: 0;
        z-index: 500;
        margin-left: 3%;
        padding: 21px 45px;
        border-radius: 0 0 25px 25px;
        box-shadow: 1px 2px 6px rgba(0,0,0,.25);
    }
    .menu-fixed .logo{
        padding: 5px 20px;
        box-shadow: none !important;
        display: grid;
        align-items: center;
        height: 100%;
    }
        .menu-fixed nav > div:first-of-type{
            border-top: 0;
        }
    .menu nav{
        grid-column: 2/-1;
        grid-row: 1/2;
        justify-content: end;
    }
        .menu nav a,
        .menu nav > div label{
            padding: 26px 12px 20px 12px;
            border-bottom: 6px solid transparent;
        }
            .menu nav div label::after{
                transform: rotate(90deg);
            }
                .menu nav .sub-menu a:hover::after,
                .menu nav .sub-menu label:hover::after{
                    transform: rotate(0deg) scale(1.35);
                }
        .menu nav .campus-virtual{
            padding: 14px 12px;
            border-bottom: 0;
            border-radius: 10px;
            transition: all .2s ease;
            align-self: center;
        }
            .menu nav .campus-virtual:hover{
                border-radius: 50px;
            }
            .menu nav .campus-virtual::before{
                content: none;
            }
    .menu > label{
        display: none;
    }
    .menu #nav-main{
        grid-column: 2/-1;
        grid-row: 1/-1;
        display: grid;
        grid-auto-flow: column;
        justify-content: right;
        text-align: left;
    }
}