
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            color: #333;
        }

        /* Estado inicial: oculto + animación */
        .chat-button {
            opacity: 0;
            transform: scale(0.7);
            transition: opacity 0.6s ease, transform 0.6s ease;

            /* Estilos reales del botón */
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background-color: #14c2be;
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            z-index: 1000;
        }

        /* Cuando se muestre */
        .chat-button.show {
            opacity: 1;
            transform: scale(1);
        }

        .chat-container {
            position: fixed;
            bottom: 90px;
            right: 20px;
            width: 365px;
            height: 500px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            z-index: 999;
            transition: all 0.3s ease-in-out;
            transform: scale(0);
            transform-origin: bottom right;
        }

        .chat-container.open {
            transform: scale(1);
        }

        .chat-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background-color: #14C2BE;
            color: white;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .chat-header-info {
            display: flex;
            align-items: center;
        }

        .chat-header-icon {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            margin-right: 10px;
        }

        .chat-header-status {
            font-size: 12px;
            display: flex;
            align-items: center;
            margin-top: 2px;
        }

        .status-dot {
            height: 8px;
            width: 8px;
            background-color: #36e07dff;
            border-radius: 50%;
            display: inline-block;
            margin-right: 5px;
        }

        .chat-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
        }


        .chat-body {
            flex-grow: 1;
            padding: 20px;
            background-color: #f7f9fb;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }


        .chat-message-initial {
            background-color: white;
            border-radius: 10px;
            padding: 18px 25px;
            margin-bottom: 15px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            max-width: 90%;
            align-self: flex-start;
        }


        .chat-input-area {
            border-top: 1px solid #eee;
            padding: 10px 15px;
            display: flex;
            align-items: flex-end;
            position: relative;
        }


        .chat-input-area textarea {
            flex-grow: 1;
            border: none;
            padding: 10px 0;
            outline: none;
            font-size: 14px;
            resize: none;
            min-height: 20px;
            max-height: 100px;
            overflow-y: auto;
            box-sizing: border-box;
            line-height: 1.4;
            margin: 0 5px;
        }


        .attachment-label {
            cursor: pointer;
            font-size: 20px;
            color: #555;
            padding: 5px;
            flex-shrink: 0;
        }


        .chat-input-area button {
            background: #14C2BE;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 20px;
            margin-left: 10px;
            cursor: pointer;
            font-weight: bold;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            transition: background 0.2s;

            width: auto;
            height: auto;
        }

        .chat-input-area button:hover {
            background: #0db3b0;
        }


        .chat-input-area button span {
            display: block;
        }


        .chat-input-area button::before {
            content: none;
        }



        #file-input {
            display: none;
        }


        #file-preview-container {
            position: absolute;
            bottom: 55px;
            left: 0;
            right: 0;
            padding: 8px 15px;
            background: #fff;
            border-top: 1px solid #eee;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
            display: none;
            z-index: 10;
        }


        .preview-remove-btn {
            background: #333;
            color: white;
            border: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            font-size: 12px;
            line-height: 1;
            cursor: pointer;
            position: absolute;
            top: -5px;
            right: -5px;
            display: flex;
            justify-content: center;
            align-items: center;
        }


        @media (max-width: 768px) {
            .chat-container {
                width: 90vw;
                height: 80vh;
                bottom: 85px;
                right: 5vw;
                left: 5vw;
                border-radius: 12px;
                transform-origin: bottom center;
            }

            .chat-button {
                bottom: 15px;
                right: 15px;
            }
        }

        /* Animación de pulsación del botón */
        @keyframes pulse {
            0% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.15);
            }

            100% {
                transform: scale(1);
            }
        }

        .chat-button.pulse {
            animation: pulse 2.5s infinite;
        }

        /* Mensaje flotante */
        .chat-tooltip {
            position: fixed;
            bottom: 95px;
            right: 20px;
            padding: 10px 15px;
            background: #14c2be;
            color: white;
            font-size: 14px;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.5s ease, transform 0.5s ease;
            z-index: 1001;
            pointer-events: none;
        }

        /* Tooltip visible */
        .chat-tooltip.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* Barra de quick replies con scroll */
        #quick-replies {
            padding: 18px 25px;
            background: #f7f9fb;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;

            display: none;
            /* el JS lo prende/apaga */
            visibility: hidden;
            /* el JS también lo maneja */
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;

            max-height: 190px;
            /* ✅ controla cuántas filas se ven */
            overflow-y: auto;
            /* ✅ SCROLL */
            overflow-x: hidden;
            /* evita scroll horizontal */
        }

        /* Scrollbar (opcional, solo mejora estética) */
        #quick-replies::-webkit-scrollbar {
            width: 8px;
        }

        #quick-replies::-webkit-scrollbar-thumb {
            background: rgba(20, 194, 190, 0.35);
            border-radius: 10px;
        }

        #quick-replies::-webkit-scrollbar-track {
            background: transparent;
        }
   