/* Modal (overlay) */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    overflow: auto;
}

/* Contenido del modal */
.modal-content {
    background-color: white;
    width: 80%;
    max-width: 650px;
    max-height: 85%;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    display: flex;
    flex-direction: column;
    position: relative;
}


/* Estilos específicos para tablets (iPads y similares) */
@media screen and (min-width: 868px) and (max-width: 1024px) {
    .modal-content {
        width: 75%;
    }
}

/* Estilos específicos para móviles */
@media screen and (max-width: 868px) {
    .modal-content {
        width: 92%;
        padding: 15px;
    }
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 5;
}

.modal-buttons button {
    border-radius: 10px;
    /* Add rounded corners */
    background-color: #ffffff;
    /* Button background color */
    color: rgb(0, 0, 0);
    /* Button text color */
    padding: 10px 20px;
    /* Adjust padding for larger size */
    font-size: 16px;
    /* Adjust font size for larger size */
    cursor: pointer;
    /* Show pointer cursor on hover */
    width: 135px;
}

.modal-buttons button:last-child {
    position: relative;
    /* Position relative for absolute icon */
}

.modal-content p {
    display: flex;
    /* Use flexbox for alignment */
    align-items: center;
    /* Align items vertically */
    margin-top: 5px;
    margin-bottom: 5px;
}

.modal-content p i {
    margin-right: 5px;
    /* Adjust spacing between icon and text */
}


.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.close-icon {
    cursor: pointer;
    width: 28px;
    font-style: normal;
    height: 28px;
    background-color: rgba(237, 237, 237, 0.9);
    border-radius: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

/* icono */
.close-icon::before {
    content: "close";
    font-family: "Material Icons";
    font-size: 20px;
    line-height: 1;
    color: #555;
    display: block;
}






#user-message {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    display: none;
    /* se muestra con JS */
    resize: vertical;
    flex-shrink: 0;
    /* no dejar que el textarea se reduzca */
    min-height: 250px;
    /* altura mínima */
    height: auto;
    /* altura adaptable si quieres que crezca */
    margin-bottom: 10px
}