/* WhatsApp Widget para Moveo Rent a Car */
.wa-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    z-index: 999999;
    position: relative;
}

/* Botón flotante */
.wa-floating-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 999999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
    text-decoration: none;
}

.wa-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff;
}

.wa-floating-btn i {
    font-size: 34px;
    transition: transform 0.3s ease;
}

/* Estado abierto para el botón flotante (color violeta como en la referencia) */
.wa-floating-btn.active {
    background-color: #A886CD;
    box-shadow: 0 4px 14px rgba(168, 134, 205, 0.4);
}

.wa-floating-btn.active:hover {
    box-shadow: 0 6px 18px rgba(168, 134, 205, 0.55);
}

.wa-floating-btn.active i {
    font-size: 26px;
}

/* Notificación sutil de atención */
.wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Caja de chat emergente */
.wa-chat-box {
    position: fixed;
    bottom: 98px;
    left: 25px;
    width: 320px;
    max-width: calc(100vw - 50px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.28s ease;
}

.wa-chat-box.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Cabecera del chat */
.wa-chat-header {
    background: #4AA485;
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-chat-header-info i {
    font-size: 24px;
}

.wa-chat-header-text h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.wa-chat-header-text span {
    font-size: 11px;
    opacity: 0.88;
}

.wa-chat-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.wa-chat-close-btn:hover {
    opacity: 1;
}

/* Cuerpo del chat */
.wa-chat-body {
    background-color: #efeae2;
    background-image: radial-gradient(#d4cbbe 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 20px 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.wa-chat-bubble {
    background: #ffffff;
    border-radius: 4px 12px 12px 12px;
    padding: 10px 14px;
    max-width: 86%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    position: relative;
    font-size: 14px;
    color: #222222;
    line-height: 1.4;
    animation: waFadeIn 0.3s ease;
}

.wa-chat-bubble p {
    margin: 0;
    color: #222222;
    font-size: 14px;
}

.wa-chat-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #888888;
    margin-top: 4px;
}

/* Pie del chat / Input */
.wa-chat-footer {
    background: #f0f0f0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #e5e5e5;
}

.wa-input-wrap {
    background: #ffffff;
    border-radius: 24px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    flex: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-emoji-icon {
    color: #8a8a8a;
    font-size: 16px;
    margin-right: 8px;
    user-select: none;
}

.wa-chat-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    background: transparent;
    color: #222222;
}

.wa-chat-input::placeholder {
    color: #999999;
}

.wa-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, background-color 0.2s;
    outline: none;
    flex-shrink: 0;
}

.wa-send-btn:hover {
    background-color: #1ebe5d;
    transform: scale(1.06);
}

.wa-send-btn i {
    font-size: 15px;
    margin-left: 2px;
}

@keyframes waFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para pantallas móviles */
@media (max-width: 576px) {
    .wa-floating-btn {
        bottom: 20px;
        left: 20px;
        width: 54px;
        height: 54px;
    }
    .wa-floating-btn i {
        font-size: 30px;
    }
    .wa-chat-box {
        bottom: 84px;
        left: 20px;
        width: calc(100vw - 40px);
    }
}
