body {
    margin: 0;
    font-family: Arial;
}

/* 🧭 MENÚ */
#inicio {
    background: darkkhaki;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 70px;
}

#inicio a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* 🛍 PRODUCTOS GRID */
#productos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 20px;
    padding: 20px;
}

.card {
    background: #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 10px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.card img:hover {
    transform: scale(1.1);
}

/* BOTONES */
button {
    background: darkkhaki;
    border: none;
    padding: 8px;
    cursor: pointer;
}

button:hover {
    background: olive;
    color: white;
}

/* 🛒 CARRITO */
#carrito {
    background: lightyellow;
    padding: 20px;
}

#lista li {
    margin: 10px 0;
}

/* 🔍 MODAL */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.8);

    justify-content: center;
    align-items: center;
}

#modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.7);}
    to {transform: scale(1);}
}
@media (max-width: 768px) {
    #productos {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (max-width: 480px) {
    #productos {
        grid-template-columns: 1fr; /* 1 columna en celular */
    }

    #inicio {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
}
.card {
    width: 100%;
}
#btnCarrito {
    position: fixed;
    bottom: 20px;
    right: 20px;

    background: darkkhaki;
    color: white;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;

    font-size: 18px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);

    display: flex;
    gap: 5px;
    align-items: center;

    z-index: 1000;
}

#btnCarrito:hover {
    background: olive;
}