@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url(fons_serveis.jpg);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: cover;
    width: 100%;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    margin: 0 auto;
}

.header {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: #FAFAFA;
    color: #fff;
    padding: 2rem 0 0 0;
    left: 0;
    top: 0;
    right: 0;
}

.menu {
    position: fixed;
    background: #FFFFFF;
    font-weight: 500;
    border-bottom: 3px solid #000000;
    border-top: 3px solid #000000;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 2;
}

.img-logo {
    height: 65px;
    padding: 0;
    margin-bottom: -12px;
    margin-top: -1px;

}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #323232;
    display: block;
    text-decoration: none;
    transition: text-decoration 0.1s ease-in;
    transition-delay: 8s;
}

.menu .navbar ul li a:hover {
    color: #E9363B;
}

.efectoSubrayado {
    display: inline-block;
    position: relative;
    color: #E9363B;
}

.leftToRight::after {
    content: '';
    position: absolute;
    width: 75%;
    transform: scaleX(0);
    height: 3px;
    bottom: 17px;
    left: 15px;
    background-color: #E9363B;
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

.leftToRight>.curt::after {
    width: 50%;
}

.leftToRight:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

#black {
    color: #000000;
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
    padding: 80px 0 0 0;
    background-image: url(fons.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 5px;
}

.header-txt {
    width: 100%;
    text-align: center;
    padding-bottom: 20px;
}

.header-txt h1 {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 55px;
    text-shadow: 3px 3px 3px black;
    display: flex;
    align-self: center;
    justify-content: center;
    margin: 100px 0 50px 0;
}

.header-txt p {
    font-size: 16px;
    color: #ffffff;
    text-shadow: 3px 3px 3px black;
    display: flex;
    align-self: center;
    justify-content: center;
    font-weight: bold;
    background-color: rgba(237, 228, 228, 0.1);
    border-radius: 3px;
    margin: 30px 0 40px 0;
}

.header-img {
    width: 100%;
}

.btn-1 {
    display: inline-block;
    padding: 11px 25px;
    background-color: #E9363B;
    color: #FFFFFF;
    border-radius: 15px;
    margin: 25px 45% 65px 45%;
    align-items: center;
    justify-content: space-between;
}

.entrada {
    color: #FFFFFF;
    background-color: #E9363B;
    margin: 0;
    padding: 20px;
    font-style: italic;
    width: 100%;
    display: flex;
    align-self: center;
    justify-content: center;
}

.about {
    display: flex;
    align-self: center;
    padding: 110px 0 100px 0;
    background-color: #FFFFFF;
    background-size: 100% 100%;
}

.about-img {
    display: flex;
    margin-left: 100px;
}

.about-img img {
    border-radius: 15px;
}

.about-txt {
    width: 100%;
    margin-right: 210px;
    padding: 0px 0px 0px 10px;
    text-align: justify;
}

.about-txt h2 {
    color: #323232;
    font-size: 30px;

}

#italic {
    font-style: italic;
    padding: 0px 0px 20px 0px;
}

.about-txt p {
    font-size: 16px;
    color: #818181;
}

span {
    font-weight: bold;
}

.servicios {
    padding: 110px 0 100px 0;
    text-align: center;

}

.servicios h2 {
    color: #E9363B;
    text-shadow: 3px 3px 3px #000000;
    font-size: 50px;
    margin-bottom: 15px;
    margin-top: 65px;
}

.servicios-content {
    margin-top: 95px;
    display: flex;
    justify-content: space-between;
    width: 85%;
    max-width: 1100px;
}

.servicio-1 {
    padding: 25px;
    flex-basis: calc(25% - 30px);
    border-radius: 5px;
    background-color: rgba(252, 249, 249, 0.9);
    border: 3px solid #E9363B;
    border-radius: 5px;
}

.descripcion {
    color: #E9363B;
    text-shadow: 3px 3px 3px #000000;
    font-size: 50px;
    margin-bottom: 10px;
    margin-top: 35px;
}

.descripcion a {
    text-decoration: none;
    color: #E9363B;
    text-shadow: 3px 3px 3px #000000;
}

.descripcion a:hover {
    color: #fff;
}

.titulo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.servicio-descripcion {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 45px 25px;
    flex-basis: calc(75% - 20px);
    border-radius: 5px;
    background-color: rgba(252, 249, 249, 0.9);
    border: 3px solid #E9363B;
    border-radius: 5px;
}

.alturaInforme {
    padding-bottom: 150px;
}

.servicio-descripcion li:before {
    content: '✓ ';
    color: #E9363B;
    font-weight: 1000;
}

.servicio-1:hover {
    transform: scale(0.99);
    opacity: 1;
}

.servicio-1,
.titulo:hover {
    transform: none;
}

.servicio-1 i {
    font-size: 30px;
    color: #E9363B;
    margin-bottom: 15px;
}

.servicio-1 h3 {
    font-size: 20px;
    color: #323232;
}

/*CONTACTO*/

.contacte {
    padding: 70px 0 0 0;
    background-color: #FFFFFF;
    z-index: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "form datos"
}

.formulario {
    grid-area: form;
    padding: 15px;
    margin-left: 250px;
    margin-bottom: 35px;
    margin-top: 20px;
    margin-right: 35px;
    width: 400px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 3px solid #E9363B;
    border-radius: 5px;
    z-index: 0;
}

.datos {
    grid: datos;
    grid-template-rows: auto;
    grid-template-areas: "adreca"
        "mapa";

}

.adreca {
    grid-area: adreca;


    height: 200px;


}

.mapa {
    grid-area: mapa;
    margin-bottom: 35px;

}

h2 {
    font-size: 20px;
    color: #323232;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-top: -15px;
}

.adreca h2 {
    font-size: 20px;
    color: #323232;
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 35px;
}

.adreca>p>a {
    color: #E9363B;
}

.form h2 {
    font-size: 25px;
    color: #323232;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-top: -15px;

}

.input-container {
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.input-container>i {
    padding: 10px;
    border-radius: 50%;
    background-color: #E9363B;
    color: #FFFFFF;
    position: absolute;
    font-size: 20px;
    top: 2px;
    left: 40px;
}

.input-container>input,
textarea {
    padding: 10px 15px 17px 65px;
    width: 80%;
    margin-bottom: 25px;
    border-radius: 35px;
    background-color: transparent;
    border: 2px solid #E9363B;
    font-size: 12px;
    outline: none;
    color: #323232;
}

textarea {
    font-family: 'Poppins', sans-serif;
    height: 150px;
}

::placeholder {
    color: #a0a0a0;
    font-size: 16px;
}

input[type='checkbox'] {
    accent-color: #E9363B;
}

.aviso {
    margin-bottom: 10px;
}


.input.error {
    border: 4px solid #ABAB2E;
}

.checkbox__input.error+.checkbox__label {
    color: red;
    font-weight: bold;
    text-transform: uppercase;
    border: 3px solid #ABAB2E;
}

.btn {
    background-color: #E9363B;
    padding: 17px 25px;
    width: 80%;
    border: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    transform: scale(0.99);
    opacity: 1;
}

.footer {
    padding: 20px;
    background-color: #EFEFEF;
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
}

.altura {
    height: 95vh;
}

.link ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link ul li {
    margin-right: 50px;
}

.link ul li a {
    color: #323232;
    font-size: 17px;
    font-weight: 500;
}

.link ul li a:hover {
    color: #E9363B;
}

/*COOKIES*/
.aviso-cookies {
    display: none;
    background: #fff;
    padding: 20px;
    width: calc(100% - 40px);
    max-width: 300px;
    line-height: 150%;
    border-radius: 10px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    padding-top: 60px;
    box-shadow: 0px 2px 20px 10px rgba(222, 222, 222, .25);
    text-align: center;
}

.aviso-cookies.activo {
    display: block;
}

.aviso-cookies .galleta {
    max-width: 100px;
    position: absolute;
    top: -50px;
    left: calc(50% - 50px);
}

.aviso-cookies .titulo,
.aviso-cookies .parrafo {
    margin-bottom: 15px;
}

.aviso-cookies .boton {
    width: 100%;
    background: #595959;
    border: none;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 15px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease all;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.aviso-cookies .boton:hover {
    background: #000;
}

.aviso-cookies .enlace {
    color: #4DBFFF;
    text-decoration: none;
    font-size: 14px;
}

.aviso-cookies .enlace:hover {
    text-decoration: underline;
}

.fondo-aviso-cookies {
    display: none;
    background: rgba(0, 0, 0, .20);
    position: fixed;
    z-index: 99;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.fondo-aviso-cookies.activo {
    display: block;
}

@media (max-width: 1350px) {
    .about {
        flex-direction: column;
        padding: 110px 90px 100px 90px;
    }

    .about-img {
        width: 100%;
        order: 2;
        margin-left: 0;
    }

    .about-img img {
        width: 100%;
    }

    .about-txt {
        width: 100%;
        margin-left: 0;
        text-align: justify;
        margin-bottom: 25px;
    }

    .contacte {
        padding: 110px 50px 100px 50px;
        margin-left: 0;
        margin-right: 0;
        /*display: flex;
        flex-direction: column;*/
    }

    .formulario {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        /*order: 1;*/

    }

    .datos {
        /*order: 2;*/
        justify-content: center;
        display: flex;
        flex-direction: column;
        padding-left: 15px;
    }

    .adreca {
        margin-right: 0;
        padding-top: 0;
        padding-right: 30px;
        order: 1;
    }

    .mapa {
        margin: 0;
        padding-top: 10px;
        display: flex;
        order: 2;
    }
}

@media (max-width:991px) {
    .menu {
        padding: 20px;
    }

    .menu label {
        display: initial;
    }

    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        display: none;
    }

    .menu .navbar ul li {
        width: 100%;
    }

    #menu:checked~.navbar {
        display: initial;
    }

    .header {
        min-height: 0vh;
        padding: 80px 30px 50px 30px;
    }

    .header-content {
        flex-direction: column;
    }

    .header-txt {
        text-align: center;
        width: 100%;
        margin-bottom: 25px;
    }

    .header-txt h1 {
        font-size: 25px;

    }

    .header-img {
        width: 100%;
    }

    .header-img img {
        width: 100%;
    }

    .btn-1 {
        justify-content: center;
        margin: 25px 0 65px 0;
    }

    .about {
        padding: 30px;
        flex-direction: column;
        padding-top: 110px;
        text-align: center;
    }

    .about-img {
        width: 100%;
        order: 2;
        padding: 30px 70px;
        margin-left: 0;
    }

    .about-img img {
        width: 100%;
    }

    .about-txt {
        width: 100%;
        margin-left: 0;
        text-align: center;
        margin-bottom: 25px;
        text-align: justify;
    }

    .servicios {
        padding: 30px;
    }

    .servicios h2 {
        font-size: 35px;
    }

    .servicios-content {
        margin-top: 25px;
        flex-direction: column;
    }

    .servicio-1 {
        margin-bottom: 20px;
    }

    main.servicios.altura {
        margin-top: 100px;
    }

    .contacte {
        padding: 130px 50px 0 50px;
        margin-right: 0;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .formulario {
        width: 100%;
        padding: 20px 0px;
        margin: 10px 0px;
    }

    .datos {
        order: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0px;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .adreca {
        margin: 0px 0px 15px 0px;
        padding: 0;
        order: 3;
        text-align: center;
    }

    .mapa {
        margin: 0;
        padding: 0;
        padding-bottom: 30px;
        order: 4;
        display: flex;
        justify-content: center;
    }

    form {
        width: 100%;
    }

    .footer {
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .link ul {
        flex-direction: column;
    }

    .link ul li {
        margin: 0 0 15px 0;
    }
}