/* La imagen está en la esquina inferior derecha */
.buttonBot-container {
    position: fixed;
    bottom: 40px;
    right: -6px;
    z-index: 999;
}

/* Mostrar completo al inicio */
#openBotButton.initial-show {
    right: 20px;
    animation: slideIn 0.5s ease;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        right: -20px;
    }

    to {
        right: 20px;
    }
}

.buttonBot {
    /*width: 60px;*/ /* Tamaño de la imagen */
    /*height: 60px;*/
    cursor: pointer;
    transition:margin-right 0.5s ease;
}

/* Contenedor del iframe, inicialmente oculto */
.iframeBot-container {
    position: fixed;
    flex-direction:column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#botIframe
{
    min-height:98% !important;    
}

/* El wrapper asegura que el iframe sea responsive */
.iframeBot-wrapper {
    position: relative;
    width: 100%;
    max-width: 1024px;
    height: 98%;
}

.iframeBot {
    width: 100%;
    height: 100%;
    border: none;
}

.closeBot {
    color: white;
    padding: 3px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 1439px) {
    #openBotButton {
        margin-right: -158px; /* Oculto por defecto en mobile */
    }

        /* Mostrar completo al inicio */
        #openBotButton.initial-show {
            margin-right: inherit;
        }

        /* Animación de salida después de 3 segundos */
        #openBotButton.hide-partial {
            animation: slideOut 0.5s ease forwards;
        }


    /* Animación de salida después de 3 segundos */
    #openBotButton.hide-partial {
        animation: slideOut 0.5s ease forwards;
    }

    @keyframes slideOut {
        from {
            margin-right: 0;
        }

        to {
            margin-right: -158px;
        }
    }

    /* Mostrar completo al hacer hover (opcional) */
    /*#openBotButton:hover {
        margin-right: 20px;
    }*/

    /* Cuando está activo, mostrar completo */
    /*#openBotButton.active {
        right: 20px;
    }*/
}
