#punto-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#punto-chat-btn {
    background-color: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background-color 0.2s;
}
#punto-chat-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}
#punto-chat-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: 500px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.punto-chat-header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #ffffff;
    padding: 14px 18px;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.punto-chat-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.punto-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}
.punto-message {
    padding: 12px 14px;
    border-radius: 10px;
    max-width: 88%;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
}
.punto-message.user {
    background: #1e3a8a;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.punto-message.ai {
    background: #ffffff;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.punto-chat-input-area {
    display: flex;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.punto-chat-input-area input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}
.punto-chat-input-area input:focus {
    border-color: #1e3a8a;
}
.punto-chat-input-area button {
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    padding: 0 16px;
    margin-left: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s;
}
.punto-chat-input-area button:hover {
    background: #2563eb;
}
.punto-chat-btn-link {
    display: inline-block;
    margin-top: 10px;
    background: #0d9488;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    transition: background 0.2s;
}
.punto-chat-btn-link:hover {
    background: #0f766e;
}