body.admin-full.rb-public-page {
  background-image: url("../../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hidden {
  display: none !important;
}

.rb-public-main {
  flex: 1;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

.rb-public-inner {
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
}

.rb-public-form-card.section-unified {
  background: #fff;
  border-radius: 24px;
  padding: 28px 22px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-size: 12px;
}

@media (min-width: 480px) {
  .rb-public-form-card.section-unified {
    padding: 32px 28px 36px;
  }
}

.form-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-page-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.form-group label {
  display: block;
  margin: 0 0 8px 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  color: #111827;
}

.label-req { color: #dc2626; }

.row.row-cedula {
  display: grid;
  grid-template-columns: 1fr 102px;
  gap: 10px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font-size: 12px;
  color: #374151;
  background: #fff;
  box-sizing: border-box;
}

.btn-buscar {
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #2f6fe4 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.btn-buscar .fa-magnifying-glass { margin-right: 6px; }

.msg-cedula:empty,
#msg:empty,
#detalleReunion.hidden,
.empleado-info-card.hidden {
  display: none !important;
}

.empleado-info-card {
  margin: 2px 0 2px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-left: 4px solid #e94035;
  border-radius: 10px;
  background: #fff;
}

.empleado-info-inner {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.empleado-info-item {
  font-size: 12px;
}

.detail-card {
  margin-top: 8px;
  border: 1px solid #f1b7b7;
  border-left: 4px solid #e11d48;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.detail-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
  color: #d61f1f;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 12px;
  color: #111827;
}

.detail-grid .full {
  grid-column: 1 / -1;
}

.photo-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.photo-preview-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  border: 2px solid #ef4444;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  display: none;
}

.photo-cam-video {
  display: block;
}

#camCanvas {
  display: none !important;
}

.photo-card.show-preview .photo-preview-wrap {
  display: block;
}

.photo-preview,
.photo-cam-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-actions,
.btn-final-wrap {
  margin-top: 12px;
  text-align: center;
}

.photo-actions #camActions {
  display: inline-flex;
  gap: 10px !important;
  align-items: center;
  justify-content: center;
}

.photo-actions #camActions button {
  width: 102px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.photo-actions #camActions .btn-capturar {
  background: #2f6fe4;
}

.btn-rotar-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #4b5563;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.photo-actions #camActions .btn-gray {
  background: #6b7280;
}

.btn-tomar-foto,
.btn-final-wrap .btn-final,
.firma-btn-limpiar {
  width: 200px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
}

.btn-tomar-foto { background: #9ca3af !important; }
.btn-final-wrap .btn-final { background: #74c69d !important; }
.btn-final-wrap .btn-final.btn-success--ready:not(:disabled) {
  background: #52b788 !important;
  box-shadow: 0 0 0 2px rgba(82, 183, 136, 0.35);
}
.btn-final-wrap .btn-final.btn-success--ready:not(:disabled):hover {
  background: #40916c !important;
}
.firma-btn-limpiar {
  background: #6b7280 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.firma-btn-limpiar:hover { background: #4b5563 !important; }

#btnTomarFoto .fa-camera,
.btn-final-wrap .btn-final [class^="fa-"],
.firma-btn-limpiar [class^="fa-"] {
  margin-right: 6px;
}

.form-group-firma {
  margin-top: 4px;
  text-align: center;
}

.firma-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
}

.firma-card {
  border: 2px solid #ef4444;
  border-radius: 10px;
  overflow: hidden;
}

#firmaCanvas {
  width: 100%;
  height: 220px;
  display: block;
  background: #fff;
}

@media (max-width: 650px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* Header público formaciones: logo + enlace Auto aprendizaje */
.formaciones-public-header {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-header-auto {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-header-auto:hover {
  opacity: 0.92;
  color: #fff;
}

.rb-public-form-card .ent-page-title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

/* Toast centrado (registro exitoso / mismo patrón que tostaditos) */
.toast-registro-exitoso {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 20px 32px;
  background: #16a34a;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast-registro-exitoso.toast-registro-exitoso-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Wizard: barra de progreso ── */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 6px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
  flex-shrink: 0;
}

.step-dot.active {
  background: #2f6fe4;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.2);
}

.step-dot.done {
  background: #74c69d;
  color: #fff;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #e5e7eb;
  max-width: 48px;
  border-radius: 2px;
  transition: background 0.35s;
}

.step-line.done {
  background: #74c69d;
}

/* ── Wizard: cada paso ── */
.wizard-step {
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease;
  position: relative;
}

.wizard-step-active {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
}

.wizard-step-locked {
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.wizard-step-done {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

.wizard-step-done .step-header,
.wizard-step-done .step-tip {
  display: none;
}

/* ── Wizard: encabezado de paso ── */
.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.wizard-step-locked .step-header {
  color: #9ca3af;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2f6fe4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s;
}

.wizard-step-locked .step-badge {
  background: #d1d5db;
}

/* ── Wizard: tips de paso ── */
.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  animation: stepTipPulse 0.5s ease;
}

.step-tip .fa-circle-info,
.step-tip .fa-circle-check {
  margin-top: 1px;
  flex-shrink: 0;
}

.step-tip-success {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

@keyframes stepTipPulse {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── Wizard: ajuste firma dentro de step (ya no usa .hidden propio) ── */
.wizard-step-locked .form-group-firma,
.wizard-step-active .form-group-firma,
.wizard-step-done .form-group-firma {
  display: block !important;
}

/* ── Separador visual entre pasos completados ── */
.wizard-step-done + .wizard-step-active {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

@media (max-width: 420px) {
  .step-dot { width: 24px; height: 24px; font-size: 11px; }
  .step-line { max-width: 32px; }
  .step-header { font-size: 14px; }
}
