:root{
    --primary-color: #0C9E96;
    --secondary-color: #003664;
    --grey-color: #f3f3f3;
    --text-color: #000;
    --text-secondary-color: #fff;
}

*{
    margin: 0;
}

h1, h2, h3, h4, h5, h6, label{
    font-family: 'Futura medium', sans-serif;
}

p, a, li, span, input, textarea, button{
    font-family: 'Myriad Pro', sans-serif;
}

#contacto{
    overflow-x: hidden;
    margin-top: 100px;
}

#contacto .cabecera{
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding: 2%; */
    background-color: #F4F4F4;
    background-image: url(https://www.keiken-engineering.com/uploads/filigrana-fondo-medios-keiken.png);
    background-repeat: no-repeat;
    background-size: 600px;
    background-position: 200px -50px;
    align-items: center;
    min-height: 30vh;
}

#contacto .cabecera h1{
    font-size: 2.5em;
    color: #003664;
    margin-bottom: 1rem;
    text-align: center;
    line-height: normal;
}

#contacto .banner{
    display: flex;
    justify-content: center;
    align-items:  center;
    background-color: #eeeeee;
    padding: 5%;
    gap: 1rem;
}

#contacto .banner .sede{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:  center;
    /* background-color: rgb(128, 97, 240); */
    background-color: #003664;
    max-width: 400px;
    border-radius: 1em;
    box-shadow: 5px 5px 10px rgba(0,0,0,.2);
    width: 50%;
}

#contacto .banner .sede .superior{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:  center;
    padding: 2rem;
    position: relative;
    min-height: 200px;
    overflow: hidden;
    width: 100%;
    max-width: 335px;
}

#contacto .banner .sede .superior p{
    text-align: center;
    margin-bottom: 5px;
    z-index: 1;
    color: white;
}

#contacto .banner .sede .superior p a{
    text-align: center;
    margin-bottom: 5px;
    z-index: 1;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

#contacto .banner .sede .superior img{
    position: absolute;
    z-index: 0;
    height: 450px;
    width: 100%;
    object-fit: cover;
    top: 0;
    border-radius: 1em;
}

#contacto .banner .sede .inferior{
    width: 100%;
    height: 200px;
}

#contacto .banner .sede .inferior iframe{
    width: 100%;
    border-radius: 0 0 1em 1em;
}

#contacto .equipo{
    padding: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#contacto .equipo h2,
#contacto .contacto h3 {
    font-size: 32px;
    color: #003664;
    width: fit-content;
}
#contacto .equipo h2::after,
#contacto .contacto h3::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background-color: var(--primary-color);
    margin: 1rem 25%;
}
#contacto .contacto h3::after {
    margin: 1rem 0;
}

#contacto .equipo .caixa_personal{
    max-width: 1200px;
    padding: 2%;
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

#contacto .gent{
    position: relative;
    border-radius: .5em;
    box-shadow: 5px 5px 10px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
}

#contacto .gent img{
    border-radius: .5em .5em 0 0;
    width: 100%;
    display: block;
}

#contacto .gent > a{
    position: absolute;
    right: -12px;
    top: 62%;
    transition: ease-in-out all 0.2s;
}
#contacto .gent > a:hover{
    right: -2px;
}

#contacto .gent .inferior{
    background-color: #eeeeee;
    padding: 1rem;
    border-radius: 0 0 .5em .5em;
    height: 100%;
}

#contacto .gent .inferior p{
    max-width: 95%;
}

#contacto .gent .inferior a{
    color: #000;
    text-decoration: none;
}

#contacto .gent .inferior p.rol{
    font-style: italic;
    font-weight: 600;
    margin: .5rem 0;
}
#contacto .contacto {
    display: flex;
    width: 100%;
    padding: 5% 10%;
    background: #eeeeee;
    box-sizing: border-box;
}
#contacto .contacto > div {
    width: 50%;
}
#contacto .contacto .contactos > div a {
    display: flex;
    align-items: center;
    color: #090909;
    font-family: 'Myriad Pro Regular';
    font-size: 18px;
}
#contacto .contacto .contactos > div a img {
    margin-right: 10px;
}
#contacto .contacto .caixa_personal{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #eeeeee;
    /* padding: 5%; */
    position: relative;
}

#contacto .contacto .caixa_personal > div:nth-child(2),
#contacto .contacto .caixa_personal > div:nth-child(3){
    display: none;
}

#contacto .caixa_form{
    max-width: 900px;
    width: 100%;
}

#contacto .caixa_form form{
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

#contacto .caixa_form .no_actiu,
#contacto .caixa_form .etiqueta,
#contacto .caixa_form .etiqueta_textarea{
    display: none;
}

#contacto .caixa_form form input[type="mail"],
#contacto .caixa_form form input[type="text"],
#contacto .caixa_form form input[type="tel"]
{
    width: calc(100% - 1rem);
    height: 40px;
    padding: 0 0 0 1rem;
    margin-bottom: .5rem;
    border-radius: .5em;
    border: 1px solid #003664;
    outline: 0;
}

#contacto .caixa_form form textarea{
    width: calc(100% - 2rem);
    height: 40px;
    padding: 1rem;
    border-radius: .5em;
    border: 1px solid #003664;
    outline: 0;
    min-height: 15vh;
    margin-bottom: 1rem;
}

#contacto .caixa_form form input[type="submit"]{
    background-color: #0C9E96;
    color: white;
    outline: 0;
    border: 2px solid #0C9E96;
    padding: 1rem 2rem;
    margin-top: 1rem;
    border-radius: 5em;
    transition: all .3s ease;
}

#contacto .caixa_form form input[type="submit"]:hover{
    background-color: transparent;
    color: #0C9E96;
    cursor: pointer;
}


@media(max-width: 768px){
    #contacto{
        margin-top: 65px;
    }
    #contacto .banner {
        flex-direction: column;
    }
    #contacto .equipo .caixa_personal {
        max-width: 100%;
    }
    #contacto .gent > a {
        top: 64%;
    }
    #contacto .contacto {
        flex-direction: column;
        padding: 10%;
    }
    #contacto .contacto > div {
        width: 100%;
    }
    #contacto .contacto h3 {
        line-height: normal;
    }
    #contacto .caixa_form form {
        padding: 0;
        margin-top: 40px;
    }
}

/*For Gsap*/
#contacto .cabecera h1,
#contacto .cabecera p,
#contacto .banner .sede,
#contacto .equipo h2,
#contacto .equipo .gent,
#contacto .contacto {
    opacity: 0;
}