init();
/* 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; } enjambre discografia
body { background: linear-gradient(145deg, #f6f2eb 0%, #e8e2d8 100%); font-family: 'Inter', sans-serif; color: #1e1b17; scroll-behavior: smooth; } init(); /* header hero */
/* 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; } padding: 3rem 2rem 3rem 2rem
// evento búsqueda searchInput.addEventListener('input', onSearchInput);
// fondo de imagen con gradiente + ícono representativo const bgGradient = `linear-gradient(135deg, ${album.coverColor}dd, ${album.coverColor}aa)`; // lista de tracks (mostrar máximo 6 primeros) const trackListItems = album.tracks.slice(0, 8).map(track => `<li><i class="fas fa-music" style="font-size: 0.6rem; margin-right: 4px;"></i> ${escapeHtml(track)}</li>`).join(''); const moreTracks = album.tracks.length > 8 ? `<li style="background: none;">+${album.tracks.length - 8} más</li>` : '';