/* RESET BÁSICO */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CABECERA */
.cabecera{
    width: 100%;
    height: 9vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 70px;
    position: relative;
    z-index: 1000;
    background-color: rgba(165, 42, 42);
}

.logo{
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.logo a{
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 26px;
}
.logo img{
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.menu{
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.navegacion{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

.navegacion li{
    position: relative;
    list-style: none;
}

.navegacion li a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    padding: 10px 25px;
    display: block;
    box-sizing: border-box;
}
.navegacion li a:hover{
    color: rgb(221, 221, 159);
    border-bottom: 2px solid white;
}
.submenu{
    background-color: rgba(165, 42, 42, 0.800);
    display: none;
    position: absolute;
    min-width: 180px;
    top: 100%;
    left: 0;
}
.submenu li a{
    color: white;
    font-size: 17px;
    padding: 12px 15px;
    display: block;
}
.navegacion li:hover .submenu{
    display: block;
}

/*main*/
.banner{
    position: relative;
    width: 100%;
    height: 91vh;
    background-image: url(../img/bannerproductos.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 50px;
}
.banner h1{
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
    text-align: left;
}
.banner p{
    font-size: 20px;
    color: white;
    max-width: 600px;
    margin: 0 0 20px 0;
}
.banner a{
    background-color: rgb(92, 54, 35);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
}
.banner a:hover{
    background-color: rgb(130, 75, 45);
}

.categorias{
    background-color: #faf7f2;
    text-align: center;
    padding: 60px 30px;
}
.categorias h2{
    font-size: 32px;
    color: rgb(92, 54, 35);
    font-weight: bold;
    margin-bottom: 10px;
}
.categorias > p{
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}
.categori{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.categoria{
    width: 45%;
    background-color: white;
    border: 1px solid #e5dcc8;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
}
.categoria:hover{
    background-color: #f0e8da;
}
.categoria i{
    font-size: 35px;
    color: rgb(92, 54, 35);
    margin-bottom: 15px;
}
.categoria h3{
    font-size: 20px;
    color: rgb(92, 54, 35);
    margin-bottom: 10px;
}
.categoria p{
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}
.categoria a{
    color: rgb(92, 54, 35);
    text-decoration: none;
    font-weight: bold;
}
.categoria a:hover{
    color: rgb(130, 75, 45);
}

.destacados{
    background-color: white;
    text-align: center;
    padding: 60px 30px;
}
.destacados h2{
    font-size: 32px;
    color: rgb(92, 54, 35);
    font-weight: bold;
    margin-bottom: 10px;
}
.destacados > p{
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}
.destacados > a{
    display: inline-block;
    color: rgb(92, 54, 35);
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 30px;
}
.destacados > a:hover{
    color: rgb(130, 75, 45);
}
.produc{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.producto{
    width: 22%;
    background-color: #faf7f2;
    border: 1px solid #e5dcc8;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.producto:hover{
    background-color: #f0e8da;
}
.producto img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
.producto h3{
    font-size: 15px;
    color: rgb(92, 54, 35);
    margin-bottom: 8px;
}
.producto .precio{
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin-bottom: 15px;
}
.producto button{
    background-color: rgb(92, 54, 35);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
}
.producto button:hover{
    background-color: rgb(130, 75, 45);
}

.mensaje{
    background-color: #faf7f2;
    text-align: center;
    padding: 60px 30px;
}
.mensaje h2{
    font-size: 32px;
    color: black;
    font-weight: bold;
    margin-bottom: 15px;
}
.mensaje p{
    font-size: 18px;
    color: rgb(49, 46, 46);
    margin-bottom: 10px;
}
.mensaje .gracias{
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-top: 20px;
}

/*Footer*/
.pie{
    background-color: brown;
    color: white;
    padding: 30px 40px 20px 40px;
}
.logo_pie{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}
.logo_pie img{
    height: 70px;
}
.logo_pie span{
    font-size: 24px;
    margin-left: 10px;
}
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid white;
    padding-top: 20px;
    font-size: 12px;
}
.enlaces a{
    color: rgb(210, 200, 190);
    text-decoration: none;
    margin: 0 4px;
}
.enlaces a:hover{
    color: white;
}
.copyright p{
    color: rgb(210, 200, 190);
}

/*Responsive*/
@media(min-width: 769px) and (max-width: 896px){
    .cabecera{
        padding: 0 30px;
    }
    .logo{
        width: 35%;
    }
    .menu{
        width: 65%;
    }
    .logo a{
        font-size: 22px;
    }
    .logo img{
        width: 80px;
        height: 80px;
    }
    .navegacion li a{
        font-size: 17px;
        padding: 10px 15px;
    }

    .banner{
        height: 91vh;
        padding-left: 40px;
        background-size: cover;
        background-position: center;
    }
    .banner h1{
        font-size: 34px;
    }
    .banner p{
        font-size: 18px;
        max-width: 500px;
    }
    .categorias{
        padding: 50px 20px;
    }
    .categori{
        max-width: 850px;
    }
    .categoria{
        width: 45%;
    }
    .destacados{
        padding: 50px 20px;
    }
    .produc{
        max-width: 850px;
    }
    .producto{
        width: 22%;
    }
}

@media(min-width: 513px) and (max-width: 768px){
    .cabecera{
        height: auto;
        padding: 10px 20px;
        flex-direction: column;
    }
    .logo{
        width: 100%;
        height: auto;
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo img{
        width: 60px;
        height: 60px;
    }
    .logo a{
        font-size: 22px;
    }
    .menu{
        width: 100%;
        height: auto;
        justify-content: center;
    }
    .navegacion{
        width: 100%;
        height: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    .navegacion li a{
        font-size: 16px;
        padding: 10px 12px;
    }

    .banner{
        height: 100vh;
        padding: 150px 10% 40px 10%;
        background-size: cover;
        background-position: center;
    }
    .banner h1{
        font-size: 32px;
    }
    .banner p{
        font-size: 17px;
        max-width: 100%;
    }
    .categorias{
        padding: 50px 10%;
    }
    .categori{
        flex-direction: column;
        width: 100%;
    }
    .categoria{
        width: 100%;
    }
    .destacados{
        padding: 50px 10%;
    }
    .produc{
        flex-wrap: wrap;
        width: 100%;
    }
    .producto{
        width: 45%;
    }
    .producto img{
        height: 200px;
    }
    .mensaje{
        padding: 50px 10%;
    }

    .footer{
        flex-direction: column;
        text-align: center;
    }
}

@media(min-width: 256px) and (max-width: 512px){
    .cabecera{
        height: auto;
        padding: 10px;
        flex-direction: column;
    }
    .logo{
        width: 100%;
        height: auto;
        justify-content: center;
        margin-bottom: 10px;
    }
    .logo img{
        width: 55px;
        height: 55px;
    }
    .logo a{
        font-size: 20px;
    }
    .menu{
        width: 100%;
        height: auto;
    }
    .navegacion{
        width: 100%;
        height: auto;
        justify-content: center;
        flex-wrap: wrap;
    }
    .navegacion li a{
        font-size: 14px;
        padding: 8px 9px;
    }
    .submenu{
        min-width: 150px;
    }
    .submenu li a{
        font-size: 14px;
        padding: 10px;
    }

    .banner{
        height: 100vh;
        padding: 150px 10% 40px 10%;
        background-size: cover;
        background-position: center;
        justify-content: center;
    }
    .banner h1{
        font-size: 30px;
    }
    .banner p{
        font-size: 16px;
    }
    .banner a{
        padding: 10px 20px;
        font-size: 14px;
    }
    .categorias{
        padding: 40px 10%;
    }
    .categorias h2{
        font-size: 28px;
    }
    .categorias > p{
        font-size: 15px;
    }
    .categori{
        flex-direction: column;
        width: 100%;
    }
    .categoria{
        width: 100%;
        padding: 20px;
    }
    .categoria i{
        font-size: 30px;
    }
    .categoria h3{
        font-size: 19px;
    }
    .categoria p{
        font-size: 14px;
    }
    .destacados{
        padding: 40px 10%;
    }
    .destacados h2{
        font-size: 28px;
    }
    .destacados > p{
        font-size: 15px;
    }
    .produc{
        width: 100%;
        flex-direction: column;
    }
    .producto{
        width: 100%;
    }
    .producto img{
        height: 220px;
    }
    .mensaje{
        padding: 40px 10%;
    }
    .mensaje h2{
        font-size: 28px;
    }
    .mensaje p{
        font-size: 16px;
    }
    .mensaje .gracias{
        font-size: 18px;
    }

    .pie{
        padding: 30px 20px;
    }
    .logo_pie{
        flex-direction: column;
        text-align: center;
    }
    .logo_pie img{
        height: 60px;
    }
    .logo_pie span{
        font-size: 20px;
        margin-left: 0;
        margin-top: 10px;
    }
    .footer{
        flex-direction: column;
        text-align: center;
    }
    .enlaces{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}