*{
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}
body {
    font-family: sans-serif;
}

a{
    text-decoration: none;
    color: black;
}
/*-----------CONTENIDO---------*/
.contenedor {
    display: grid;
    grid-template-columns: minmax(90px, 90px) auto;
    grid-template-rows: 60px auto;
    grid-template-areas: "header header"
                         "menu contenido";
    margin: 0px auto;
    min-height: 100vh;
    width: 100%;
    transition: all .3s ease;
}
.contenedor.active {
    grid-template-columns: minmax(300px, 28%) auto
}
.contenedor-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
}
.contenedor-logo #boton-menu {
    border: none;
    border-radius: 100px;
    background: none;
    cursor: pointer;
    padding: 5px;
    font-size: 17px;
    margin-left: 20px;
    height: 50px;
    width: 50px;
}
.contenedor-logo #boton-menu:hover {
    background: #e7e7e7;
}
.contenedor-logo .logo .fa-solid {
    background: red;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 5px;
    color: white;
    position: relative;
    top: -4px;
    margin-left: 4px;
}
.contenedor-logo .logo {
    font-family: cursive;
    font-size: 20px;
    position: relative;
    top: 2px;
}
/*-----------HEADER------------*/
.header {
    grid-area: header;
    padding: 0px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: space-between;
    grid-gap: 20px;
    grid-template-areas: "logo busqueda iconos";
}
.header .barra-busqueda input {
    border: #ccc 1px solid;
    font-size: 16px;
    padding: 0px 15px;
    height: 35px;
    line-height: 35px;
    min-width: 60%;
}
.header .barra-busqueda button {
    background: #f8f8ff;
    border: 1px solid #ccc;
    border-left: none;
    color: #545454;
    cursor: pointer;
    padding: 8px;
    height: 35px;
}
.header .barra-busqueda button:hover {
    background: #f5f5f5;
}
.header .botones-header {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: iconos;
}
.header .botones-header button{
    background: none;
    border: none;
    border-radius: 100px;
    color: #828282;
    cursor: pointer;
    font-size: 18px;
    padding: 7px 12px;
    margin-right: 28px;
    height: 40px;
    width: 40px;
}
.header .botones-header button:hover{
    background: #e7e7e7;
}
.header .botones-header .avatar {
    display: inline-block;
    background: none;
    height: 30px;
    width: 30px;
}
.header .botones-header .avatar img {
    border-radius: 100px;
    vertical-align: top;
    width: 100%;
}
/*--------BARRA BUSQUEDA-------*/
.barra-busqueda {
    grid-area: busqueda;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*--------MENU LATERAL---------*/
.contenedor .menu-lateral {
    grid-area: menu;
    overflow: hidden;
}
.menu-lateral a {
    display: block;
    padding: 15px 25px;
    color: black;
    min-width: 800px;
}
.menu-lateral a:hover {
    background: #e5e5e5;
}
.menu-lateral a.active {
    background: #e5e5e5;
    font-weight: bold;
}
.menu-lateral .fas {
    color: #606060;
    text-align: center;
    margin-right: 32px;
    width: 28px;
}
.menu-lateral a.active .fas{
    color: #ff4444;
}
.menu-lateral hr {
    border: 1px solid #dfdfdf;
    margin: 20px 0px;
}
.main {
    background: #f9f9f9;
    padding: 40px;
}
.main .titulo {
    margin-bottom: 20px;
}
.main .grid-videos {
    display: grid;
    grid-gap: 40px 20px;
    grid-template-columns: repeat(4, 1fr);
}
.main .grid-videos .video{
    display: block;
    width: 100%;
}
.main .grid-videos .video img{
    width: 100%;
}
/*------MEDIA QUERYS----*/
@media screen and (max-width:1200px){
    .main .grid-videos {
        grid-template-columns: repeat(3, 1fr);
    }
    .header .contenedor-logo .logo span {
        display: none;
    }
    .header .barra-busqueda input {
        min-width: 100%;
    }
}
@media screen and (max-width:992px){
    .main .grid-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width:778px){
     .contenedor {
        grid-template-rows: auto;
     }
     .header {
        padding: 20px;
        grid-template-columns: auto auto;
        justify-content: space-between;
        grid-template-areas: "logo iconos"
                             "busqueda busqueda";
     }
     .header .contenedor-logo .logo span {
        display: inline;
     }
     .header .barra-busqueda input {
        min-width: auto;
        width: 100%;
     }
     #boton-menu {
        grid-area: busqueda;
     }
}
@media screen and (max-width:578px){
    .main .grid-videos {
        grid-template-columns: 1fr;
    }
}