/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    height: 100vh;
}

/* ----------------------
   Estilos del Chat Modal
------------------------- */
.chat-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none; /* Se mostrará al activar el chat */
    flex-direction: column;
}

.chat-header {
    background: #333;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h2 {
    font-size: 18px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    background: #f9f9f9;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 14px;
    outline: none;
}

.chat-footer button {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* ----------------------
   Estilos de las Burbujas de Mensaje
------------------------- */
.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

/* Mensajes del usuario: Alineados a la izquierda, burbuja blanca */
.message.user {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #ddd;
}

/* Mensajes del chatbot: Alineados a la derecha, burbuja azul cielo */
.message.bot {
    align-self: flex-end;
    background: #87CEEB; /* Azul cielo */
    color: #fff;
    border: 1px solid #7ac0e0;
}

/* ----------------------
   Botón Central del Chat
------------------------- */
.chat-toggle-btn {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
