
/* ==============================
   CONFIGURACIÓN GENERAL
============================== */

body {
    background-color: #f4f6fa;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    color: #333;
}

/* ==============================
   ENCABEZADO
============================== */

header h1 {
    color: #2457a6;
    letter-spacing: -1px;
}

header p {
    font-size: 15px;
}

/* ==============================
   VENTANA DEL CHAT
============================== */

.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

.card-header {
    background-color: #2457a6 !important;
    border: none;
}

.card-header h5 {
    font-weight: 600;
}

/* ==============================
   ÁREA DE MENSAJES
============================== */

.chat-messages {
    height: 420px;
    overflow-y: auto;
    padding: 20px;
    background-color: #ffffff;
}

/* Mensajes generales */

.message {
    display: flex;
    margin-bottom: 15px;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.5;
    font-size: 14px;
}

/* Mensaje del chatbot */

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background-color: #edf2fa;
    color: #333;
    border-bottom-left-radius: 3px;
}

/* Mensaje del usuario */

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: #2457a6;
    color: white;
    border-bottom-right-radius: 3px;
}

/* ==============================
   CAMPO DE ESCRITURA
============================== */

.card-footer {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}

.form-control {
    border-radius: 8px 0 0 8px;
    padding: 11px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #2457a6;
}

#send-button {
    background-color: #2457a6;
    border-color: #2457a6;
    padding-left: 20px;
    padding-right: 20px;
}

#send-button:hover {
    background-color: #194582;
}

/* ==============================
   PIE DE PÁGINA
============================== */

footer {
    font-size: 13px;
}

/* ==============================
   DISEÑO PARA CELULARES
============================== */

@media (max-width: 576px) {

    .chat-messages {
        height: 380px;
    }

    .message-content {
        max-width: 95%;
    }

    main {
        padding-top: 20px !important;
    }

}
