
html, body{
	margin: 0;
	padding: 0;	
}

a{
	text-decoration: none;
	color: white;
}

body{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
}

header, main, footer{
	display: inline-block;
	width: 100%;
	margin: 0;
	vertical-align: top;
}

header{
	display: inline-block;
	height: 15%;
	text-align: center;
	background: white;
	margin: 0;
}

main{
	display: inline-block;
	width: 100%;
	*height: 70%;
	background: white;
	margin: 0;
}

footer{
	display: inline-block;
	*min-height: 20%;
	color: white;
	text-align: center;
	*background: white;
}

/* ------------------- */

#header{
	*display: inline-block;
	min-width: 100%;
	min-height: 300px;
	margin: 0;
	background: url("../img/header.jpg") no-repeat center; 
	background-size: cover;
}

header>img{
	display: inline-block;
	*width: 300px;
	height: 100%;
	margin: 0;
}

#empresas{
	display: inline-block;
	width: 100%;
	min-height: 250px;
	line-height: 250px;
	*margin: 0 auto;
	
}

#empresas > a > span{
	display: inline-block;
	vertical-align: middle;
	width: 20%;
	min-height: 200px;
	*height: 210px;
	margin-left: 3.7%;
}

#img_1{
	background: url("../img/aira.jpg") no-repeat center; 
	background-size: contain;
}

#img_2{
	background: url("../img/boveda.jpg") no-repeat center; 
	background-size: contain;
}

#img_3{
	background: url("../img/canval.jpg") no-repeat center; 
	background-size: contain;
}

#img_4{
	background: url("../img/acierta.jpg") no-repeat center; 
	background-size: contain;
}

#telf, #mail, #dir{
	font-family: 'Montserrat', sans-serif;
	font-style: bold;
	display: inline-block;
	margin: 5px auto;
	font-size: 80%;
}

#icons i{
	margin:10px 5px 10px 10px;
}

@media (min-width: 2600px) {
	#empresas{
		min-height: 600px;
		line-height: 600px;
	}
	#empresas > a > span{
		height: 480px;
	}	
}

@media (min-width: 1800px) {
	#empresas{
		min-height: 330px;
		line-height: 330px;
	}
	#empresas > a > span{
		height: 280px;
	}	
}


@media (min-width: 600px) and (max-width: 900px) {
	#header{
		min-width: 100%;
		min-height: 250px;
	}

	#empresas > a > span{
		width: 40%;
		*height: 210px;
		margin-left: 6%;
	}
}	

@media (min-width: 350px) and (max-width: 599px) {
	#header{
		min-width: 100%;
		min-height: 200px;
	}

	#empresas > a > span{
		width: 80%;
		*height: 210px;
		margin-left: 10%;
	}
}

@media (max-width: 349px) {
	#header{
		min-width: 100%;
		min-height: 200px;
	}
	
	#empresas > a > span{
		width: 80%;
		*height: 210px;
		margin-left: 10%;
	}
}