/* === STYLE.CSS v7 - CON ESTILOS DE MENÚ === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#chat-container {
    width: 90%;
    max-width: 600px;
    height: 80vh;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word; /* Para que el texto se parta bien */
}

.message.bot {
    background-color: #333;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}

.message.user {
    background-color: #007aff;
    color: white;
    border-bottom-right-radius: 5px;
    align-self: flex-end;
}

.message.bot-typing {
    background-color: #333;
    color: #999;
    font-style: italic;
    padding: 10px 18px;
}

.message.bot-error {
    background-color: #8B0000;
    color: white;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
}

#chat-form {
    display: flex;
    padding: 20px;
    border-top: 1px solid #333;
}

#message-input {
    flex-grow: 1;
    border: none;
    background-color: #3a3a3a;
    color: #e0e0e0;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    transition: background-color 0.2s;
}

#message-input:disabled {
    background-color: #2b2b2b;
}

#send-button {
    background-color: #007aff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

#send-button svg {
    width: 24px;
    height: 24px;
    fill: white;
}

#send-button:hover {
    background-color: #0056b3;
}

#send-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* --- ¡¡ESTILOS PARA LOS BOTONES DEL MENÚ!! --- */

.button-container {
    display: flex;
    flex-wrap: wrap; /* Para que los botones se reordenen si no caben */
    gap: 8px; /* Espacio entre botones */
    padding-top: 10px;
    align-self: flex-start; /* Se alinea con los mensajes del bot */
}

.menu-button {
    background-color: #4A4A4A;
    color: #F0F0F0;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.menu-button:hover {
    background-color: #5A5A5A;
}

.menu-button:disabled {
    background-color: #2b2b2b;
    color: #777;
    cursor: not-allowed;
    opacity: 0.7;
}