@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);


@font-face {
    font-family: 'source_sans_probold';
    src: url('sourcesanspro-bold-webfont.woff2') format('woff2'),
         url('sourcesanspro-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}




@font-face {
    font-family: 'source_sans_probold_italic';
    src: url('sourcesanspro-bolditalic-webfont.woff2') format('woff2'),
         url('sourcesanspro-bolditalic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}




@font-face {
    font-family: 'source_sans_proitalic';
    src: url('sourcesanspro-italic-webfont.woff2') format('woff2'),
         url('sourcesanspro-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}




@font-face {
    font-family: 'source_sans_proregular';
    src: url('sourcesanspro-regular-webfont.woff2') format('woff2'),
         url('sourcesanspro-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
 
.contenedor {
	background:#efefef;
	width:100%;
	margin:auto;
 
	/*************************** Flexbox ***********/
	display:flex;
	flex-flow:row wrap;
}
 
body {
	background:#efefef;
    font-family: Arial;
    font-family: 'Source Sans Pro', sans-serif;
}
 
header {
	background-image: url(../img/bannerconfoto.jpg);
    background-size:cover;
    background-position: center;
	width:80%;
    margin: auto;
  
	padding:2em;
    font-family: Arial;
    
    border-bottom: solid 10px rgba(0, 0, 0, 0.12);
    
 
	/* Flexbox */
	display: flex;
    flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
	align-items:center;
 
}
 
header .logo {
    width: 50%;
	color:#fff;
	font-size:1.5em;
    
    
}
 
header .logo img {
	width:25%;
	vertical-align: top;
 
    
}
 
header .logo a {
	color:#fff;
    padding-left: 0.5em;
	text-decoration: none;
    line-height:50px;
 
}
 
header nav {
	width:40%;
    background:rgba(94, 141, 149, 0.62);
    border-radius: 1em;
    
    
	/* Flexbox */
 
	display:flex;
	flex-wrap:wrap;
	align-items:center;
}
 
header nav a {
	
	color:#fff;
	text-align: center;
	text-decoration: none;
	padding:0.8em;
    
 
	/* Flexbox */
	flex-grow:1;
}
 
header nav a:hover {
	background:rgba(141, 181, 148, 0.21);
    border-radius: 1em;
    
    
}
 
.main {
	background:#efefef;
	margin-top: 2%;
    margin-left: 10%;
    
    display: flex;
	flex:1 1 50%;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    
  
	/*flex:1;*/
}
 
.main article {
    width: 70%;
	margin-bottom: 1em;
	padding-bottom:1em;
	border-bottom:1px solid #000;
    
    /***** fleeexi ***/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;;
}

.titulo {
    font-size: 2em;
    font-weight: 200;
    
    padding-bottom: 0.5em;
}

.main h2 {
   /*border-bottom: 3px solid #000; */
    background-image: url(../img/linealarga.png);
    background-repeat: no-repeat;
    background-position: center;
    
}

.main article p {
    text-align: center;
}

.main article:nth-last-child(1){
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom:none;
}
 

aside {
	background:rgba(24, 60, 1, 0.49);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    border-radius: 1em;
  
    margin-right: 10%;
	padding:1em;
    
   
    
	/*FLEX*/
	flex:1 1 30%;
    
	/*flex:0 0 300px;*/
 
	display: flex;
	flex-wrap:wrap;
	flex-direction:column;
	justify-content:flex-start;
}
 
aside .contenedorVideo {

    margin-bottom: 0.5em;
	
	
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

aside h4 {
font-weight: 200;
    font-size: 0.9em;
    color: #181818;
    padding-top: 0.5em;
}

iframe {
    width: 100%;
    border-radius: 1em;
    
}

article figure img {
    margin: 0.5em;
    
}

footer {
	background:#0f0f0f;
	width: 80%;
    margin: auto;
	padding:20px;
    
   
 
	/* Flexbox */
	display: flex;
	flex-wrap:wrap;
	justify-content:space-between;
    align-items: center;
}
 
footer .links {
    border-radius: 1em;
    
    
    background:rgba(94, 141, 149, 0.69);
    
    
    
	display:flex;
    flex-direction: row;
	flex-wrap:wrap;
    justify-content: center;
    
}
 
footer .links a {
	flex-grow:1;
    border-radius: 1em;
         
 
	color:#fff;
	padding-left: 1em;
    padding-right: 1em;
     padding-bottom: 0.5em;
    padding-top: 0.5em;
    
    text-decoration:none;
    text-align: center;
}

footer .links a:hover {
    background: rgba(159, 193, 188, 0.15);
}

footer .logolinks {
    max-width: 280px;
    margin: 1em 0em 1em 0;
    padding: 0.5em;
   
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    
}
 

footer .social {
	background:rgba(94, 141, 149, 0.9);
    border-radius: 1em;
    
 
    
    display:flex;
    flex-direction: row;
	flex-wrap:wrap;
    justify-content: center;
}
 
footer .social a {
	color:#fff;
	text-decoration: none;
    
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
	
	
}

footer .social a:hover {
	background:rgba(94, 141, 149, 0.62);
    border-radius: 1em;
}
 

/************************************************** iPad ******/
 
@media screen and (max-width: 800px) {
	.contenedor {
		flex-direction:column;
	}
 
	header {
		flex-direction:column;
		padding:0;
	}
 
	header .logo {
		margin:20px 0;
	}
 
	header nav {
		width: 100%;
	}
 
	aside {
        width: 100%;
        margin-left: 0;
		flex-direction:row;
		flex:0;
       
	}
 
	aside .widget {
		flex-grow:1;
	}
    
    footer {
        justify-content: space-around;
        
        
                
    }
}
 
/********************************************** mobile *************/

@media screen and (max-width: 300px) {
	
   
    aside {
        
        
		flex-direction:column;
        width: 100%;
	}
 
	footer {
		justify-content:space-around;
	}
}