/* Botón Flotante */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 100px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* Color WhatsApp/Chat */
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

/* Ventana de Chat */
.chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 100px;
    width: 350px;
    max-width: 90%;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.chat-header {
    background-color: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #E5DDD5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background-color: white;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background-color: #DCF8C6;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    text-align: right;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-option-btn {
    background-color: white;
    border: 1px solid #128C7E;
    color: #128C7E;
    padding: 8px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    text-align: center;
}

.chat-option-btn:hover {
    background-color: #128C7E;
    color: white;
}

.chat-footer {
    padding: 10px;
    background: #f0f0f0;
    text-align: center;
    font-size: 11px;
    color: #888;
}

/* Animación de entrada */
.chat-window.open {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}