:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #10b981;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Bienvenida */
.brand-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.mascot-avatar {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.brand-header h1 span {
  color: var(--primary);
}

.brand-header p {
  margin-top: 10px;
  color: #4b5563;
  line-height: 1.5;
}

.card {
  padding: 30px;
}

.progreso {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.opciones-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn-opcion {
  padding: 15px;
  text-align: left;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-opcion:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

/* Pantalla de Chat */
#chat-screen {
  display: flex;
  flex-direction: column;
  height: 85vh;
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mindly-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mascot-mini {
  font-size: 2rem;
  background: white;
  border-radius: 50%;
  padding: 5px;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.btn-quiz {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-quiz:hover {
  opacity: 0.9;
}

.chat-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8fafc;
}

.mensaje {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.mensaje.usuario {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.mensaje.mindly {
  background: white;
  border: 1px solid #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.input-area {
  display: flex;
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  background: white;
  gap: 10px;
}

.input-area input {
  flex: 1;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.btn-send {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}