/* ============================================== */
/* === VARIABLES DE DISEÑO NEON/TECHNO === */
/* ============================================== */

:root {
    /* Variables de Diseño Original (Solo como referencia, la mayoría de los colores base están en style.css) */
    --original-primary: #007bff;
    --original-secondary: #6c757d;
    --original-text-color: #333;
    
    /* Variables para el Tema Neon (Menú Flotante) */
    --neon-accent: #ffffff; /* Cian brillante */
    --neon-bg-menu: #1A1A1A; /* Fondo oscuro puro para el menú */
    --fab-size: 70px;
    --fab-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 5px rgb(255, 255, 255); 
    --text-color-light: #ECEFF1;
}

/* ============================================== */
/* === AJUSTES DE CLASES (Para evitar conflictos) === */
/* ============================================== */

/* Aseguramos que los títulos dentro del menú sean de color claro */
#demos-content .section-title {
    color: white; 
    text-shadow: 0 0 8px var(--neon-accent); 
    border-bottom: 1px solid rgba(0, 255, 192, 0.2);
    padding-bottom: 15px;
    /* Sobrescribe la fuente si es necesario */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* --- Botones de Acción Globales (para Spotify y Cerrar Modal) --- */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-action:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-spotify {
    background-color: #1DB954; 
    color: white;
}

.btn-secondary {
    background-color: var(--original-secondary);
    color: white;
}



/* --- Galería de Fotos (Aseguramos que no se pierdan estilos) --- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); 
}


/* ============================================== */
/* === FAB Y MENÚ DE DEMOS (DISEÑO NEON/TECHNO) === */
/* ============================================== */

#fab-button {
    position: fixed;
    bottom: 40px; 
    right: 40px; 
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 50%;
    border: 3px solid var(--neon-accent); 
    background-color: #1A1A1A; 
    color: var(--neon-accent); 
    font-size: 32px; 
    box-shadow: var(--fab-shadow); 
    cursor: pointer;
    z-index: 2005; 
    transition: all 0.3s ease;
}

#fab-button:hover {
    transform: scale(1.15) rotate(10deg); 
    background-color: rgba(0, 255, 192, 0.1); 
    box-shadow: 0 0 25px var(--neon-accent); 
}

/* Contenedor del menú lateral */
#demo-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 450px; 
    max-width: 95vw; 
    background-color: var(--neon-bg-menu); 
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.8), -1px 0 10px rgba(0, 255, 192, 0.2); 
    z-index: 2000;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 30px; 
    overflow-y: auto; 
    border-left: 2px solid var(--neon-accent); 
}

#demo-menu.is-open {
    transform: translateX(0);
}


#close-menu-btn {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--neon-accent);
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

#close-menu-btn:hover {
    color: white;
    text-shadow: 0 0 5px var(--neon-accent);
}

#demos-content {
    padding-top: 50px; 
}

/* --- Reproductor de Música y Lista dentro del Menú --- */

#player-container {
    max-width: none; 
    margin: 25px auto;
    padding: 25px;
    background: #212121;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-accent); 
    position: relative; 
    overflow: hidden; 
}

#current-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--neon-accent);
    font-size: 1.1rem;
    text-shadow: 0 0 3px rgba(55, 0, 255, 0.5);
}

/* **ESTILO PARA EL MENSAJE DE FIN DE EXTRACTO** */
#current-info.end-of-track {
    color: #ffffff; /* Color magenta impactante */
    text-shadow: 0 0 10px #ffffff;
    animation: textGlitch 0.5s infinite steps(2, start); 
}


/* CONTROLES DEL REPRODUCTOR (FLEX) */
.player-controls {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 15px; 
    margin-top: 15px;
}

#main-play-button {
    background-color: var(--neon-accent);
    color: #1A1A1A; 
    border: none;
    padding: 12px 25px;
    border-radius: 30px; 
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    flex-shrink: 0; 
}

#main-play-button:hover {
    background-color: #ffffff; 
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--neon-accent);
}

/* ESTILO DEL TIEMPO */
#current-time {
    color: var(--neon-accent);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0; 
}

/* ESTILOS DE LA BARRA DE PROGRESO */
#progress-bar-container {
    flex-grow: 1; 
    height: 10px;
    background-color: #383838;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

#progress-bar {
    width: 0%; 
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #a9b8bd); 
    box-shadow: 0 0 8px var(--neon-accent);
    transition: width 0.1s linear; 
    position: relative; 
}

/* Animación de destello sobre la barra de progreso */
#progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px; 
    height: 100%;
    background: rgba(255, 255, 255, 0.5); 
    transform: translateX(-100%) skewX(-30deg); 
    animation: progressShine 3s infinite linear; 
}


/* --- LISTA DE TEMAS: FORMATO VERTICAL Y ESPACIADO --- */
.track-list-grid {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    gap: 8px; 
    margin-top: 35px;
    padding-bottom: 50px; 
    padding-right: 15px; 
    padding-left: 15px;
}

.track-select-btn {
    background-color: #2E2E2E;
    color: var(--neon-accent); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left; 
    width: 100%; 
}

.track-select-btn:hover {
    background-color: #404040;
    color: white; 
    border-color: var(--neon-accent);
}

.track-select-btn.active-track {
    background-color: var(--neon-accent);
    color: #1A1A1A;
    border-color: var(--neon-accent);
    transform: scale(1.00); 
    box-shadow: 0 0 10px rgba(0, 255, 192, 0.8);
}

/* ============================================== */
/* === KEYFRAMES DE ANIMACIÓN === */
/* ============================================== */

/* Animación del destello sobre la barra de progreso */
@keyframes progressShine {
    0% { transform: translateX(-100%) skewX(-30deg); }
    100% { transform: translateX(1000%) skewX(-30deg); } 
}

/* Animación de Glitch/Parpadeo para el mensaje de fin de extracto */
@keyframes textGlitch {
    0%, 100% {
        text-shadow: 0 0 10px #ffffff;
        transform: translate(0, 0);
        opacity: 1;
    }
    10% {
        text-shadow: 0 0 15px #ffffff, 2px 2px #ffffff;
        transform: translate(-1px, 1px);
    }
    20% {
        text-shadow: 0 0 10px #ffffff;
        transform: translate(1px, -1px);
    }
    30% {
        opacity: 0.8;
        transform: translate(0, 0);
    }
}

/* ============================================== */
/* === ESTILOS PARA EL MODAL DE ALERTA PERSONALIZADO === */
/* ============================================== */

/* Capa Oscura (Overlay) que cubre toda la pantalla */
.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El modal se hace visible cuando se añade esta clase con JavaScript */
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Contenido del Modal (la caja que ves) */
.modal-content {
    background-color: var(--neon-bg-menu); 
    color: var(--text-color-light);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px; 
    text-align: center;
    border: 3px solid var(--neon-accent); 
    box-shadow: 0 0 25px rgba(0, 255, 192, 0.7);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

/* Título del Modal */
#modal-title {
    color: var(--neon-accent);
    text-shadow: 0 0 5px var(--neon-accent);
    margin-top: 0;
}

/* Botones dentro del Modal */
.modal-content .btn-action {
    margin: 15px 10px 0;
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Estilos para el botón de cerrar del Lightbox */
.lum-lightbox-inner {
    position: relative;
}

/* Forzar que se cierre al hacer clic en el fondo oscuro */
.lum-lightbox {
    cursor: pointer;
    z-index: 3000 !important; /* Asegurar que esté sobre el menú neon */
}

/* Crear un botón de cerrar manual por si el de la librería falla */
.lum-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 192, 0.5); /* Color Neon de tu marca */
    border: none;
    color: white;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3001;
}

.lum-close-button::after {
    content: "×"; /* Símbolo de multiplicación para la X */
}


/* === AJUSTES PARA REPRODUCTOR MINIMALISTA === */

/* Achica el contenedor y quita el alto fijo */
#player-container.minimal-player {
    padding: 15px; /* Menos relleno */
    height: auto;  /* Se ajusta al contenido, no deja espacio negro abajo */
    max-width: 400px; /* Más estrecho para que se vea más ordenado */
    margin: 10px auto;
}

/* Ajuste de la etiqueta "Reproduciendo" en rosa */
.label-rosa {
    color: #ffffff;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

/* Alineación de controles en una sola línea más compacta */
.player-controls {
    gap: 10px; /* Menos espacio entre botón y barra */
    margin-top: 10px;
}

#main-play-button {
    padding: 8px 18px; /* Botón más pequeño */
    font-size: 0.9rem;
}

#progress-bar-container {
    height: 6px; /* Barra más delgada */
}

