/* Estilos para el chat */
#chat-button {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff4500;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999; /* Asegurarse de que esté por debajo del reproductor */
    transition: all 0.3s ease;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}

#chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.chat-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.chat-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    animation: modalFadeIn 0.3s;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.chat-modal-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ff4500;
    color: white;
}

.chat-close-button {
    color: white;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.chat-modal-body {
    padding: 0;
    height: 450px;
}

.chat-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .chat-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    #chat-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 90px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    #chat-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 90px;
        left: 10px;
    }
}
