.modal-ia {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.card-ia {
    /* width: 450px; */
    max-width: 800px;
    height: fit-content;
    background-color: white;
    box-shadow: 0px 187px 75px rgba(0, 0, 0, 0.01), 0px 105px 63px rgba(0, 0, 0, 0.05), 0px 47px 47px rgba(0, 0, 0, 0.09), 0px 12px 26px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
    border-radius: 17px 17px 27px 27px;
    margin: 10% auto;
    /* max-height: 75vh; */
  overflow: auto;
  transition: width 1s;
}

.title-ia {
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 20px;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 700;
    font-size: 13px;
    color: #47484b;
    display: flex;
    justify-content: space-between;
    
}

.title-ia::after {
    content: '';
    width: 8ch;
    height: 1px;
    position: absolute;
    bottom: -1px;
    background-color: #47484b;
}

.comments-ia {
    padding: 20px;
    max-height: 48vh;
    overflow: auto;
}



.comment-container-ia .comment-content-ia {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #5f6064;
}

/* .text-box-ia {

    height: fit-content;
    background-color: #f1f1f1;
    padding: 8px;
    border-radius: 10px;
} */

.text-box-ia .box-container-ia {
    display: flex;
    background:white;
    padding:9px 0 13px 10px;
    border-radius:14px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.text-box-ia textarea {
    width: 95%;
    height: 40px;
    resize: none;
    border: 0;
    border-radius: 6px;
    padding: 12px 12px 10px 12px;
    font-size: 13px;
    outline: none;
    caret-color: #0a84ff;
}

.text-box-ia .formatting-ia {
    text-align: right;
}

.text-box-ia .formatting-ia button {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    border: 0;
    outline: none;
}

.text-box-ia .formatting-ia button:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.text-box-ia .formatting-ia .send-ia {
    width: 35px;
    height: 35px;
    background-color: #0E4864;
    margin:
  0 0 0 auto;
      margin-top: 0px;
      margin-right: 0px;
    border-radius:
  9px;
    margin-right: 10px;
    margin-top: 4px;
}

.text-box-ia .formatting-ia .send:hover {
    background-color: #026eda;
}

@keyframes ripple {
    0% {
    transform: scale(0);
    opacity: 0.6;
    }

    100% {
    transform: scale(1);
    opacity: 0;
    }
}
.linki{
    color: #032E50;
    cursor: pointer;
    font-size: 12px;
}
.code-window {
    /* no eliminar */
    /* background-color: #4c5660; */
    border-radius: 6px;
    /* padding: 16px; */
    /* position: relative; */
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    /* line-height: 1.5; */
    overflow-x: auto;
    /* padding-top: 35px; */
    margin: -35px 0px;
}

.code-content {
    /* color: white; */
    /* color: #4D4D4D; */
    margin: 0;
    padding-right: 40px; 
    min-height: 55px;
}

.language-tag {
    position: absolute;
    /* top: 8px; */
    font-size: 12px;
    color: #a0a0ac; 
    background-color: rgba(63, 63, 70, 0.5); 
    padding: 2px 6px;
    border-radius: 4px;
    top: 40px;
    color: white;
    margin-left: -50px;
    display: none;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(63, 63, 70, 0.5); 
    color: #a1a1aa; 
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: none;
}

.copy-btn:hover {
    background-color: rgba(82, 82, 91, 0.5);
    color: #e4e4e7;
}

@media (max-width: 640px) {
    .code-window {
        font-size: 12px;
    }
    
    .language-tag {
        font-size: 10px;
    }
}
/* nu */
/* Estilo para mensajes del usuario */
.message-user {
    text-align: right;
    margin: 10px 0;
}

.message-user .bubble {
    display: inline-block;
    background-color: #0a84ff;
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 70%;
}

/* Estilo para mensajes de la IA */
.message-ai {
    text-align: left;
    margin: 10px 0;
}

.message-ai .bubble {
    display: inline-block;
    background-color: #f1f1f1;
    color: #5f6064;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 70%;
}

#ia-input {
    min-height: 40px;  /* altura mínima inicial */
    max-height: 300px;  /* altura máxima */
    overflow-y: auto;   /* agrega scroll vertical cuando sea necesario */
    width: 100%;
    resize: vertical;   /* permite al usuario redimensionar verticalmente */
}