/* === VARIABLES Y RESET (MODO NOCHE POR DEFECTO) === */
:root {
    --bg-color: #0c0c0c;
    --text-color: #ffffff;
    --border-color: #ffffff;
    --player-bg: rgba(22, 22, 22, 0.9);
    --glass-bg: rgba(18, 18, 18, 0.75);
}

/* === MODO DÍA === */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --player-bg: rgba(249, 249, 249, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.75);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

#edgeVisualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* === NAVEGACIÓN === */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
    transition: background-color 0.4s ease;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: opacity 0.3s;
    cursor: pointer;
}

nav ul li a:hover { opacity: 0.5; }

/* === SECCIONES PRINCIPALES === */
main {
    padding: 4rem 5%;
    position: relative;
    z-index: 2;
}

section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--text-color);
    display: inline-block;
    margin-bottom: 3rem;
    padding-bottom: 0.5rem;
}

.spacing { margin: 6rem 0; }

/* === TARJETAS DE LANZAMIENTO === */
.release-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.cover-art {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    aspect-ratio: 1;
    background-color: var(--text-color);
    object-fit: cover;
}

.release-info { flex: 1; min-width: 300px; }

.release-title {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* === BOTONES === */
.platforms-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-platform {
    border: 2px solid var(--border-color);
    padding: 0.8rem 2rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    color: var(--text-color);
}

.btn-platform:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* === REPRODUCTORES DE AUDIO === */
.custom-player {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background: var(--player-bg);
    margin-top: 1.5rem;
}

.custom-player button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.custom-player button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: opacity 0.3s;
}

.custom-player button:hover svg { opacity: 0.6; }

.player-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #888;
    outline: none;
    cursor: pointer;
}
        
.timeline-slider { flex-grow: 1; }

.player-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--text-color);
    border-radius: 50%;
}

/* === REPRODUCTOR FLOTANTE "RADIO" === */
.floating-player-wrapper {
    position: fixed;
    left: 0;
    bottom: 40vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-player-wrapper.collapsed {
    transform: translateX(calc(-100% + 35px));
}

.floating-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-left: none;
    padding: 24px 4px;
    width: 20px; 
    box-shadow: 4px 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
    height: auto;
    gap: 10px;
    border-radius: 0 8px 8px 0;
}

.floating-header {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
    max-height: 150px; 
    transition: opacity 0.3s ease;
}

.floating-box-divider {
    height: 1px;
    width: 50%;
    margin: 10px auto;
    background: var(--text-color);
    opacity: 0.25;
}

.floating-box .custom-player {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radio-time-wrapper {
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radio-time-display {
    font-size: 0.70rem;
    font-family: monospace;
    font-weight: bold;
    white-space: nowrap;
    color: var(--text-color);
    transform: rotate(-90deg);
    letter-spacing: 0px;
}

.floating-sidebar {
    background: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: none;
    display: flex;
    flex-direction: column;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

.floating-toggle-btn, .floating-mini-play, .floating-info-btn {
    background: transparent;
    color: inherit;
    border: none;
    width: 35px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    transition: background 0.3s, opacity 0.3s;
    position: relative;
}

.floating-mini-play svg { width: 18px; height: 18px; fill: currentColor; }
.floating-toggle-btn:hover, .floating-mini-play:hover, .floating-info-btn:hover { background: rgba(128, 128, 128, 0.25); }

.floating-volume-container {
    width: 35px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-sidebar .volume-slider {
    width: 45px;
    transform: rotate(-90deg);
    margin: 0;
    background: var(--bg-color);
    opacity: 0.8;
}

.floating-sidebar .volume-slider::-webkit-slider-thumb {
    background: var(--bg-color);
    border: 1px solid var(--text-color);
}

.floating-sidebar-divider {
    height: 1px;
    width: 60%;
    margin: 0 auto;
    background: var(--bg-color);
    opacity: 0.3;
}

/* === TOOLTIP DISCLAIMER === */
.disclaimer-tooltip {
    position: absolute;
    left: 140%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    font-size: 0.70rem;
    width: 220px;
    border-radius: 4px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    text-transform: none;
    font-weight: normal;
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
}

.disclaimer-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent var(--border-color) transparent transparent;
}

.floating-info-btn:hover .disclaimer-tooltip,
.floating-info-btn.active .disclaimer-tooltip {
    opacity: 1;
    visibility: visible;
}

/* === METADATA Y CONTADOR === */
.text-only-release {
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.text-only-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.release-meta, .text-only-genre {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 0.8rem;
}

[data-theme="light"] .release-meta, 
[data-theme="light"] .text-only-genre { color: #777; }

.countdown-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.text-only-release .countdown-wrapper { justify-content: center; }

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--player-bg);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    min-width: 65px;
}

.countdown-value { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.countdown-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 5px; opacity: 0.7; }

/* === DISCOGRAFÍA Y HIGHLIGHTING === */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
}

.hidden-catalog-item { display: none !important; }

#btn-show-more-catalog {
    margin: 3rem auto;
    display: block;
    padding: 1rem 3rem;
}

.disco-item {
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
}

.disco-link { transition: transform 0.3s ease; display: block; margin-bottom: 1rem; }
.disco-link:hover { transform: translateY(-5px); }

.disco-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--text-color);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: opacity 0.4s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.disco-link:hover .disco-cover { opacity: 0.8; }

.disco-item.playing-highlight {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}
        
.disco-item.playing-highlight .disco-cover {
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.45);
    border-color: var(--text-color);
}
[data-theme="light"] .disco-item.playing-highlight .disco-cover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}
        
.disco-item.playing-highlight .disco-title { text-shadow: 0 0 12px rgba(255,255,255,0.6); }
[data-theme="light"] .disco-item.playing-highlight .disco-title { text-shadow: 0 0 12px rgba(0,0,0,0.5); }

.particle-stream {
    position: absolute;
    bottom: 35%;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.disco-item.playing-highlight .particle-stream { opacity: 1; }

.p-dot {
    position: absolute;
    bottom: 0;
    left: var(--x);
    width: 3px;
    height: 3px;
    background: var(--text-color);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--text-color);
    animation: floatSingleParticle var(--dur) infinite ease-in-out var(--delay);
}

@keyframes floatSingleParticle {
    0% { transform: translateY(0) scale(0.3); opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-170px) scale(0.1); opacity: 0; }
}

.disco-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.1rem; }
.disco-meta { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: #aaa; margin-bottom: 0.2rem; }
[data-theme="light"] .disco-meta { color: #777; }

.disco-item .custom-player { padding: 8px 10px; }

/* === FOOTER === */
footer {
    border-top: 2px solid var(--border-color);
    padding: 4rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    transition: background-color 0.4s ease;
    position: relative;
    z-index: 2;
}

.footer-logo { font-size: 4rem; font-weight: 900; letter-spacing: -2px; }
.footer-logo img { max-height: 80px; width: auto; display: block; }
.footer-bio { flex: 1; min-width: 300px; max-width: 600px; font-size: 1rem; line-height: 1.8; text-align: justify; }

/* === RESPONSIVE (CELULARES) - MENÚ HAMBURGUESA === */
@media (max-width: 768px) {
    header { 
        padding: 1rem 5%; 
        flex-direction: row; 
        justify-content: space-between;
    }
    
    .logo { font-size: 1.5rem; }
    .logo img { max-height: 30px; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 200;
    }
    
    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--text-color);
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out, padding 0.4s ease-in-out;
    }
    
    nav.nav-active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        padding: 2rem 0;
    }

    nav ul { 
        flex-direction: column; 
        gap: 2rem; 
        text-align: center;
        width: 100%;
    }

    .release-title { font-size: 2rem; }
    .footer-logo { text-align: center; width: 100%; display: flex; justify-content: center; }

    .cover-art { min-width: 220px; max-width: 280px; margin: 0 auto; }
    .release-container { text-align: center; gap: 1.5rem; }
    .platforms-wrapper { justify-content: center; }
    
    .discography-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .disco-title { font-size: 0.9rem; }
    .disco-meta { font-size: 0.7rem; }

    .disclaimer-tooltip {
        left: 110%;
        width: 180px;
        font-size: 0.65rem;
        padding: 10px;
    }
}