.chat-launch-btn {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 30px;
            right: 30px;
            background-color: #25d366;
            color: #FFF;
            border: none;
            border-radius: 50px;
            text-align: center;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.25s ease, background-color 0.25s ease;
        }

        .chat-launch-btn:hover {
            transform: scale(1.08);
            background-color: #1ebc5a;
        }

        .chat-launch-btn .chat-badge {
            position: absolute;
            top: 50%;
            right: 74px;
            transform: translateY(-50%);
            background: #fff;
            color: #111;
            font-size: 13px;
            font-weight: 600;
            padding: 10px 16px;
            border-radius: 14px;
            white-space: nowrap;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        }

        .chat-launch-btn .chat-badge::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -6px;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: #fff;
            clip-path: polygon(0 0, 100% 50%, 0 100%);
        }

        /* Panel de chat */
        .chat-panel {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 370px;
            max-width: calc(100vw - 24px);
            height: 560px;
            max-height: calc(100vh - 100px);
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 1001;
            font-family: 'DM Sans', sans-serif;
        }

        .chat-panel.open {
            display: flex;
        }

        .chat-panel-header {
            background: #075E54;
            color: #fff;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .chat-panel-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }

        .chat-panel-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .chat-panel-title {
            font-weight: 700;
            font-size: 15px;
            line-height: 1.3;
        }

        .chat-panel-sub {
            font-size: 12px;
            opacity: 0.85;
        }

        .chat-panel-close {
            margin-left: auto;
            background: none;
            border: none;
            color: #fff;
            font-size: 22px;
            cursor: pointer;
            line-height: 1;
            padding: 4px;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: #ECE5DD;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .chat-bubble {
            max-width: 80%;
            padding: 9px 13px;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.45;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .chat-bubble.bot {
            background: #fff;
            color: #111;
            align-self: flex-start;
            border-bottom-left-radius: 3px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
        }

        .chat-bubble.user {
            background: #DCF8C6;
            color: #111;
            align-self: flex-end;
            border-bottom-right-radius: 3px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
        }

        .chat-typing {
            align-self: flex-start;
            background: #fff;
            border-radius: 12px;
            border-bottom-left-radius: 3px;
            padding: 10px 14px;
            display: flex;
            gap: 4px;
            box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
        }

        .chat-typing span {
            width: 6px;
            height: 6px;
            background: #999;
            border-radius: 50%;
            animation: chatTypingBounce 1.2s infinite ease-in-out;
        }

        .chat-typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .chat-typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

        @keyframes chatTypingBounce {

            0%,
            60%,
            100% {
                transform: translateY(0);
                opacity: 0.5;
            }

            30% {
                transform: translateY(-4px);
                opacity: 1;
            }
        }

        .chat-input-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 12px;
            background: #F0F0F0;
            border-top: 1px solid #E0E0E0;
            flex-shrink: 0;
        }

        .chat-input {
            flex: 1;
            border: none;
            outline: none;
            background: #fff;
            border-radius: 22px;
            padding: 10px 16px;
            font-size: 16px;
            font-family: 'DM Sans', sans-serif;
        }

        .chat-send-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: #25d366;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .chat-input:disabled {
            background: #F5F5F5;
            color: #999;
        }

        .chat-send-btn:disabled {
            background: #B9E8CB;
            cursor: not-allowed;
        }

        /* Mobile: hoja inferior compacta, se desliza de abajo hacia arriba */
        @media (max-width: 640px) {
            .chat-panel {
                top: auto;
                left: 0;
                right: 0;
                bottom: 0;
                width: 100%;
                height: 42vh;
                max-height: 380px;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                display: flex;
                transform: translateY(100%);
                transition: transform 0.3s ease;
            }

            .chat-panel.open {
                transform: translateY(0);
            }

            .chat-launch-btn {
                bottom: 20px;
                right: 20px;
            }

            .chat-launch-btn .chat-badge {
                display: none;
            }
        }