#whatsapp-chat {
    position: fixed;
    bottom: 45px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    color: #25D366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s, height 0.3s;
    z-index: 999;
}

#whatsapp-chat .whatsapp-icon img {
    width: 40px;
    height: 40px;
}

#whatsapp-chat .whatsapp-icon .icon-closed {
    display: block;
}

#whatsapp-chat .whatsapp-icon .icon-open {
    display: none;
}

#whatsapp-chat .whatsapp-close-icon {
    display: none; /* Ocultar el icono de cerrar por defecto */
}

#whatsapp-chat.closed .whatsapp-icon .icon-closed {
    display: none; /* Ocultar el icono de WhatsApp cuando está cerrado */
}

#whatsapp-chat.closed .whatsapp-icon .icon-open {
    display: block; /* Mostrar el icono de cerrar cuando está cerrado */
}

.whatsapp-agent {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    bottom: 70px;
    right: 0;
    border-radius: 10px;
    padding: 10px;
    width: 300px;
    transition: bottom 0.3s;
}

#whatsapp-chat:not(.closed) .whatsapp-agent {
    display: flex;
}

.agent {
    cursor: pointer;
}

.agent-header {
    background-color: #25D366;
    color: #fff;
    font-weight: bold;
    padding: 20px 10px 10px; 
    border-radius: 10px 10px 0 0;
}

.agent-content {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
}

.agent img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.agent-text {
    text-align: left;
    color: #333333;
}

.agent-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.agent-position {
    font-size: 14px;
    color: #ccc;
    font-weight: bold;
}

.whatsapp-link {
    display: block;
    background-color: #25D366; /* Cambiar el color de fondo a #333333 */
    color: #fff; /* Cambiar el color del texto a blanco */
    font-weight: bold;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.whatsapp-link:hover {
    background-color: #128C7E; /* Cambiar el color de fondo al pasar el mouse */
    color: #fff; /* Mantener el color del texto a blanco */

}