:root {
    --primary-color: #00a2ff; /* Azure vibrante */
    --dark-bg: #121212;
    --secondary-bg: #1e1e1e;
    --border-color: #333;
    --text-color: #f5f5f5; /* Blanco hueso brillante */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Orbitron', sans-serif; /* Fuente futurista para títulos */
    color: var(--primary-color);
}

.navbar {
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
}

.nav-link {
    transition: color 0.3s;
}

.nav-link.active, .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 5px var(--primary-color);
}


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

.card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-color); /* Asegura que el texto dentro de la tarjeta sea brillante */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.5); /* Sombra Azure */
}

/* Aumenta la legibilidad del texto "muted" */
.card .text-muted {
    color: #a0a0a0 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #008ee6;
    border-color: #008ee6;
}

.hero {
    background: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('https://placehold.co/1920x1080/00334d/e0e0e0?text=Hero+Image') center/cover no-repeat;
    padding: 6rem 0;
}

.section-divider {
    border-top: 2px solid var(--primary-color);
    opacity: 0.5;
    width: 50%;
    margin: 4rem auto;
}

.accordion-button {
    background-color: var(--secondary-bg);
    color: var(--text-color);
}
.accordion-button:not(.collapsed) {
     background-color: var(--primary-color);
     color: var(--dark-bg);
}
.accordion-body {
    background-color: var(--secondary-bg);
}

/* Estilos para el modal de reseña */
.modal-content {
    background-color: var(--dark-bg) !important;
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

.modal-body {
    background-color: var(--dark-bg);
}

.review-content h3, .review-content h4, .review-content h5 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
}

.rating .text-warning {
    color: #ffc107 !important;
}

.alert-primary {
    background-color: rgba(0, 162, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--text-color);
}

/* Estilos para las imágenes de las tarjetas */
.card-img-top {
    width: 100% !important;
    height: 90%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Asegurar que las tarjetas mantengan proporción consistente */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Estilos para el footer */
footer {
    margin-top: 3rem;
}

/* Estilos para el reproductor Lo-Fi */
#lofiPlayer {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 162, 255, 0.3);
}

#lofiPlayer.player-hidden {
    transform: translateY(-50%) translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

#playerToggle {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.4);
}

#playerToggle:hover {
    background: #008ee6;
    transform: translateY(-50%) scale(1.1);
}

.player-header {
    text-align: center;
    margin-bottom: 15px;
}

.player-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-color);
}

.track-cover {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.track-info {
    text-align: center;
    margin-bottom: 15px;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    color: var(--text-color);
}

.track-artist {
    font-size: 12px;
    color: #a0a0a0;
    margin: 5px 0 0;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: #008ee6;
    transform: scale(1.1);
}

.player-btn i {
    font-size: 14px;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar-bg:hover {
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 3px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar-bg:hover .progress-bar::after {
    opacity: 1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.volume-control i {
    color: var(--primary-color);
    font-size: 14px;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    #lofiPlayer {
        left: 10px;
        width: 250px;
        padding: 15px;
    }
    
    #playerToggle {
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.fg-resenia {
    height: 90%;
}

.fg-resenia img {
    height: 100%;
}

.article-comparativa {
    height: 500px;
}
.div-comparativa {
    height: 100%;
}

.img-comparativa {
    object-position: center 65%;
    height: 100%;
}