/* ============================================
   FASE6.CSS — Análisis y Reflexión
   Estilos específicos de fase6.html
   ============================================ */

.fase-content {
  width: 100%;
}

/* --- SECCIÓN 1: METACOGNICIÓN --- */

.reflection-questions {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.question-block {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}

.question-block:hover {
  border-color: rgba(123, 108, 246, 0.3);
}

.question-block h3 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.answer-area p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.answer-area p:last-child {
  margin-bottom: 0;
}

/* --- SECCIÓN 2: RÚBRICA --- */

.rubric-wrapper {
  margin-top: 1rem;
}

.rubric-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text-heading);
  margin-bottom: 1.5rem;
  text-align: center;
}

.rubric-table-container {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.rubric-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Cabecera */
.rubric-table thead th {
  background: var(--gradient-primary);
  color: #fff;
  padding: 1rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(123, 108, 246, 0.3);
}

/* Celdas del cuerpo */
.rubric-table tbody td {
  border: 1px solid var(--color-border);
  padding: 1rem 0.75rem;
  vertical-align: top;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
  transition: background-color 0.2s ease;
}

/* Columna de criterios */
.rubric-table .criteria-cell {
  background-color: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text-heading);
  text-align: left;
  width: 20%;
}

/* Filas impares */
.rubric-table tbody tr:nth-child(odd) td:not(.criteria-cell) {
  background-color: var(--color-surface);
}

/* Celda seleccionada */
.rubric-table .selected {
  background: rgba(100, 223, 223, 0.15) !important;
  color: var(--color-text-heading) !important;
  font-weight: 600;
  border: 2px solid var(--color-secondary);
  box-shadow: inset 0 0 12px rgba(100, 223, 223, 0.1);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .question-block {
    padding: 1.25rem;
  }

  .question-block h3 {
    font-size: 1.05rem;
  }

  .rubric-heading {
    font-size: 1.1rem;
  }
}
