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

body{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5em;
    background-color: rgb(243, 247, 244);
    max-width: 2000px;
    
}


/*********************************************************
	H	E	A	D	E	R

*/


header{
	width: 100%;
	height: 800px;
	
	background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: center;
    z-index: -10;

    border: 1px solid transparent;
    text-align: center;
     
}


#header-title{
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
    
    margin-top: 350px;
}

#header-title span{
    display: block;
    margin-bottom: 70px;
}

@media only screen and (min-width: 700px){
    #header-title{
        font-size: 3em;
    }
}

@media only screen and (min-width: 1200px){
    #header-title{
        font-size: 4em;
    }
}

/*********************************************************
        M E N U
*/




nav{
    position: fixed;
    top: 0;
    width: 100%;
    *height: 75px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    
    *align-items: center;
}

nav .flex-container{
    display: flex;
    justify-content: space-around;
    align-items: center;
}



nav #barra-nav > div{
    display: inline-block;
    vertical-align: middle;
    *border: 1px solid black;
    
}

nav #barra-contacto, nav #botton-menu{
    padding: 10px;
}

nav #botton-menu{
    font-weight: bold;
}

nav #botton-menu:hover{
    font-weight: bold;
    *border: 1px solid black;
    background-color: black;
    color: white;
    cursor: pointer;
    border-radius: 10px;
}

nav #barra-contacto > span{
    
    padding: 15px;
}

nav #barra-contacto > span a{
    text-decoration: none;
    color: inherit;
}

nav #barra-contacto > span i{
    font-size: 1.5rem;
}

nav #barra-contacto .hidden{
    display: none;
}



#logo-nav{
    width: 100px;
}

#menu{
    position: absolute;
    top: 0;
    right: 0;
    background-color: white;
    transition-duration: 2s;
    height: 100%;
    min-height: 700px;
    display: none;
    box-shadow: 2px 2px 10px 5px grey;
    min-width: 400px;
    overflow: auto;
    
    
    
}

#menu #button-close-menu{
    display: block;
    
    text-align: center;
    
    color: white;
    font-size: 2em;
    font-weight: bold;
    padding: 15px;
    background-color: red;
    cursor: pointer;
}

#menu > ul{
    height: 100%;
    margin-left: 50px;
    margin-bottom: 20px;
    
}

#menu li > ul{
    margin: 30px;
    
}

#menu ul > li{
    margin: 20px auto;
}



#menu li a{
    text-decoration: none;
    color: inherit;
    display: block;
}

#menu li a:hover{
    font-weight: bold;
    letter-spacing: 0.2rem;
}

img{
    width: 100%;
}


@media only screen and (min-width: 1000px){
    

    #logo-nav{
        width: 150px;
    }
}

@media only screen and (min-width: 1050px){
    nav #barra-contacto .hidden{
        display: initial;
    }
}


/************************************************************************************

*/

main{
    width: 100%;
    max-width: 1200px;
    
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

main > h1{
    *padding: 20px auto;
    text-align: center;
    *margin-top: 10px;
    font-size: 2em;
    text-shadow: 1px 1px 2px grey;
    line-height: 50px;
}

section{
    border: 1px solid grey;
    padding: 10px;
    margin: 30px auto;
}

section h2{
    padding: 15px;
    text-align: center;
    text-shadow: 0px 0px 2px green;
}

img{
    width: 100%;
    height: 100%;
}

header .background img{
    
    min-height: 300px;
    max-height: 800px;
}

p{
    margin: 15px auto;
}




@media only screen and (min-width: 1000px) {
    .flex-container{
        display: flex;
    }

    main > h1{
        font-size: 3em;
    }


}




/*********************************************************************************
        F O O T E R
*/

footer{
    background-image: url('../img/footer.jpg');
    background-repeat: no-repeat;
    background-size: 100%, 100%;
    background-position: center;
    *background-attachment: fixed;
    width: 100%;
    height: 300px;
}




/*******************************************************************************
	section#tablon-anuncios

*/

#tablon-anuncios{
	max-width: 1400px;
	border-color: none;
	font-weight: bold;
	text-align: center;
	
}



.background-red{
	padding: 10px;
	

	background-color: red;
	
	color: white;
}

.text-color-white{
color: white;
}






