.chatbot-message {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 230px;
    height: 120px;
    background-color: white;
    border: 1px solid #dcdfe3;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none; /* Oculto inicialmente */
    z-index: 1000;
    box-sizing: unset;
}

    .chatbot-message.active {
        display: block;
    }

    .chatbot-message p {
        font-size: 12px;
        color: #333; /* Color oscuro para buena legibilidad */
        margin: 25px 5px;
        line-height: 2; /* Espaciado entre líneas para mejor lectura */
        text-align: left; /* Centrado del texto */
    }

.close-btn {
    position: absolute;
    top: -0px;
    right: -0px;
    background-color: transparent;
    border: none;
    font-size: 14px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: black
}

.chat-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #008eff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 1000;
}

    .chat-floating-btn:hover {
        transform: scale(1.1);
        background-color: #008eff !important;
    }

    .chat-floating-btn img {
        width: 30px;
        height: 30px;
    }

.chatbot-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -50px; /* Ajusta para que sobresalga del cuadro */
    left: 50%;
    transform: translateX(-50%);
    background-color: #009EE2; /* Fondo circular */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    z-index: 1001; /* Asegúrate de que esté encima del mensaje */
}

.chatbot-icon {
    width: 80px; /* Tamaño del ícono */
    height: 70px;
}

#iframe-chatbot iframe {
    width: 25rem !important;
    height: 650px;
    z-index: 99999999 !important;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    bottom: 12vh;
    right: 3vw;
    position: fixed;
    zoom: 0.8;
}

#iframe-chatbot {
    display: none; /* Oculto por defecto */
}

/* Responsivo para pantallas más pequeñas */
@media (max-width: 768px) {
    #iframe-chatbot {
        width: 90%; /* El iframe ocupará el 90% del ancho */
        height: 80%; /* El iframe ocupará el 80% de la altura */
        right: 5%; /* Centrado horizontalmente */
        bottom: 10%; /* Centrado verticalmente */
    }
}

.close-btn:hover {
    color: black !important;
    background-color: white !important;
}
