/* RESET Y ESTRUCTURA BASE */
#lz-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

#lz-chat-button {
    width: 60px;
    height: 60px;
    background: #6a1b9a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#lz-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #f5f5f7;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* MENSAJES Y ENLACES (CORE FIX) */
.lz-msg {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    max-width: 80%;
    line-height: 1.4;
    position: relative !important;
}

.lz-assistant {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #333;
}

/* Forzado de enlaces clickeables */
.lz-assistant a {
    color: #6a1b9a !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-block !important;
}

/* ANIMACIÓN DE PUNTOS MEJORADA */
.lz-typing-dots {
    display: flex !important;
    align-items: center !important;
    gap: 4px;
    height: 15px;
    padding-top: 5px;
}

.lz-typing-dots span {
    animation: lzPulse 1.4s infinite both;
    display: inline-block !important;
    width: 7px;
    height: 7px;
    background: #6a1b9a;
    border-radius: 50%;
}

.lz-typing-dots span:nth-child(2) { animation-delay: .2s; }
.lz-typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes lzPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* RESTO DE ESTILOS */
#lz-chat-header { background: #6a1b9a; color: white; padding: 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
#lz-chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.lz-user { background: #6a1b9a; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
#lz-chat-input-area { padding: 15px; background: white; display: flex; gap: 10px; border-top: 1px solid #eee; }
#lz-chat-input { flex: 1; border: 1px solid #ddd; border-radius: 20px; padding: 8px 15px; outline: none; }
#lz-chat-send { background: none; border: none; cursor: pointer; }