/* PRODUCTOS */
#productos-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Grilla de 4 columnas en desktop */
    gap: 20px;
    width: 100%;
}

.producto {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.producto img {
    width: 100%;
    height: auto;
}

/* PAGINACION */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.pagination button:hover {
    background: #005177;
}

/* CONTENEDOR de categorías y subcategorías */
.categorias, .subcategorias {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 10px;
}

/* TARJETAS estilo botón */
.boton-categoria, .boton-subcategoria {
    width: 130px;
    height: 130px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    border: none;
    position: relative;
}

/* ANIMACIÓN al pasar el mouse */
.boton-categoria:hover, .boton-subcategoria:hover {
    transform: scale(1.05);
}

/* CONTENIDO del botón */
.boton-titulo {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    line-height: 1.4;
}

/* RESPONSIVE Ajuste para móviles */
@media (max-width: 768px) {
    /* Para categorías y subcategorías en móviles */
    .categorias, .subcategorias {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 15px;
        padding: 0 10px;
    }

    /* Para botones */
    .boton-categoria, .boton-subcategoria {
        width: 100%;
        height: auto;
    }

    /* Para productos */
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
/* @media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
}    */ 

}
