Enjambre Discografia Page

// inicializar y renderizar function init() { initFilters(); render(); }

// filtrar por tipo if (currentFilter !== 'all') { filtered = filtered.filter(album => album.type === currentFilter); } enjambre discografia

/* header hero */ .hero { background: #1a1612; color: #f0e5d8; padding: 3rem 2rem 3rem 2rem; text-align: center; border-bottom: 6px solid #e3b87c; box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .hero h1 { font-size: 3.8rem; letter-spacing: -1px; font-weight: 700; background: linear-gradient(135deg, #ffe6c7, #e3b87c); background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: 2px 2px 8px rgba(0,0,0,0.2); } .hero p { font-size: 1.2rem; margin-top: 0.8rem; opacity: 0.85; max-width: 650px; margin-left: auto; margin-right: auto; } .hero i { color: #e3b87c; margin: 0 4px; } // inicializar y renderizar function init() { initFilters();

// añadir efecto de pequeño detalle extra: click en estadística para resetear búsqueda opcional (doble click) statsSpan.addEventListener('dblclick', () => { searchInput.value = ''; currentSearch = ''; render(); searchInput.focus(); }); // tooltip informal statsSpan.title = "Doble clic para limpiar búsqueda"; </script> </body> </html> album.type === currentFilter)

/* controls bar */ .controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: #fffcf7; padding: 1.2rem 2rem; border-bottom: 1px solid #e2d5c8; box-shadow: 0 2px 8px rgba(0,0,0,0.02); } .search-box { flex: 2; min-width: 200px; display: flex; align-items: center; background: #f3ede7; border-radius: 60px; padding: 0.4rem 1rem; border: 1px solid #e0cfc0; transition: all 0.2s; } .search-box i { color: #aa7e5a; margin-right: 10px; font-size: 1.1rem; } .search-box input { background: transparent; border: none; padding: 0.7rem 0; font-size: 1rem; width: 100%; outline: none; font-weight: 400; font-family: 'Inter', monospace; } .filter-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; } .filter-btn { background: #ede4db; border: none; padding: 0.5rem 1.2rem; border-radius: 40px; font-weight: 500; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; font-family: 'Inter', sans-serif; color: #3a2e26; display: inline-flex; align-items: center; gap: 6px; } .filter-btn i { font-size: 0.8rem; } .filter-btn.active { background: #aa7e5a; color: white; box-shadow: 0 4px 10px rgba(170,126,90,0.3); } .filter-btn:hover:not(.active) { background: #d6c8bc; transform: translateY(-1px); } .stats { background: #e9dfd5; padding: 0.4rem 1rem; border-radius: 40px; font-size: 0.85rem; font-weight: 500; color: #4a372a; }