/* LJVSA Chat — Estilos */

/* Botón flotante */
#ljvsa-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
#ljvsa-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
#ljvsa-chat-btn svg {
    fill: #ffffff;
    width: 32px;
    height: 32px;
}

/* Botón cerrar (X) */
#ljvsa-chat-close-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    border: none;
    color: white;
}
#ljvsa-chat-close-btn svg {
    fill: white;
    width: 24px;
    height: 24px;
}

/* CTA bubble */
#ljvsa-chat-cta {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 9997;
    max-width: 200px;
    display: none;
    animation: ljvsa-fadein 0.3s ease;
}
#ljvsa-chat-cta-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #999;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Popup */
#ljvsa-chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    animation: ljvsa-slidein 0.25s ease;
}

@keyframes ljvsa-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ljvsa-slidein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header del popup */
.ljvsa-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.ljvsa-popup-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ljvsa-popup-header-icon svg {
    fill: white;
    width: 24px;
    height: 24px;
}
.ljvsa-popup-header-text h4 {
    color: white;
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
}
.ljvsa-popup-header-text p {
    color: rgba(255,255,255,0.88);
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}
.ljvsa-popup-header-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px;
}
.ljvsa-popup-header-close:hover { opacity: 1; }
.ljvsa-popup-header-close svg { fill: white; width: 16px; height: 16px; }

/* Body del popup */
.ljvsa-popup-body {
    padding: 16px;
}
.ljvsa-popup-response-text {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px;
}

/* Items de contacto */
.ljvsa-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    background: #f7f7f7;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
}
.ljvsa-contact-item:hover { background: #eee; }
.ljvsa-contact-item:last-child { margin-bottom: 0; }

.ljvsa-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ljvsa-contact-avatar.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.ljvsa-contact-avatar.dify {
    background: linear-gradient(135deg, #F4812B 0%, #c36722 100%);
}
.ljvsa-contact-avatar svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.ljvsa-contact-info {
    flex: 1;
}
.ljvsa-contact-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    display: block;
}
.ljvsa-contact-sub {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
}

.ljvsa-contact-icon svg {
    fill: #25D366;
    width: 22px;
    height: 22px;
}
.ljvsa-contact-icon.dify svg {
    fill: #F4812B;
}
