*, *:before, *:after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

html, body {
	height: 98%;
}

body {
	background-color: black;
	font-family: 'Muli', sans-serif;
	display: flex;
	justify-content: center;
}

main {
	width: 1280px;
	background-color: white;
	display: flex;
}

aside {
	background-color: white;
	display: flex;
	flex: 0 1 35%;
	align-self: stretch;
}

.image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	align-self: flex-start;
}

.container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex: 0 1 65%;
	overflow: overlay;
}

nav {
	background-color: white;
	display: flex;
	flex: 0 1 100%;
	justify-content: center;
	align-self: flex-start;
	padding: 0px 10px 0px 10px;
}

ul.datos {
	list-style: none;
}

ul.principal {
	width: 100%;
	display: flex;
	padding: 10px;
	justify-content: space-around;
}

ul.formacion {
	padding: 0.2em;
}

.menu {
	font-size: 1.1em;
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 3;
}

.menu a {
	color: #722330;
	text-decoration: none;
}

.menu a:hover {
	color: #722330;
	font-weight: bold;
	border-bottom: 2px solid #FF0000;
}

.current:link, a.current:visited {
	color: #722330;
	font-weight: bold;
	border-bottom: 2px solid #FF0000;
}

.social {
	display: flex;
	justify-content: center;
	align-items: center;
	flex: 1;
}

header {
	background-color: white;
	padding-right: 60px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-self: flex-start;
	flex: 0 1 85%;
}

article {
	background-color: white;
	padding: 0px 60px 0px 40px;
	margin-bottom: 60px;
	border-left: 3px solid #FF0000;
	display: flex;
	flex-wrap: wrap;
	align-self: flex-end;
	flex: 0 1 85%;
}

h1 {
	font-size: 3em;
	font-weight: normal;
	color: #FF0000;
}

h2 {
	font-size: 2em;
	font-weight: normal;
	color: #722330;
}

h3 {
	color: gray;
	font-size: 1.6em;
	font-weight: normal;
}

p {
	color: gray;
	font-size: 1em;
}

/* Datos personales */
.dato {
	font-weight: bold;
	color:#FF0000;
}

/* link de contacto de la portada */
.link {
	color: #FF0000;
	text-decoration: none;
	font-weight: bold;
}

/* Iconos de los datos personales */
.icon {
	vertical-align: middle;
	margin-right: 1em;
	margin-top: 0.4em;

}

/* Formulario */

form {
	width: 100%;
}

input {
	border: 1px solid gray;
	/*margin: 1em;*/
}

form span {
	color: #FF0000;
	font-weight: bold;
}

select {
	border: 1px solid gray;
	/*margin: 1em;
	margin-bottom: 3em;*/
}

textarea {
	border: 1px solid gray;
	/*margin: 1em;*/
} 

.form-group {
   display: flex;
   flex-direction: row;
   align-items: baseline;
   margin: 0.8em 0.5em 0.8em 0;
 }
 
 .form-group label {
   flex: none;
   display: block;
   width: auto;
   font-weight: bold;
   font-size: 1em;
   color: #FF0000;
   font-weight: bold;
   margin-right: 1em;

 }

 .form-group .input-control {
   flex: 1 1 100%;
   display: block;
   margin-right: 1em;
 }

 input#prefer_email, input#prefer_phone {
 	width: 2em;
 	height: 2em;
 	margin-left: 1em;
 }

 textarea#consulta.input-control {
 	min-height: 100px;
 	width: 100%;
 }
 
.button {
   padding: 5px 15px;
   margin: 5px;
   width: 100%;
   background-color: #FF0000;
   color: white;
   font-weight: bold;
 }

 .button:hover {
   padding: 5px 15px;
   margin: 5px;
   width: 100%;
   background-color: white;
   color: #FF0000;
   font-weight: bold;
 }


/* Media Queries */

@media only screen and (max-width: 1024px) {
	
	main {
		flex-wrap: wrap;
	}

	aside {
		flex-basis: 100%;
		height: 100%;
	}

	article {
		padding-bottom: 40px;
	}

	.image {
		width: 100%;
		height: 100%;
		object-fit: cover;
		align-self: flex-start;
	}

	.container {
		flex-basis: 100%;
	}

	nav {
		flex: 1 0 100%;
		background-color: #f3f3f3;
	}

	header {
		flex:1 0 100%;
		justify-content: center;
		padding: 1em;
		text-align: center;
	}

	article {
		flex: 1 0 100%;
	}


	ul.principal{
		flex-wrap: wrap;
	}

	.menu {
		flex-basis: 50%;
		font-size: 1.4em;
		padding-bottom: 0.4em;
	}

	.social {
		margin-top: 20px;
	}
	form input {
		width: 100%;
	}

	.form-group {
     flex-direction: column;
   }
   .form-group .input-control {
     margin-top: 2px;
   }

}

@media only screen and (max-width: 500px) {

		.menu {
			flex-basis: 100%;
		}

		.social {
			flex: 1 0 100%;
		}

		ul.datos {
			padding:0;
		}

	
}