.note {
  background: #e7f4ff;
  border-left: 4px solid #2980b9;
  padding: 12px;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.quiz-container {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin: 2em 0;
}
.quiz-question { margin-bottom: 1.2em; }
.quiz-question label {
  display: block;
  margin: 6px 0;
  padding: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}
.quiz-question input { margin-right: 10px; }
.feedback {
  margin-top: 6px;
  padding: 6px;
  border-radius: 3px;
  font-weight: bold;
}
.feedback.correct { color: #27ae60; }
.feedback.incorrect { color: #e74c3c; }
.btn-primary {
  background: #2980b9;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
.btn-primary:hover { background: #1c5980; }

/* Estilos para la página de índice de GPIO */
.intro {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 2em;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.lesson-card {
  display: block;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #2c3e50;
}

.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.lesson-card h3 {
  margin: 0 0 10px;
  color: #2980b9;
  font-size: 1.2em;
}

.lesson-card p {
  margin: 0;
  color: #666;
  font-size: 0.95em;
}

.lesson-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.note {
  background: #e7f4ff;
  border-left: 4px solid #2980b9;
  padding: 16px;
  margin: 2em 0;
  border-radius: 0 4px 4px 0;
}

.exercise-section {
  margin: 2.5em 0;
  padding: 15px;
  background: #f0f7ff;
  border-radius: 6px;
  text-align: center;
}

.btn-exercise {
  display: inline-block;
  background: #2980b9;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.btn-exercise:hover {
  background: #1c5980;
}
