body {
  font-family: "Comic Sans MS", Arial, sans-serif;
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
  text-align: center;
  margin: 0;
  padding: 0;
  color: #222;
}

.menu-container {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 25px;
  padding: 30px;
  margin: 30px auto;
  max-width: 1000px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* --- TÃTULO COLORIDO --- */
.titulo-principal {
  font-size: 3.2em;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.colorido span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.colorido span:nth-child(1) { color: #ff6b6b; }
.colorido span:nth-child(2) { color: #ffa94d; }
.colorido span:nth-child(3) { color: #f9d923; }
.colorido span:nth-child(4) { color: #69db7c; }
.colorido span:nth-child(5) { color: #4dabf7; }
.colorido span:nth-child(6) { color: #9775fa; }
.colorido span:nth-child(7) { color: #f783ac; }
.colorido span:nth-child(8) { color: #ff922b; }

.colorido span:hover {
  transform: scale(1.2) rotate(-5deg);
}

/* --- BARRA DE PROGRESO --- */
.progreso-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.icono-estudiante {
  width: 42px;
  height: 42px;
}

.progress-bar {
  width: 55%;
  height: 12px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.4s ease;
}

#porcentajeProgreso {
  font-weight: bold;
  color: #333;
}

/* --- TARJETAS DE MÃ“DULOS --- */
.tablero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tarjeta {
  background: #fff;
  border-radius: 15px;
  width: 250px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.tarjeta:hover {
  transform: scale(1.05);
  background: #f0f9ff;
}

.icono {
  font-size: 2em;
  margin-bottom: 10px;
}

.controles {
  margin-top: 20px;
}

#btnReiniciar {
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
}

#btnReiniciar:hover {
  background: #1976d2;
}
