/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,900;1,800&family=Poppins:wght@400;600;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a; 
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    color: #111;
    overflow-x: hidden;
}

.titulo-principal {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

/* Efectos 3D (Refinados para las nuevas fuentes) */
.logo-3d-amarillo {
    color: #ffde00;
    text-shadow: 
        0 1px 0 #d4a000, 0 2px 0 #c29000, 0 3px 0 #b08000,
        0 4px 0 #9e7000, 0 5px 0 #8c6000,
        3px 3px 0 #e11d48, /* Sombra rosa/roja fuerte */
        5px 5px 15px rgba(0,0,0,0.5);
}

.logo-3d-blanco {
    color: #ffffff;
    text-shadow: 
        0 1px 0 #cccccc, 0 2px 0 #b3b3b3, 0 3px 0 #999999,
        3px 3px 0 #0284c7, /* Sombra azul/cyan fuerte */
        5px 5px 15px rgba(0,0,0,0.5);
}

.logo-3d-pequeno {
    color: #ffffff;
    text-shadow: 2px 2px 0px #000, 4px 4px 0px #ff0080;
}

/* Paneles */
.panel-header-rosa { background: #f43f5e; color: white; border-bottom: 4px solid #881337; }
.panel-header-cyan { background: #06b6d4; color: white; border-bottom: 4px solid #164e63; }
.panel-header-amarillo { background: #facc15; color: black; border-bottom: 4px solid #854d0e; }
.panel-header-azul { background: #3b82f6; color: white; border-bottom: 4px solid #1e3a8a; }

.panel-box {
    background-color: #ffffff;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.panel-box:hover {
    transform: translateY(-5px);
}

/* Efectos 3D Coloridos para los Paneles (Bordes Mismo Color, Sombras Contrastantes) */

/* El Cabezal es Rosa -> Borde Rosa -> Profundidad Cyan */
.panel-box-rosa {
    border-color: #f43f5e;
    box-shadow: 8px 8px 0px #0891b2, 12px 12px 20px rgba(0,0,0,0.5);
}

/* El Cabezal es Cyan -> Borde Cyan -> Profundidad Morado o Azul Oscuro */
.panel-box-cyan {
    border-color: #06b6d4;
    box-shadow: 8px 8px 0px #6b21a8, 12px 12px 20px rgba(0,0,0,0.5);
}

/* El Cabezal es Amarillo -> Borde Amarillo -> Profundidad Rosa Fuerte */
.panel-box-amarillo {
    border-color: #facc15;
    box-shadow: 8px 8px 0px #be123c, 12px 12px 20px rgba(0,0,0,0.5);
}

/* El Cabezal es Azul -> Borde Azul -> Profundidad Rosa */
.panel-box-azul {
    border-color: #3b82f6;
    box-shadow: 8px 8px 0px #e11d48, 12px 12px 20px rgba(0,0,0,0.5);
}

/* Rango de volumen personalizado */
input[type=range] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #cbd5e1;
    height: 8px;
    border-radius: 4px;
    border: 1px solid #000;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #facc15;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.1s ease;
}
input[type=range]::-webkit-slider-thumb:active {
    transform: scale(0.9);
}

/* Fondo del Header */
.header-bg {
    background: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?q=80&w=1920') center/cover;
    position: relative;
}
.header-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
}
.w-logo {
    max-width: 500px;
    animation: floatingLogo 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@keyframes floatingLogo {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    33% { transform: translateY(-15px) rotate(2deg) scale(1.02); }
    66% { transform: translateY(-5px) rotate(-2deg) scale(0.98); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.text-shadow-md {
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* Custom scrollbar para la lista de canciones en Historial */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Opcional: Custom scrollbar general para la ventana del navegador */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border: 3px solid #0a0a0a;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e11d48;
}

/* Animaciones de notas musicales flotantes */
.floating-notes-container {
    perspective: 1000px;
}

.note {
    position: absolute;
    bottom: -100px;
    opacity: 0;
    animation: floatingUp linear infinite;
    filter: drop-shadow(3px 3px 0px rgba(0,0,0,0.9));
    z-index: 0;
}

@keyframes floatingUp {
    0% {
        transform: translateY(0) rotate(-20deg) scale(0.8) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-1200px) rotate(360deg) scale(1.5) translateX(100px);
        opacity: 0;
    }
}

/* ------------------------------------- */
/* Barras de Visualizador de Audio     */
/* ------------------------------------- */
.audio-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    opacity: 0; /* Ocultas por defecto */
    transition: opacity 0.3s ease;
    padding-bottom: 2px;
}

.audio-visualizer.active {
    opacity: 1; /* Se muestran al darle Play */
}

.audio-visualizer .bar {
    width: 6px;
    background-color: #06b6d4;
    border-radius: 3px 3px 0 0;
    animation: bounceBar 0.5s ease-in-out infinite alternate;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.audio-visualizer .bar:nth-child(1) { height: 10px; animation-delay: 0.1s; background-color: #f43f5e; transform-origin: bottom; }
.audio-visualizer .bar:nth-child(2) { height: 20px; animation-delay: 0.3s; background-color: #facc15; transform-origin: bottom; }
.audio-visualizer .bar:nth-child(3) { height: 15px; animation-delay: 0.0s; background-color: #06b6d4; transform-origin: bottom; }
.audio-visualizer .bar:nth-child(4) { height: 25px; animation-delay: 0.2s; background-color: #3b82f6; transform-origin: bottom; }
.audio-visualizer .bar:nth-child(5) { height: 12px; animation-delay: 0.4s; background-color: #a855f7; transform-origin: bottom; }

@keyframes bounceBar {
    0% { transform: scaleY(0.2); }
    100% { transform: scaleY(1); }
}


/* ------------------------------------- */
/* Botón Flotante Sincronizado y Redes */
/* ------------------------------------- */
.floating-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: slideUpFloat 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFloat {
    from { transform: translateY(150px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.2s, filter 0.2s;
}

.floating-social-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.floating-social-btn:active {
    transform: scale(0.95);
}

.floating-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #ca8a04);
    border: 4px solid #000;
    box-shadow: 4px 4px 0px #000;
    color: #000;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.floating-play-btn:active {
    transform: scale(0.9) translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}
