    /* Botón flotante de chat */
    .chat-button {
        position: fixed;
        bottom: 40px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: #00ab44;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .chat-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .chat-button svg {
        width: 30px;
        height: 30px;
        fill: white;
    }

    /* Contenedor del chat (ventana modal) */
    .chat-container {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 400px;
        height: 600px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        display: none;
        flex-direction: column;
        z-index: 999;
    }

    .chat-container.active {
        display: flex;
    }

    .chat-header-main {
        background-color: #00ab44;
        color: white;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-header-main h3 {
        margin: 0;
        font-size: 16px;
    }
    
    .chat-heading {
        display: none !important;
    }

    .close-button {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-button:hover {
        opacity: 0.8;
    }

    .chat-iframe {
        flex: 1;
        border: none;
        width: 100%;
    }

    .hide-button {
        display: none;
    }

    /* Ocultar botón de chat cuando tiene clase hidden */
    .chat-button.hidden {
        display: none !important;
    }

    /* Responsive design */
    @media (max-width: 768px) {
        .chat-container {
            width: calc(100% - 40px);
            height: calc(100vh - 120px);
            bottom: 90px;
            right: 20px;
        }

        .chat-button {
            bottom: 25px;
            right: 15px;
        }
    }

    @media (max-width: 480px) {
        .chat-container {
            width: 100%;
            height: 100%;
            bottom: 0;
            right: 0;
            border-radius: 0;
        }

        .chat-button {
            bottom: 25px;
            right: 20px;
        }
    }