/* Estilos para Cuby */
.cuby-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.cuby-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cuby-chat-container {
    
    
    
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    

    overflow-y: scroll; /* O overflow-y: auto; */
  /*border: 1px solid black; /* Opcional, para visualizar el div */

}





.cuby-chat-header {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cuby-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;

    

}

.cuby-chat-input {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
}

.cuby-chat-input input {
    flex-grow: 1;
    margin-right: 10px;
}

/* Estilos para los mensajes */
.user-message, .bot-message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
}

.user-message .message-content {
    background: #3a7bd5;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: #e5e5ea;
    color: black;
    border-bottom-left-radius: 5px;
}

/* Animación para nuevos mensajes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message, .bot-message {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 576px) {
    .cuby-chat-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
        max-height: 60vh;
    }
}