/* *************************************** */
/* ********* TITULO Y SUBTITULO ************ */
/* *************************************** */

.trespasos {
  width: 996px;
  height: auto;
  padding: 1.25rem;
  gap: 1.2325rem;
  opacity: 1;
  margin: 0 auto;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}

.main-title {
  font-weight: 700;
  font-size: 57px;
  line-height: 100%;
  text-align: center;
  color: #003899;
  font-family: 'Quicksand', sans-serif;
}

/* *************************************** */
/* ************ 3 PASOS ******************* */
/* *************************************** */

.steps-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding-bottom: 20px;
}

/* Línea conectora */
.steps-connector-line {
  position: absolute;
  top: 40px;
  left: 15%;
  width: 70%;
  height: 5px;
  z-index: 1;
}

/* Contenedor pasos */
.steps-content-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.step-item {
  width: 30%;
  text-align: center;
  position: relative;
}

/* Círculo */
.step-circle-wrapper {
  width: 73px;
  height: 73px;
  line-height: 73px;
  border-radius: 50%;
  background-color: #003899;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  font-family: 'Quicksand', sans-serif;
}

.step-number {
  font-family: 'Century Gothic', Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 100%;
  text-align: center;
}

/* Título del paso */
.step-title {
  font-weight: 700;
  font-size: 26px;
  color: #000000;
  margin: 20px 0;
  font-family: 'Quicksand', sans-serif;
}

/* Descripción */
.step-description {
  font-family: 'Century Gothic', Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 100%;
  text-align: center;
  color: #252525;
}

/* *************************************** */
/* ************ RESPONSIVE **************** */
/* *************************************** */

/* TABLET (<=1024px) */
@media (max-width: 1024px) {
  .trespasos {
      width: 100%;
      max-width: 996px;
      padding: 1rem;
      box-sizing: border-box;
  }

  .main-title {
      font-size: clamp(32px, 5vw, 42px);
      line-height: 1.05;
      padding: 0 10px;
  }

  .steps-container {
      max-width: 90%;
      margin: 30px auto;
  }

  .step-circle-wrapper {
      width: 64px;
      height: 64px;
      line-height: 64px;
      font-size: 1.25rem;
  }

  .step-title {
      font-size: clamp(20px, 2.5vw, 22px);
      margin: 14px 0;
  }

  .step-description {
      font-size: clamp(14px, 2vw, 16px);
  }
}

/* MÓVIL (<=768px) */
@media (max-width: 768px) {
  .trespasos {
      width: 100%;
      padding: 0.75rem 0.75rem 1.25rem;
      box-sizing: border-box;
  }

  .main-title {
      font-size: clamp(28px, 6vw, 34px);
      line-height: 1.02;
      margin-bottom: 8px;
      padding: 0 12px;
  }

  .steps-connector-line {
      display: none;
  }

  .steps-content-wrapper {
      flex-direction: column;
      gap: 26px;
      align-items: center;
      padding: 0 12px;
  }

  .step-item {
      width: 100%;
      max-width: 360px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .step-circle-wrapper {
      width: 64px;
      height: 64px;
      line-height: 64px;
      margin-bottom: 10px;
  }

  .step-number {
      font-size: clamp(18px, 3vw, 22px);
  }

  .step-title {
      font-size: clamp(18px, 3.5vw, 20px);
      margin: 8px 0;
  }

  .step-description {
      font-size: clamp(14px, 3vw, 16px);
      line-height: 1.25;
      padding: 0 8px;
  }
}

/* TELÉFONOS PEQUEÑOS (<=480px) */
@media (max-width: 480px) {
  .trespasos {
      padding: 0.5rem 0.5rem 1rem;
  }

  .main-title {
      font-size: clamp(22px, 7.5vw, 28px);
      line-height: 1.05;
      padding: 0 8px;
  }

  .step-circle-wrapper {
      width: 38px;
      height: 38px;
      line-height: 38px;
  }

  .step-number {
      font-size: 18.74px;
  }

  .step-title {
      font-size: 16px;
  }

  .step-description {
      font-size: 14px;
      padding: 0 6px;
  }

  .steps-content-wrapper {
      gap: 20px;
  }
}

/* TELÉFONOS PEQUEÑOS (<=375px) */
@media (max-width: 375px) {
  .trespasos {
      padding: 0.5rem 0.5rem 1rem;
  }

  .main-title {
      font-size: clamp(22px, 7.5vw, 28px);
      line-height: 1.05;
      padding: 0 8px;
  }

  .step-circle-wrapper {
      width: 38px;
      height: 38px;
      line-height: 38px;
  }

  .step-number {
      font-size: 18.74px;
  }

  .step-title {
      font-size: 16px;
  }

  .step-description {
      font-size: 14px;
      padding: 0 6px;
  }

  .steps-content-wrapper {
      gap: 20px;
  }
}



/* Mejora legibilidad */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .step-description,
  .step-title,
  .main-title {
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
  }
}
