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

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

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

#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;
    padding-top: 90px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

/* Formulario de contacto en home */
#intro .formWrapper {
    padding: 30px;
    max-width: 440px;
    background-color: rgba(255, 255, 255, .6);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#intro .formWrapper .ctaAndBenefit {
    display: flex;
    align-items: center;
    margin-bottom: .5em;
}

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

#intro .formWrapper .ctaAndBenefit .benefit {
    text-align: center;
    text-transform: uppercase;
    font-family: "NunitoSansBlack", sans-serif;
    color: #FFF;
    background-color: #d47800;
    font-size: 10px;
    line-height: 1.2em;
    padding: 5px 7px;
    border-radius: 6px;
    margin-left: 10px;
    /* transition: all .1s; */
    animation-name: backgroundColorPalette;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes backgroundColorPalette {
    0% {
        background: #af6300;
    }

    40% {
        background: #af6300;
    }

    50% {
        background: #d47800;
    }

    90% {
        background: #d47800;
    }

    100% {
        background: #af6300;
    }
}

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

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

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

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

#intro .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;
}

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

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

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

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

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

#intro .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;
}

#intro .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;
}

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

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

#intro .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;
}

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

#intro .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: 7px;
    padding: 30px;
    min-height: auto;
    margin-top: 0;
}

#waiting {
}

#error {
    background-color: #ffc1be;
}

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

#intro .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);
}

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

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

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

    #intro img {
        object-position: 50% 0;
    }

    #intro .fade {
        display: none;
        width: 100%;
        margin-top: 400px;
        height: 100px;
        background: rgb(227, 227, 227);
        background: -moz-linear-gradient(0deg, rgba(227, 227, 227, 1) 0%, rgba(227, 227, 227, 0) 100%);
        background: -webkit-linear-gradient(0deg, rgba(227, 227, 227, 1) 0%, rgba(227, 227, 227, 0) 100%);
        background: linear-gradient(0deg, rgba(227, 227, 227, 1) 0%, rgba(227, 227, 227, 0) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e3e3e3", endColorstr="#e3e3e3", 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 .pageWidth {
        position: relative;
        background: rgb(191, 216, 226);
        background: #FFF;
        background-color: var(--gris-1);
        z-index: 20;
        padding-top: 30px;
        height: auto;
        display: flex;
        align-items: center;
        padding-bottom: 30px;
        margin-top: 500px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #intro .formWrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
        background-color: transparent;
        border-radius: 0;
    }
}

@media screen and (max-width: 650px) {
    #intro img {
        object-position: 50% 0;
        height: 130%;
    }
}

/* Acerca ===================================================== */
#about {
    background-color: var(--azul-1);
    padding: clamp(2.5rem, 5.8vw, 4.4rem) 0;
    text-align: center;
    color: #FFF;
}

#about h1 {
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(2.5rem, 5.8vw, 4.4rem);
    line-height: 1em;
    margin-bottom: 0.2em;
}

#about p {
    font-family: "NunitoSansSemiBold", sans-serif;
    font-size: 29px;
    font-size: clamp(1.2rem, 2.8vw, 1.85rem);
    line-height: 1.3em;
    max-width: 950px;
    margin: 0 auto;
}

/* SENTITE SEGURO */
#security {
    min-height: 700px;
    background-size: cover;
}

.no-webp #security {
    background: url(security.jpg) no-repeat center center;
    background-size: cover;
}

.webp #security {
    background: url(security.webp) no-repeat center center;
    background-size: cover;
}

#security .pageWidth h2 {
    width: 50%;
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(2.1rem, 6.8vw, 4.4rem);
    line-height: 1em;
    padding-top: 70px;
    margin-bottom: 0.2em;
    color: var(--azul-2);
}

#security .pageWidth h2 span {
    color: var(--azul-1);
}

@media screen and (max-width: 1050px) {
    #security {
        min-height: 600px;
    }
}

@media screen and (max-width: 900px) {
    #security {
        background-position: 60% center;
    }
}

@media screen and (max-width: 800px) {
    #security {
        min-height: 500px;
    }
}

@media screen and (max-width: 650px) {
    #security {
    }

    .no-webp #security {
        background: #e6eae9 url(security_m.jpg) no-repeat center bottom;
        background-size: contain;
    }

    .webp #security {
        background: #e6eae9 url(security_m.webp) no-repeat center bottom;
        background-size: contain;
    }

    #security .pageWidth h2 {
        width: 100%;
        margin: 0 auto;
        padding-top: 40px;
    }

    #security .pageWidth h2 br {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    #security {
        min-height: 450px;
    }
}

@media screen and (max-width: 450px) {
    #security {
        min-height: 400px;
    }
}

/* SERVICIOS */
#services {
    background: #d5d6d5;
    padding-bottom: 70px;
}

#services ul {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    transform: translate(0, -60px);
}

#services ul li {
    display: flex;
    flex-direction: column;
}

#services ul li a {
    background: #FFF;
    width: 100%;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, .1);
    transition: all .3s;
}

#services ul li a:hover {
    box-shadow: 8px 8px 8px rgba(0, 0, 0, .3);
}

#services ul li a .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}

#services ul li a .wrapper img {
    width: 90px;
    width: clamp(60px, 7.4vw, 90px);
    margin-right: 10px;
}

#services ul li a .wrapper h3 {
    color: var(--azul-1);
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    line-height: 1em;
    display: flex;
    flex: 1;
}

#services ul li a p {
    color: var(--gris-4);
    font-size: clamp(0.1rem, 5.0vw, 1.2rem);
    line-height: 1.3em;
    max-width: 430px;
    margin-bottom: 1.0em;
    text-align: center;
    flex: 1;
}

#services ul li a .more {
    color: #FFF;
    background-color: var(--verde-1);
    font-family: "NunitoSansBlack", sans-serif;
    font-size: clamp(1.0rem, 4.2vw, 1.2rem);
    line-height: 1.3em;
    padding: 4px 15px;
    border-radius: 20px;
    transition: all .3s;
}

#services ul li a:hover .more {
    background-color: var(--verde-2);
}

@media screen and (max-width: 780px) {
    #services ul {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    #services ul li a .wrapper {
        width: initial;
        max-width: auto;
    }
}

@media screen and (max-width: 400px) {
    #services ul li a .wrapper {
        max-width: 100%;
    }

    #services ul li a {
        padding: 30px 10px;
    }
}
