:root{
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;  

    --colorPrimario: #F5F5F5;
    --colorSecundario: #1E1E1E;
    --textoPrincipal: #1E1E1E;
    --textoSecundario: #F5F5F5;
    --navVarShadows: #e5e5e5;
    --hoverColor: #a26028;
}

html{
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-size: 62.5%; /* 1 rem = 10px */
}

*, *:before, *:after{
    box-sizing: inherit;
}

body{
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}

/** GLOBALES **/
.contenedor{
    max-width: 140rem;
    width: 90%;
    margin: 0 auto;
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
    margin: 0;
}

h1, h2, h3, h4 {
    color: var(--textoPrincipal);
    font-family: var(--fuenteHeading);
}

h1{
    font-size: 4.8rem;
}

h2{
    font-size: 4rem;

}

h3{
    font-size: 3.2rem;
    color: var(--colorSecundario);
}

h4{
    font-size: 2.8rem;
}

img{
    max-width: 100%;
}
section[id]{
    scroll-margin-top: 8rem;
}



/** UTILIDADES **/

.no-margin{
    margin: 0;
}

.no-padding{
    padding: 0;
}

.center-text{
    text-align: center;
}

.button{
    background-color: black;
    color: var(--colorPrimario);
    padding: 1rem 3rem;
    text-transform: uppercase;
    border-radius: 5px;
}


/** HEADER **/
.header{
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background-color: var(--colorPrimario);
}

.navegador{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}


.logo__nombre{
    font-size: 2rem;
    color: var(--colorSecundario);
    font-weight: 400;
}
.logo__bold{
    color: var(--colorSecundario);
    font-weight: 700;
}

/* MENU */

.menu{
    display: flex;
}

.menu li{
    padding: 0 1.5rem;
}

.menu a{
    color: var(--colorSecundario);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 5rem;
    text-transform: uppercase;
    position: relative;
}
.menu a::after{
    content: "";
    background-color: var(--hoverColor);
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    height: 4px;
    transition: opacity 0.3s;
    opacity: 0;
}
.menu a.selected::after,
.menu a:hover::after{
    opacity: 1;
}

.menu a:hover{
    color: var(--hoverColor);
}
/** MENU HAMBURGUES */

.open-menu,
.close-menu{
    display: none;
}

@media (max-width: 768px){
    .navegador{
        padding: 1rem 0;
    }
    .menu{
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
        background-color: var(--colorSecundario);
        z-index: 1;
    }
    
    .menu a{
        line-height: 7rem;
        font-size: 2.5rem;
        color: var(--colorPrimario);
    }
    .open-menu,
    .close-menu{
        display: block;
        border: none;
        background: none;
        cursor: pointer;
    }
    .close-menu{
        align-self: flex-end;
        padding-top: 1rem;
        padding-right: 2.5rem;

    }

    .menu-opened{
        opacity: 1;
        pointer-events: all;
    }

    .menu a::after{
        content: none;        
    }
    
    .menu a:hover,
    .menu a.selected{
        color: var(--hoverColor);
    }
}

/** HERO **/
.hero{
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/kitchen.jpg");
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}
.hero__text{
    position: absolute;
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero__text h1,p{
    
    color: var(--colorPrimario);
}
.hero__text a{
    border: 1px solid var(--colorPrimario);
    color: var(--colorPrimario);
    padding: 1px 3rem;
    border-radius: 5px;
}




/** ABOUT AS **/

.about{
    margin-top: 5rem;
    display: grid;
    grid-template-columns: 50% 50%;
}

.description{
    padding: 5rem;
    text-align: justify;
}
.description h2{
    color: var(--colorSecundario);
    margin: 0;
}
.description p{
    font-size: 2rem;
    color: var(--colorSecundario);
}

@media (max-width: 768px){
    .about{
        display: flex;
        flex-direction: column;
    }
    .description h2{
        text-align: center;
    }
}

/** SERVICES **/
.services{
    background-color: var(--textoSecundario);
    
}
.services h2{
    padding-top: 5rem;
    text-align: center;
}

.items{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5rem;
    margin-bottom: 5rem;

}



.item1{
    background-image: url(..//img/item_kitchen.jpg);
    height: 60rem;
    width: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
    
}
.item2{
    background-image: url(..//img/img_painting.jpg);
    height: 60rem;
    width: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}
.item3{
    background-image: url(..//img/img_roofing.jpg);
    height: 60rem;
    width: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}

.item1,
.item2,
.item3 {
    color: white;
    font-size: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 768px){
    .items{
        flex-direction: column;
        gap: 0;
    }
    .item1,
    .item2,
    .item3{
       height: 25rem;
       width: auto;
    }
}

.services{
    padding-bottom: 5rem;
}
.btn{
    text-align: center;
}

/** PROJECTS **/
.projects h2 {
    margin-top: 0;
}
.projects{
    margin-top: 10rem;
    margin-bottom: 10rem;
}
.carousel__content{
    position: relative;
}
.carousel__prev,
.carousel__next{
    position: absolute;
    display: block;
    border: none;
    width: 30px;
    height: 30px;
    top: calc(50% - 35px);
    cursor: pointer;
    text-align: center;
    background: none;
    color: black;
    opacity: 40%;
}

.carousel__prev:hover,
.carousel__next:hover{
    opacity: 100%;
}
.carousel__prev{
    left: -3rem;
    transform: scaleX(-1);
}
.carousel__next{
    right: -3rem;
}
.carousel__elemento{
    overflow: hidden;
}
.carousel__indicadores .glider-dot{
    display: block;
    width: 30px;
    height: 4px;
    background: var(--colorSecundario);
    opacity: .2;
    border-radius: 0;
}
.carousel__indicadores .glider-dot:hover{
    opacity: .5;
}
.carousel__indicadores .glider-dot.active{
    opacity: 1;
    background-color: #1E1E1E;
}

.btn-project{
    margin-top: 3rem;
}

/** CONTACT **/
.contact{
    height: 100%;
    padding-top: 5rem;
    padding-bottom: 2rem;
    background-color: var(--colorSecundario);
}
.contact h2{
    margin-bottom: 1rem;
}
.contact__info{
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}
.info h3{
    line-height: normal;
}

.location{
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.location p{
    line-height: normal;
}

.info > a{
    border: 1px solid var(--colorPrimario);
    color: var(--colorPrimario);
    padding: 1rem 3rem;
    border-radius: 5px;
}
.info > a:hover{
    background-color: var(--colorPrimario);
    color: var(--colorSecundario);
}
.face{
    display: flex;
    gap: 1rem;
}
.face a{
    color: var(--colorPrimario);
}
@media (max-width: 768px){
    .contact__info{
        flex-direction: column;
    }
    
}

/** FORMULARIO **/

@media (max-width: 768px){
    .formulario{
        padding: 0;
    }
    .formulario fieldset{
        padding: 0;
    }
}
.formulario{
    width: min(60rem, 100%);
    border-radius: 5px;
}




.formulario fieldset{
    border: none;

}

.field{
    margin-top: 0.5rem;
}
.field label{
    color: white;
}

.field input{
    border: none;
    padding: 0;
    border-radius: 1px;
    background-color: var(--colorSecundario);
    color: var(--textoSecundario);
    border-bottom: 1px solid white;
    outline: none;
    
}
@media (max-width: 768px){
    .field input{
        width: 100%;
    }
}
.field textarea{
    max-width: 100%;
    color: var(--textoSecundario);
    background-color: var(--colorSecundario);
    outline: none;
}

.field{
    display: flex;
    flex-direction: column;
}

.name{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1rem;
}

.data{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 1rem;
}


.btn2{
    text-align: center;
}
.button2{
    width: 100%;
    border: none;
    margin-top: 1rem;
    background-color: var(--colorSecundario);
    color: var(--textoSecundario);
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}
@media (max-width: 768px){
    .button2{
        border: 1px solid var(--colorPrimario);
        color: var(--colorPrimario);
    }
}
@media (min-width:768px){
    .button2:hover{
        background-color: var(--textoSecundario);
        color: var(--colorSecundario);
    }
}

.white{
    color: var(--colorPrimario);
}

/** FOOTER **/
.footer{
    height: 3rem;
}
.footer p{
    text-align: center;
    color: #1E1E1E;
}

@media (max-width:768px) {
    .footer p{
        font-size: 1rem;
    }
}

