@charset "utf=8";

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

* {
    box-sizing: border-box;
    margin:0;
    padding: 0;
    font-family:"Source Sans Pro";
}

#pagina{
    width: 90%;
    margin: auto;
}

body{
    background-image:url(imagenes/fondo.jpg);
    background-repeat: no-repeat;
    background-size:cover;
}

header{
    margin: 1em 0em;
}

header nav ul{
    text-align: center;
}

header nav ul li {
    display: inline-block;
    
}

header nav ul li a{
    text-decoration: none;
    color: cornflowerblue;
    background-color: white;
}

header nav ul li a:hover{
    color: lightpink;
}

main{
    margin: 1em 0em;
    text-align: center;
}

h1{
    color: white;
    font-size: 4em;
    font-weight: 100;
}

h3{
    color: white;
    font-weight: 100;
    font-size: 1.5em;
}


figure{
    border-radius: 50%;
    height: 10em;
    width: 10em;
    overflow: hidden;
    margin: auto;
    margin-bottom: 1em;
}

figure img{
   width: 150%;
}

section{
    width: 90%;
    margin: auto;
    background-color: white;
    color: cornflowerblue;
}

section h2{
    width: 90%;
    margin: auto;
    font-size: 1.2em;
    padding: 0.5em;
}

section p{
    width: 90%;
    margin: auto;
    padding: 0.5em;
}

footer{
    background-color: white;
    margin-top: 28%;
}

footer p{
    color: cornflowerblue;
    font-size: 0.8em;
    text-align: center;
    width: 90%;
    margin: auto;
    padding: 0.5em;
}

@media screen and (min-width:30em){

    header nav ul{
        text-align:right;
    }
}


@media screen and (min-width:40em){    
        
    section{
        width: 32%;
        float: left;
        margin: 0.2em;
    }
    
    footer{
        clear: both;
    }
      
}


@media screen and (min-width:65em){

    main{
        text-align: left;
        margin: 1em;   
        width: 30%;
    }
    
    figure{
        float: left;
        margin: 0.7em;
    }
    
    section{
        width: 26%;
        
    }
    
    
}