/* ==========================================================================
   Section: education
   Falexom Education: segunda dimensión de la marca. Momento editorial más
   claro y exploratorio dentro del HOME sobre Primary Soft. Composición de
   dos columnas: narrativa + panel editorial del proceso de aprendizaje.
   ========================================================================== */

.fx-section--education {
  background: var(--fx-color-primary-soft);
  color: var(--fx-color-carbon);
  padding-block: calc(var(--fx-section-space) * 0.75);
}

/* La hairline superior del sistema (--fx-color-line) se mantiene: lee como
   el punto de entrada intencional al momento de Education del recorrido. */

.fx-education__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--fx-space-12);
  align-items: start;
}

/* ------------------------------------------------------------
   Columna izquierda — narrativa
   ------------------------------------------------------------ */

.fx-education__narrative {
  display: grid;
  gap: var(--fx-space-3);
  align-content: start;
}

.fx-education__eyebrow {
  color: var(--fx-color-primary-deep);
  margin-bottom: var(--fx-space-1);
}

.fx-education__title {
  margin-bottom: 0;
  max-width: var(--fx-content-max);
  text-wrap: balance;
}

.fx-education__lead {
  margin-bottom: 0;
  max-width: var(--fx-reading-max);
  color: var(--fx-color-primary-deep);
}

.fx-education__note {
  margin-bottom: 0;
  max-width: var(--fx-reading-max);
  color: var(--fx-color-text-secondary);
}

.fx-education__cta {
  margin-top: var(--fx-space-6);
}

/* CTA: superficie Primary Deep con texto inverse sobre el fondo claro. */
.fx-education__cta .fx-button--primary {
  background: var(--fx-color-primary-deep);
  color: var(--fx-color-text-inverse);
}

.fx-education__cta .fx-button--primary:hover {
  background: var(--fx-color-primary);
}

/* ------------------------------------------------------------
   Columna derecha — panel editorial del proceso de aprendizaje
   ------------------------------------------------------------ */

.fx-education__flow {
  display: grid;
  gap: var(--fx-space-5);
  padding: var(--fx-space-8);
}

.fx-education__flow-head {
  display: grid;
  gap: var(--fx-space-1);
}

.fx-education__flow-title {
  margin-bottom: 0;
  color: var(--fx-color-primary-deep);
}

.fx-education__flow-subtitle {
  margin-bottom: 0;
  color: var(--fx-color-text-secondary);
}

/* Micro ejemplo contextual: discreto, sin convertirse en card. */
.fx-education__example {
  display: grid;
  gap: var(--fx-space-1);
  padding: var(--fx-space-3) var(--fx-space-4);
  border-left: 3px solid var(--fx-color-primary-deep);
  background: var(--fx-color-primary-soft);
}

.fx-education__example-label {
  color: var(--fx-color-primary-deep);
  font-weight: 500;
}

.fx-education__example-text {
  margin-bottom: 0;
  color: var(--fx-color-text-secondary);
}

.fx-education__steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-education__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--fx-space-4);
  align-items: center;
  padding-block: var(--fx-space-3);
  border-top: 1px solid var(--fx-color-line-strong);
}

.fx-education__step:first-child {
  border-top: 0;
}

.fx-education__step:last-child {
  padding-bottom: 0;
}

/* Número: ancla visual de la progresión, con peso editorial. */
.fx-education__step-number {
  min-width: 2ch;
  color: var(--fx-color-primary-deep);
  font-size: var(--fx-text-h2);
  font-weight: 600;
  line-height: 1;
}

.fx-education__step-copy {
  display: grid;
  gap: var(--fx-space-1);
}

/* Label entre corchetes: tipográfico, técnico y editorial (sin borde/badge). */
.fx-education__step-label {
  color: var(--fx-color-carbon);
  font-size: var(--fx-text-body-sm);
  font-weight: 500;
  text-transform: uppercase;
}

.fx-education__step-text {
  margin-bottom: 0;
  color: var(--fx-color-text-secondary);
}

/* Flecha de progresión integrada al extremo derecho del paso. */
.fx-education__step-arrow {
  color: var(--fx-color-primary);
  line-height: 1;
}

/* Acentos semánticos por paso: solo tokens existentes. */
.fx-education__step:nth-child(1) .fx-education__step-label {
  color: var(--fx-color-primary);
}

.fx-education__step:nth-child(2) .fx-education__step-label {
  color: var(--fx-color-primary-deep);
}

.fx-education__step:nth-child(3) .fx-education__step-label {
  color: var(--fx-color-slate);
}

.fx-education__step:nth-child(4) .fx-education__step-label {
  color: var(--fx-color-success);
}

.fx-education__step:nth-child(5) .fx-education__step-label {
  color: var(--fx-color-carbon);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1199px) {
  .fx-education__stage {
    gap: var(--fx-space-8);
  }

  .fx-education__step {
    gap: var(--fx-space-3);
  }
}

@media (max-width: 767px) {
  .fx-education__stage {
    grid-template-columns: 1fr;
  }

  .fx-education__flow {
    padding: var(--fx-space-6);
  }

  .fx-education__narrative {
    gap: var(--fx-space-3);
  }

  .fx-education__step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  /* En mobile la flecha pasa bajo el contenido para no comprimir la lectura. */
  .fx-education__step-arrow {
    grid-column: 2;
  }
}
