body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
}

.card-header {
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.input-field {
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: white;
}

.input-field:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  outline: none;
}

.input-field:disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn {
  transition: all 0.2s ease;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #0ea5e9;
  color: white;
}

.btn-primary:hover {
  background-color: #0284c7;
}

.btn-primary:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #64748b;
  color: white;
  border-color: #64748b;
}

.btn-secondary:hover {
  background-color: #475569;
  border-color: #475569;
}

.btn {
  min-height: 48px; /* Tamaño táctil mínimo para móviles */
  touch-action: manipulation; /* Mejora la respuesta táctil */
}

@media (min-width: 640px) {
  .btn {
    min-height: auto;
  }
}

.floating-label {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label select {
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  background-color: white;
  min-height: 48px; /* Tamaño táctil mínimo para móviles */
}

@media (min-width: 640px) {
  .floating-label input,
  .floating-label select {
    padding-bottom: 0.5rem;
  }
}

.floating-label label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  color: #64748b;
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 0.9rem;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  top: 0.25rem;
  font-size: 0.75rem;
  color: #0ea5e9;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 0;
  transform: translateY(-50%);
}

.progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  background-color: #e2e8f0;
  color: #64748b;
}

@media (min-width: 640px) {
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

.step-number.active {
  background-color: #0ea5e9;
  color: white;
}

.step-number.completed {
  background-color: #10b981;
  color: white;
}

.step-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  max-width: 100%;
  line-height: 1.2;
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .step-label {
    font-size: 0.75rem;
    max-width: 80px;
  }
}

.step-label.active {
  color: #0ea5e9;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .progress-steps {
    flex-direction: row;
    gap: 0.5rem;
  }

  .progress-steps::before {
    left: 1rem;
    right: 1rem;
  }

  .floating-label input,
  .floating-label select {
    font-size: 16px; /* Previene zoom en iOS */
  }
}

@media (max-width: 1024px) {
  .card {
    margin-bottom: 1rem;
  }
}

/* Alpine.js x-cloak */
[x-cloak] {
  display: none !important;
}