/*

1º:
reglas generales comunes a todos los dispositivos

*/

* {
    /* selector universal */
    box-sizing: border-box;
    /* para que el ancho de todas las etiquetas
        tomen como referencia el borde de las mismas
        y NO el contenido, como viene por defecto  */
    list-style: none;
    margin: 0;
    padding: 0;
}



<style>
@import url('https://fonts.googleapis.com/css?family=Exo+2:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Exo:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');
</style> 

<style>
@import url('https://fonts.googleapis.com/css?family=Oswald:300');
</style> 



	

article {
font-family: 'Exo 2', sans-serif;
     justify-content: space-between;
    text-align: left;
}

body {
    font-family: 'Exo 2', sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(96, 188, 255);
    text-align: left;
}

a {
    text-decoration: none;
}

h2  {
font-size: 13pt;
    rgb(0, 177, 255);
   

}
h3 {
    color: rgb(0, 177, 255);
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-family: 'Exo 2', sans-serif;
}


h4 {
    color: rgb(0, 177, 255);
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-family: 'Exo 2', sans-serif;
} 

h6 {
font-size: 10pt;
    font-weight: 200; 

}

h5 {
    font-size: 10pt;
    text-align: center;
  
    

}

p {
    padding-bottom: 1em;
    max-width: 30em;
    font-family: 'Exo 2', sans-serif;
      margin-bottom: 20px;
    color: black;
    text-align: left;
    
}

img {
    max-width: 100%;
    height: auto;
    align-content: center;
}

article figure {
    border-radius: 50%;
    overflow: hidden;
    max-width: 50vw;
    margin: 1em auto;
    box-shadow: 0 0.35em 0.5em 0 rgba(0, 0, 0, 0.2);
}

figure>img,
#logo>img {
    display: block
}

article>*:not(h2) {
    text-align: center;
}



#contenedor {
    background-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 1em rgba(0, 0, 0, 0.1);
    margin: auto;
    max-width: 75em;
    min-height: 100vh;
    width: 90vw;
  padding-top: 80px;
}

#main-header {
	background: #000000;
	height: 100px;
	
	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 */
}

header {
  width: 100%;
  position: fixed;
  z-index: 100;
}



footer {
    background-color: #000000;
    padding: 1em;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    align-content: center;
}

  article>h5 {
        text-align: center;
    }

#logo {
    border-radius: 0.5em;
    font-weight: bold;
    font-size: 2em;
    text-align: center;
    width: 3em;
    display: inline-block;
    padding: 0.3em;
}


	
nav {
 
    font-family: 'Exo', sans-serif;

    text-transform: uppercase;
   
    
  
}
 
nav ul {

    font-family: 'Exo', sans-serif;
     text-transform: uppercase;
    display: flex;
flex-direction: row;
padding: 0;
flex-wrap: wrap;

      

    
    
     
}
 
nav ul li {
  
 font-family: 'Exo', sans-serif;
  font-size: 14px;
    background-color: #000000;
       
     padding: 20px;
     text-transform: uppercase;
 
    
}
 
nav ul li a {
  
  color: #fff;
  text-decoration: none;
        font-family: 'Exo 2', sans-serif;
      font-weight: bold;
    

     
}
 
nav ul li:hover {
  background: #01abde;
}

main,
aside {
    padding: 0.5em;
    text-align: left;
}

article {
    margin-bottom: 1em;
    text-align: left;
   margin: 0.5em;
   
}

aside {
    text-align: left;
}




div.galeria {
    margin: 5px;
    background-color: rgba(0, 0, 0, 0.79);
    float: left;
    width: 180px;
    align-items: center;
    flex-wrap: wrap;
}



/* SCROOLL*/


/* Navigation */


a.active {
  border-bottom: 2px solid #ecf0f1;
}

/* Headings */

h1 {
  font-size: 42px;
  color: rgb(0, 177, 255);
    padding-top: 30px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    
    
}

/* Sections */

section {
  width: 90,5%;
  padding: 74px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  height: auto;
  text-align: center;
   

}
section:nth-child(even) {
  background: #ecf0f1;
}
section:nth-child(odd) {
  background: #fff;
}
.sections section:first-child {
  margin-top: 60px;
}
section.active {}




/*BOTON*/


.btn {
  border-width: 0;
       padding: 0.7rem;
}

.btn.btn-primary {
  background: #1A5FFF; 
    text-decoration: none;
    width:auto;
    color:#ffffff;
    padding:0.6rem;
     font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    
 
  
}
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background:#000000;
}



/* Fondo a seccion Nosotros - Quienes somos*/



section#nosotros {
background-image: url("img/fondo2.png");
background-image: cover;
    
}

section#nosotros {
background-image: url("img/fondo2.png");
background-image: cover;
    
}

section#novedades {
background-image: url("img/fondo2.png");
background-image: cover;
   
    
    
}

section#app {
background-image: url("img/fondo2.png");
background-image: cover;
   
    
    
}



section#contacto {
background-image: url("img/FONDO1.jpg");
background-image: cover;
    
}


section#galeria2 {
background-image: url("img/FONDO1.jpg");
background-image: cover;
    
}





#columna1 {
margin-right: 2%;
float: left;
padding-left: 0;
padding-right: 0;
border-bottom: 0;
     color: #000000;
    text-align: left;

}


#columna2 {
margin-right: 2%;
float: left;
padding-left: 0;
padding-right: 0;
border-bottom: 0;
     color: #000000;
    text-align: left;

}

#columna3 {
margin-right: 2%;
padding-left: 0;
padding-right: 0;
border-bottom: 0;
     color: #000000;
    text-align: left;

} 





/*
FORMULARIO
*/

form{
	max-width: 24em;
     font-family: 'Exo 2', sans-serif;
   padding: 20px;
    
    
}

form *:not(label):not(div){
	background-color: black;	
	margin:0;
	padding:0;
	width:100%;
	padding: 0.4em;
	border: 0;
     font-family: 'Exo 2', sans-serif;
}






/* SLIDE */


/** galeria **/

#galeria {
    position: relative; 

height: 22.5em; 
list-style: none;  
    margin-bottom: 150px;
    

}


#galeria li{
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%;
padding: .4em;
}

#galeria li img {
    width: 100%;
}

#galeria .selected {
    z-index: 1; 
    opacity: 1; 
    -moz-transition: all 2s ease 0s;
    -ms-transition: all 2s ease 0s;
    -o-transition: all 2s ease 0s;
    -webkit-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
}
#galeria .noselected{
    z-index: 0; 
    opacity: 0; 
    -moz-transition: all 2s ease 0s;
    -ms-transition: all 2s ease 0s;
    -o-transition: all 2s ease 0s;
    -webkit-transition: all 2s ease 0s;
    transition: all 2s ease 0s;
}






video {
    width: 100%;
    height: auto;
}




/**
 * PgwSlider - Version 2.3
 *
 * Copyright 2014, Jonathan M. Piat
 * http://pgwjs.com - http://pagawa.com
 *
 * Released under the GNU GPLv3 license - http://opensource.org/licenses/gpl-3.0
 */
.pgwSlider {
    width: 100%;
    color: #fff;
    
}

.pgwSlider a{
    display: block;
    text-decoration: none;
    color: #fff;
}

.pgwSlider .ps-current {
    float: left;
    width: 74%;
    overflow: hidden;
    height: inherit;
    position: relative;
    font-size: 1rem;
}

.pgwSlider.listOnTheLeft .ps-current {
    float: right;
}

.pgwSlider .ps-current ul {
    width: 100%;
}

.pgwSlider .ps-current li {
    width: 100%;
    z-index: 1;
    opacity: 0;
    display: none;
}

.pgwSlider .ps-current img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider .ps-caption {
    position: absolute;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    left: 0;
    bottom: 0;
    display: none;
    z-index: 3;
}

ul.pgwSlider,
.pgwSlider  ul {
    float: right;
    width: auto;
    padding: 0;
    list-style: none;
    margin: 0;
    padding-left: 10px;
   
}

ul.pgwSlider.listOnTheLeft,
.pgwSlider.listOnTheLeft > ul {
    float: left;
}

ul.pgwSlider > li,
.pgwSlider > .ps-list > li {
    height: 209px;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
    opacity: 0.6;
    filter: alpha(opacity=60);
    font-size: 0.8rem;
    transition: opacity 200ms linear;
}

ul.pgwSlider > li:last-child,
.pgwSlider > ul > li:last-child {
    margin-bottom: 0;
}

ul.pgwSlider > li span,
.pgwSlider > .ps-list > li span {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    
}






ul.pgwSlider > li:hover,
.pgwSlider > ul > li:hover {
    opacity: 1 !important;
}

ul.pgwSlider > li img,
.pgwSlider > ul > li img {
    width: 100%;
    min-height: 100%;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider .ps-prevIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    display: block;
}

.pgwSlider .ps-nextIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    display: block;
}

.pgwSlider .ps-current .ps-prev {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    position: absolute;
    padding: 20px 20px 20px 17px;
    left: 0;
    top: 45%;
    cursor: pointer;
}

.pgwSlider .ps-current .ps-next {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    position: absolute;
    padding: 20px 17px 20px 20px;
    right: 0;
    top: 45%;
    cursor: pointer;
}

/*
 * The media-queries are not used because IE8 doesn't support them.
 */
ul.pgwSlider.wide > li,
.pgwSlider.wide > ul > li {
    width: 100% !important;
}

.pgwSlider.narrow .ps-current {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.pgwSlider.narrow .ps-current img {
    width: 100%;
    min-height: inherit;
}

.pgwSlider.narrow .ps-current,
ul.pgwSlider.narrow,
.pgwSlider.narrow > ul {
    width: 100%;
}

ul.pgwSlider.narrow > li,
.pgwSlider.narrow > .ps-list > li {
    float: left;
    min-height: 50px;
    max-height: 70px;
    min-width: 15%;
    font-size: 0.7rem;
    margin-bottom: 0;
}

ul.pgwSlider.narrow.listOnTheLeft > li,
.pgwSlider.narrow.listOnTheLeft > ul > li {
    float: right;
}

.pgwSlider.narrow .ps-caption {
    padding: 8px;
}

.pgwSlider.narrow .ps-current .ps-prev {
    padding: 15px 15px 15px 12px;
    top: 40%;
}

.pgwSlider.narrow .ps-current .ps-next {
    padding: 15px 12px 15px 15px;
    top: 40%;
}










/* PARA AGRANDAR ARDUINO*/

/**
 * pgwSlider2 - Version 2.3
 *
 * Copyright 2014, Jonathan M. Piat
 * http://pgwjs.com - http://pagawa.com
 *
 * Released under the GNU GPLv3 license - http://opensource.org/licenses/gpl-3.0
 */
.pgwSlider2 {
    width: 100%;
    color: #fff;
}



.pgwSlider2 a{
    display: block;
    text-decoration: none;
    color: #fff;
}

.pgwSlider2 .ps-current {
    float: left;
    width: 74%;
    overflow: hidden;
    height: inherit;
    position: relative;
    font-size: 1rem;
}

.pgwSlider2.listOnTheLeft .ps-current {
    float: right;
}

.pgwSlider2 .ps-current ul {
    width: 100%;
}

.pgwSlider2 .ps-current li {
    width: 100%;
    z-index: 1;
    opacity: 0;
    display: none;
}

.pgwSlider2 .ps-current img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider2 .ps-caption {
    position: absolute;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    left: 0;
    bottom: 0;
    display: none;
    z-index: 3;
}

ul.pgwSlider2,
.pgwSlider2  ul {
    width: 150%;
    padding: 0;
    list-style: none;
    margin: 0;
}

ul.pgwSlider2.listOnTheLeft,
.pgwSlider2.listOnTheLeft > ul {
    float: left;
}

ul.pgwSlider2 > li,
.pgwSlider2 > .ps-list > li {
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
    
    filter: alpha(opacity=60);
    font-size: 0.8rem;
    transition: opacity 200ms linear;
}

ul.pgwSlider2 > li:last-child,
.pgwSlider2 > ul > li:last-child {
    margin-bottom: 0;
}

ul.pgwSlider2 > li span,
.pgwSlider2 > .ps-list > li span {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    overflow: hidden;
    text-overflow: ellipsis;
    
}



ul.pgwSlider2 > li:hover,
.pgwSlider2 > ul > li:hover {
    opacity: 1 !important;
}

ul.pgwSlider2 > li img,
.pgwSlider2 > ul > li img {
    width: 120%;
    min-height: 120%;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider2 .ps-prevIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    display: block;
}

.pgwSlider2 .ps-nextIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    display: block;
}

.pgwSlider2 .ps-current .ps-prev {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    position: absolute;
    padding: 20px 20px 20px 17px;
    left: 0;
    top: 45%;
    cursor: pointer;
}

.pgwSlider2 .ps-current .ps-next {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    position: absolute;
    padding: 20px 17px 20px 20px;
    right: 0;
    top: 45%;
    cursor: pointer;
}

/*
 * The media-queries are not used because IE8 doesn't support them.
 */
ul.pgwSlider2.wide > li,
.pgwSlider2.wide > ul > li {
    width: 100% !important;
}

.pgwSlider2.narrow .ps-current {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.pgwSlider2.narrow .ps-current img {
    width: 100%;
    min-height: inherit;
}

.pgwSlider2.narrow .ps-current,
ul.pgwSlider2.narrow,
.pgwSlider2.narrow > ul {
    width: 100%;
}

ul.pgwSlider2.narrow > li,
.pgwSlider2.narrow > .ps-list > li {
    float: left;
    min-height: 50px;
    max-height: 70px;
    min-width: 15%;
    font-size: 0.7rem;
    margin-bottom: 0;
}

ul.pgwSlider2.narrow.listOnTheLeft > li,
.pgwSlider2.narrow.listOnTheLeft > ul > li {
    float: right;
}

.pgwSlider2.narrow .ps-caption {
    padding: 8px;
}

.pgwSlider2.narrow .ps-current .ps-prev {
    padding: 15px 15px 15px 12px;
    top: 40%;
}

.pgwSlider2.narrow .ps-current .ps-next {
    padding: 15px 12px 15px 15px;
    top: 40%;
}








/* GALERIA DE FOTOS JAAVAA*/








/*
input {
    AQUI estilos para todos los inputs
}

input:not([type="radio"]):not([type="checkbox"]) {
    aqui estilos para todos los inputs excepto los radio y los checkbox
}
*/

label{
	display:block;
	margin: 1em 0 0.5em 0;
	font-size: 0.9em;
     font-family: 'Exo 2', sans-serif;
    color: black;
}

input, select{
	background-color: black;
}

input[type="text"] {
    background-color: #92b6e6;
}

input[type="submit"] {
	color: white;
	font-weight: 700;
    background-color: #002190;
}

input[placeholder], [placeholder], *[placeholder] {
   color: #ffffff;
}

*::-webkit-input-placeholder {
    /* Google Chrome y Safari */
    color: #ffffff;
}
*:-moz-placeholder {
    /* Firefox anterior a 19 */
    color: #ffffff;
}
*::-moz-placeholder {
    /* Firefox 19 y superior */
    color: #ffffff;
}
*:-ms-input-placeholder {
    /* Internet Explorer 10 y superior */
    color: #ffffff;
}

:required:focus {
	font-weight: bold;
	color: white;
	font-size: 1.1em;
  	box-shadow: 0  0 3px rgba(255,0,0,0.5); 
}

/*

.horario label, .cursos label{
	display: block;
	width: 12em;
}

.horario input, .cursos input{
	display: inline;
	width: 1em;
}

*/

form div input{
	display: inline;
	width: 1em;
	margin: 1em;
}

form div label{
	margin-bottom: 1.3em;
}

.horario, .cursos{
	display: flex;
	align-items: center;
}








/*Portfolio*/










/* Slide fotos */





/*

2º:
layout usando "flexbox" para celulares

*/

#contenedor {
    /*  usaremos el contenedor
        como caja "padre" flexible
    	para que el pié quede abajo
        aun con poco contenido */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /*  indicaremos que el eje principal
        de la caja flexible
        sea la vertical   */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    /*  indicaremos que los elementos "hijos" 
        del contenedor se separen
    	para que el pié quede siempre abajo
        aun con poco contenido en la página */
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

header,
footer {
    /*  flex resume 3 propiedades para los items:
        flex-grow (si se les permite crecer)
        flex-shrink (si se les permite achicar)
        flex-basis (medida según el eje ppal del flex)
        
        indicamos que el encabezado y el pié
        no "crezcan", pero que puedan "achicarse"
        si fuera necesario */
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

.contenidos {
    /* como caja contenedora flex */
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    /*  indicaremos que el eje principal
        de la caja flexible
        sea la vertical   */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    /*  indicaremos que los elementos "hijos" 
        de "contenidos" se separen
    	para que el aside quede siempre abajo
        aun con poco contenido en la página */
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    /*  como "hijo" de "contenedor", que es una caja flexible
        le indicamos que se achique o se agrande
        si fuera necesario, para que ocupe toda la pantalla*/
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}


/****************************************

             3º: mediaqueries
 
(cambios en el layout en la medida en que
la ventana del navegador se va ensanchando)

*****************************************/


/* a partir de 320px */

@media screen and (min-width:20em) {
    nav ul {
        /*  para que sea horizontal
            definimos la lista menú
            como caja flexible */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        
    }
    nav ul li {
        /*  para que el menú se extienda a lo ancho
            definimos que sus "hijos" puedan crecer o achicarse */
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;

    }
    
    ul.pgwSlider, .pgwSlider ul {
    
    padding: 0;
    list-style: none;
    margin: 0;
        
   
    }
    
    ul.pgwSlider2, .pgwSlider2 ul {
    width: 100%;
    }
    
    
    section {
    padding-left: 0;
         padding-right: 0;

}
}


/* a partir de 480px */

@media screen and (min-width:30em) {
    header {
        /*  para que el menu horizontal
            quede al lado del logo
            definimos el encabezado
            como caja flexible */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        /*  indicamos que el logo se vaya 
            lo más a la izquierda posible
            y el menu, lo más a la derecha posible */
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
        /*  indicamos que los "hijos del encabezados
            estén centrados verticalmente */
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
    }
    nav {
        margin: 0;
        /*  indicamos que el menú mida
            todo el ancho MENOS 8em
            para que quepa el logo a la izquierda */
        -webkit-flex-basis: calc( 100% - 8em);
        -ms-flex-preferred-size: calc( 100% - 8em);
        flex-basis: calc( 100% - 8em);
       
    }
    article {
        /* como caja contenedora flex */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        /*  en caso de ser necesario,
            los "hijos" de article pueden
            bajar a la siguiente línea de "hijos" */
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        /*  indicamos que los "hijos" de article
            se alineen en el inicio
            según el eje secundario (vertical) */
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    article>h2 {
        width: 100%;
    }
    article>*:not(h2) {
      
    }
    article>figure {
        max-width: 25%;
        margin: 0 1em 0.5em 0;
    }
    article>p {
        max-width: 70%;
    }
    
    
    
}


/* a partir de 640px */

@media screen and (min-width:40em) {
    main {
        /* como caja contenedora flex */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: baseline;
        -webkit-align-items: baseline;
        -ms-flex-align: baseline;
        align-items: baseline;
        /*  como "hijo" de caja contenedora flex,
            se estira para ocupar toda la caja "padre" */
        -webkit-box-flex: 1;
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }
    main article {
        width: 80%;
        display: block;
        text-align: center;
    }
    
    article>figure {
        max-width: 50%;
        margin: 1em auto;
    }
    article>p {
        
        margin: auto;
        text-align: left;
    }
    
    article>*:not(h3) {
        text-align: left;
    }
    
     article>h5 {
        text-align: center;
    }
    
    aside {
        /* como caja contenedora flex */
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
    section {
        /*  como "hijo" de caja contenedora flex,
            se estira para ocupar la mitad de la caja "padre" */
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 50%;
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
    }
    

}


/* a partir de 800px */

@media screen and (min-width:50em) {
    .contenidos {
        /*  indicaremos que el eje principal
            de la caja flexible cambie
            a la horizontal   */
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    aside {
        /*  indicaremos que el eje principal
            de la caja flexible cambie
            a la vertical   */
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        /*  como "hijo" de caja flex "contenidos",
            indicamos ocupar 30% de la caja "padre"
            sin posibilidad de agrandarse ni achicarse */
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 30%;
        -ms-flex: 0 0 30%;
        flex: 0 0 30%;
    }
    section {
        /*  como "hijo" de caja flex aside,
            indicamos INposibilidad de agrandarse o achicarse */
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
    
}


