/* Contenedor del botón */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Botón flotante */
.whatsapp-button {
    width: 55px;
    height: 55px;
    background-color: rgb(8, 168, 8);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Ventana de chat estilo WhatsApp */
.whatsapp-chat {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 340px; /* más grande */
    background: #e5ddd5;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
    z-index: 1001;
}

/* Encabezado del chat */
.chat-header {
    background: #075e54;
    color: white;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Cuerpo del chat */
.chat-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mensaje estilo burbuja de la empresa */
.message-bubble {
    background: #dcf8c6;
    padding: 10px 14px;
    border-radius: 7px;
    max-width: 90%;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    align-self: flex-start;
    position: relative;
}

/* Colita a la izquierda */
.message-bubble::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 10px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent #dcf8c6 transparent transparent;
}

/* Botón tipo mensaje saliente */
.message-button {
    background: rgb(8, 168, 8);
    color: white;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    align-self: flex-end;
    transition: background 0.3s ease;
    position: relative;
}

/* Colita a la derecha */
.message-button::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 10px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent rgb(8, 168, 8);
}

.message-button:hover {
    background: rgb(6, 140, 6);
}

.message-button i {
    font-size: 16px;
}

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