/* ============================================================ */
/* BLOQUE: HOW IT WORKS v1.0                                    */
/* Depende de: variables.css, base.css                          */
/* ============================================================ */

.how__steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.how__step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.how__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.how__step-icon {
  display: block;
  font-size: var(--text-4xl);
  margin: var(--space-md) 0;
}

.how__step-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.how__step-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.how__connector {
  align-self: center;
  flex-shrink: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  position: relative;
}

.how__connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--accent-secondary);
}

@media (max-width: 900px) {
  .how__steps { flex-direction: column; align-items: center; gap: var(--space-2xl); }
  .how__step { max-width: 480px; width: 100%; }
  .how__connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  }
  .how__connector::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -2px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-secondary);
  }
}
