/* ===============================================
   GCLA - Sección Cómo Comprar
   Componente Modular - Proceso de Compra B2B
   =============================================== */

/* Contenedor Principal */
.how-to-buy-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

/* Badge de la sección */
.how-to-buy-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Pasos del proceso */
.process-step {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3B82F6, #1D4ED8);
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #3B82F6;
}

/* Header del paso */
.step-header {
  position: relative;
  margin-bottom: 24px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.step-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.3s ease;
}

.step-icon i {
  font-size: 32px;
  color: #3B82F6;
}

.process-step:hover .step-icon {
  background: rgba(59, 130, 246, 0.2);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Contenido del paso */
.step-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Beneficios del paso */
.step-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.benefit-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #3B82F6;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.process-step:hover .benefit-tag {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* CTA del proceso */
.process-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.process-cta h4 {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 12px;
}

.process-cta p {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.process-cta .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 200px;
}

.process-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .how-to-buy-section {
    padding: 40px 0;
  }
  
  .process-step {
    padding: 24px 20px;
    margin-bottom: 20px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .step-icon {
    width: 70px;
    height: 70px;
  }
  
  .step-icon i {
    font-size: 28px;
  }
  
  .step-content h4 {
    font-size: 18px;
  }
  
  .step-content p {
    font-size: 15px;
  }
  
  .process-cta {
    padding: 30px 20px;
  }
  
  .process-cta h4 {
    font-size: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .process-cta .btn {
    min-width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .how-to-buy-badge {
    padding: 10px 20px;
    font-size: 12px;
  }
  
  .process-step {
    padding: 20px 16px;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-icon i {
    font-size: 24px;
  }
  
  .step-content h4 {
    font-size: 16px;
  }
  
  .step-content p {
    font-size: 14px;
  }
  
  .process-cta {
    padding: 24px 16px;
  }
  
  .benefit-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .process-step {
    border-width: 2px;
    border-color: #3B82F6;
  }
  
  .step-number {
    background: #1D4ED8;
  }
  
  .step-icon i {
    color: #1D4ED8;
  }
}

/* Reducir animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .process-step,
  .step-number,
  .step-icon,
  .benefit-tag {
    transition: none;
  }
  
  .process-step:hover {
    transform: none;
  }
}