@charset "utf-8";

@font-face {
	font-family: 'Calibri Light';
	font-style: normal;
	font-weight: normal;
	src: local('Calibri Light'),
		url(../fonts/calibril.woff) format('woff');
}

body {
	background-image: url(../images/fondopan.png);
	background-attachment: fixed;
	background-position: center center;
	background-repeat: no-repeat;
}

.contenedor {
	font-family: 'Calibri Light';
	width: 85%;
	min-height: 500px;
    margin: 20px auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-content: stretch;
	align-items: center;
}

.item{
    color:#fff;
    text-align: center;
    margin:0 auto;
    font-size:20px;
}

header {
	position: relative;
	top:0;
	right:0;
	left:0;
	height:50px;
    background-color: #000;
	background-image: url(../images/laweb.png);
	background-repeat: no-repeat;
	background-position: 20px 5px;
    overflow:hidden; 
    flex-shrink: 1 ;
	flex-basis: 100%;
}

nav {
	position: relative;
	top:0;
	right:0;
	left:0;
    float: right;
    width:100%;
    line-height: 20px;
    padding-right:0px;
    box-sizing:border-box;
	flex-shrink: 1 ;
	flex-basis: 100%;
}

nav ul {
    list-style-type:none;
    margin:0;
    padding:0;  
    display:flex;
    flex-flow: row wrap;
    justify-content: flex-end;  
}

nav li a { 
	padding: 7px;
    font-size:20px; 
    cursor:pointer;
    color: white;
	text-decoration: none;
}

#menu {
	background-color: #000;
	text-align: center;
	font-size: 0.7em;
	width: 100%;
	margin:0;
}

#menu ul {
	list-style-type: none;
}

#menu ul li {
	width: auto;
}

#menu ul li a {
	display: block;
	text-decoration: none;
	color: #fff;
	background-color: #000;
	padding: 15px;
	position: relative;
}

#menu ul li ul li a {
	width: 200px;
	padding: 8px 0px;
}

#menu ul li ul {
	display: none;
}

#menu ul li ul li ul li a.primera {
	border-top-color: #fff;
}

#menu ul li.nivel1 { 
	float: left;
	margin-right: 1px;
}

#menu ul li a.nivel2 {
	color: #fff;
}

#menu ul li a.nivel1, #menu ul li a.nivel2 {
	display: block;
	position: relative;
}

#menu ul li:hover {
	position: relative;
}

#menu ul li a:hover, #menu ul li:hover a.nivel1 {
	background-color: #434343;
	color: #fff;
	position: relative;
}

#menu ul li:hover  ul.nivel2, #menu ul li a:hover  ul.nivel2{
	display: block;
	position: absolute;
	left: 0px;
}

#cuerpo {
	font-family: "Open Sans",Arial,sans-serif;
	text-align: justify;
    background-color: rgba(255, 252, 251, 0.83);
	padding: 10px;
    height:auto;
	min-height: 500px;
    flex: 4 75%;
	color: black;
	font-size: 16px;
}

h2 {
	font-family: "Roboto Slab",Georgia,serif;
	color: #19232d;
	font-size: 28px; 
	text-shadow: 1px 1px 2px grey;
	text-decoration: underline;
}

h3 {
	font-family: "Roboto Slab",Georgia,serif;
	color: #19232d;
	font-size: 21px; 
	text-shadow: 1px 1px 2px #555;
}

#image1 {
	float: right;
	width: 280px;
	height: 200px;
	vertical-align: baseline;
	margin-left: 30px;
	margin-bottom: 10px;
	transition: 3s;
}

#image1:hover {
	transform: scale(1.2)
}

#image2 {
	float: left;
	width: 200px;
	height: 180px;
	transition: 3s;
	margin-right: 30px;
	margin-bottom: 10px;
	transition: 3s;
}

#image2:hover {
	 transform: scale(1.4)
 }
 
#aside {
    background-color: rgba(50, 53, 62, 0.45);
    height:auto;
	min-height: 500px;
    flex: 1 20%;
	font-family: "Roboto Slab",Georgia,serif;
	color: white;
	text-shadow: 1px 1px 2px #555;
}

#aside h4 {
	text-decoration: underline;
}

#aside h5 {
	color: lightgrey;
}

#aside #image3 {
	width: 200px;
	height: 125px;
	transition: 3s;
}

#aside #image3:hover {
	 transform: scale(1.4)
 }
 
#aside #image4 {
	width: 200px;
	height: 130px;
	transition: 3s;
}

 #aside #image4:hover {
	 transform: scale(1.4)
 }
 
#aside #image5 {
	width: 200px;
	height: 140px;
	transition: 3s;
}

 #aside #image5:hover {
	 transform: scale(1.4)
 }
 
#aside #image6 {
	width: 200px;
	height: 140px;
	transition: 3s;
}

 #aside #image6:hover {
	 transform: scale(1.4)
 }
 
 #aside #image7 {
	width: 200px;
	height: 140px;
	transition: 3s;
}

 #aside #image7:hover {
	 transform: scale(1.4)
 }
 
footer {
    min-height:100px;
    background-color: #77b178; 
    flex: 1 100%;
	font-size: 9px;
	background-color: rgba(50, 53, 62, 0.45);
}

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

@media screen and (max-width: 550px) {
    
     header {
		background-image: url(../images/laweb.png);
		background-repeat: no-repeat;
		background-size: 250px;
		background-position: 20px 10px;
        order:0;
    }
    
	#menu ul li a {
		font-size: 11px;
	}
	
    #cuerpo{
        flex: 1 100%;
        order:1;        
    }
    
    #aside{
        flex: 1 100%;
        order:2;        
    }
    
    footer{
        order:3;
    }

}