/* ===== BODY GENERAL ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2f4f88, #3b6cb7);
}

/* ===== CONTENEDOR GENERAL ===== */
.chat-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===== FORMULARIOS PEQUEÑOS (LOGIN / REGISTER) ===== */
.form-container {
    max-width: 400px;
    margin-top: 80px;
}

/* ===== TITULOS ===== */
h1 {
    margin-bottom: 20px;
    color: #1e2a3a;
    text-align: center;
}

h2 {
    margin-bottom: 15px;
    color: #333;
}

/* ===== FORMULARIOS ===== */
form {
    display: flex;
    flex-direction: column;
}

/* ===== LABELS ===== */
label {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

/* ===== INPUTS ===== */
input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
}

/* ===== BOTON ===== */
button {
    margin-top: 20px;
    padding: 12px;
    background-color: #3b6cb7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #2f5597;
}

/* ===== LINKS ===== */
a {
    display: block;
    margin-top: 15px;
    color: #3b6cb7;
    text-decoration: none;
    text-align: center;
}

a:hover {
    text-decoration: underline;
}

/* ===== PREGUNTAS (DIAGNOSTICO) ===== */
.pregunta {
    margin-bottom: 25px;
    text-align: left;
    padding: 15px;
    border-radius: 8px;
    background: #f5f7fb;
    border-left: 5px solid #3b6cb7;
}

.pregunta p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #1e2a3a;
}

.pregunta label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
    font-weight: normal;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    color: white;
}

/* ===== USER BOX ===== */
.user-box {
    text-align: right;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 8px;
}

/* ===== LOGOUT ===== */
.logout-btn {
    margin-top: 10px;
    padding: 8px;
    font-size: 12px;
}

/* ===== GRID ===== */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* ===== CARD ===== */
.module-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    transition: 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
}

/* ===== COMPLETADO ===== */
.module-card.completed {
    border-left: 5px solid green;
}

/* ===== BOTON LAB ===== */
.lab-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #28a745;
}
