/* Intro ================================================================== */
#intro {
    height: 600px;
    position: relative;
    z-index: 0;
}

#intro picture {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

#intro img.back {
    width: 100%;
    height: 100%;
    object-position: 100% 0;
    object-fit: cover;
}

#intro img.icon {
    width: 100%;
    max-width: 140px;
    height: auto;
    object-position: 100% 50%;
    object-fit: cover;
    margin-left: -14px;
}

#intro h1 {
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(2.1rem, 6.8vw, 3.6rem);
    line-height: 1em;
    color: var(--azul-1);
    max-width: 500px;
    margin:
}

#intro .fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60%;
    background: rgb(191, 216, 226);
    background: -moz-linear-gradient(90deg, rgba(191, 216, 226, 1) 42%, rgba(191, 216, 226, 0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(191, 216, 226, 1) 42%, rgba(191, 216, 226, 0) 100%);
    background: linear-gradient(90deg, rgba(191, 216, 226, 1) 42%, rgba(191, 216, 226, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#bfd8e2", endColorstr="#bfd8e2", GradientType=1);
    z-index: 1;
}

#intro .pageWidth {
    position: relative;
    z-index: 20;
    padding-top: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#intro .pageWidth .formWrapper {
    padding-top: 150px;
}

/* Responsive - - - - - - - - - - - - - - - - - - - - - - */
@media screen and (max-width: 1100px) {
    #intro img.back {
        object-position: 50% 0;
    }
}

@media screen and (max-width: 750px) {
    #intro {
        display: flex;
        flex-direction: column-reverse;
        height: auto;
    }

    #intro img.back {
        width: 100%;
        height: 100%;
        object-position: 100% 0%;
        object-fit: cover;
    }

    #intro .fade {
        display: none;
        width: 100%;
        margin-top: 400px;
        height: 100px;
        background: rgb(191, 216, 226);
        background: -moz-linear-gradient(180deg, rgba(191, 216, 226, 0) 0%, rgba(191, 216, 226, 1) 100%);
        background: -webkit-linear-gradient(180deg, rgba(191, 216, 226, 0) 0%, rgba(191, 216, 226, 1) 100%);
        background: linear-gradient(180deg, rgba(191, 216, 226, 0) 0%, rgba(191, 216, 226, 1) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#bfd8e2", endColorstr="#bfd8e2", GradientType=1);
    }

    #intro h1 {
        max-width: 100%;
        text-align: center;
    }

    #intro picture {
        position: absolute;
        top: 0;
        bottom: auto;
        right: 0;
        left: 0;
        height: 500px;
        overflow: hidden;
        z-index: 0;
    }

    #intro img.icon {
        margin-left: 0;
    }

    #intro .pageWidth {
        position: relative;
        background: rgb(191, 216, 226);
        z-index: 20;
        padding-top: 0;
        height: auto;
        display: flex;
        align-items: center;
        padding-bottom: 30px;
        margin-top: 500px;
        padding-top: 30px;
    }
}

@media screen and (max-width: 580px) {
    #intro .fade {
        margin-top: 300px;
        height: 100px;
    }

    #intro picture {
        height: 400px;
    }

    #intro .pageWidth {
        margin-top: 400px;
    }

    #intro img.back {
        object-position: 50% 0%;
        height: 150%;
    }
}

@media screen and (max-width: 460px) {
    #intro .fade {
        margin-top: 300px;
        height: 50px;
    }

    #intro picture {
        height: 350px;
    }

    #intro .pageWidth {
        margin-top: 350px;
    }

    #intro img.back {
        object-position: 50% 0%;
        height: 200%;
    }
}

/* Formulario de contacto */
#formSection {
    padding: clamp(2.5rem, 5.8vw, 4.4rem) 0;
}

#formSection .pageWidth {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    column-gap: 20px;
}

#formSection .contactData {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 20px;
}

#formSection .contactData a {
    /* margin-left: 50px; */
    color: #000;
    color: var(--gris-4);
    font-family: "NunitoSansSemiBold", sans-serif;
    font-size: clamp(0.9rem, 2.9vw, 1.4rem);
}

#formSection .contactData a:hover {
    color: var(--verde-1);
}

#formSection .contactData a.phone span {
    font-size: .7em;
}

#formSection .contactData a.phone {
    background: url(../styles/img/icon_phone.svg) no-repeat 0 3px;
    background-size: 21px auto;
    padding-left: 29px;
}

#formSection .contactData a.mail {
    background: url(../styles/img/icon_mail.svg) no-repeat 0 8px;
    background-size: 25px auto;
    padding-left: 29px;
}

#formSection .contactData a.location {
    background: url(../styles/img/icon_location.svg) no-repeat 3px 0;
    background-size: 16px auto;
    padding-left: 29px;
    max-width: 230px;
}

#formSection .formWrapper {
    background-color: rgba(255, 255, 255, .6);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#formSection .formWrapper h2 {
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(1.3rem, 4.5vw, 1.7rem);
    line-height: 1em;
    color: var(--azul-2);
}

#formSection .formWrapper p {
    font-size: 17px;
    margin: 0 10px 0 0;
    font-family: "NunitoSansSemiBold", sans-serif;
}

#formSection .formWrapper .selectWrapper {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--gris-4);
    padding-top: 10px;
}

#formSection .formWrapper .selectWrapper label {
    width: 100%;
}

#formSection .formWrapper .inputWrapper {
    position: relative;
    width: 100%;
}

#formSection .formWrapper .selectWrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* remove default arrow */
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    padding: 7px 32px 7px 10px;
    /* flex: 1; */
    border: 1px solid #b3bcc4;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg baseProfile='tiny' version='1.2' viewBox='0 0 54.854 54.854' xml:space='preserve' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m27.427 36.506c-0.55 0-1.1-0.181-1.555-0.542l-16.566-13.158c-1.082-0.858-1.262-2.431-0.403-3.512 0.858-1.081 2.433-1.262 3.512-0.403l15.012 11.922 15.011-11.922c1.081-0.859 2.652-0.678 3.513 0.403 0.858 1.081 0.678 2.654-0.403 3.512l-16.565 13.158c-0.455 0.361-1.006 0.542-1.556 0.542z' fill='%23b3bcc4'/%3E%3Crect width='54.854' height='54.854' fill='none'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: calc(100% - 7px) 8px;
    background-size: 20px;
    position: relative;
}

#formSection .formWrapper #waiting {
    text-align: center;
    font-weight: 300;
}

#formSection .formWrapper #waiting img {
    margin-bottom: 10px;
}

#formSection .formWrapper #waiting {
    text-align: center;
    font-weight: 300;
}

#formSection .formWrapper #waiting span {
    font-family: "NunitoSansBlack", sans-serif;
    color: #8d8d8d;
    background: transparent;
    font-size: 15px;
}

#formSection .formWrapper #waiting img {
    margin-bottom: 0;
    object-position: center;
    object-fit: contain;
    width: 40px;
    height: 40px;
    margin-top: 20px;
}

#formSection .formWrapper input[type="text"] {
    font-family: "NunitoSansRegular", Arial, sans-serif;
    color: var(--gris-4);
    background: transparent;
    font-size: 20px;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--gris-3);
    margin-top: 24px;
    left: 0;
    opacity: 1;
    padding: 2px 0 4px 0;
}

#formSection .formWrapper .floatingLabel {
    position: absolute;
    display: block;
    pointer-events: none;
    left: 0;
    margin-left: 0;
    top: 26px;
    transition: 0.1s ease all;
    transform-origin: 0 0;
    color: var(--gris-5);
    color: #8d8d8d;
    font-family: "NunitoSansBlack", sans-serif;
    font-size: 17px;
    line-height: 1.2em;
    margin-bottom: 0px;
    margin-top: 4px;
}

#formSection .formWrapper input:focus ~ .floatingLabel, #formSection .formWrapper input:not(:placeholder-shown) ~ .floatingLabel {
    top: 7px;
    left: 0;
    transform: scale(0.8) !important;
}

#formSection .formWrapper .formWrapper .projectWrapper {
    margin-top: 12px;
    width: 100%;
}

#formSection .formWrapper .formWrapper .projectWrapper label {
    margin-bottom: 5px;
    display: inline-block;
    color: var(--gris-5);
    font-size: 15px;
}

::-webkit-input-placeholder {
    color: #b3b3b3;
}

::-moz-placeholder {
    color: #b3b3b3;
}

:-ms-input-placeholder {
    color: #b3b3b3;
}

:-moz-placeholder {
    color: #b3b3b3;
}

#formSection .formWrapper label:first-child {
    margin-top: 14px;
}

#formSection .formWrapper label.error {
    color: #c94945;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 0px;
    display: inline-block;
}

#contact .pageWidth #formData form {
    z-index: 1;
}

#success, #error, #waiting {
    display: none;
}

#success, #error, #waiting {
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    z-index: 1;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    padding: 30px;
    min-height: auto;
    margin-top: 0;
}

#waiting {
}

#error {
    background-color: #ffc1be;
}

#success {
    /* background-color: #00A; */
}

#formSection .formWrapper input[type="submit"] {
    margin-top: 20px;
    padding: 7px 20px 6px 20px;
    border-radius: 20px;
    display: inline-block;
    color: #ffffff;
    box-sizing: border-box;
    font-weight: bold;
    border: none;
    transition: all 0.2s;
    font-size: 18px;
    color: #fff;
    transition: all 0.2s ease-in;
    background: var(--verde-1);
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(0.1rem, 5.0vw, 1.1rem);
}

#formSection .formWrapper input[type="submit"]:hover {
    background: var(--verde-2);
    cursor: pointer;
}

/* Responsive - - - - - - - - - - - - - - - - - - - - - - */
@media screen and (max-width: 850px) {
    #formSection .pageWidth {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 50px;
    }
}

@media screen and (max-width: 600px) {
    #formSection .contactData a.phone {
        background: url(../styles/img/icon_phone.svg) no-repeat 0 3px;
        background-size: 16px auto;
        padding-left: 25px;
    }

    #formSection .contactData a.mail {
        background: url(../styles/img/icon_mail.svg) no-repeat 0 7px;
        background-size: 18px auto;
        padding-left: 25px;
    }

    #formSection .contactData a.location {
        background: url(../styles/img/icon_location.svg) no-repeat 3px 1px;
        background-size: 13px auto;
        padding-left: 25px;
        max-width: 230px;
    }
}

#map iframe {
    width: 100%;
    height: 600px;
}
