/* assets/css/micro-interactions.css */
/* Micro-interacciones para mejorar la experiencia */

/* Efecto de "lift" en tarjetas de servicio */
.service-card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s ease;
}

.service-card:hover:not(.selected) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

/* Efecto de "press" en botones */
.btn:active:not(:disabled) {
  transform: translateY(1px) !important;
  transition: transform 0.1s ease;
}

/* Efecto de carga sutil en botón WhatsApp */
.btn-whatsapp.sending {
  position: relative;
  overflow: hidden;
}

.btn-whatsapp.sending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Indicador visual de campos requeridos */
.input-label.required::after {
  content: ' *';
  color: var(--danger);
  font-weight: bold;
}

/* Feedback visual para checkbox */
.checkbox-wrapper label {
  transition: all 0.2s ease;
}

.checkbox-wrapper input[type="checkbox"]:focus + label {
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
  border-color: var(--primary);
}

/* Efecto de "pulse" sutil en progress step activo */
.progress-step.active .step-number {
  animation: gentle-pulse 2s infinite;
}

@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.1); }
}

/* Transición suave entre tabs */
.tab-pane {
  animation: slide-fade 0.3s ease forwards;
}

@keyframes slide-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto de "morph" en botón continuar de tarjeta */
.service-cta {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-cta:hover {
  transform: translateY(-2px) scale(1.05) translateY(-40px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Indicador de scroll para servicios grid */
.services-grid {
  scroll-behavior: smooth;
}

.services-grid::-webkit-scrollbar-thumb {
  transition: background 0.3s ease;
}

.services-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.5);
}

/* Efecto de "glow" en campos focus */
.input-field:focus {
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1),
              0 0 20px rgba(0, 212, 255, 0.1);
}

/* Animación de "check" en día seleccionado */
.day-option.selected::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--primary);
  font-weight: bold;
  font-size: 12px;
  animation: check-pop 0.3s ease;
}

@keyframes check-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Efecto de "breathing" en botón activo */
.btn.pulse {
  animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0.1); }
}