
@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');
/* RESET */
html {
    scroll-behavior: smooth;
} 
ul {
   list-style: none;
 }
 
 a {
   text-decoration: none;
 }

 
/*   
 .main {
     overflow: hidden;
 } */

 /*=============== VARIABLES CSS ===============*/
 :root {
    --header-height: 4.5rem;
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: rgb(255,255,255);
    --text-color-alt: rgb(241, 236, 116);
    --title-color: rgb(36, 44, 93);
    --text-color: rgb(47, 47, 47);
  
    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    
    --body-font: "Overpass", sans-serif; 
    --fonts1 : 200;
    --fonts2: 300;
    --fonts3 : 380;
    --fonts4  :500;

  
    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
  }


/* HEADER & NAV */
.header{
   position: fixed;
   width: 100vw;
   top: 0;
   left: 0;
   z-index: var(--z-fixed);
}
.nav{
   padding-bottom: 20px;
   position: relative;
   height: var(--header-height);
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.background-image{
    width: 100%;
    height: 230px;
    position: absolute;
    
}
.producto-img{
    width:100vw;
    height: 230px;
    object-fit: cover;
    position: absolute;
}

.producto-text{
    position: relative;
    margin: 150px auto;
    text-align: center;
    color: var(--first-color);
    font-size: 25px;
    font-family: var(--body-font);
    font-weight: var(--fonts3);
    
}
.nav__logo{
    margin-left: 20px;  
    margin-top: 28px;
    width: 170px;
    height: 50px;
}
.nav__logo--img{
    object-fit: contain;
}

.nav__logo:hover{
    color:var(--text-color-alt);
}
.nav__toggle,
.nav__close{
    font-size:  1.7rem;
    color: var(--first-color);
    cursor: pointer;
    margin: 10px;
    margin-top: 50px;
    margin-right: 20px; 
}

/* Navigation for mobile devices */

@media screen and (max-width: 1150px){
    .nav__menu{
        position : fixed;
        top: 0;
        right:-100%;
        background-color: hsla(0, 0%, 6%, .2);
        backdrop-filter: blur(16px);
        width: 80%;
        height: 100%;
        padding: 6rem 3rem 0;
        transition: right .4s;
        
    }
}

.nav__list{
    display:flex;
    flex-direction: column;
    row-gap: 3.5rem;
}

.nav__link{
    color:var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
    font-size: 18px;
    font-family: var(--body-font);
    font-weight: var(--fonts1);

    
}
.nav__link:hover{
    color: var(--text-color-alt);
}

.nav__close{
    position: absolute;
}
.nav__close{
    top:1rem;
    right: 1.5rem;
}
.nav__img-1{
    width: 80px;
    top:11rem;
    right:.75rem
}
.nav__img-2{
    width: 60px;
    top:28rem;
    right:6rem;
}
/* Show menu */
.show-menu{
    right:0;
    transition: right .4s;
}


.products{
    width: 100%;
    height: 550px;
    margin-top: 250px;
}

.products__filters{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.work__item{
    padding-top: 2.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
    color: var(--text-color);
    font-family:var(--body-font) ;
    font-weight: var(--fonts4);
    background: var(--first-color);
    width: 80px;
    height: 20px;
    text-align: center;
    font-size: 12px;
    border-radius: .5rem;
    border: 1px solid var(--text-color-alt);
}

.products__container{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    height: 680px;
    overflow-y: auto;
}
.product__card{
    margin-top: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2),
    0 6px 20px rgba(0,0,0,0.19);
    width: 250px;
    height: 318px;
    border-radius: 16px;
    position: relative;    
}

.product-img{
    width: 250px;
    height: 255px;
    border-radius: 16px 16px 0 0 ;
    object-fit: contain;
    
}
.product__card:hover{
    transform: scale(1.1);
    transition: all 1s; 
}
.work__title{
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
    font-family: var(--body-font);
    font-weight: var(--fonts3);
    color: var(--text-color);
}

/* active work */
.active-product{
    background-color:var(--text-color-alt);
    color:var(--text-color);
    border: none;
}


/* footer */
.footer{
    background: var(--title-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 650px;
    position: absolute;
    margin-top: 250px;
}
.trabajamos{
    margin: 30px 40px;
    color: var(--first-color);
}
.trabajamos__h2{
    font-size: 20px;
    font-family: var(--body-font);
    font-weight: var(--fonts3);
}
.trabajo__lista{
    font-size: 16px;
    padding-left: 20px;
    padding-top: 10px;
    font-family: var(--body-font);
    font-weight: var(--fonts1);
}
.trabajo__lista li{
    padding: 5px 0;
}

.contacto{
    margin: 30px 40px;
    color: var(--first-color);
    
}

.contacto__h2{
    font-size: 20px;
    font-family: var(--body-font);
    font-weight: var(--fonts3);
}
.contacto__list{
    font-size: 16px;
    padding-left: 20px;
    padding-top: 10px;
    font-family: var(--body-font);
    font-weight: var(--fonts1);
}
.telf, .map , .message{
    display: flex;
    flex-direction: row;
    margin-top: 5px;
    
}

.footer-icons{
    width: 15px;
    margin: 5px;
    margin-right: 7px;
}

.copy{
    text-align: center;
    color: var(--first-color);
    font-size: 12px;
    margin-top:40px;
    border-top: 1px solid var(--first-color);
    padding: 10px;
    font-family: var(--body-font);
    font-weight: var(--fonts1);
}


@media screen and (min-width: 1150px){
    
    .nav{
        position: relative;
        height: 120px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav__close,.nav__toggle{
        display: none;
    }
    .nav__menu{
        display: flex;
        align-items: center;
    }
    .nav__list{
        width: 700px;
        height: var(--header-height);
        align-items: center;
        flex-direction: row;
        justify-content: space-around;
        margin-top: 10px;
        
    }
    .nav__link{
        font-size: 20px;
        font-family: var(--body-font);
        font-weight: var(--fonts2);
    }
    .nav__logo{
        margin-top: 10px;
        width: 250px;
        height: 50px;
     }
     .producto-text{
        font-size: 40px;
     }




     .work__item{
        padding-top: 2.8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor:pointer;
        color: var(--text-color);
        font-family:var(--body-font) ;
        font-weight: var(--fonts4);
        background: var(--first-color);
        width: 180px;
        height: 50px;
        text-align: center;
        font-size: 25px;
        border-radius: .5rem;
        border: 1px solid var(--text-color-alt);

    }
    /* active work */
    .active-product{
    background-color:var(--text-color-alt);
    color:var(--text-color);
    border: none;
    }

    .products__container{
        display: grid;
        grid-template-columns: 
            repeat(auto-fit,
                    minmax(250px,1fr));
            gap:10px;
        margin-top: 30px;
        width: 80%;
        height: 680px;
        overflow-y: auto;
        margin: 40px auto;
        padding: 0 50px;
       
    }

 /* footer */
 .footer{
    height: 460px;   
}

.footer-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.copy{
    margin-top: 40px;
}

}
