/* Botón flotante */
/* Animación pulsante */
@keyframes wptravel-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wptravel-abrir-chat-flotante {
    animation: wptravel-pulse 2s infinite;
}

.wptravel-abrir-chat-flotante {
    position: fixed;
    bottom: 50px;
    right: 10px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.wptravel-abrir-chat-flotante:hover {
    background-color: #128C7E;
}

/* Ventana de chat flotante */
.wptravel-whatsapp-chat-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: "Helvetica Neue", sans-serif;
}

/* Header del chat */
.wptravel-chat-header {
    background-color: #25D366;
    color: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.wptravel-chat-header .wptravel-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.wptravel-chat-header .wptravel-chat-info {
    flex-grow: 1;
}

.wptravel-chat-nombre-agencia {
    font-weight: bold;
    font-size: 15px;
    display: block;
}

.wptravel-chat-estado {
    font-size: 12px;
    opacity: 0.8;
}

/* Botón cerrar */
.wptravel-chat-cerrar {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Cuerpo del chat */
.wptravel-chat-body {
    padding: 12px;
    overflow-y: auto;
    flex-grow: 1;
    background-color: #ece5dd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wptravel-mensaje {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.wptravel-mensaje-bienvenida {
    background-color: #ffffff;
    color: #000;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wptravel-mensaje-turista textarea {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    resize: none;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

/* Footer del chat */
.wptravel-chat-footer {
    background-color: #fff;
    padding: 12px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

#wptravel-enviar-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#wptravel-enviar-whatsapp:hover {
    background-color: #128C7E;
}
