.study-container {
  display: grid;
  gap: 15px;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  grid-template-columns: repeat(3, 1fr); /* por defecto: 3 columnas (móvil) */
}

/* En pantallas medianas (tablets, >768px) */
@media (min-width: 768px) {
  .study-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* En pantallas grandes (desktop, >1200px) */
@media (min-width: 1200px) {
  .study-container {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px; /* opcional, para centrar */
    margin: 0 auto;
  }
}

.color-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.color-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* === Pistas en tarjetas responsive === */
#clues {
  margin-top: 20px;
}

.clues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.clue-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background: #f9f9f9;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.clue-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
}

/* Botón de audio tipo "etudier" */
.btn-audio {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}
.btn-audio:hover {
  background: #0056b3;
}
.btn-audio i {
  margin-right: 6px;
}