﻿/**
 * CTA Footer Widget - Desktop Styles
 * Version: 1.0.0
 */

/* Hide original Lety.ai floating bubble */
iframe[src*="lety.ai"][src*="chatbubble"]:not([src*="/chatbot/embed/"]) {
    display: none !important;
}

/* Hide any bubble container */
div[id*="lety-bubble"],
div[class*="lety-bubble"] {
    display: none !important;
}

/* Hide elements with chat-bubble class EXCEPT chat iframes */
button.chat-bubble,
div.chat-bubble:not(iframe),
span.chat-bubble,
a.chat-bubble {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Important: DO NOT hide the main chat iframe */
iframe[src*="/chatbot/embed/"] {
    display: block !important;
}

.cta-footer-widget {
    display: block !important;
    position: fixed;
    bottom: 0;
    z-index: 100000; /* Por encima del popover para permitir cambiar entre formularios */
    text-align: center;
    padding: 0;
    margin: 0;
}

.cta-footer-widget .cta-btn {
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    float: left;
    padding: 9px 5px;
    border-right: 2px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.cta-footer-widget .cta-btn:last-child {
    border-right: none;
}

.cta-footer-widget .cta-btn:hover,
.cta-footer-widget .cta-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

.cta-footer-widget .cta-btn-icon {
    display: block;
    margin: 0 auto 5px;
    width: 20px;
    height: 20px;
    /* SVG inline inherits text color via currentColor */
}

/* Specific styles for inline SVG */
.cta-footer-widget .cta-btn svg.cta-btn-icon {
    display: block;
    margin: 0 auto 5px;
    width: 20px;
    height: 20px;
}

/* Entrance animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cta-footer-widget {
    animation: slideUp 0.5s ease-out;
}

/* Clearfix for floats */
.cta-footer-widget::after {
    content: "";
    display: table;
    clear: both;
}

