/*

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;
    font-family:'Lato',sans-serif, arial, helvetica;
}

html{
background-color:white;
}

body{
max-width:360px;
min-height: 640px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: column;
      flex-flow: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}


.body-inscripcion{
font-family: 'Lato', arial, helvetica, sans-serif;
    margin: 0;
    padding-top: 2em;
   background: #eb4e65; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #eb4e65 , #3b2562); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #eb4e65, #3b2562); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #eb4e65, #3b2562); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #eb4e65 , #3b2562); /* Standard syntax */
}

.body-perfil{
font-family: 'Lato', arial, helvetica, sans-serif;
    margin: 0;
    padding-top: 2em;
   background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */
}


.body-cursos{
font-family: 'Lato', arial, helvetica, sans-serif;
    margin: 0;
    padding-top: 2em;
   background: #0d9f96; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #0d9f96 , #d3e28b); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #0d9f96, #d3e28b); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #0d9f96, #d3e28b); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #0d9f96 , #d3e28b); /* Standard syntax */
}

a {
    text-decoration: none;
}

h2,
h3 {
    color: white;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    text-align:center;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

p {
    padding-bottom: 1em;
    max-width: 35em;
}

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

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;
}

.correcto{
display:flex;
margin:auto;
}

#contenedor {
    margin: auto;
    max-width: 360px;
    min-height: 480px;
    width: 90%;
}

header,
footer {
    padding: 1em;
    text-align: center;
}

header p{
color:#fff;
    text-transform: uppercase;
}

footer{
width: 100%; bottom: 0; position:fixed; height: 1em;
}

.atras{
display:flex;
height:2em;
}


form{
text-align:center;
color:white;
margin-bottom:3em;
}

p.nueva-contraseña a{
color:#fff;
font-size:0.7em;
}

p.nueva-contraseña{
text-align: center;
}

form{
	max-width: 24em;
}

form *:not(label):not(div){
	margin:0;
	padding:0;
	width:90%;
	padding: 0.4em;
	border-bottom:3px solid #fff8ad;
    border-right:transparent;
        border-left:transparent;
    border-top: transparent;

}


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

#logo {
   /* background-color: lightcoral;
    border-radius: 0.5em;
    font-weight: bold;
    font-size: 2em;
    text-align: center;*/
    height:100%;
    display: inline-block;
    padding: 0.3em;
}

nav {
    width: 100%; top:0;left:0; position:fixed; height:2.7em;
    max-width:360px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    justify-content: space-between;
    margin:auto;
    padding:0.3em;

}

nav ul {
    margin-top: 4em;
    padding: 0;
}

nav ul li {
margin:1em;
}

nav ul li a {
    background-color: #ff0089;
    border: solid 2px #fff;
    border-radius: 5px;
    color: white;
    display: block;
    padding: 0.25em;
    text-align: center;
}

nav ul li a:hover {
    color: black;
}


/*BARRA SUPERIOR + HEADER*/


.header-perfil{
width: 100%; top:3em;left:0; position:fixed; height:15em;
background:#2d1e4a;

}

#barra-superior{
margin-top:0;
background:rgba(19, 25, 51, 0.62);
}


/*BARRA INFERIOR*/

#barra-inferior{
margin-top:0;
background:rgba(19, 25, 51, 0.62);
}


#barra-inferior a{
width:100%;
text-align:center;
}


.menu-abajo{
width:20%;
margin-top:-2em;
}


.menu-abajo:hover{
width:22%;
margin-top:-2.5em;
}


#perfil{
width:60%;
margin:auto;
margin-bottom:2em;
}


.seguridad{
border:none;
font-size:0.9em;
color:#00fff5;
margin-top:2em;
}


#resultados{
width:60%;
margin:auto;
}


/*TEXTO*/

.menu-principal div p{
font-size:0.9em;
}

p.instrucciones{
font-size:0.9em;
margin-top:-1em;
}

/*CURSOS y MENÚ PRINCIPAL*/

.ejercicios,.test,.tutorial,.menu-perfil,.menu-cursos{
display:flex;
flex-direction: column;
align-content: center;
}


.ejercicios img,.test img,.tutorial img{
width:50%;
margin:auto;
}

.menu-cursos{
 background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */

}

.menu-cursos:hover,.menu-perfil:hover{
    background: #3b2562; /* For browsers that do not support gradients */
    background: #0d9f96; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #0d9f96 , #d3e28b); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #0d9f96, #d3e28b); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #0d9f96, #d3e28b); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #0d9f96 , #d3e28b); /* Standard syntax */

}

div.menu-perfil{
padding-bottom:3em;
}

.menu-perfil{

 background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */

}

.opciones{
padding-top:3em;
}


.cursos,.opciones{
margin-top:-5em;
margin-left:-1em;
margin-right:-1em;
}

.menu-principal{
margin-top:-5em;
margin-left:-1em;
margin-right:-1em;
display:flex;
flex-direction: column;
text-align:center;
}

.menu-perfil{
padding-top:5em;
padding-bottom:3em;
}

.menu-cursos{
padding-top:3em;
padding-bottom:3em;
}

.cursos div{
width:100%;
padding:1.5em;
text-align:center;
}

.menu-principal div a{
color:#fff;
font-family:Lato;
font-size:0.8em;
}

img.estadisticas{
display: flex;
margin:auto;
}

.opciones div{
width:100%;
padding:1em;
text-align:center;
}

.ejercicios{   
padding-top:5em;
padding-bottom:3em;
}

.ejercicios{
  background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */

}



.test{
  background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */

}

.tutorial{
  background: #3b2562; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #3b2562 , #008d9c); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #3b2562, #008d9c); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #3b2562, #008d9c); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #3b2562 , #008d9c); /* Standard syntax */

}

.cursos div a,.opciones div a{
color:#fff;
}


.curso1,.curso2,.curso3,.curso4,.curso5{
width:100%;
color: #fff;
text-align:center;

}


.curso1:hover,.curso2:hover,.curso3:hover,.curso4:hover,.curso5:hover{
width:100%;
   background: #1e254e; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left, #006c77 , #1e254e); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right, #006c77, #1e254e); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right, #006c77, #1e254e); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right, #006c77 , #1e254e); /* Standard syntax */
}


.ejercicios:hover,.test:hover,.tutorial:hover {
    background: #3b2562; /* For browsers that do not support gradients */
    background: #0d9f96; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, #0d9f96 , #d3e28b); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom, #0d9f96, #d3e28b); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(top, #0d9f96, #d3e28b); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom, #0d9f96 , #d3e28b); /* Standard syntax */
}

.curso1{
background-color:#00a391;
}

.curso2{
background-color:#03797e;
}

.curso3{
background-color:#006f7e;
}

.curso4{
background-color:#18536d;
}

.curso5{
background-color:#15314a;
}

/*FORMULARIO*/
.instrucciones{
font-size:0.9em;
color:#fff;
font-weight:100;
font-family:sans-serif;
}

label{
font-size:0.9em;
}

.check{
text-align:right;
}

input{
background-color:transparent;
}


.radio{
display:flex;
flex-direction: row;
vertical-align:text-bottom;
align-content: center;
justify-content:center;

}

.radio label{
padding-top:0.7em;

}

/*BOTONES*/


.botones-iconos{
padding-top:15em;
padding-bottom:2em;
}

.botones-iconos p{
font-size:0.8em;
}


.botones-generales{
 background: #fff; /* For browsers that do not support gradients */
    border-radius: 0.8em;
    color: black;
    font-size:0.75em;
    font-family:Lato;
    font-weight:700;
    display: block;
    padding: 0.5em;
    text-align: center;
    width:90%;
margin:auto;
text-transform:uppercase;

}

.botones-ingreso{
display:flex;
flex-direction: column;

}

.siguiente{
display:flex;
margin:auto;
width:20%
}


.botones-iconos{
display: flex;
flex-direction: column;
margin:auto;
margin-top:2em;
}

.botones-iconos-resultados{
display:flex;
flex-direction:column;
}


.iconos{
    8
display: flex;
flex-direction: column;
text-align: center;
color:#fff;
text-transform: uppercase;
}


.iconos p:hover{
color:rgb(139, 197, 255);
}

.pregunta{
display:flex;
margin:auto;



main,
aside {
   
    padding: 0.5em;
}

input{
text-align:center;
}

article {
    margin-bottom: 1em;
}

aside {
    background-color: lightcoral;
}

section {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.5em;
}

footer p {
    color: #ccc;
}


/*

2º:
layout usando "flexbox" para celulares

*/


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;
}



