html {

    font-family: 'Roboto', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}
.grid-container {
display: grid;
grid-template-columns: 200px 1fr;
grid-template-rows: auto 1fr auto;
gap: 10px;

}

.flex-menu {
display: flex;
flex-direction: row;
gap: 5px;}
.header, .footer {
grid-column: 1 / 3;
}

.main {
grid-column: 2 / 3;
}
/* Icono de carrito fijo arriba a la derecha */
#carrito-icono {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#carrito-icono img {
    margin-right: 8px;
}

#contador-carrito {
    font-weight: bold;
    color: #007bff;
}

.formulario {

    font-family: 'Roboto', sans-serif;
}

.contacto {
    display: flex;
    flex-direction: column;
    
    background-color: #f8f9fa;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 5px;
}

header {
    display: flex;
    justify-content: center;
    background-color: grey;
    color: white;
    padding: 20px;
    background-size: cover;
    background-position: center;
    text-align: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    justify-content: center;
    width: auto;
    height: auto;
    background-size: cover;
    margin-bottom: 10px;
}

nav {
    background-color: #333;
    position: relative;
}

#dropdown {
    display: none;
    
}
#menuProductos:hover #dropdown {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: absolute;
    background-color: #333;
    padding: 10px;
}
#listaRedes {
    display: none;
    
}
#contacto:hover #listaRedes {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: absolute;
    background-color: #333;
    padding: 10px;
}


.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul {
    list-style-type: none;
    margin: 0;

    padding: 0;
}

nav ul li {
    display: inline;
    padding: 10px 15px;
    color: white;    margin-right: 20px;
}

nav ul li a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}
/* Sección Productos con Flexbox */
.productos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 30px 0;
}

.product-card {
    flex: 1 1 250px;
    max-width:fit-content;
    max-height: fit-content;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: row;

    align-items: center;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.2em;
}

.product-card p {
    margin: 0 0 10px 0;
    color: #555;
}

.product-card .precio {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.product-card button {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

.product-card button:hover {
    background: #0056b3;
}

/* Responsivo */
@media (max-width: 900px) {
    .productos-container {
        gap: 15px;
    }
    .product-card {
        max-width: 45%;
    }
}
@media (max-width: 600px) {
    .productos-container {
        flex-direction: column;
        align-items: center;
    }
    .product-card {
        max-width: 90%;
    }
}
@media (max-width: 768px) {
    .reseñas-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    .card {
        padding: 16px;
        margin: 0 auto;
        max-width: 95%;
    }
    #contacto {
        padding: 10px;
        margin: 10px auto;
        max-width: 98%;
    }
    #contacto form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    #contacto input,
    #contacto textarea {
        font-size: 1em;
        padding: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    #contacto button {
        padding: 10px;
        font-size: 1em;
    }
}
.product {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin: 10px;
    text-align: center;
}

.reseñas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    padding: 24px;
    background: #f3f6fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.card .nombre {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #007bff;
}

.card .comentario {
    font-size: 0.98em;
    color: #444;
    text-align: center;
}
.contacto h2 {
    text-align: center;
    margin-bottom: 20px;
}

section {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}
.redes-sociales {
    list-style-type: none;
    justify-content: center;
    padding: 0;
    margin: 10px 0;
    padding: 10px;

}


footer {
    display: flex;
    flex-direction: column;
    align-content: center;
    background-color:gray;
    color: white;
    text-align: left;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}



/* Background properties */
section {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');