/* ============================================================
   PROCESS-01 — Metodología de Procesos Plana y Minimalista
   Sin tarjetas, diseño de flujo de línea superior
   ============================================================ */

.process-steps-section {
  padding: 80px 24px;
  background: var(--backgroundAlt);
  position: relative;
  overflow: hidden;
}

.process-steps-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.process-header {
  text-align: center;
  margin-bottom: 60px;
}

.process-header .sub {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-title, 'Outfit', sans-serif);
}

.process-header h2 {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--secondary);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.process-header p {
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 16px auto 0;
}

/* steps flow: sin tarjetas, diseño de línea temporal */
.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
}

.process-step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  border-color: var(--primary);
}

.step-num {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover .step-num {
  transform: translateY(-2px);
}

.step-title {
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 10px 0;
  letter-spacing: -0.2px;
}

.step-desc {
  color: var(--text);
  font-size: 0.90rem;
  line-height: 1.6;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .process-steps-section {
    padding: 50px 24px;
  }
  .process-header {
    margin-bottom: 32px;
  }
  .steps-flow {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
  }
  .process-step {
    border-top: none;
    border-left: none;
    padding: 0 0 32px 0;
    position: relative;
    text-align: center;
  }

  .process-step::before {
    display: none;
  }

  /* Conector vertical centrado */
  .process-step::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 16px;
    background: var(--border);
    transition: background-color 0.25s ease;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }
  .process-step:last-child::after {
    display: none;
  }

  .process-step:hover::after {
    background-color: var(--primary);
  }

  .step-num {
    font-size: 2.2rem;
    margin-bottom: 6px;
  }

  .step-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .step-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    color: var(--text) !important;
  }

  /* Forzar links dentro de pasos sin color primario */
  .step-desc a,
  .process-header p a {
    color: var(--text) !important;
    text-decoration: none !important;
  }
}

@media (max-width: 480px) {
  .process-steps-section {
    padding: 40px 16px;
  }
  .process-header {
    margin-bottom: 24px;
  }
  .steps-flow {
    max-width: 100%;
  }
  .process-step {
    padding: 0 0 24px 0;
  }
  .process-step::after {
    bottom: 8px;
    height: 12px;
    width: 2px;
  }
  .step-num {
    font-size: 1.85rem;
    margin-bottom: 4px;
  }
  .step-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .step-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 100%;
    padding: 0 4px;
    color: var(--text) !important;
  }
}