/* =====================
   VARIABLES GLOBALES
   ===================== */
:root {
  /* Colores principales */
  --primary: #0f62fe;      /* Color principal (azul) */
  --muted: #6b7280;        /* Color gris para textos secundarios */
  --bg: #f0f4f8;           /* Fondo general de la página */
  --card: #fff;            /* Fondo de tarjetas y formularios */
  --success: #10b981;      /* Color verde para éxito */
  --danger: #ef4444;       /* Color rojo para errores */
  
  /* Espaciado y bordes */
  --radius: 12px;          /* Bordes redondeados */
  --shadow: 0 4px 12px rgba(0,0,0,0.05); /* Sombra suave */
  
  /* Tipografía */
  font-family: 'Segoe UI', sans-serif;
}

/* =====================
   RESET Y BASE
   ===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* =====================
   HEADER
   ===================== */
.wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #1d1d1f;
  font-size: 14px;
}

.logo-image {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

/* =====================
   CONTENEDOR PRINCIPAL
   ===================== */
.wizard-container {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =====================
   BARRA DE PASOS
   ===================== */
.steps-bar {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  position: relative;
}

.steps-bar::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.step span {
  display: inline-block;
  background: #e5e7eb;
  color: #6b7280;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  margin-bottom: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step.active span {
  background: #0044cc;
  color: #fff;
  transform: scale(1.1);
}

.step.completed span {
  background: var(--success);
  color: #fff;
}

.step.active p {
  color: var(--primary);
  font-weight: 600;
}

.step.completed p {
  color: var(--success);
  font-weight: 600;
}

.step p {
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.step small {
  font-size: 11px;
  color: var(--muted);
}

/* =====================
   TARJETA PRINCIPAL
   ===================== */
.form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  transition: box-shadow 0.3s ease;
}

.form-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* =====================
   HEADER DEL FORMULARIO
   ===================== */
.form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.step-indicator {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.form-card h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

/* =====================
   CAMPOS DE FORMULARIO BASE
   ===================== */
.row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

input[type=text],
input[type=email],
input[type=tel] {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
  transform: translateY(-1px);
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 12px;
  line-height: 1.4;
}

.required {
  color: var(--danger);
}

/* =====================
   BOTONES BASE
   ===================== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
}

.btn-primary:hover {
  background: #0044cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* =====================
   ACCIONES DEL FORMULARIO
   ===================== */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  gap: 16px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
}

/* =====================
   UTILIDADES
   ===================== */
.text-center {
  text-align: center;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.status-confirmed {
  color: var(--success);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================
   RESPONSIVE BASE
   ===================== */
@media (max-width: 768px) {
  .wizard-container {
    padding: 0 16px;
  }
  
  .form-card {
    padding: 20px;
  }
  
  .row {
    flex-direction: column;
    gap: 16px;
  }
  
  .steps-bar {
    gap: 8px;
  }
  
  .step {
    font-size: 11px;
  }
  
  .step span {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
  }
  
  .form-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }
  
  .form-actions .btn-primary,
  .form-actions .btn-outline {
    width: 100%;
  }

  .wizard-header {
    padding: 12px 16px;
  }

  .logo {
    font-size: 16px;
  }

  .form-card h2 {
    font-size: 20px;
  }
}