body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: black;
}

.chat-container {
    position: fixed;
    bottom: 20px;
    right: 6%;
    width: 300px;
    max-height: 66vh;
    background: #f1f1f1;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    color: black;
    z-index: 99999;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.4); /* Sombra más fuerte y grande */
    border: 1px solid rgba(0, 0, 0, 0.15); /* Borde sutil para más contraste */
}

@media (max-width: 768px) {
    .chat-container {
        width: 90%;
        height: 80vh;
        bottom: 10%;
        right: 5%;
        left: 5%;
        max-height: none;
    }
}

.chat-header {
    background: #0078ff;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #f1f1f1;
    border-top: 1px solid #0078ff;
    border-radius: 0 0 10px 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    outline: none;
    background-color: #ffffff;
    color: black;
}

.chat-bubble {
    position: fixed;
    bottom: 4.5%; /* Posición inicial */
    right: 2%;
    width: 50px;
    height: 50px;
    background: #0078ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease-in-out; /* Animación suave al moverse */
}


.chat-bubble::before {
    content: "\2709";
    font-size: 24px;
    color: white;
}

.user-message {
    background: #0078ff;
    align-self: flex-end;
    text-align: right;
    padding: 8px;
    margin-bottom: 5px;
    max-width: 80%;
    border-radius: 5px;
    color: white;
}

.bot-message {
    background: #e0e0e0;
    align-self: flex-start;
    text-align: left;
    padding: 8px;
    margin-bottom: 5px;
    max-width: 80%;
    border-radius: 5px;
    color: black;
}

.chat-options button {
    background: #0078ff;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
}

.send-button {
    background: #0078ff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
}
