@import url("normalize.css");
@import url("fuentes.css");
/*-----------ESTILOS GENERALES-----------------*/
*{
    padding: 0;
    margin: 0;
   -webkit-box-sizing: border-box;
    box-sizing: border-box;
   -moz-box-sizing: border-box;
}

a {
    text-decoration: none;
    color:#fff;
    clear: both;
    display: block;
}

a:hover{
    text-decoration: underline;
}
/*-----------ESTILOS GENERALES-----------------*/

#wrap{
    width: 960px;
    margin: auto;
    clear: both;
    
    
}


.contenedor{
    width: 95%;
    max-width: 1000px;
    margin: auto;
   
    
}

.contenedor p {
   margin-bottom: 40px; 
    
}

header nav {
    background: #7d9639;
    margin-bottom: 10px;
}

header nav ul{
    list-style: none;
    overflow: hidden;
}

header nav ul li{
   float: left; 
    
}

header nav ul li a {
    display: block;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    
}

header nav ul li a:hover{
    
   background-color: black; 
}

#submenu{
    background-color: black; 
}

#main{
    width: 100%;
    margin: 20px 0px 0px 0px;
    float: left;
    box-shadow: 0 0 0px 0px #fff;
    
}

/*------SLIDER----------------------------------*/
.slider{
    width: 960px;
    height: 500px;
    float: left;
    background: #fff;
    overflow: hidden;
    
}

.slider ul {
    display: flex;
    padding: 0;
    width: 400%;
    animation: cambio 20s infinite alternate;
    animation-timing-function: ease-in;
}

.slider li {
    width: 100%;
    list-style: none;
}
.slider img {
    width: 640px;
    height: 450px;
    padding: 1em 2em;
    margin: 1em 15%;
    
    
}
@keyframes cambio{
    0% {margin-left: 0;}
    20% {margin-left: 0;}
    25% {margin-left: -100%;}
    45% {margin-left: -100%;}
    50% {margin-left: -200%;}
    70% {margin-left: -200%;}
    75% {margin-left: -300%;}
    100% {margin-left: -300%;}
    
}

#contacto{
    width:100%;
    float: left;
    clear: both;
    height: 60px;
    box-shadow: 0px 2px 2px #000;
    -moz-box-shadow: 0px 2px 2px #000;
    -webkit-box-shadow: 0px 2px 2px #000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background: #2f2f2f; /* Old browsers */
    background: -moz-linear-gradient(top,  #2f2f2f 0%, #242424 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #2f2f2f 0%,#242424 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #2f2f2f 0%,#242424 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2f2f2f', endColorstr='#242424',GradientType=0 ); /* IE6-9 */
    margin-bottom: 15px;
}
/*-------------GALERIAAAA---------------------------*/

.galeria {
    width: 90%;
    margin: auto;
    list-style: none;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.galeria li{
    margin: 5px;
    
}

.galeria img{
    width: 150px;
    height: 100px;
}

.modal{
    display: none;
}
.modal:target{
    display: block;
    position: fixed;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal h3 {
    color: #fff;
    font-size: 30px;
    text-align: center;
    margin: 15px 0;
}

.imagen{
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
   
}

.imagen a{
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    margin: 0 10px;
}

.imagen a:nth-child(2){
    margin: 0;
    height: 100%;
    flex-shrink: 2;
    
}

.imagen img{
    width: 500px;
    height: 100%;
    max-width: 100%;
    border: 7px solid #fff;
    box-sizing: border-box;
}

.cerrar {
    display: block;
    background: #fff;
    width: 60px;
    height: 60px;
    margin:0;
    text-align: center;
    text-decoration: none;
    font-size: 25px;
    color: #000;
    padding: 5px;
    border-radius: 50%;
    line-height: 25px;
}

#contacto h2 {
    text-align: center;
    color: white;
    font-size: 44px;
}

#contenido{

    float: left;
}

#contenido article{
    float: left;
    margin-bottom: 20px;
    
}

#contenido article .titulo{
    font-size: 34px;
    margin-bottom: 5px;
    text-align: left;
}

#contenido article .fecha{
    font-size: 14px;
    color:#7d9639;
    margin-bottom: 15px;

}

#contenido article .thumb2{
    width: 320px;
    height: 200px;
    margin-left: 5px;
    border: solid black 5px;
    
}

#contenido article > p{
    font-size:19px;
    text-align: justify;
     margin-left: 5px;
     margin-top: 20px;
     
}

#contenido article > h2{
    font-size:37px;
    text-align: justify;
     margin-left: 5px;
     margin-top: 20px;
     margin-bottom: 20px;
     
}

#contenido div{
    margin-top: 60px;
    margin-bottom: 0px;
}

#borde{
    border: solid;
    
}

aside{
    width: 220px;
    float: left;
    margin-left: 20px;
    background:#7d9639;
    padding: 10px 10px 0px 10px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    box-shadow: 0px 2px 2px #000;
    -moz-box-shadow: 0px 2px 2px #000;
    -webkit-box-shadow: 0px 2px 2px #000;
    
}

aside .widget{
    margin-bottom: 10px;
    float: left;
    text-align: center;
}

aside .widget > h3 {
    background: black;
    color:#7d9639;
    width: 200px;
    padding: 10px 0px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
      
}

aside .widget a{
    color: #fff;
    margin-bottom: 10px;
}

aside .widget ul li{
    margin-bottom: 5px;
}

footer{
    width:100%;
    float: left;
    clear: both;
    box-shadow: 0px 2px 2px #000;
    -moz-box-shadow: 0px 2px 2px #000;
    -webkit-box-shadow: 0px 2px 2px #000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background: #2f2f2f; /* Old browsers */
    background: -moz-linear-gradient(top,  #2f2f2f 0%, #242424 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #2f2f2f 0%,#242424 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #2f2f2f 0%,#242424 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2f2f2f', endColorstr='#242424',GradientType=0 ); /* IE6-9 */

}

footer section {
    width: 400px;
    float: left;
    padding: 20px;
}

footer #contactos{
    font-family: Arial, Helvetica, Sans-serif;
    font-size: 12px;
    color: #919191;
    text-align: justify;
    line-height: 20px;
}

footer #contactos h3{
    font-family: sourcesans;
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

footer #redes-s > div{
    width: 220px;
    height: 60px;
    float: left;
    opacity: 0.7;
}

footer #redes-s > div a {
    width: 220px;
    height: 60px;
    display: inline-block;
}

footer #redes-s .twitter{
    background:url(../img/twifot.png);
}

footer #redes-s .facebook{
    background:url(../img/facefot.png);
}

footer #redes-s > div:hover {
    opacity: 1;
}