/**
 * Fecha de creación: 2026-05-22
 * Autor: Juan Morel de MVisual
 * Pasos de compra — estilos aislados (prefijo tpc__).
 */
.tpc {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 1.25rem auto;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.tpc *,
.tpc *::before,
.tpc *::after {
  box-sizing: border-box;
}

.tpc__card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tpc__header {
  text-align: center;
  margin: 0 0 24px;
  padding: 0;
}

.tpc__title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: inherit;
}

.tpc__title-accent {
  color: #c8102e;
}

.tpc__subtitle {
  margin: 0;
  padding: 0;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.tpc__divider {
  width: 32px;
  height: 2px;
  background: #c8102e;
  border-radius: 2px;
  margin: 10px auto 0;
}

.tpc__flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tpc__step {
  margin: 0;
  padding: 12px 8px 10px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tpc__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c8102e 0%, #e63946 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tpc__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(200, 16, 46, 0.08);
  border-color: transparent;
}

.tpc__step:hover::before {
  transform: scaleX(1);
}

.tpc__step-num {
  margin: 0 0 8px;
  padding: 0;
  font-size: 9px;
  font-weight: 800;
  color: #c8102e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

.tpc__icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  padding: 0;
  background: radial-gradient(circle at 50% 30%, #fff5f7 0%, #ffe8ec 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tpc__step:hover .tpc__icon {
  background: #c8102e;
  transform: rotate(-6deg);
}

.tpc__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  color: #c8102e;
  stroke-width: 2;
  transition: color 0.3s ease;
}

.tpc__step:hover .tpc__icon svg {
  color: #fff;
}

.tpc__step-title {
  margin: 0 0 2px;
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tpc__step-desc {
  margin: 0;
  padding: 0;
  font-size: 9px;
  color: #888;
  line-height: 1.3;
}

body.page-neumaticos #neumaticos-contenido-blanco .tpc {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

body.page-neumaticos #neumaticos-contenido-blanco .tpc:first-child {
  margin-top: 1rem;
}

body.page-neumaticos #neumaticos-contenido-blanco .tpc:last-child {
  margin-bottom: 0.75rem;
}

#resultados .tpc,
.neumaticos-tpc-vista-resultados-wrap .tpc {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.neumaticos-tpc-antes-resultados-wrap .tpc {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.neumaticos-tpc-landing-espejo-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .tpc__flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .tpc__card {
    padding: 20px 14px;
  }
}

@media (max-width: 420px) {
  .tpc__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
