.brand-mark {
  font-size: 15px;
  text-align: center;
  margin-bottom: var(--space-10);
}

.logo-lockup { display: inline-block; height: 32px; width: auto; }
.logo-lockup.size-sm { height: 16px; }

.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.field { margin-bottom: var(--space-6); }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.field .field-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 12px;
  font-family: var(--font-body);
}

.field input[type="text"].mono,
.field input.mono {
  font-family: var(--font-mono);
}

.field textarea { resize: vertical; }

.field-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.field-row > .field { flex: 1; min-width: 180px; }

button { cursor: pointer; font-family: var(--font-body); }

.btn-primary {
  background: var(--green);
  color: #f3f1ea;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary.is-loading { cursor: default; opacity: .85; }
.btn-primary.is-loading:hover { background: var(--green); }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(243, 241, 234, .35);
  border-top-color: #f3f1ea;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn-outline {
  background: transparent;
  border: 1px solid var(--surface-border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
}

.btn-outline.on-light { color: var(--text-primary); }

.btn-full { width: 100%; padding: 11px; }

.form-error {
  font-size: 13px;
  color: var(--terracotta);
  margin-bottom: var(--space-6);
}

/* Stepper de 7 etapas */
.stepper { display: flex; align-items: flex-start; }
.stepper-item { display: flex; align-items: center; flex: 1; }
.stepper-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 52px;
}
.stepper-node.clickable { cursor: pointer; }
.stepper-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.stepper-circle.done {
  width: 32px; height: 32px;
  background: var(--green);
  color: #f3f1ea;
  font-size: 14px;
}
.stepper-circle.current {
  width: 36px; height: 36px;
  background: var(--green);
  color: #f3f1ea;
  font-size: 15px;
  box-shadow: 0 0 0 4px rgba(47, 111, 94, .2);
}
.stepper-circle.upcoming {
  width: 32px; height: 32px;
  background: transparent;
  border: 2px solid var(--surface-border-strong);
  color: var(--text-tertiary);
  font-size: 13px;
}
.stepper-label {
  font-size: 10.5px;
  text-align: center;
  line-height: 1.2;
  max-width: 60px;
  color: var(--text-tertiary);
  font-weight: 500;
  overflow-wrap: break-word;
}
.stepper-label.current { color: var(--text-primary); font-weight: 700; }
.stepper-label.done { color: var(--text-primary); }
.stepper-line {
  flex: 1;
  height: 2px;
  margin: 0 4px;
  align-self: flex-start;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .stepper { flex-wrap: wrap; row-gap: 22px; }
  .stepper-item { flex: 0 0 25%; }
  .stepper-node { width: 68px; }
  .stepper-circle.done,
  .stepper-circle.upcoming { width: 28px; height: 28px; font-size: 12px; }
  .stepper-circle.current { width: 32px; height: 32px; font-size: 13px; }
  .stepper-label { font-size: 9.5px; max-width: 62px; padding: 0 2px; }
  .stepper-line { margin: 0 2px; margin-top: 14px; }
}

/* Badge / dot de estado */
.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-dot.pulse { animation: pulseDot 1.8s ease-in-out infinite; }

/* Segmented control (estado, en /admin editar) */
.segmented { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.segmented button {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font-body);
}
.segmented button.active { font-weight: 700; }
.segmented button:not(.active) {
  background: transparent;
  border: 1px solid var(--surface-border-strong);
  color: var(--text-secondary);
  font-weight: 500;
}

.checkbox-list { display: flex; flex-direction: column; gap: var(--space-4); }
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.checkbox-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.empty-state {
  border: 1px dashed var(--surface-border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 24px;
  text-align: center;
}
.empty-state.filtered {
  border: 1px solid var(--surface-border);
  padding: 48px 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 var(--space-9);
}
