@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
}

img{
    width: 1.5rem;
}

.contenedor{
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
    "parte1"
    "parte2"
    "parte3"
    "parte4"
    "parte5";
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}


.grupo1 {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    grid-area: parte1;
    background-image: url(../IMG/oficina-2.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    height: 65vh;
    overflow: hidden; 
}

.grupo1::before {
    content: "";
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.68; 
    z-index: 1; 
}

.nav{
    display: none;
}

.nav2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.nav, .nav2, .texto1{
    position: relative;
    z-index: 2;
}

.nav-movil{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0.9rem;
}

.logo-movil{
    width: 9rem;
}

.menu-movil {
    display: none; 
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 100vh;
    opacity: 0.9;
    z-index: 999;
}

.menu-movil.activo {
    display: flex; 
}


.equis{
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    height: 1.5rem;
}

.movil{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 1.8rem;
    height: 100vh;
}

.submenu-movil{
    list-style: none;
}

.sub-movil{
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1.3rem, 3vw + 1rem, 1.7rem);
    color: #1c1c1c;
}

.texto1{
    text-align: center;
    color: #fff;
    position: relative;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 50%);
}

.titulo{
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw + 0.7rem, 2.1rem);
}

.grupo2{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    font-family: 'Poppins';
    grid-area: parte2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.2rem 1.5rem;
}


.titulo-formulario{
    padding: 0 2rem 0 0;
    font-size: clamp(1.2rem, 2vw + 0.6rem, 1.5rem);
    font-weight: 600;
    text-align: left;
    max-width: 500px;
    margin-bottom: 1rem;
}

.bloque{
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
}

.label{
    color: #747070;
    font-size: 1rem;
}

.input{
    display: block;
    width: 100%;
    max-width: 33rem;
    padding: 0.55rem 0.7rem;
    outline: none;
    border-radius: 0.3rem;
    border: 1.5px solid #ccc;
    margin-top: 0.3rem;
}

.error {
    margin: 0.3rem 0 0 0;
    color: red;
    font-size: 0.8rem;
}

.mensaje{
    display: block;
    width: 100%;
    max-width: 33rem;
    height: 15rem;
    margin-top: 0.3rem;
    border: 1.5px solid #ccc;
    padding: 0.55rem 0.7rem;
    resize: none;
}

.b1{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 0.5rem;
}

.acep{
    font-size: 0.8rem;
}

.enviar{
    background-color: #fff;
    outline: none;
    border: 2px solid #ccc;
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    color: #242424;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 1.3rem;
}

.enviar:hover{
    border: 2px solid #000;
}

.parrafo{
    margin-top: 1.7rem;
    color: #242424c0;
}

.enlace{
    text-decoration: none;
    color: #242424c0;
    font-weight: 700;
    cursor: pointer;
}

.mapa-contacto{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
}

.mapa {
    width: 100%;
    height: auto;
    max-height: 40rem;
}


.grupo3{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    grid-area: parte3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    column-gap: 3rem;
    background-color: #242424;
    padding: 1.5rem;
}
.footer{
    width: 250px;
    color: #fff;
    margin: 1rem 0;
}

.foo{
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
}

.foo:hover,
.foo:hover .span,
.span:hover,
.span:hover .foo {
    color: #7c7a7a;
    font-weight: 0;
    cursor: pointer;
}

.subfooter{
    list-style: none;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.foo2{
    color: #ffffffc2;
}

.titulo-footer{
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}


.span{
    font-family: 'Poppins';
    color: #fffffff7;
    font-weight: 200;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.in{
    font-family: 'Poppins', 'Serif';
    font-weight: 900;
    font-size: 1.5rem;
    color: #707070;
}

.grupo4{
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    grid-area: parte4;
    background-color: #1c1c1c;
    padding: 2rem;
    color: #626060;
    text-align: center;
    font-family: 'Poppins';
    font-size: 0.85rem;
    border: none;
    cursor: default;
}

@media(min-width: 760px){

    .grupo1{
        padding: 1.4rem 2rem; 
    }
}

@media (min-width: 835px) {

    .grupo1{
        height: 72vh;
    }

    .logo{
        width: 9rem;
    }

    .nav {
        font-family: 'Poppins', sans-serif;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    .nav2 {
        display: none;
    }

    .menu {
        display: flex;
        gap: 1.5rem;
        list-style: none;
    }

    .submenu .sub {
        text-decoration: none;
        color: #fff;
        font-weight: 500;
        font-size: 1.1rem;
    }

    .texto1 {
        top: 35%;
        transform: translate(-50%, -50%);
        max-width: 60%;
    }

    .grupo2 {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-height: max-content;
    }

    .formulario {
        width: 40%;
        padding: 1rem 1rem 3rem 1rem;
    }

    .mapa-contacto {
        width: 60%;
        height: 100%;
        padding: 3rem;
    }

    .mapa {
        display: block;
        width: 100%;
    }

    .grupo3{
        flex-direction: row;
        justify-content: space-around;
    }

}


@media (min-width: 1024px) {

    .texto1 {
        max-width: 50%;
    }

    .nav{
        padding: 0.8rem 2rem;
    }

    .titulo {
        font-size: 3rem;
    }

    .grupo1{
        height: 85vh;
        padding: 0.7rem 0.4rem;
    }

}










