* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Amiri';
  }
  h2{
    font-weight: normal;
    color: #7D5537; 
    text-align: center;
}
  h3{
        font-size:15px ;
        font-family: 'Arapey';
        font-weight: lighter;
        color: #7D5537;
        text-align: center;
    }
  
.nav{
    background: linear-gradient(180deg, rgba(215, 191, 167, 1) 41%, rgba(159, 121, 96, 1) 100%);
    --img1:scale(0);
    --img2:scale(1);
    height: auto;
   
}
.nav:has(.dropdown:target){
    --img1:scale(1);
    --img2:scale(0);
    --clip:inset(0 0 0 0);
}


.nav__container{
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 85% auto;
    grid-template-rows: auto;
    grid-template-areas: "title img";
    align-items: center;
    overflow: hidden;
    grid-column-gap: 10px ;

}

.nav__title{
    grid-area: title;
    margin:  5% 0 0 5%;
    padding-right: 80%;
    color: #8e6542;

}



.nav__menu{
   
    text-align: right;
    position: relative;
    z-index: 10;
    grid-area:img;

    transform:var(--img2);
}



.nav__icon{
    width: auto;
    display: block;
}

.nav__menu--second{
    transform: var(--img1);
}

.dropdown{
    position: absolute;
    background: rgb(215,191,167);
background: linear-gradient(180deg, rgba(215,191,167,1) 0%, rgba(159,121,96,1) 100%);
    width: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    display: grid;
    align-content: center;
    padding: 1em;
    gap: 1rem;
     border: 1px solid black;
    border-style: dotted ;
    overflow-y: auto;
    clip-path: var(--clip, inset(0 0 100% 0));
    transition: clip-path .7s;
    z-index: 3;

}

.dropdown__list{
    list-style: none;
   

}
.dropdown__link{
    color: black;
    padding: 1em .7em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    position: relative;
    background-color: var(--bg,transparent);
    border-radius: 6px 6px 0 0;
}
.dropdown__list:has(:checked){
    --rows: 1fr;
    --rotate:rotate(180deg);
    --bg:#9f7960;
    border-radius: 15px 15px 0 0;
    
}

.dropdown__check{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


.dropdown__arrow{ 
    transform: var(--rotate, 0);
    margin-left: auto;

    transition: .2s transform;

}


.dropdown__content{
    display: grid;
    grid-template-rows:var(--rows, 0fr) ;
    transition: .3s grid-template-rows;


}
.dropdown__sub{
overflow: hidden;
    background-color: #d7bfa7;
    border-radius: 0 0 6px 6px ;
    
}


.dropdown__li{
    width: 85%;
    list-style: none;
    text-align: center;
    padding: 5px 0;
    margin: auto;

}

.dropdown__anchor{
    pad: 1em;
    display: block;
    color: #8e6542;
    text-decoration: none;

    
}
.filtros{
    width: 85%;
    margin: 3vh auto;
    

}
.filtros .sub{
    display: flex;
    gap: 5%;
    width: 100%;
    margin: 3% 0;
    height: 4vh;
    


}

.sub select{
    width: 50%;
    border: 1px solid #D7BFA7;
    background-color: #F5F3EE;
    border-radius: 8px;
    font-family: 'Arapey';
    font-size: 16px;
    font-weight: normal;
    padding: 0 1vh;
}
.sub button{
    width: 50%;
    border: 1px solid #D7BFA7;
    background-color: #F5F3EE;
    font-family: 'Arapey';
    font-size: 16px;
    font-weight: normal;
    border-radius: 8px;
    
}

.notfound{
    width: 70%;
    text-align: center;
}
.notfound img{
    width: 100%;
}
 .filtros input{
    width:100% ;
    border: 1px solid #D7BFA7;
    background-color: #F5F3EE;
    border-radius: 8px;
    font-family: 'Arapey';
    font-size: 16px;
    padding: 2vh;
    text-align: center;
    justify-content: center;
    height: 4vh;

}

.products-container{
    margin: 5vh auto;
    width: 85%;
    display: flex;
    flex-wrap: wrap;
    row-gap: 2vh;
    column-gap: 2vh;
    justify-content: Center;
    

}
.product{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    width: 45%;
    box-shadow: 0 0 9px 2px rgb(0, 0, 0, 0.1);
    border: 2px solid #D7BFA7;
    border-radius: 18px;
    transition: 1s;
    flex: 0 0 calc(50% - 1vh);
}

 .product .foto{
    width: 100%;
    height: 10rem;
    object-fit: cover;
    border-bottom: 2px solid #D7BFA7;
    border-radius: 16px 16px 0 0;
}


 .product .title{
    text-align: center;
    font-family: 'Amiri';
    color: #7D5537;
    font-size: 20px;
    margin: 2vh;
line-height:1;
}
.information{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    flex-grow:1;
    
}

 .product .information .button{
    background-color: #D7BFA7;
    font-weight: lighter;
    width: 100%;
    text-align: center;
    padding: 1%;
    text-decoration: none;
    color: #F5F3EE;
    font-size: 20px;
    font-family: 'Amiri';
    border-radius: 0 0 16px 16px;

}
.products-preview{
    position: fixed;
    top: 0; left: 0;
    background-color: rgba(0, 0, 0,.8);
    display: none;
    z-index: 50;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center
}
.container-carousel{
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    height: 50vh;
}

.carruseles{
    display: flex;
    width: 100%;
    height: 50vh;
    background-color: black;
    
}

.btn_left,.btn-right{
    display: flex;
    position: absolute;
    top: 50%;
    font-size: 1.5rem;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color_primario);
    transform:translate(0,-50%);
    transition: .5s ease;
    user-select: none;
    z-index:6;
    line-height: .8;
}
.btn-right{
    right: 1vh;
}
.btn_left{
    left: 1vh;
}

.carruseles i{
    vertical-align: middle;
}

.container-carousel .carruseles img,.container-carousel .carruseles video{
    max-height: none;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    border: none;
    border-radius: 0;
    margin: 0;
}

.slider-section{
    height: 100%;
    width: 100%;
}

.carruseles video{
    height: 100%;
    width: auto;
    display: flex;
    margin: auto;
}
.circulos{
    display: flex;
    gap: 1vh;
    position: absolute;
    z-index: 6;
    bottom: 1vh;
    justify-self: anchor-center;
}
.circulos .circulo{
    background-color: #d7bfa7 ;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    
}

.circulo.blanco::after {
    content: "";
    width: 0.7vh;
    height: 0.7vh;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    transform: translate(20%, 24%);
}

.tarjeta{
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    flex: 0 0 calc(50% - 1vh);
    border: 2px solid #D7BFA7 ;
    border-radius: 16px;
    overflow: hidden;
    
}
.tarjeta .claseimg{
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-bottom: 2px solid #D7BFA7 ;
}

.det{
    display: grid;
    margin: 0 auto 5% auto;
    grid-template-columns: repeat(2, auto);
    grid-template-rows:repeat(3, 1fr) ;
    gap:0 7%;
    width: 70%;
    height: 15vh;
    align-items: center;

}
.detalles .Tit{
    font-size:20px ;
    font-weight:  normal;
    color: #8E6542;
    font-family: 'Amiri';
    text-align: center;
    width: 80%;
    margin: auto;
}
.detalles .divisor{
    height: .8px;
    background-color: #7d5537b3;
    width: 65%;
    text-align: center;
    margin: 2% auto;
}

.det img{
    height: auto;
    width: 2em;
    display: flex;
    

}

.det h3{
    font-size:15px ;
    font-family: 'Arapey';
    font-weight: lighter;
    color: #7D5537;
    text-align: start;
}
.detalles a{
    display:block;
    background-color: #D7BFA7;
    width: 100%;
    text-align: center;
    padding: 2%;
    text-decoration: none;
    color: #F5F3EE;
    font-size: 20px;
    font-family: 'Amiri';
}

.preview .imagen{
    width: 90%;
    height: 40vh;
    object-fit: cover;
    margin-top: 4vh;
    border-radius: 10px;

}
.preview i img{
    width: 1em;
    height: 1em;
    margin-top: 0;
}

.preview h4{
    font-family: 'Arapey';
    font-size: 12px;
    font-weight: normal;
}

.preview h3{
    text-align: left;
    margin: auto;
    width: 90%;
}
.preview .contenido{
    width: 100%;
}
.preview span{
    display: inherit;
}
.preview a{
    background-color: #D7BFA7;
    font-weight: lighter;
    width: 100%;
    text-align: center;
    padding: 1%;
    text-decoration: none;
    color: #F5F3EE;
    font-size: 20px;
    font-family: 'Amiri';
    border-radius:  10px;
    margin: 7% 0 0 0;
}
.opciones{
    display: flex;
    gap: 2vh;
    width: 90%;
    margin: auto;

}
.products-preview .preview{
    display: none;
    width: 80%;
    height: 100%;
    background-color: white;
    text-align: center;
    position: relative;
    margin: 2rem;
    padding: 1rem;
    border-radius: 10px;
}
.products-preview .preview.active{
    display: flex;
    flex-wrap: wrap;
}
.preview .fa-times{
    right: 1.5rem;
    top: 1rem;
    position: absolute;
    cursor: pointer;
    z-index: 3;

}

.preview .fa-times img:hover{
    transform: rotate(90deg);
    transition: .5s;
}

.image{
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    
    }

    .product:hover .image a{
        opacity: 1;
        
    }
    .image a{
        opacity: 0;
    position: absolute;
    width: 2.5em;
    height: 2.5em;
    background-color: white;
    border: 1vh;
    z-index: 1;
    margin: 1vh;
    border-radius: 8px;
    
    transition:opacity 0.7s ease;
    }
.dest{
    
    width: 2.5em;
    height: 2.5em;
    background-color: white;
    border-radius: 8px;
    padding: .5vh;
}
#cont, .fondo{
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    background-color: rgba(0, 0, 0,.8);
    display: none;
    z-index: 50;
    min-height: 100vh;
    justify-content: center;
    align-items: center
}
#nuevoFiltro, #Eliminar{
    display: flex;
    flex-direction: column;
    position: absolute;
    padding: 4vh 2vh;
    background-color: #F5F3EE;
    border: 1px solid #d7bfa7;
    border-radius: 12px;
    
}

#Eliminar{
width: 80%;
}

#nuevoFiltro input{  
border:  1px solid #d7bfa7;
border-radius: 12px;
padding: 1vh;

}
.opciones{
    margin:  1vh auto;
    display: flex;
    gap: 5%;
     

}

#nuevoFiltro button, #Eliminar button{
    width: max-content;
    background-color:#d7bfa7;
    border-radius: 12px;
    padding: 1vh;
    flex-grow: 1;
    }


@media (min-width:600px) {
    .product{
        flex: 0 0 calc(30% - 1vh);
}
.tarjeta{
    flex: 0 0 calc(30% - 1vh);
}
}
.image a{
    opacity: 1;
}

@media(min-width: 902px){
    .notfound{
        width: 35%;
    }
    .product{
        flex: 0 0 calc(20% - 2vh);
}
.tarjeta{
    flex: 0 0 calc(20% - 2vh);
}
}

@media(min-width: 1025px){
    .nav__container{
        grid-template-rows: 3em;
    }
    .nav__container h1{
        margin: 0 1vh;
    }

    .notfound{
        width: 25%;
    }

    .filtros .sub{
        margin: 1% 0
    }

    .filtros input,select, button{
        height: 5vh;
    }
    .image a{
        opacity: 0;
    }

    .preview.active{
        
        flex-wrap:nowrap;
        
    }
    
    .preview .contenido{
        display: flex;
        width: 85%;
        margin: auto;
    }
    .cont{
        width: 100%;
    }
    .descr{
    width: 150%;
    }
    .preview .imagen{
        width: 100%;
    }
    .preview h4{
        font-size: 20px;
    }
    
    .preview h2{
        line-height:1;
        font-size: 50px;
        font-family: 'Amiri', sans-serif;
    font-weight: normal;
    color: #7D5537;
    margin: 5% 0;
    }
    .preview h3{
        font-size: 20px;
    }
    .preview a{
        justify-content: center;
        margin: 3% 0 0 0;
    }
    #Eliminar, #NuevoFiltro{
        width: 40%;
    }
}