/* 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*/
.productos{
    background-color: white;
    text-align: center;
    padding: 60px 30px;
}
.productos h2{
    font-size: 32px;
    color: rgb(92, 54, 35);
    font-weight: bold;
    margin-bottom: 40px;
}
.productos > div > div{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.producto{
    width: 30%;
    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: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
.producto h3{
    font-size: 17px;
    color: rgb(92, 54, 35);
    margin-bottom: 8px;
}
.producto p{
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.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);
}

/*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;
    }
    .productos{
        padding: 50px 20px;
    }
    .productos h2{
        font-size: 30px;
    }
    .productos > div > div{
        max-width: 850px;
    }
    .producto{
        width: 30%;
    }
    .producto img{
        height: 180px;
    }
}

@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;
    }
    .productos{
        padding: 50px 10%;
    }
    .productos h2{
        font-size: 30px;
    }
    .productos > div > div{
        width: 100%;
    }
    .producto{
        width: 45%;
    }
    .producto img{
        height: 200px;
    }

    .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;
    }
    .productos{
        padding: 40px 10%;
    }
    .productos h2{
        font-size: 28px;
        margin-bottom: 30px;
    }
    .productos > div > div{
        width: 100%;
        flex-direction: column;
    }
    .producto{
        width: 100%;
    }
    .producto img{
        height: 220px;
    }
    .producto h3{
        font-size: 17px;
    }
    .producto p{
        font-size: 14px;
    }
    .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;
    }
}