﻿/* Botón de cierre */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
}

    .close-button:hover {
        color: red;
    }

/* Botón de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 30px;
    left: auto;
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 8px;
    padding: 10px 10px;
    font-size: 14px;
    min-width: 120px;
    font-weight: bold;
    gap: 10px;
}

.whatsapp-button-icon {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.whatsapp-button-text span {
    margin-left: 0px;
}

/* Interfaz de Chat */
.chat-interface {
    position: fixed;
    bottom: 100px;
    right: 20px; /* ✅ Cambiado: aparece sobre el botón, a la derecha */
    left: auto;
    background: lightseagreen;
    border-radius: 8px;
    padding: 15px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

    .chat-interface.visible {
        visibility: visible;
        opacity: 1;
    }

.chat-header {
    margin-bottom: 10px;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
}

.chat-footer {
    margin-top: 10px;
}

.form-control {
    width: 100%;
    height: 100%;
    resize: none;
}
