html {
    scroll-behavior: smooth;
}

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

body{
    font-family: 'Montserrat', sans-serif;
}

a{
    text-decoration: none;
}

.padre{
    display:flex;
    flex-flow: column nowrap;

}

.header{
    background: url(./images/1.jpg);
    background-position: center;
    background-attachment: contain;
    background-size: cover;
    display: flex;
    flex-flow: column nowrap;
}

    .menu{
        margin: 0;
        background: rgba(0,0,0,.3);
        display: flex;
        flex-flow: row nowrap;
        height: 60px;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,.5);
    }

        .logo{
            flex: 1 1 auto;
        }
            .logo a{
                color:#000;
                font-size: 25px;
            }

            .logo img{
                width: 15px;
                height: 35px;
                margin: 0 10px;
                vertical-align: middle;
            }

        .nav{
            flex: 5 1 auto;
        }
            .nav a{
                color:#000;
                text-transform: uppercase;
                padding: 0 10px;
            }
            .nav a:hover{
                color:#5f5f5f;
            }
            .nav i{
                padding-right: 5px;
            }

        .social{
            display: flex;
            flex: 1 1 auto;
        }
            .social a{
                    font-size: 22px;
                    color: #000;
                    padding: 0 5px;
            }
            .social a:hover{
                color:#5f5f5f;
            }
    
    .texto-principal{
        height: 580px;
        display: flex;
        align-items: center;
    }
        h1{
            font-family: 'Lora', serif;
            font-size: 2.2em;
            text-shadow: 1px 1px 2px#fff;
            color: #000;
            font-weight: 300;
            text-align: center;
            line-height: 1.6;

        }

.section{
    display: flex; 
    background-color: #f7f7f7;   
}

.section h4{
    background: #000;
    color:#fff;
    padding: 10px;
    text-transform: uppercase;
}

    .articulos{
        display: flex;    
        flex: 2 1 75%;
        flex-flow: row wrap;
    }
        .article{
            flex: 1 1 45%;
            color:#444;
            font-size: 13px;
            letter-spacing: 1px;
            margin:10px 10px 0px 0px;
            background: #ececec;
        }
        .article img{
            width: 100%;    
        }
        .article a{
            color:#fff;
            font-size: 13px;
            padding:  10px;
            background: #000;
            margin: 10px 0;
            display: inline-block;

        }
        .article a:hover{
            background: #546cc3;            
        }

        .article h3{
            color:#f7f7f7;
            font-size: 13px;
            padding: 10px 0;
            margin-top: -80px;
            margin-left: 10px;
        }

        .article h2{
            font-size: 2em;
            text-transform: uppercase;
            padding: 0 0 10px 0;
            color:#f7f7f7;
            margin: 0 10px;

        }

    
    .aside{
            flex: 1 1 auto;
            margin: 10px 0 10px 0;
    }
    .aside img{
        width: 100%;
    }

.contacto{
    display: flex;
    flex: 1 1 auto;
    margin: 10px 0;
    background-color: #f7f7f7;
}

    .contacto h5{
        color: #000;
        font-size: 1.4em;
        padding: 10px 0;
        margin-top: 10px;
        text-transform: uppercase;             
    }

    .contacto p{
        color: #444;
        padding-left: 22px;
        margin-top: -10px;
    }

        .generales{
            margin: 0 10px;
            flex: 1 1 50%;
        }

        .generales i{
            color: #546cc3;
            padding-right: 5px;
        }

        .formulario{
            margin: 0 10px;
            flex: 1 1 50%;
        }
        .formulario h5{
        text-align: center;
        }

        .form-group{
            padding: 5px 0px;
        }

        .nombre-completo{
            display: flex;
        }
        .nombre{
            flex: 1 1 auto;
        }
        .apellido{
            flex:  5 1 auto;
            margin-left: 5px;
        }

.footer{
    background-color: #000;     
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
    .pie{
        text-align: center;
    }
    .pie a{
        color:#fff;
        font-size: 11px;
        text-transform: uppercase;
        padding: 0 10px;
        letter-spacing: 2px;
    }

@media all and (max-width: 800px){

    .section{
        flex-direction: column;
    }
    .menu{
        flex-direction: column;
        height: auto;
    }
    .aside{
            display: flex;
            justify-content: center;
    }
    .nombre-completo{
        flex-direction: column;
    }
    .apellido{
            margin-left: 0;
    }   
}
    
@media all and (max-width: 600px){
    .articulos{
        flex-direction: column;
    }    
    .texto-principal{
        font-size: 20px;
    }
    .contacto{
        flex-direction: column;
        
    }
}

@media all and (max-width: 400px){
    .aside{
        flex-direction: column;
    } 

    .texto-principal{
        font-size: 15px;
    }   
    .contacto p{
        font-size: 13px;
}

}
