/* Nexura Chat Widget */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    padding: 0;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    cursor: pointer;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: chat-fab-grow 2.6s ease-in-out infinite;
    position: fixed;
}

.chat-fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    opacity: 0;
    animation: chat-fab-pulse 2.6s ease-out infinite;
}

.chat-fab-icon {
    width: 28px;
    height: 28px;
    display: block;
    background-color: #ffffff;
    -webkit-mask-image: url("../assets/boton_chat.png");
    mask-image: url("../assets/boton_chat.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

.chat-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 16px 28px rgba(0,0,0,0.28);
}

@keyframes chat-fab-grow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 14px 26px rgba(0,0,0,0.28);
    }
}

@keyframes chat-fab-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.25);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    max-height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.chat-widget.show {
    display: flex;
}

.chat-header {
    padding: 12px 14px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        border: none;
        background: transparent;
    gap: 8px;
        box-shadow: none;
}

.chat-close {
    background: transparent;
    border: none;
        position: fixed;
    cursor: pointer;
}
    .chat-orb {
        width: 54px;
        height: 54px;
        position: relative;
        display: block;
        border-radius: 50%;
        animation: chat-orb-float 3.6s ease-in-out infinite;
    }

    .chat-orb::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 30%, #00fff2, #00ccff 40%, #0066ff 70%, #001a4d);
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.6),
            0 0 50px rgba(0, 204, 255, 0.4),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
        animation: chat-orb-grow 2.6s ease-in-out infinite;
        z-index: 1;
    }

    .chat-wave {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 2px solid rgba(0, 255, 255, 0.35);
        border-radius: 50%;
        width: 54px;
        height: 54px;
        animation: chat-wave-expand 2.6s ease-out infinite;
        z-index: 0;
    }

    .chat-wave:nth-child(2) {
        animation-delay: 0.7s;
    }

    .chat-wave:nth-child(3) {
        animation-delay: 1.4s;
.chat-message.user {
    flex-direction: row-reverse;
}
        transform: none;
    width: 28px;
    height: 28px;
    @keyframes chat-orb-float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }

    @keyframes chat-orb-grow {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 50px rgba(0, 204, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.2);
        }
        50% {
            transform: scale(1.08);
            box-shadow: 0 0 40px rgba(0, 255, 255, 0.8), 0 0 70px rgba(0, 204, 255, 0.6), inset 0 0 40px rgba(0, 255, 255, 0.3);
        }
    }

    @keyframes chat-wave-expand {
        0% {
            width: 54px;
            height: 54px;
            opacity: 0.9;
        }
        100% {
            width: 110px;
            height: 110px;
            opacity: 0;
        }
    }
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
}

.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

.chat-send {
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .chat-widget {
        right: 12px;
        width: 92vw;
    }
    .chat-fab {
        right: 12px;
    }
}
