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

.contenedor {
	background:#ccc;
	width:90%;
	max-width:1000px;
	margin:auto;

	/* Flexbox */
	display:flex;
	flex-flow:row wrap;
}
p {
	line-height: 16px;
}

body {
	background:#e9e9e9;
	padding-top: 90px;
	font-family: 'Droid Sans', sans-serif;
	font-size: 13px;
}

header {
	background:#2c3e50;
	width:100%;
	padding:0px;
	width: 100%; /* hacemos que la cabecera ocupe el ancho completo de la página */
	left: 0; /* Posicionamos la cabecera al lado izquierdo */
	top: 0; /* Posicionamos la cabecera pegada arriba */
	position: fixed; /* Hacemos que la cabecera tenga una posición fija */
	z-index: 1000;
	/* Flexbox */
	display:flex;
	justify-content:space-between;
	align-items:center;

	flex-direction:row;
	flex-wrap:wrap;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
}

header .logo {
	font-size:50px;
}

header .logo img {
	width:80px;
	vertical-align:middle;
}

header .logo a {
	color:#DBA901;
	text-decoration: none;
	line-height:50px;
	font-weight: bold;
}

header nav {
	width:60%;
	max-width: 1000px;
	/* Flexbox */

	display:flex;
	flex-wrap:wrap;
	align-items:center;
	justify-content: space-between;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
	}

header nav a {
	background:#c0392b;
	color:#fff;
	text-align: center;
	text-decoration: none;
	padding:10px;

	/* Flexbox */
	flex-grow:1;
}
header .btn-menu{
	display: none;
	color:#ffffff;
	text-decoration: none;
	font-size: 1em;
}
header nav i{
	margin-right: 5px;
}
/*Efectos del Menú*/
.headroom{
	transition: transform .3s ease;
}
.headroom--pinned{
	transform: translateY(0%);
}
.headroom--unpinned{
	transform: translateY(-100%);
}

/*header nav a:hover {
	background:#e74c3c;
}*/

.main {
	background:#fff;
	padding:20px;
	flex:1 1 70%;
	/*flex:1;*/
}
/* Bounce To Top */
.hvr-bounce-to-top {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px transparent;
  position: relative;
  -webkit-transition-property: color;
  transition-property: color;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;

}
.hvr-bounce-to-top:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:#e74c3c;
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transition-property: transform;
  transition-property: transform;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;

}
.hvr-bounce-to-top:hover, .hvr-bounce-to-top:focus, .hvr-bounce-to-top:active {
  color: white;
}
.hvr-bounce-to-top:hover:before, .hvr-bounce-to-top:focus:before, .hvr-bounce-to-top:active:before {
  -webkit-transform: scaleY(1);
  transform: scaleY(1);
  -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}
}
.div-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
	width: 250px;
	height:150px;
	}
.div-img .img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  transform: scale(1);
  -ms-transform: scale(1);
  -moz-transform: scale(1);
  -webkit-transform: scale(1);
  -o-transform: scale(1);
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
	padding: 5px;
	border-radius: 10px;
	opacity: 0.98;
}
.div-img:hover .img {
  transform: scale(0.8);
  -ms-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -webkit-transform: scale(0.8);
  -o-transform: scale(0.8);
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;

}
.main article {
	margin-bottom: 20px;
	padding-bottom:20px;
	border-bottom:1px solid #000;
}
.main article:nth-last-child(1){
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom:none;
}
.banner{
	background:#2c3e50;
	color:#fff;
	text-align: center;
	padding: 5px;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
}
.banner2{
	background:#c0392b;
	color:#fff;
	text-align: center;
	border-radius: 5px;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
	padding: 3px;
}
.banner3{
	background:#FF0000;
	color:#fff;
	text-align: center;
	border-radius: 5px;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
	padding: 2px;
	margin-top: 0px;
}
.derecho
{
	text-align:justify;
	padding: 10px;
	font-size: 83%;
}
.carreras2{
	text-align:justify;
	padding: 10px;
	font-size: 73%;
}
figure img{
	display: block;
	margin-left: auto;
	margin-right: auto;
}
aside {
	background:#D8D8D8;
	padding:20px;
	border-radius: 10px;
	/*FLEX*/
	flex:1 1 30%;
	/*flex:0 0 300px;*/

	display: flex;
	flex-wrap:wrap;
	flex-direction:column;
	justify-content:flex-start;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
}

aside .widget {
  background:#000000;
	width: 250px;
	height:150px;
	margin:5px;
	}
	/*aside .widget a:hover{
		width: 280px;
		height:180px;
		margin:10px;
		}*/
		.imagen{
		position: relative;
    padding-bottom: 60%;
    height: 0;
    overflow: hidden;
		}
		.imagenpdf{
					padding: 5px;
		}
		.imagen iframe {
    position:absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
	background:#2c3e50;
	width: 100%;
	padding:20px;
	/* Flexbox */
	display: flex;
	flex-wrap:wrap;
	justify-content:space-between;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
}
footer .textofooter{
	vertical-align: middle;
	text-align: center;
}

footer i{
	margin-right: 5px;
}

footer .links {
	width:40%;
	background:#c0392b;
	display:flex;
	flex-wrap:wrap;
	justify-content: space-between;
	box-shadow: 4px 4px 3px rgba(0,0,0,.5);
}

footer .links a {
	flex-grow:1;

	color:#fff;
	padding:10px;
	text-align:center;

	text-decoration:none;
}
footer .links i{
	margin-right: 5px;
}

/*footer .links a:hover {
	background:#E74C3C;
}*/

footer .social {

}

footer .social a {
	color:#fff;
	text-decoration: none;
	padding:10px;
	display: inline-block;
}

form{
 width: 440px;
 height: auto;
 width: auto;
 background-color: #D8D8D8;
 margin: 0 auto;
 padding: 5%;
 border-radius: 5px;
}
input {
	width: 95%;
	height: 30px;
	font: 300 12px "Open Sans", Arial, sans-serif;
	margin: 5px 0 10px 0;
}
textarea{
	width: 95%;
	height: 60px;
	font: 300 12px "Open Sans", Arial, sans-serif;
	margin: 5px 0 10px 0;
}

input[type=submit]{
 background-color:#c0392b;
 height:40px;
 width:95%;
 letter-spacing:2px;
 color:#FFFFFF;
 font-weight: bold;
 font-size: 100%;
}
input[type=submit]:hover{
 background-color:#e74c3c;
 height:40px;
 width:95%;
 letter-spacing:2px;
 color:#FFFFFF;
 font-weight: bold;
 font-size: 100%;
}

@media screen and (max-width: 1100px) {
	.contenedor {
		flex-direction:column;
		padding-top: 70px;
	}

	header {
		flex-direction:column;
		padding:0;
	}

	header .logo {
		margin:20px 0;
	}

	header nav {
		width: 100%;
	}
	footer {
		justify-content:space-around;
	}
		footer .links {
		width:100%;
		}
		footer .textofooter{
			vertical-align: middle;
			text-align: center;
			padding-top: 10px;
		}
		footer .social {
			padding-top: 10px;
		}

	aside {
		flex-direction:row;
		flex:0;
	}
	aside .widget {
		flex-grow:1;
	}

}
@media screen and (max-width: 400px) {

	header {
		/*display: flex;
		flex-direction: row;
		justify-content: space-between;*/

	}
	header .logo {
		color:#fff;
		font-size:50px;
	}
	header .logo .btn-menu{
		/*display: inline-block;*/
	}
	body{
		padding-top: 130px;
	}

	aside {
		flex-direction:column;
	}

	footer {
		justify-content:space-around;
	}
	footer .links {
		width:100%;
		}
		footer .textofooter{
			vertical-align: middle;
			text-align: center;
			padding-top: 5px;
		}
		footer .social {
			padding-top: 10px;
		}
}
