/*
*
* EQUIPO
*
*/

#equipo h1 {
    font-size: 3.3rem;
    margin: 2rem 0 0.5rem 7.5%;
    color: white;
}

#equipo .halfBox form div {
    margin: 1rem auto;
    position: relative;
}

#equipo {
    width: 74%;
    margin: 5rem 0 5rem 13%;
}

#formBox {
    position: relative;
}

#formBox .halfBox{
    background-color: rgb(37,73,137);
    width: 50%;
    position: absolute;
    top: 3rem;
    margin: 0;
}

#formBox .halfBox:after{
    display: block;
    position: absolute;
    z-index: 0;
    background-image: linear-gradient(to right, rgba(21,40,76,1), rgba(21,40,76,0));
    top: 0;
    height: 100%;
    width: 100%;
    content: '';
    border-radius: 0.5rem;
}

#equipo input[type=text], #equipo input[type=tel] {
    width: 85%;
    display: block;
    background-color: white;
    border-radius: 0.2rem;
    border: 0;
    font-size: 1.1rem;
    padding: 0.5rem;
}

#equipo input[type=text]:focus, #equipo input[type=tel]:focus {
    outline: none;
}

#equipo #submitDiv {
    display: flex;
}

#equipo p {
    font-size: 0.8rem;
    margin-left: 7.5%;
}

#equipo input[type=file]{
    width: 0;
    display: none;
}

#equipo input[type=submit]{
    background-color: white;
    color: #15284c;
    position: absolute;
    right: 7.5%;
    border: 0;
    border-radius: 0.2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 1px 10px rgba(0,0,0,0.3)
}

#equipo input[type=submit]:hover {
    background-color: rgb(37,73,137);
    color: white;
}

#equipo label {
    margin-left: 7.5%;
    font-size: 1.2rem;
}

#equipo label[for=cv]{
    border:1px solid white;
    color: #15284c;
    font-weight: bold;
    background-color: white;
    border-radius: .2rem;
    padding: 0.3rem 2rem;
    margin-right: 1rem;
    cursor: pointer;
}

#equipo label[for=cv]:hover{
    background-color: rgb(37,73,137);
    border: 1px solid rgb(37,73,137);
    color: white;
}

#equipo form > div span{
    color: white;
}

#equipo img {
    width: 55%;
    margin-left: 45%;
    height: 38rem;
    min-height: 100%;
    border-radius: 0.2rem 0 0 0.2rem;
    object-fit: cover;
}

#equipo .halfBox > div {
    z-index: 2;
    margin-bottom: 3rem;
    position: relative;
}

#equipo #textEquipo {
    position: absolute;
    color: white;
    z-index:1;
    top: 11rem;
    width: 22rem;
    left: calc((50% - 22rem)/2);
}

#equipo #textEquipo h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    width: 22rem;
}

#equipo #textEquipo p {
    font-size: 1.2rem;
    margin-left: 0;
    width: 22rem;
}

#equipo #blueLayer {
    background-color: #008acf;
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
*
* FIN EQUIPO
*
*/

/*********Media Queries*********/

@media screen and (max-width: 1280px){
    #equipo {
        margin-left: 0;
        width: 100%;
    }
}

@media screen and (max-width: 800px){
    #equipo {
        margin-left: 10%;
        width: 80%;
    }

    #equipo #textEquipo p {
        width: 16rem;
    }

    #formBox .halfBox{
        width: 80%;
        margin-left: 10%;
    }

    #equipo img{
        width: 100%;
        margin-left: 0;
    }

    #equipo {
        margin-left: 5%;
        width: 90%;
    }
    #equipo #textEquipo h2, #equipo #textEquipo p {
        width: auto;
    }
    #equipo input[type=submit] {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 680px) {
    #equipo {
        width: 100%;
        margin-left: 0;
    }

    #equipo h1, #equipo form > div span{
        color: #15284c;
    }

    #equipo input[type=text], #equipo input[type=tel]{
        border: 1px solid #15284c;
    }

    #equipo label[for=cv], #equipo input[type=submit]{
        color: white;
        background-color: #15284c;
        border: 1px solid #15284c;
    }

    #formBox .halfBox:after {
        background-image: linear-gradient(to right, white, white);
    }

    #formBox .halfBox{
        margin-left: 0;
    }
}