/* --- CONTENEDOR Y BOTONES --- */
#oac-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Segoe UI', Arial, sans-serif;
}

#oac-chat-btn {
    background: #0061FF !important;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex !important; /* Forzar visibilidad */
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Forzar que el icono del botón flotante se vea */
#oac-chat-btn svg {
    width: 32px;
    height: 32px;
    fill: white !important;
    display: block;
}

#oac-chat-box {
    width: 350px;
    height: 500px;
    background: #F2F2F2;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 75px;
    right: 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.oac-header {
    background: #0061FF;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- MENSAJES Y BURBUJAS --- */
#oac-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.user {
    background: #0061FF;
    color: white;
    align-self: flex-end; /* Derecha */
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    margin-bottom: 10px;
    max-width: 80%;
}

.bot {
    background: white;
    color: #333;
    align-self: flex-start; /* Izquierda */
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    margin-bottom: 10px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* --- ANIMACIÓN PUNTOS --- */
.dots { display: flex; align-items: center; gap: 4px; padding: 10px; }
.dots span {
    width: 8px; height: 8px; background: #0061FF; border-radius: 50%;
    animation: oac-bounce 1.4s infinite ease-in-out both;
}
.dots span:nth-child(1) { animation-delay: -0.32s; }
.dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes oac-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* --- BOTÓN ENVIAR --- */
#oac-send-btn {
    background: #0061FF !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#oac-send-btn svg {
    width: 20px;
    height: 20px;
    fill: white !important;
}

.oac-input-area {
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
}

#oac-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}