@charset "utf-8";

@import url('https://fonts.googleapis.com/css?family=Chivo:300,300i,400,400i,700,700i,900,900i');

ul{
    list-style: none;
}

*{margin: 0 0 0 0.1;
padding: 0;
box-sizing: border-box;
}

/*  menues del header */
nav{
    width: 60%;
    float: left;
}
nav ul li {
    list-style-type: none;
    line-height: 2rem;
    position: relative;
}

nav ul li ul{
    position: absolute;
    background-color: rgb(248,177, 51);
    transition: 1s all;
}
nav ul li a{
    text-decoration: none;
    color: black;
    padding: 0 2rem;
    display: block;
    transition: 1s all;
    color: white;
    font-family: 'Chivo', sans-serif;
}

nav ul li a:hover{
    background-color:rgb(255, 163, 0);
}

nav ul#principal li:hover>ul {
    max-height: 500px;
    overflow: visible;
}

/*menu hamburguesa*/
nav ul#hamburguesa> li{
    background-color: rgb(248,177, 51);
    line-height: 0;
}
nav ul#hamburguesa li:hover>ul{
    max-height: 500px;
    overflow: visible;
}
#hamburguesa li img{
    width: 15%;
}
/* menu principal*/
ul#principal{
    background-color: rgb(248,177, 51);
    display: flex;
    flex-direction: column
}
ul#principal li{
    border-bottom: 0.5px solid #ccc;
}
/* menu secundario */

ul#principal li ul{
    max-height: 0;
    overflow: hidden;
}
ul#principal li ul, ul#principal{
    max-height: 0;
    overflow: hidden;
}
ul#secundario {
    top:100%;
    left: 100%;
    z-index: 2;
}
video{
    width:90%;
    height: auto;
    margin:1em;
}
/*FIN*/

body{
    background-color: rgb(248,177, 51);
}

.logo img{
    width: 100%;
}
.buscar input{
    float: right;
    width: 11.9rem;
    margin-right: 6.5%;
    margin-top: -4%;
}

.CGT, .congreso, .plaza{
    background-color:rgba(0, 0, 0, 0.30);
}

div h1{
    color: white;
    font-family: 'Chivo', sans-serif;
}

h1{
    font-size: 1.5rem;
    margin-left: 1rem;
    padding-top: 0.5rem;
}

ul li video{
    margin: auto;
    width: 30%;
}

.ulvideos{
    display: flex;
    flex-direction: row;
}

.ulvideos li{
    width: 22em;
    margin: 1em;
    margin-top: -1em;
}

.contenedor{
    width: 90%;
    margin: 1em;
}
.videoresponsive{
    position: relative;
    padding-bottom: 56.25%;
    height:0;
    overflow: hidden;
}
.videoresponsive iframe{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height: 100%
}
iframe{
    border-radius: .5em;
}
.redes{
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.30);
}

.redes div{
    margin: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.redes div img{
    width: 2rem;
}
.volver img{
    width: 2rem;
    float: right;
    margin-top: 0.7rem;
}
footer{
    font-family: 'Chivo', sans-serif;
    font-size: 0.8rem;
    margin-top: 2rem;
    text-align: center;
}

h3{
    color:white;
    font-family: 'Chivo', sans-serif;
    font-size: 1.5em;
}
article div img{
    width: 100%;
}
.ultima{
    margin-bottom: 2.5rem;
}
/*REPONSIVE*/

@media all and (min-width:40rem) {
    ul#hamburguesa> li img{
        display: none;
    }
    nav ul#principal{
        flex-direction: row;
        max-height: 800px;
        position: relative;
    }
    nav ul#secundario {
        top: 100%;
        left: 20%;
    }
    .volver img{
        display: flex;
    }
    
   .buscar input{
    float: right;
    width: 15rem;
    margin-right: 5%;
    margin-top: 1.5%;
}
    }
 
@media all and (max-width:30rem){
    .buscar input{
        margin-right: 0%;
        margin-top: -4%;
    }
}

@media all and (max-width:20rem){
    .buscar input{
        width: 10rem;
        height: 1rem;
        margin-top: 0em;
    }
        
}