/* Estilos locales del módulo registro_beneficios */

.rb-public-page {
  margin: 0;
  min-height: 100vh;
  background-image: url("../../img/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.rb-public-page .page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rb-public-page .header.header-pro {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.rb-public-page .rb-public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rb-public-page .rb-public-header .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;
}

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

.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 {
  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);
}

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

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

.rb-modulo-panel {
  max-width: 48rem;
  margin: 0 auto;
}

.rb-estado-bd {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.rb-estado-bd--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.rb-estado-bd--error {
  background: #ffebee;
  color: #b71c1c;
}

.rb-modulo-panel pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.8rem;
}

.rb-nota-ayuda {
  color: var(--text-muted, #4b5563);
  font-size: 0.9rem;
}

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

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

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

.rb-public-page .wizard-step-done {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

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

.rb-public-page .step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.rb-public-page .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;
}

.rb-public-page .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: ebbStepPulse 0.5s ease;
}

.rb-public-page .step-tip .fa-circle-info {
  margin-top: 1px;
  flex-shrink: 0;
}

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

/* Enviar más verde cuando ya hay foto de evidencia */
.rb-public-page #ebbBtnEnviar.ent-btn-save--ready {
  background: #52b788;
  box-shadow: 0 0 0 2px rgba(82, 183, 136, 0.35);
}

.rb-public-page #ebbBtnEnviar.ent-btn-save--ready:hover {
  background: #40916c;
}

.rb-public-page .ebb-foto-limpiar-actions {
  margin-top: 12px;
}
