.chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #f78f1e;
    color: white;
    font-size: 26px;
    padding: 14px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.chat-bubble:hover {
    background-color: #db7c11;
}

/* Caja del chat */
.chat-box {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
}

/* Cabecera */
.chat-header {
    background-color: #f78f1e;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* Cuerpo del chat */
.chat-body {
    padding: 10px;
    height: 250px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    max-width: 100%;
}

.chat-message.bot {
    background-color: #eee;
    color: black;
    align-self: flex-start;
}

.chat-message.user {
    background-color: black;
    align-self: flex-end;
    text-align: right;
}

/* Footer */
.chat-footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-top: 1px solid #ddd; 
    overflow-y: auto;       
    width: 100%;
    max-height: 100px;
}

.chat-footer button {
    margin-bottom: 8px;
    padding: 8px 14px;
    background-color: #f78f1e;
    border: none;
    color: white;
    min-height: 42px;
    border-radius: 20px;
    cursor: pointer;
}

.chat-footer::-webkit-scrollbar {
    width: 5px;
}

.chat-footer::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

#close-chat{
    background-color: transparent !important;
}

@media (max-height: 375px) {
    .chat-box,
    .chat-bubble {
        display: none !important;
    }
}