:root { 
    --bg-base: #050505; 
    --bg-surface: #141414;
    --bg-glass: rgba(20, 20, 20, 0.6);
    --accent-primary: #d84339; 
    --accent-glow: rgba(216, 67, 57, 0.5);
    --text-main: #ffffff; 
    --text-muted: #a3a3a3; 
    --border-color: rgba(255, 255, 255, 0.08); 
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { 
    background-color: var(--bg-base); 
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(216, 67, 57, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 25%);
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 15px rgba(216,67,57,0); } 100% { box-shadow: 0 0 0 0 rgba(216,67,57,0); } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleBg { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes eq { 0% { height: 5px; } 100% { height: 30px; } }

header { position: fixed; top: 0; width: 100%; height: 75px; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 1000; transition: 0.3s; }
header.scrolled { height: 60px; background: rgba(5, 5, 5, 0.65); }

.brand-logo img { height: 35px; width: auto; transition: 0.3s; }
@media (min-width: 768px) { .brand-logo img { height: 45px; } }

.hero { height: 60vh; min-height: 400px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 20px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('../img/default.jpg') center/cover; opacity: 0.3; z-index: -2; animation: scaleBg 20s infinite alternate linear; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,5,0.2) 0%, rgba(5,5,5,1) 100%); z-index: -1; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -2px; line-height: 1.1; animation: slideUpFade 1s ease forwards; }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin-bottom: 2.5rem; animation: slideUpFade 1s ease 0.2s forwards; opacity: 0; }

.soundwave { display: flex; gap: 4px; height: 30px; align-items: flex-end; margin-bottom: 20px; animation: slideUpFade 1s ease 0.4s forwards; opacity: 0; }
.bar { width: 4px; background: var(--accent-primary); border-radius: 4px; animation: eq 1s ease-in-out infinite alternate; }
.bar:nth-child(1) { height: 10px; animation-delay: 0.1s; } .bar:nth-child(2) { height: 25px; animation-delay: 0.3s; } .bar:nth-child(3) { height: 15px; animation-delay: 0.5s; } .bar:nth-child(4) { height: 30px; animation-delay: 0.2s; } .bar:nth-child(5) { height: 12px; animation-delay: 0.4s; }

.container { max-width: 1250px; margin: 0 auto; padding: 1.5rem 5% 4rem; flex: 1; width: 100%; }

.filters-container { display: flex; flex-wrap: wrap; gap: 15px; margin-top: -100px; margin-bottom: 40px; position: relative; z-index: 10; align-items: center; justify-content: space-between; background: var(--bg-glass); backdrop-filter: blur(10px); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); }
.search-box { flex: 1; min-width: 250px; position: relative; }
.search-box input { width: 100%; padding: 15px 20px 15px 45px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); color: white; border-radius: 12px; outline: none; transition: 0.3s; font-size: 1rem; }
.search-box input:focus { border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(216,67,57,0.2); }
.search-box::before { content: '🔍'; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

.filter-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-filter { background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid transparent; padding: 10px 20px; border-radius: 30px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 600; }
.btn-filter:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-filter.active { background: var(--accent-primary); color: white; box-shadow: 0 5px 15px var(--accent-glow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; width: 100%; }
.card { background: var(--bg-glass); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; transform: translateY(30px); display: flex; flex-direction: column; position: relative; }
.card.visible { opacity: 1; transform: translateY(0); }
.card:hover { transform: translateY(-8px); border-color: var(--accent-primary); box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(216,67,57,0.1); }

.card-img { height: 220px; background-size: cover; background-position: center; position: relative; transition: 0.5s; }
.card:hover .card-img { transform: scale(1.05); }
.badge { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); font-size: 0.7rem; font-weight: 800; padding: 6px 12px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); text-transform: uppercase; }

.btn-info-float { position: absolute; bottom: 15px; right: 15px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); color: white; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; z-index: 5; }
.btn-info-float:hover { background: var(--accent-primary); border-color: var(--accent-primary); transform: scale(1.1); }

.card-body { padding: 1.8rem; background: linear-gradient(to top, rgba(5,5,5,1), rgba(5,5,5,0.8)); z-index: 2; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
.card-price { font-size: 1.4rem; font-weight: 800; color: var(--accent-primary); margin-bottom: 1.5rem; }

.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 15px; font-weight: 700; border-radius: 12px; cursor: pointer; transition: all 0.3s; border: none; font-size: 0.9rem; text-align: center; }
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), #b9382f); color: #fff; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-outline { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-outline.playing { background: rgba(216,67,57,0.1); color: var(--accent-primary); border-color: var(--accent-primary); animation: pulseGlow 2s infinite; }

.btn-promo-container { display: inline-block; margin-top: 2.5rem; opacity: 0; animation: slideUpFade 1s ease 0.6s forwards; }
.btn-promo { position: relative; padding: 14px 35px; font-size: 1rem; font-weight: 800; color: #fff; background: #050505; border: none; border-radius: 50px; cursor: pointer; z-index: 1; text-transform: uppercase; letter-spacing: 1.5px; overflow: hidden; box-shadow: 0 10px 30px rgba(234, 88, 12, 0.2); transition: 0.3s transform ease; }
.btn-promo::before { content: ''; position: absolute; top: -4px; left: -4px; right: -4px; bottom: -4px; background: linear-gradient(90deg, #ea580c, #fbbf24, #ea580c, #fbbf24); background-size: 300% 100%; animation: bordeFluido 3s linear infinite; z-index: -2; }
.btn-promo::after { content: ''; position: absolute; inset: 2px; background: #0a0a0a; border-radius: 50px; z-index: -1; transition: 0.3s background ease; }
.btn-promo:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4); }
.btn-promo:hover::after { background: rgba(234, 88, 12, 0.15); }
.btn-promo span { background: linear-gradient(to right, #fbbf24, #ea580c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: 0.3s; }
.btn-promo:hover span { -webkit-text-fill-color: #fff; text-shadow: 0 0 10px rgba(251, 191, 36, 0.8); }
@keyframes bordeFluido { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

/* =========================================
   MODALES SECUNDARIOS (Info, Soporte, Bundle)
   ========================================= */
.modal-overlay-custom { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 2000; opacity: 0; transition: 0.3s; }

.modal-box-custom { 
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    /* Empieza ligeramente abajo y pequeño para el efecto de entrada */
    transform: translate(-50%, -40%) scale(0.95); 
    width: 90%; 
    max-width: 450px; 
    background: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1); 
    border-top: 2px solid var(--accent-primary); /* Glow en la cabecera */
    border-radius: 24px; 
    z-index: 2001; 
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto Bouncy (Rebote) */
    box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px rgba(216, 67, 57, 0.15); 
    overflow: hidden; 
}

/* 🚀 ESTA REGLA ACTIVA LA ANIMACIÓN CUANDO TU JS PONE OPACITY: 1 */
.modal-box-custom[style*="opacity: 1"],
.modal-box-custom[style*="opacity:1"] {
    transform: translate(-50%, -50%) scale(1) !important;
}

.modal-header-custom { 
    padding: 25px; 
    background: linear-gradient(180deg, rgba(216,67,57,0.1) 0%, transparent 100%); 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative;
}
.modal-title-custom { font-size: 1.2rem; font-weight: 800; color: white; margin: 0; line-height:1.2; }
.modal-close-custom { background:none; border:none; color:var(--text-muted); font-size:1.5rem; cursor:pointer; transition:0.3s; z-index: 2;}
.modal-close-custom:hover { color:white; transform:scale(1.1); }

.track-list { max-height: 300px; overflow-y: auto; padding: 15px; }
.track-item { display: flex; align-items: center; padding: 12px 15px; margin-bottom: 8px; background: rgba(255,255,255,0.03); border-radius: 10px; cursor: pointer; transition: 0.2s; }
.track-item:hover { background: rgba(255,255,255,0.08); }
.track-item.playing { background: rgba(234, 88, 12, 0.15); border-left: 3px solid var(--accent-primary); }
.track-icon { margin-right: 15px; font-size: 1.2rem; color: var(--text-muted); }
.track-item.playing .track-icon { color: var(--accent-primary); }
.track-name { flex: 1; font-weight: 600; font-size: 0.95rem; color: white; }

/* RESPONSIVE MODALES: BOTTOM SHEET (Costado a costado) */
@media (max-width: 768px) {
    .modal-box-custom {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: translateY(100%) scale(1) !important; /* Inicia escondido abajo */
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 30px 30px 0 0 !important; /* Solo bordes curvos arriba */
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    
    /* Efecto deslizar hacia arriba cuando el JS lo muestra */
    .modal-box-custom[style*="opacity: 1"],
    .modal-box-custom[style*="opacity:1"] {
        transform: translateY(0) scale(1) !important;
    }

    /* Píldora de arrastre simulada en el borde superior */
    .modal-box-custom::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
        z-index: 10;
    }
    
    .modal-header-custom {
        padding-top: 30px; /* Hacemos espacio para la píldora */
    }
}

@media (max-width: 600px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    @media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
    .card-img { height: 130px; } 
    .card-body { padding: 1rem; }
    .card-title { font-size: 0.9rem; }
    .card-price { font-size: 1.1rem; margin-bottom: 0.8rem; }
    .card-actions { grid-template-columns: 1fr; gap: 6px; } 
    .btn { padding: 10px; font-size: 0.8rem; border-radius: 8px; }
    .filters-container { padding: 15px 10px; gap: 10px; border-radius: 12px; margin-top: -80px; }
    .filter-btns { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; width: calc(100% + 20px); margin-left: -10px; padding: 5px 10px 10px 10px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; }
    .filter-btns::-webkit-scrollbar { display: none; }
    .btn-filter { flex-shrink: 0; white-space: nowrap; scroll-snap-align: start; }
    #cart-btn { width: calc(100% - 40px); height: 60px; right: 20px; bottom: 20px; border-radius: 30px; justify-content: space-between; padding: 0 25px; }
    #cart-btn::after { content: ''; color: white; font-weight: 800; font-size: 1.1rem; position: absolute; left: 50%; transform: translateX(-50%); }
    #cart-count { position: static; box-shadow: none; font-size: 14px; padding: 4px 10px; }
}

#cart-btn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-primary), #b9382f); border-radius: 50%; cursor: pointer; box-shadow: 0 10px 25px var(--accent-glow); z-index: 1001; font-size: 1.5rem; transition: transform 0.3s; animation: float 4s ease-in-out infinite; color: white; }

footer { background: rgba(10, 10, 10, 0.95); border-top: 1px solid var(--border-color); padding: 40px 5% 20px; text-align: center; margin-top: auto; }
.footer-content { max-width: 600px; margin: 0 auto 20px; }
.footer-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.footer-links a { color: white; text-decoration: none; margin: 0 10px; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: var(--accent-primary); }

.ecosystem-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ecosystem-title { font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.ecosystem-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.eco-link { position: relative; color: #a3a3a3; text-decoration: none; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 8px 18px; background: rgba(15, 15, 15, 0.8); border: 1px solid rgba(255,255,255,0.05); border-radius: 50px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); overflow: hidden; }
.eco-link i { font-size: 0.85rem; color: #555; transition: 0.4s; z-index: 2; }
.eco-link::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: 0.5s; transform: skewX(-20deg); z-index: 1; }
.eco-link:hover { color: #fff; border-color: var(--accent-primary); transform: translateY(-3px); background: rgba(20, 5, 5, 0.9); box-shadow: 0 5px 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(216, 67, 57, 0.2); }
.eco-link:hover::after { left: 200%; }
.eco-link:hover i { color: var(--accent-primary); transform: scale(1.1) rotate(5deg); }
.copyright { margin-top: 15px; font-size: 0.7rem; color: #333; letter-spacing: 3px; }

/* =========================================
   MEGA BUNDLE VIP SECTION (DYNAMIC BLUR EDITION)
   ========================================= */
.mega-bundle-section { width: 100%; margin-bottom: 35px; animation: slideUpFade 1s ease forwards; }
.mega-bundle-content { background: #0a0a0a; border: 1px solid rgba(234, 88, 12, 0.4); border-radius: 20px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 10px 40px rgba(234, 88, 12, 0.2); position: relative; overflow: hidden; animation: pulseGlowBox 3s infinite alternate; }

@keyframes pulseGlowBox { 0% { border-color: rgba(234, 88, 12, 0.4); box-shadow: 0 10px 40px rgba(234, 88, 12, 0.2); } 100% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 15px 50px rgba(245, 158, 11, 0.4); } }

.bundle-bg-blurred { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1; filter: blur(20px) brightness(40%) saturate(80%); animation: slowZoom 20s linear infinite alternate; transform: translateZ(0); will-change: transform, filter; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.mega-bundle-content::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"); pointer-events: none; z-index: 2; mix-blend-mode: overlay; opacity: 0.5; transform: translateZ(0); }

.mega-bundle-content::before { content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent); transform: skewX(-25deg); animation: shineSweep 6s infinite; z-index: 3; pointer-events: none; }
@keyframes shineSweep { 0% { left: -150%; } 20% { left: 200%; } 100% { left: 200%; } }

.bundle-info { flex: 1; position: relative; z-index: 4; }
.bundle-badge { background: linear-gradient(90deg, #ea580c, #dc2626); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 12px; animation: heartbeat 1.5s infinite; border: 1px solid rgba(255,255,255,0.2); }
@keyframes heartbeat { 0% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } 60%, 100% { transform: scale(1); } }

.bundle-title { font-family: 'Syncopate', sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 10px; color: white; }
.text-gold { background: linear-gradient(90deg, #f59e0b, #fef08a, #f59e0b); background-size: 200% auto; color: transparent; -webkit-background-clip: text; animation: goldShine 3s linear infinite; text-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
@keyframes goldShine { to { background-position: 200% center; } }

.bundle-desc { color: #eee; font-size: 0.95rem; margin-bottom: 5px; max-width: 550px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0,0,0,0.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: all 0.3s ease; }
.bundle-desc.expanded { -webkit-line-clamp: unset; } 

.btn-read-more { background: transparent; color: #f59e0b; border: none; cursor: pointer; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; padding: 0; transition: 0.2s; }
.btn-read-more:hover { color: white; text-shadow: 0 0 10px #f59e0b; }

.bundle-price { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.price-old { color: #bbb; text-decoration: line-through; font-size: 1.1rem; font-weight: 600; }
.price-new { color: white; font-size: 2.2rem; font-weight: 900; font-family: 'Inter'; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }

.bundle-actions { display: flex; gap: 15px; flex-wrap: wrap; position: relative; z-index: 5; }
.btn-gold.btn-sonar { position: relative; background: linear-gradient(135deg, #f59e0b, #ea580c); color: white; font-size: 0.85rem; padding: 10px 20px; z-index: 1; border: none; }
.btn-gold.btn-sonar::before, .btn-gold.btn-sonar::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7); animation: sonarAudioWave 2s infinite cubic-bezier(0.1, 0.5, 0.5, 1); z-index: -1; }
.btn-gold.btn-sonar::after { animation-delay: 1s; }
@keyframes sonarAudioWave { 100% { box-shadow: 0 0 0 20px rgba(234, 88, 12, 0); } }
.btn-gold.btn-sonar:hover { transform: translateY(-3px) scale(1.05); }

.bundle-visual { flex: 0.6; display: flex; justify-content: flex-end; position: relative; z-index: 4; animation: floatBox 4s ease-in-out infinite; }
@keyframes floatBox { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }

.visual-box { background: rgba(10,10,10,0.6); border: 1px solid rgba(245, 158, 11, 0.3); padding: 15px 25px; border-radius: 16px; text-align: center; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.6); position: relative; overflow: hidden;}
.visual-box::after { content:''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 60%); z-index: -1; animation: rotateCore 10s linear infinite; }
@keyframes rotateCore { 100% { transform: rotate(360deg); } }

.countdown { display: flex; gap: 8px; justify-content: center; }
.time-box { background: rgba(0,0,0,0.85); border: 1px inset rgba(245, 158, 11, 0.2); border-radius: 8px; padding: 8px; min-width: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.3s; box-shadow: inset 0 2px 10px rgba(0,0,0,1); }
.time-box:hover { border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.time-box span { font-size: 1.5rem; font-weight: 900; font-family: 'Inter', sans-serif; color: white; line-height: 1; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.time-box small { font-size: 0.55rem; color: #f59e0b; font-weight: 800; margin-top: 4px; letter-spacing: 1px; }

/* RESPONSIVE MÓVIL DEL MEGA BUNDLE */
@media (max-width: 850px) {
    .mega-bundle-content { flex-direction: column; text-align: center; padding: 25px 15px; gap: 20px; border-radius: 12px; }
    .bundle-info { display: flex; flex-direction: column; align-items: center; }
    .bundle-desc { margin: 0 auto 5px auto; }
    .bundle-price { justify-content: center; }
    .bundle-actions { justify-content: center; width: 100%; }
    .bundle-visual { margin-top: 5px; width: 100%; justify-content: center; animation: none; }
    .visual-box { width: 100%; max-width: 350px; padding: 15px; }
}

/* =========================================
   REPRODUCTOR SPOTIFY MODAL (ECOMMERCE EDITION)
   ========================================= */
.spotify-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(15px); z-index: 3000; display: flex; align-items: center; justify-content: center; animation: fadeInSpotify 0.4s ease; padding: 15px; }
@keyframes fadeInSpotify { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.spotify-modal-content { background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%); width: 100%; max-width: 950px; height: 90vh; max-height: 850px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }

.spotify-close { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); border: none; color: #a3a3a3; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: 0.3s; z-index: 20; }
.spotify-close:hover { background: #ea580c; color: white; transform: scale(1.1); }

/* Cabecera y Botones */
.spotify-header { display: flex; align-items: flex-end; gap: 30px; padding: 40px; background: linear-gradient(180deg, rgba(234, 88, 12, 0.15) 0%, transparent 100%); }
.spotify-cover-wrapper { width: 180px; height: 180px; border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.5); overflow: hidden; flex-shrink: 0; }
#sp-cover { width: 100%; height: 100%; object-fit: cover; }
.spotify-info { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.sp-badge { font-size: 0.75rem; font-weight: 800; letter-spacing: 2px; color: #ea580c; margin-bottom: 10px; }
.sp-title { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; font-family: 'Syncopate', sans-serif; color: white; margin-bottom: 5px; line-height: 1.1; }
.sp-author { color: #a3a3a3; font-weight: 600; font-size: 1rem; margin-bottom: 20px; }

/* Acciones Comerciales */
.sp-commercial-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.sp-btn-cart-neon { background: #ea580c; color: white; border: none; padding: 12px 24px; border-radius: 30px; font-weight: 800; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; box-shadow: 0 0 20px rgba(234, 88, 12, 0.4); position: relative; overflow: hidden; }
.sp-btn-cart-neon::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); transform: skewX(-20deg); animation: cartShine 3s infinite; }
@keyframes cartShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.sp-btn-cart-neon:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(245, 158, 11, 0.6); background: #f59e0b; }

.sp-btn-share { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); padding: 10px 20px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.sp-btn-share:hover { background: rgba(255,255,255,0.2); border-color: white; }

/* Tracklist */
.spotify-tracklist { flex: 1; overflow-y: auto; padding: 20px 40px; }
.sp-track-header { display: grid; grid-template-columns: 40px 1fr 50px; color: #a3a3a3; font-size: 0.8rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 10px; }
.sp-track-item { display: grid; grid-template-columns: 40px 1fr 50px; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.2s; color: #d4d4d4; }
.sp-track-item:hover { background: rgba(255,255,255,0.1); color: white; }
.sp-track-item.playing { color: #f59e0b; font-weight: 800; background: rgba(245, 158, 11, 0.1); }
.sp-track-num { color: #a3a3a3; font-size: 0.9rem; }
.sp-track-item:hover .sp-track-num span { display: none; }
.sp-track-item:hover .sp-track-num::before { content: '▶'; color: white; font-size: 0.8rem; }
.sp-track-item.playing .sp-track-num::before { content: ''; }
.sp-track-title { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 15px; }

/* Ecualizador Animado */
.eq-anim { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
.eq-bar { width: 3px; background: #f59e0b; border-radius: 3px; animation: eqBounce 0.5s infinite alternate; }
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes eqBounce { 0% { height: 3px; } 100% { height: 15px; } }

/* Footer del Reproductor */
.spotify-player-bar { background: #181818; padding: 15px 40px; border-top: 1px solid rgba(255,255,255,0.1); display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 20px; }
.sp-footer-info { display: flex; align-items: center; gap: 15px; overflow: hidden; white-space: nowrap; }
.sp-player-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sp-controls { display: flex; align-items: center; gap: 20px; }
.sp-btn-ctrl { background: none; border: none; color: #a3a3a3; font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.sp-btn-ctrl:hover { color: white; }
.sp-btn-play-main { background: white; border: none; color: black; font-size: 1.2rem; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.sp-btn-play-main:hover { transform: scale(1.1); }

.sp-progress-container { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 500px; color: #a3a3a3; font-size: 0.75rem; }
input[type=range] { flex: 1; height: 4px; -webkit-appearance: none; background: #404040; border-radius: 2px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: white; transition: 0.2s; }
input[type=range]:hover::-webkit-slider-thumb { background: #f59e0b; transform: scale(1.2); }

/* Volumen */
.sp-volume-control { display: flex; align-items: center; gap: 10px; justify-content: flex-end; color: #a3a3a3; }
.sp-volume-control input { width: 80px; }

/* RESPONSIVE MÓVIL DEL REPRODUCTOR SPOTIFY */
@media (max-width: 768px) {
    .spotify-overlay { padding: 10px; }
    .spotify-modal-content { height: 95vh; max-height: none; }
    
    .spotify-header { flex-direction: column; align-items: center; text-align: center; padding: 25px 15px 15px; gap: 10px; }
    .spotify-cover-wrapper { width: 120px; height: 120px; }
    .sp-title { font-size: 1.4rem; margin-bottom: 5px; }
    .sp-author { margin-bottom: 10px; }
    
    .sp-commercial-actions { justify-content: center; width: 100%; flex-direction: column; gap: 8px; }
    .sp-btn-cart-neon { width: 100%; padding: 10px; font-size: 0.8rem; }
    .sp-btn-share { width: 100%; padding: 10px; font-size: 0.8rem; }
    
    .spotify-tracklist { padding: 10px 15px; flex: 1; overflow-y: auto; }
    
    .spotify-player-bar { grid-template-columns: 1fr; gap: 10px; padding: 15px; text-align: center; }
    .sp-volume-control { display: none; }
    .sp-footer-info { justify-content: center; }
}


/* =========================================
   MENÚ DE NAVEGACIÓN PRINCIPAL (CENTRED & GLASS)
   ========================================= */
header { display: flex; justify-content: space-between; align-items: center; }

/* Dividimos el header en 3 partes iguales para forzar el centro perfecto */
.header-left { width: 25%; display: flex; justify-content: flex-start; }
.main-nav { width: 50%; display: flex; justify-content: center; gap: 30px; align-items: center; }
.header-right { width: 25%; display: flex; justify-content: flex-end; align-items: center; gap: 15px; }

/* Enlaces del Menú */
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; position: relative; padding: 5px 0; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--accent-primary); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; box-shadow: 0 0 10px var(--accent-primary); }

/* Botón Iniciar Sesión */
.btn-login { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-weight: 700; font-size: 0.85rem; background: rgba(255,255,255,0.05); padding: 8px 18px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.btn-login:hover { background: rgba(234, 88, 12, 0.15); border-color: #ea580c; color: #f59e0b; box-shadow: 0 0 15px rgba(234, 88, 12, 0.4); transform: translateY(-2px); }

.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.mobile-menu-btn:hover { color: var(--accent-primary); }

/* RESPONSIVE DEL MENÚ Y LOGIN */
@media (max-width: 850px) {
    /* Rompemos el ancho fijo para que se adapte libremente */
    .header-left, .header-right { width: auto; }
    .mobile-menu-btn { display: block; }
    
    /* El botón Login se vuelve solo el icono del candadito */
    .login-text { display: none; }
    .btn-login { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: rgba(234, 88, 12, 0.1); border-color: #ea580c; color: #ea580c; }

    /* Menú Móvil SÓLIDO (Ya no es cristalino) - MODIFICADO AQUÍ */
    .main-nav { 
        position: absolute; top: 75px; left: 0; width: 100%; 
        
        /* 1. ¡CAMBIADO!: Fondo sólido y oscuro, nada de transparencia */
        background-color: #050505; /* O usa var(--bg-base) si quieres */
        
        /* 2. ¡CAMBIADO!: Quitamos el efecto cristalino/desenfoque */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        
        flex-direction: column; padding: 0; gap: 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    }
    .main-nav.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); padding: 10px 0; }
    
    .nav-link { font-size: 1rem; padding: 18px 20px; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.03); }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { background: rgba(216, 67, 57, 0.15); color: var(--accent-primary); border-left: 4px solid var(--accent-primary); }
}

/* =========================================
   CORRECCIÓN DE OVERFLOW EN DEMOS (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .demo-grid {
        /* Forzamos 2 columnas perfectas y matemáticas */
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
        padding: 0 15px; 
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .album-card {
        padding: 10px;
        /* El truco mágico: evita que la tarjeta crezca más de su columna */
        min-width: 0; 
        overflow: hidden;
    }

    /* Reducimos un poco los textos e íconos para que respiren en celular */
    .album-title { font-size: 0.85rem; }
    .track-count { font-size: 0.7rem; }
    .album-cat { font-size: 0.65rem; }
    
    .btn-play-circle {
        width: 40px; height: 40px; font-size: 1.1rem;
    }
}

/* Si la pantalla es extremadamente pequeña (ej. iPhone SE antiguo) */
@media (max-width: 360px) {
    .demo-grid { grid-template-columns: 1fr; }
}

/* =========================================
   REPRODUCTOR MULTITRACK (STEMS MIXER)
   ========================================= */
.mt-channel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; padding: 15px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.mt-channel-info { display: flex; align-items: center; gap: 15px; }
.mt-icon { width: 40px; height: 40px; background: rgba(0,0,0,0.5); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 1.2rem; }
.mt-name { font-weight: 700; color: white; font-size: 0.95rem; }
.mt-status { font-size: 0.7rem; color: #10b981; font-weight: 800; letter-spacing: 1px; } /* Verde = Sonando */

.btn-mute { background: rgba(255,255,255,0.1); border: none; color: white; padding: 8px 15px; border-radius: 6px; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 0.8rem; }
.btn-mute.muted { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); color: white; } /* Rojo = Muteado */