@charset "utf-8";

/*reglas generales*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: -webkit-fill-available;
}

header {
    background-color: #669051;
    background-position: center;

}

/*primera parte para el celular - mobile first*/
#imagen{display: flex;
    justify-content: center; }

.logo{
    max-width: 5em;
    height: auto;
    padding: 0.5em; }

header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    margin-right: 2em;
    margin-left: 2em;
    font-size: 0.8em;

}

header nav ul li {
    display: inline-block;
    margin-top: 1.5em;

}

header nav ul li a {
    color: white;
    align-items: center;
    font-size: 1em;
    font-family: sans-serif;
    text-align: center;
    display: flex;
    justify-content: space-between;
    text-decoration-line: none;
    margin-bottom: 1em;
}

header nav ul li a:hover {
    text-decoration-line: none;
    color: white;
   
}

body {
    background-color: #E2F2B1;
}


h1 { 
    font-family: sans-serif;
    margin-top: 1em;
    color: black;
    height: 1.6em;
    width: 12em;
    border-bottom: 5px solid #F9B55A;
    padding: 0 0 0 0.9em;
    font-size: 1.5em
}

.contacto{
    padding: 1.5em;
    margin: auto;
    
}

.contacto p{
    font-family: sans-serif;
    font-size: 1em;
    padding-bottom: 0.9em;
    color: black;
}

.contacto .texto {
    font-style: italic;
    padding-top: 0em;
    font-size: 0.8em;
    font-weight: bolder;
}

.formulario{
    width: 100%;
    padding: 0.7em;
    margin-bottom: 0.9em;;
    border: 1em;
    font-size: 1em;
    color: black;
}

.msj{
    width: 100%;
    padding: 0.7em;
    margin-bottom: 0.9em;
    border: 1em;
    font-size: 1em;
    color: black;
    height: 8em;
}

.contacto .botonenviar{
    background-color: #669051;
    font-size: 1em;
    border-radius: 2em;
    color: white;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 1em;
    height: 2.5em;
    width: 30%;
}

.contacto .botonenviar:hover {
    background-color: #F9B55A;
    color: black;
    font-weight: bold;
}



footer { background-color: #669051;}

footer p {
    font-size: 0.8em;
    padding: 1em;
    color: white;
    font-family: sans-serif;
    text-align: center;
}



@media screen and (min-width:750px) {

    header nav ul {
        min-height: -webkit-fill-available;
        margin: auto;
        max-width: 50em;
        font-size: 1em;
    }

    .encabezado nav {
        margin: auto;
        margin-top: 1em;
         }
    
    .encabezado p {
        margin-left: 6em;
        margin-right: 6em;
        font-size: 1.2em;
        padding-top: 0em;
        margin-top: 0em;
    }
    
    h1 {
        font-size: 2.3em;
        margin-bottom: 0.5em
    }

    .encabezado { padding: 7em; }
    
    main div p { 
    max-width: 50em;
    margin: auto;
    margin-top: 2em;
    }
        
    body { 
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        justify-content: space-between;
    }
    
    main { 
        flex-grow: 1;
        max-width: 50em;
        margin: auto;
    }
    
    footer p { 
        max-width: 70em;
        margin: auto;
   }