/* ==== CONTENEDOR GENERAL ==== */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 9999; /* aseguramos que esté sobre todo */
}

/* ==== MENSAJE LATERAL ==== */
#chatbot-message {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 20px;
    margin-right: 12px; /* separa del botón */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;          /* aseguramos que sea visible */
    opacity: 1;              /* visible */
    transform: none;         /* sin desplazamiento */
    pointer-events: auto;    /* clickeable */
}

#chatbot-message:hover {
    background-color: #f2f2f2;
}

/* ==== BOTÓN FLOTANTE ==== */
#chatbot-button {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatUpDown 3s ease-in-out infinite;
}

/* ==== ANIMACIÓN SUAVE ARRIBA Y ABAJO ==== */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

#chatbot-button img {
    width: 40px;
    height: 40px;
}

/* ==== POPUP DEL CHAT ==== */
#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

/* ==== IFRAME WRAPPER ==== */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==== IFRAME ==== */
#chatbot-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==== BARRA INFERIOR BLANCA ==== */
.iframe-footer-cover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #ffffff;
}


