/* ============================================
   CHARVEL & CO - Perfil Integral Page Styles
   ============================================ */

/* ---- Page Section ---- */
.perfil-section {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: var(--color-white);
  min-height: 80vh;
}

/* ---- Header ---- */
.perfil-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.perfil-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.perfil-title em {
  font-style: italic;
  font-weight: var(--font-weight-light);
  color: var(--color-primary);
}

.perfil-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Wizard Steps ---- */
.wizard {
  max-width: 800px;
  margin: 0 auto;
}

.wizard__steps {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  position: relative;
}

.wizard__steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-gray-200);
  z-index: 0;
}

.wizard__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  z-index: 1;
  background: var(--color-white);
}

.wizard__step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-gray-200);
  color: var(--color-gray-400);
  background: var(--color-white);
  transition: all var(--transition-base);
}

.wizard__step-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-400);
  transition: color var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Active Step */
.wizard__step--active .wizard__step-number {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.wizard__step--active .wizard__step-label {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* Completed Step */
.wizard__step--completed .wizard__step-number {
  border-color: var(--color-primary);
  background: var(--color-primary-10);
  color: var(--color-primary);
}

.wizard__step--completed .wizard__step-label {
  color: var(--color-text);
}

.wizard__step:hover .wizard__step-number {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

/* ---- Wizard Panel ---- */
.wizard__panel {
  display: none;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-2xl);
  animation: fadeInPanel 0.4s ease;
}

.wizard__panel--active {
  display: block;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard__panel-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.wizard__panel-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* ---- Form Fields ---- */
.perfil-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.perfil-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.perfil-form__field--full {
  grid-column: 1 / -1;
}

.perfil-form__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.perfil-form__input,
.perfil-form__select,
.perfil-form__textarea {
  padding: 14px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.perfil-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23717171' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.perfil-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.perfil-form__input:focus,
.perfil-form__select:focus,
.perfil-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-10);
}

.perfil-form__input::placeholder,
.perfil-form__textarea::placeholder {
  color: var(--color-gray-400);
}

/* ---- Form Actions ---- */
.perfil-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .wizard__steps {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .wizard__steps::before {
    display: none;
  }

  .wizard__step {
    padding: var(--space-xs) var(--space-sm);
  }

  .wizard__step-number {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-xs);
  }

  .wizard__step-label {
    font-size: 10px;
  }

  .perfil-form__grid {
    grid-template-columns: 1fr;
  }

  .wizard__panel {
    padding: var(--space-xl) var(--space-lg);
  }

  .perfil-form__actions {
    flex-direction: column;
  }

  .perfil-form__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .wizard__steps {
    gap: 2px;
  }

  .wizard__step {
    flex: 1;
    padding: var(--space-xs) 2px;
  }
}
