#chatbot{
    position: fixed;
    bottom: 70px; /* 🔥 AJUSTA AQUÍ */
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

#chat-bubble{
    background: rgba(51, 50, 50, 0.596);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    position: relative;
    animation: reboteSuave 2s infinite;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#chat-bubble::after{
    content: "";
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: rgba(120,120,120,0.35);
    transform: rotate(45deg);
}

#chat-btn{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(51, 50, 50, 0.596);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0,170,255,0.7);
    box-shadow: 0 0 8px rgba(0,170,255,0.6),
                0 4px 12px rgba(0,0,0,0.3);
}

#chat-btn:hover{
    transform: scale(1.1);
    background: rgba(120, 120, 120, 0.6);
}

#chat-btn img{
    width: 30px;
}

#chat-box{
    width: 320px;
    height: 420px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
    overflow: hidden;
    animation: abrirChat 0.4s ease;
    border: 1px solid rgba(0, 170, 255, 0.6);
    box-shadow: 0 0 10px rgba(0,170,255,0.6),
                0 0 20px rgba(0,170,255,0.4),
                0 10px 25px rgba(0,0,0,0.3);
}

.chat-header{
    background: rgba(80,80,80,0.5);
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-header span{
    cursor: pointer;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.chat-header span:hover{
    background: rgba(255,255,255,0.2);
    transform: scale(1.2);
}

#chat-content{
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

.bot{
    background: rgba(200,200,200,0.3);
    color: #000;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    animation: fadeIn 0.4s ease;
}

.user{
    background: rgba(100,100,100,0.7);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    text-align: right;
    animation: fadeIn 0.4s ease;
}

.chat-input{
    display: flex;
    gap: 5px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}


.chat-input input{
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
}

.chat-input input::placeholder{
    color: #ddd;
}


.chat-input button{
    padding: 10px 15px;
    border-radius: 12px;
    border: none;
    background: rgba(0,170,255,0.6);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.chat-input button:hover{
    background: rgba(0,170,255,0.9);
    transform: scale(1.05);
}

#chat-options button{
    width: 100%;
    margin: 3px 0;
    padding: 8px;
    background: rgba(120,120,120,0.4);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

#chat-options button:hover{
    background: rgba(160,160,160,0.6);
}

#typing{
    display: none;
    font-size: 12px;
    padding: 5px;
    color: #ddd;
    font-style: italic;
}

@keyframes abrirChat{
    from{
        transform: translateY(20px);
        opacity: 0;
    }
    to{
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn{
    from{
        opacity: 0;
        transform: translateY(10px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reboteSuave{
    0%{ transform: translateY(0); }
    30%{ transform: translateY(-6px); }
    50%{ transform: translateY(0); }
    70%{ transform: translateY(-3px); }
    100%{ transform: translateY(0); }
}
