/* ==========================================================================
   Talleres extraprogramáticos (talleres.html)
   Solo clases nuevas de esta página. Colores y medidas salen de :root
   en styles.css; aquí no se definen colores nuevos.

   ÍNDICE
    1. Acento de cada eje (música = dorado, reforzamiento = azul y verde)
    2. Tarjetas de los ejes (intro)
    3. Beneficios
    4. Instrumentos
    5. Profesores
    6. Horario de reforzamiento y etiqueta "Datos de prueba"
    7. Responsive (mismos cortes que styles.css: 960px y 640px)
   ========================================================================== */

/* ===== 1. Acento de cada eje ===== */
/* --t-accent: franja de color · --t-soft: fondo de ícono/etiqueta
   --t-ink: texto sobre --t-soft (contraste AA) · --t-icon: trazo de íconos */
.taller--musica {
  --t-accent: var(--c-sun);
  --t-soft:   var(--c-gold-soft);
  --t-ink:    var(--c-gold-ink);
  --t-icon:   var(--c-gold-deep);
}
.taller--refuerzo {
  --t-accent: var(--c-blue);
  --t-soft:   var(--c-green-soft);
  --t-ink:    var(--c-done-ink);
  --t-icon:   var(--c-sprout);
}

/* ===== 2. Tarjetas de los ejes (intro) ===== */
.taller-ejes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.taller-eje {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 34px 32px 30px; border-radius: var(--radius-lg); color: var(--c-ink);
  background: var(--c-white); box-shadow: inset 0 6px 0 var(--t-accent), var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.taller-eje:hover { transform: translateY(-4px); box-shadow: inset 0 6px 0 var(--t-accent), var(--shadow); color: var(--c-ink); }
.taller-eje__tag {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--t-soft); color: var(--t-ink);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.taller-eje h3 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.7rem; margin: 8px 0 2px; }
.taller-eje p { color: var(--c-muted); margin: 0 0 10px; }
.taller-eje__more { margin-top: auto; font-weight: 800; color: var(--c-blue); }

/* ===== 3. Beneficios ===== */
.taller-beneficios { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.taller-beneficio { background: var(--c-white); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.taller-beneficio__icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--t-soft);
}
.taller-beneficio__icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--t-icon);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.taller-beneficio h3 { font-size: 1.05rem; margin-bottom: 4px; }
.taller-beneficio p { color: var(--c-muted); font-size: .94rem; margin: 0; }

/* ===== 4. Instrumentos ===== */
.instrumentos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.instrumento {
  display: flex; flex-direction: column; padding: 24px 20px 20px; border-radius: var(--radius);
  background: var(--c-white); box-shadow: inset 4px 0 0 var(--t-accent), var(--shadow-sm);
}
.instrumento h4 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.35rem; margin-bottom: 6px; }
.instrumento p { flex: 1; color: var(--c-muted); font-size: .94rem; margin: 0 0 14px; }
.instrumento__datos { display: grid; gap: 2px; margin: 0; padding-top: 12px; border-top: 1px dashed var(--c-line); font-size: .88rem; }
.instrumento__datos div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.instrumento__datos dt { font-weight: 800; color: var(--c-navy); }
.instrumento__datos dd { margin: 0; color: var(--t-ink); }

/* ===== 5. Profesores (usa .team y .person de styles.css) ===== */
.taller-equipo { grid-template-columns: repeat(3, 1fr); }
.taller-equipo .person h4 { font-size: 1.05rem; margin-bottom: 4px; }
.taller-resena { color: var(--c-muted); font-size: .92rem; margin: 0; }

/* ===== 6. Horario de reforzamiento ===== */
.taller-horario { margin-top: 64px; padding: 32px; border-radius: var(--radius-lg); background: var(--c-white); box-shadow: var(--shadow-sm); }
.taller-horario__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.taller-horario__title { font-size: 1.3rem; margin: 0; }
.taller-horario__note { margin: 14px 0 0; color: var(--c-muted); font-size: .9rem; }
/* Etiqueta "Datos de prueba": se quita cuando lleguen los datos reales */
.taller-badge {
  padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--c-terra);
  background: var(--c-red-soft); color: var(--c-terra);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.horario-tabla { width: 100%; border-collapse: collapse; font-size: .96rem; }
.horario-tabla th {
  padding: 12px 16px; text-align: left; background: var(--c-navy); color: var(--c-white);
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.horario-tabla th:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.horario-tabla th:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.horario-tabla td { padding: 14px 16px; border-bottom: 1px solid var(--c-blue-line); }
.horario-tabla tbody tr:nth-child(even) { background: var(--c-mist); }

/* ===== 7. Responsive ===== */
/* Tablet */
@media (max-width: 960px) {
  .taller-beneficios, .instrumentos { grid-template-columns: repeat(3, 1fr); }
}

/* Móvil */
@media (max-width: 640px) {
  .taller-ejes, .taller-equipo { grid-template-columns: 1fr; }
  .taller-eje { padding: 28px 24px 24px; }

  /* Beneficios en filas: ícono a la izquierda, texto a la derecha */
  .taller-beneficios { grid-template-columns: 1fr; gap: 12px; }
  .taller-beneficio { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .taller-beneficio__icon { grid-row: span 2; margin: 0; }

  .instrumentos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .instrumento { padding: 18px 16px 16px; }
  .instrumento:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Tabla → una tarjeta por fila; la etiqueta sale de data-label */
  .taller-horario { padding: 22px 18px; }
  .horario-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .horario-tabla, .horario-tabla tbody, .horario-tabla tr, .horario-tabla td { display: block; }
  .horario-tabla tr { padding: 4px 14px; margin-bottom: 12px; border: 1px solid var(--c-blue-line); border-radius: var(--radius-sm); }
  .horario-tabla td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--c-blue-line); }
  .horario-tabla td:last-child { border-bottom: 0; }
  .horario-tabla td::before { content: attr(data-label); font-weight: 800; color: var(--c-navy); }
}
