.category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
}

.category-icon-container {
    width: 80px;
    height: 80px;
    background-color: rgba(151, 140, 145, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.category-card:hover .category-icon-container {
    background-color: rgba(247, 37, 133, 0.2);
}

.no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

.search-results-title {
    display: none;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}


.search-clear-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-input:not(:placeholder-shown)+.search-btn+.search-clear-btn {
    opacity: 1;
}

.search-clear-btn:hover {
    color: var(--accent-color);
}

.main-container.sidebar-active {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

.main-container.sidebar-active {
    background-color: rgba(0, 0, 0, 0.3);
}

.apps-btn {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.apps-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.apps-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    width: auto;
    /* Cambiamos de width fijo a auto */
    min-width: 300px;
    /* Ancho mínimo */
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    /* Grid flexible */
    gap: 0.8rem;
    z-index: 1001;
}

.apps-dropdown.active {
    display: grid;
    animation: fadeIn 0.3s ease;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    /* Aumentamos el padding */
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    min-width: 80px;
    /* Ancho mínimo para cada item */
}

.app-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.app-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.app-name {
    font-size: 0.8rem;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    /* Evita que el texto se divida en varias líneas */
    overflow: visible;
    /* Permite que el texto sobresalga si es necesario */
    text-overflow: clip;
    /* No añade puntos suspensivos */
    width: 100%;
    /* Ocupa todo el ancho disponible */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radio-player-container {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 999;
    transition: all 0.3s ease;
}

.radio-player {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 280px;
    display: none;
}

.radio-player.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.radio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.radio-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.radio-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.radio-station {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    text-align: center;
}

.radio-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.radio-main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.radio-volume-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.radio-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-btn:hover {
    transform: scale(1.1);
}

.radio-btn i {
    font-size: 1rem;
}

.radio-social-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
    background-color: #fff;
    color: var(--accent-color);
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}

#radioFacebook:hover {
    background-color: #1877f2;
    color: white;
}

#radioInstagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

#radioTikTok:hover {
    background-color: #000;
    color: white;
}

.radio-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.radio-toggle:hover {
    transform: scale(1.1);
}

.radio-toggle i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .radio-player {
        width: 260px;
        bottom: 120px;
        right: 15px;
    }

    .radio-toggle {
        bottom: 70px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .radio-player {
        width: 240px;
    }
}

.scroll-top {
    position: fixed;
    bottom: 140px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: scale(1.1);
}

.scroll-top i {
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .nav-links li {
        margin-left: 1.5rem;
    }

    .apps-dropdown {
        width: 280px;
    }

    .apps-btn {
        order: 2;
    }
}

@media (max-width: 768px) {
    .apps-dropdown {
        width: 250px;
        right: 0;
    }

    .radio-player {
        width: 220px;
        bottom: 120px;
        right: 15px;
    }

    .radio-toggle {
        bottom: 70px;
        right: 15px;
    }

    .scroll-top {
        bottom: 120px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .apps-dropdown {
        width: 200px;
        grid-template-columns: repeat(2, 1fr);
    }

    .radio-player {
        width: 200px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Agrega esto en tu sección de estilos */
.entertainment-container {
    position: fixed;
    bottom: 140px;
    left: 20px;
    z-index: 999;
    transition: all 0.3s ease;
}

.entertainment-toggle {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.entertainment-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.entertainment-toggle i {
    font-size: 1.5rem;
}

.games-modal {
    position: fixed;
    bottom: 140px;
    left: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    width: 300px;
    display: none;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.games-modal.active {
    display: block;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.games-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
}

.games-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.games-close:hover {
    color: var(--accent-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
}

.game-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.game-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.game-name {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

.game-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: 80vh;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    display: none;
    flex-direction: column;
    overflow: auto;
}

.game-container.active {
    display: flex;
}

.game-content {
    flex: 1;
    padding: 20px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
}

.game-back,
.game-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
}

.game-back:hover,
.game-close:hover {
    color: var(--accent-color);
}

.game-content {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

/* Overlay para cuando el juego está abierto */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
}

.game-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .games-modal {
        width: 280px;
        bottom: 120px;
        left: 15px;
    }

    .entertainment-toggle {
        bottom: 70px;
        left: 15px;
    }

    .game-container {
        width: 95%;
        height: 85vh;
    }
}

@media (max-width: 576px) {
    .games-modal {
        width: 250px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

.span {
    color: #3a25f7;
}



.game-info {
    color: white;
    text-align: center;
    font-size: 1.2em;
    margin: 10px 0;
}

#start-btn {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #FF0;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 480px) {
    .apps-dropdown {
        min-width: 250px;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        right: 10px;
    }

    .app-name {
        font-size: 0.7rem;
        /* Tamaño un poco más pequeño en móviles */
    }
}