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 {
  padding: 24px 16px 32px;
}

.rb-public-inner {
  max-width: 560px;
  margin: 0 auto;
}

.rb-public-form-card.section-unified {
  background: #fff;
  border: 1px solid #00000014;
  border-radius: 18px;
  padding: 26px 28px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

.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,
.form-group-firma.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;
  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 button:first-child {
  background: #2f6fe4;
}

.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: #69bd90 !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);
}
