:root {
    --primary: #00f2ff;
    --accent: #00ff88;
    --dark: #02040a;
    --alert-peak: #ff0000;
    --led-standby: #330000;
    --glitch-red: #ff0055;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    background: var(--dark); 
    color: white; 
    font-family: 'Montserrat', sans-serif; 
    cursor: none; 
    overflow-x: hidden; 
}

#canvas-container { position: fixed; top: 0; left: 0; z-index: -1; width: 100%; height: 100vh; pointer-events: none; }

.cursor-custom {
    width: 20px; height: 20px; border: 1px solid var(--primary); border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary);
}

/* NAVEGACIÓN */
nav { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; position: fixed; width: 100%; z-index: 1000; 
    background: rgba(2, 4, 10, 0.7); backdrop-filter: blur(5px);
}

.logo { font-family: 'Michroma'; font-size: 1.2rem; letter-spacing: 5px; color: white; }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: var(--primary); text-decoration: none; font-family: 'Michroma'; font-size: 0.7rem; transition: 0.3s; }
.nav-links a:hover { color: white; text-shadow: 0 0 10px var(--primary); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 2px; background: var(--primary); box-shadow: 0 0 5px var(--primary); transition: 0.3s; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px; text-align: center; }
.glitch-text { font-family: 'Michroma'; font-size: clamp(1.5rem, 6vw, 3.5rem); text-shadow: 0 0 20px var(--primary); margin-bottom: 10px; }
.tagline { font-family: 'Michroma'; color: var(--accent); letter-spacing: 8px; margin-bottom: 30px; font-size: 0.8rem; }
.album-wrapper { width: clamp(280px, 40vw, 500px); aspect-ratio: 1/1; margin: 0 auto 40px; border: 1px solid rgba(0, 242, 255, 0.3); overflow: hidden; }
.album-img { width: 100%; height: 100%; object-fit: cover; }

/* BOTÓN GLITCH */
.btn-main { 
    padding: 15px 40px; border: 1px solid var(--primary); color: var(--primary); 
    text-decoration: none; font-family: 'Michroma'; font-size: 0.8rem; position: relative;
}
.btn-main:hover { background: var(--primary); color: black; box-shadow: 0 0 20px var(--primary); }

/* BENTO GALLERY */
.bento-gallery { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.section-title { font-family: 'Michroma'; color: var(--accent); text-align: center; margin-bottom: 50px; letter-spacing: 3px; }
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: 300px; gap: 20px; }
.bento-item { overflow: hidden; background: #080a0f; border: 1px solid rgba(255,255,255,0.05); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.bento-item:hover img { transform: scale(1.05); }

@media (min-width: 769px) {
    .bento-item.tall { grid-row: span 2; }
    .bento-item.wide { grid-column: span 2; }
}

/* VIDEOS */
.video-section { padding: 60px 5%; max-width: 1200px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; margin-bottom: 15px; }
.video-wrapper iframe { position: absolute; top:0; left:0; width:100%; height:100%; border: none; }
.video-caption { font-family: 'Michroma'; font-size: 0.65rem; color: var(--primary); text-align: center; }

/* TOUR */
.tour { padding: 60px 5%; max-width: 900px; margin: 0 auto; }
.tour-item { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(0,255,136,0.1); gap: 10px; }
.date { color: var(--accent); font-family: 'Michroma'; width: 80px; }
.venue { flex-grow: 1; font-size: 0.9rem; }
.btn-sm { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 5px 15px; cursor: pointer; font-family: 'Michroma'; font-size: 0.6rem; }

/* REPRODUCTOR RACK */
.player-section { padding: 80px 5%; display: flex; justify-content: center; }
.rack-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 1000px; }
.rack-unit { background: #080a0f; border: 2px solid #1a1c22; padding: 25px; flex: 1 1 350px; max-width: 450px; position: relative; }
.rack-header { display: flex; justify-content: space-between; font-family: 'Michroma'; font-size: 0.55rem; color: #444; margin-bottom: 15px; }
.led-power { width: 10px; height: 10px; background: var(--led-standby); border-radius: 50%; transition: 0.3s; }

.display-screen { background: #000; padding: 20px; border: 1px solid #111; margin: 15px 0; display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.noise { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('http://assets.iceable.com/img/noise-transparent.png'); opacity: .05; pointer-events: none; }
.track-info { position: relative; z-index: 2; text-align: center; font-family: 'Michroma'; margin-bottom: 10px; }
#track-number { color: var(--accent); font-size: 0.6rem; display: block; }
.track-name { color: var(--primary); font-size: 0.8rem; }

.progress-container { width: 100%; height: 4px; background: #111; margin: 10px 0; cursor: pointer; position: relative; z-index: 2; }
.progress-bar { width: 0%; height: 100%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.visualizer-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; position: relative; z-index: 2; }
.visualizer-bars span { width: 5px; background: var(--accent); height: 2px; }

.rack-controls { display: flex; gap: 10px; align-items: center; }
.btn-retro { background: #0a0c10; border: 1px solid #1a1c22; color: #444; padding: 12px; cursor: pointer; flex: 1; }
.btn-rack { flex: 2; height: 50px; background: #0a0c10; border: 1px solid #1a1c22; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.btn-rack img { height: 25px; filter: invert(1); }

.playlist-sidebar { background: #080a0f; border: 2px solid #1a1c22; padding: 20px; flex: 1 1 300px; height: 380px; overflow-y: auto; }
.playlist-sidebar h3 { font-family: 'Michroma'; font-size: 0.8rem; margin-bottom: 15px; color: #444; }
.track-item { font-family: 'Michroma'; font-size: 0.6rem; padding: 12px; cursor: pointer; border-bottom: 1px solid #111; color: #555; list-style: none; }
.track-item.active { color: var(--accent); border-left: 3px solid var(--accent); background: #0c1210; }

/* FOOTER */
.main-footer { padding: 60px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.social-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.social-icon { font-size: 1.5rem; color: white; transition: 0.3s; }
.social-icon:hover { color: var(--primary); transform: translateY(-3px); }
.copyright { font-family: 'Michroma'; font-size: 0.5rem; color: #333; letter-spacing: 2px; margin-top: 10px; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-custom { display: none; }
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; right: -100%; top: 0; width: 100%; height: 100vh;
        background: rgba(2,4,10,0.98); flex-direction: column; justify-content: center; align-items: center;
        transition: 0.4s; backdrop-filter: blur(10px);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
    .tour-item { flex-direction: column; text-align: center; }
    .date { width: 100%; }

    .bento-grid {
    grid-auto-rows: auto;}

    .bento-item img {
    height: auto;}
}