* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: #e6e6e6;
}

.contenedor {
	width: 90%;
	max-width: 1360px;
	margin: auto;

	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
}

header {
	width:100%;

	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
	align-items:center;
}

header .cabecera {
	
	width:100%;
	padding:10px;

	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
	align-items:center;
}

header .logo{
	width: 30%;
	max-width: 100%;
	min-width: 250px;
	vertical-align: top;
	text-align: center;
}

header .datos, h2{
	width: 70%;
	max-width: 100%;
	color: #006699;
	font-family: Verdana;
	font-size: 1.15rem;
	text-align: right;
	letter-spacing: 4px;
}

header nav {
	width:100%;
	/* Flexbox */
 
	display:flex;
	flex-wrap:wrap;
	align-items:center;
}
 
header nav a {
	background:#006699;
	color:#fff;
	text-align: center;
	text-decoration: none;
	padding:15px;
	font-family: Verdana;
	display: block;
	 
	/* Flexbox */
	flex-grow:1;
}

header nav a span {
	margin-right: 10px;
}

header nav a:hover {
	background: #528FD5;
}

.main {
	width: 100%;

	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
	align-items:center;
}

.formulario{
	width: 50%;
	margin:0 auto;
	padding: 10px;
	color: #666666;
	font-family: Verdana;
	text-align: left;
}

h2 {
	padding: 10px;
	width: 100%;
	font-size: 1.25rem;
	text-align: center;
}

#mensaje {
	vertical-align: text-top;
}

#submit {
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    margin: 0 10px 20px 0;
    border: 1px solid #ccc;
    background:#006699;
	color:#fff;
	font-family: Verdana;
    border-radius: 8px 8px 8px 8px;
}

#submit:hover {
    background: #528FD5;
}

aside {
	width: 49%;
	height: 100%;
	padding: 10px;
	margin-left: 0.5%;
	margin-right: 0.5%;
	box-sizing: border-box;
}

footer {
	background: #000;
	width: 100%;
	color: #fff;
	font-family: Verdana;
	padding: 10px 0px;
	text-align: center;
}

footer a:link, a:visited {
	text-decoration: none;
	color: white;
}

footer a:hover, a:active {
	text-decoration: none;
	color: blue;
}

@font-face {
	font-family: 'icomoon';
	src:url('../fonts/icomoon.eot?uyfhy9');
	src:url('../fonts/icomoon.eot?uyfhy9#iefix') format('embedded-opentype'),
		url('../fonts/icomoon.ttf?uyfhy9') format('truetype'),
		url('../fonts/icomoon.woff?uyfhy9') format('woff'),
		url('../fonts/icomoon.svg?uyfhy9#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
	font-family: 'icomoon' !important;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	
	/* Enable Ligatures ================ */
	letter-spacing: 0;
	-webkit-font-feature-settings: "liga";
	-moz-font-feature-settings: "liga=1";
	-moz-font-feature-settings: "liga";
	-ms-font-feature-settings: "liga" 1;
	-o-font-feature-settings: "liga";
	font-feature-settings: "liga";

	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-home:before {
	content: "\e900";
}
.icon-newspaper:before {
	content: "\e914";
}
.icon-library:before {
	content: "\e915";
}
.icon-profile:before {
	content: "\e903";
}
.icon-address-book:before {
	content: "\e916";
}
.icon-envelop:before {
	content: "\e917";
}
.icon-users:before {
	content: "\e918";
}
.icon-menu:before {
	content: "\e919";
}

@media screen and (max-width: 1024px) {

}


@media screen and (max-width: 800px) {

    .contenedor {
        flex-direction:column;
        width: 100%;
        padding: 10px;
    }
 
    header .cabecera{
        padding:0;
        flex-direction:column;
    }
 
    header .logo{
        margin:0px 0;
    }

    header .datos{
        width: 100%;
        font-size: 1rem;
        text-align: center;
        margin:10px 0;
        letter-spacing: 4px;
    }
 
    header nav {
        
    }
 

    h2 {
        width: 100%;
        text-align: center;
    }

footer {
        width: 100%;
}

@media screen and (max-width: 640px) {


	.main{
		padding:0;
        flex-direction:column;
	}

	aside{
		width: 100%;
		padding: 10px;
	}

	.formulario{
		width: 100%;
		padding: 10px;
		text-align: center;
	}

    h2 {
        width: 100%;
        text-align: center;
    }

footer {
        width: 100%;
}
 