.producto {
    position: relative;
    overflow: hidden;
}

.producto img {
    width: 100%;
    display: block;
}

.producto, .item {
    position: relative;
    overflow: hidden;
    height: 400px; /* Ajusta esta altura según tus necesidades */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd; /* Opcional: para ver claramente los límites de cada item */
}

.producto img, .item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.producto-hover, .item-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9em;
}

.producto-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.producto:hover .producto-hover {
    transform: translateY(0);
}

.titulo {
    font-size: 1.2em;
    font-weight: bold;
}

.descripcion {
    font-size: 0.9em;
}

.item {
    position: relative;
    overflow: hidden;
    height: 200px; /* Ajusta esta altura según tus necesidades */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd; /* Opcional: para ver claramente los límites de cada item */
}

.item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9em;
}

.item-info .titulo {
    font-weight: bold;
}

.productos-section-container {
    display: flex;
    align-items: center;
}

.productos-section-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.productos-section-button:hover {
    background-color: #e0e0e0;
    color: #000;
}

.productos-section-active {
    background-color: #5cb85c;
    color: white;
}

.productos-section-icon {
    width: 50px;  /* Ajusta el tamaño según tus necesidades */
    height: auto;
    margin-bottom: 10px;
    transition: fill 0.3s; /* Transición para el cambio de color */
}

.productos-section-button img {
    filter: #5cb85c;
}

.productos-section-button:hover img {
    filter: brightness(0); 
}

.productos-section-active img {
    filter: brightness(0) invert(1);
}
.pagination .page-item.active .page-link {
    background-color: #72bc2f;
    border-color: #72bc2f;
    color: white;
}
/* Ocultar el contenedor de filtros en dispositivos móviles */
@media (max-width: 768px) {
    #filter-container {
        display: none;
    }
    #filter-toggle {
        display: inline-block;
        padding: 10px 20px;
        background-color: #72bc2f;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
        margin-bottom: 10px;
    }

}

/* Mostrar el contenedor cuando esté activo */
#filter-container.show {
    display: block;
}
