@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.2/font/bootstrap-icons.min.css");

/* Estilos para botones */
.boton-circular {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: black;
    overflow: hidden;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.boton-circular img {
    width: 69px;
    height: 69px;
    border-radius: 50%;
    cursor: pointer;
}

.bandurria-chatbot-container:not(.abierto)+.boton-circular {
    display: block;
}

.bandurria-chatbot-container.abierto {
    opacity: 1;
    transform: translateY(0);
}

.bandurria-chatbot-container .cerrar-popup,
.boton-circular.abierto .abrir-popup {
    font-size: 1.2em;
    color: #ffffff;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bandurria-chatbot-container .cerrar-popup {
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: absolute;
    top: 5px;
    right: 5px;
    color: beige;
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

/* Estilos para la interfaz del chat */
.bandurria-chatbot-container {
    position: fixed;
    background-color: white;
    border: 1px solid #b9b6b6c5;
    border-radius: 5px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    width: 410px;
    height: 500px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
}

.bandurria-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (min-width: 1200px) {
    .bandurria-chatbot-container {
        height: 515px;
        width: 410px;
    }
    .bandurria-iframe {
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .bandurria-chatbot-container {
        height: 490px;
        width: 395px;
    }
    .bandurria-iframe {
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .bandurria-chatbot-container {
        height: 375px;
        width: 350px;
    }
    .bandurria-iframe {
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .bandurria-chatbot-container {
        height: 340px;
        width: 320px;
    }
    .bandurria-iframe {
        height: 100%;
        width: 100%;
    }
}