#ia-chat-widget {
    position: fixed;
    bottom: 30px; right: 20px;
    max-width: calc(100% - 40px);
    width: 350px;
    background: white;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-family: sans-serif;
    z-index: 100;
    overflow: hidden;
    /*display: none;*/
}

#ia-chat-init {
    position: fixed;
    bottom: 30px; right: 20px;
    font-family: sans-serif;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    display: flex;
}

#ia-chat-header {
    /*background: #111111;*/
    background: linear-gradient(90deg, #5d00b3 0%, #8200fa 39.9%, #f024f6 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ia-chat-header span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ia-chat-body {
    max-height: 450px;
    min-height: 200px;
    overflow-y: auto;
    padding: 10px;
}

#ia-chat-footer {
    display: flex;
    border-top: 1px solid #ccc;
}

#ia-chat-footer input {
    flex: 1;
    border: none;
    padding: 16px;
    border-bottom-left-radius: 22px;
    outline: none;
}

#ia-chat-footer button {
    /*background: #111111;*/
    background: linear-gradient(90deg, #5d00b3 0%, #8200fa 39.9%, #f024f6 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-bottom-right-radius: 22px;
}

.msg {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 6px 10px;
    border-radius: 5px;
    width: fit-content;
}

.msg.user {
    background: #f024f6;
    color: white;
    text-align: right;
    margin-left: auto;
    max-width: 80%;
}

.msg.bot {
    background: #f5f5f5;
    margin-right: auto;
    max-width: 80%;
}

.animated-border {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 0.2em;
    /*width: 300px;*/
    background: #1c1f2b;
    /*background: linear-gradient(90deg, #5d00b3 0%, #8200fa 39.9%, #f024f6 100%);*/
    text-align: center;
    border-radius: 50px;
    position: relative;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.animated-border::after, .animated-border::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    /*conic-gradient(from var(--angle), transparent 70%, blue)*/
    background-image: conic-gradient(from var(--angle), #5d00b3, #00ff99, #f024f6, #8200fa, #5d00b3); 
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    padding: 2px;
    border-radius: 50px;
    animation: 3s spin linear infinite;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

.animated-border::before {
    filter: blur(0.5rem);
    opacity: 0.5;
}

.elemento {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0s linear 0.1s; /* La transición de visibility es diferida */
}

.elemento.oculto {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.1s;
}

#load_response_chatbot {
    display: flex;
}