/* Configuracion inicial / setup wizard */
#configuracionInicial {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, #07152f, #0d2246 44%, #eef6ff 44%, #f7fbff);
}

.setup-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.setup-brand-panel {
  min-height: 540px;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(13, 110, 253, .94), rgba(0, 42, 110, .96)),
    #0d6efd;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 28, 80, .32);
  overflow: hidden;
}

.setup-nexo-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 74px;
}

.setup-nexo-lockup img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
}

.setup-nexo-lockup strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.setup-nexo-lockup span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 800;
  opacity: .78;
}

.setup-brand-panel h1 {
  max-width: 310px;
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.02;
}

.setup-brand-panel p {
  max-width: 310px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.setup-progress {
  display: flex;
  gap: 10px;
  margin-top: 42px;
}

.setup-progress button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.setup-progress button.active,
.setup-progress button.done {
  background: #fff;
  color: #0d6efd;
}

.setup-reconectar-link {
  display: inline-flex !important;
  width: auto !important;
  margin-top: 24px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, .82) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.setup-reconectar-link:hover {
  color: #fff !important;
}

.modal-buscar-negocio {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(10px);
}

.modal-buscar-negocio .buscar-negocio-card {
  width: min(480px, 94vw);
  border-radius: 20px;
  padding: 20px;
  background: var(--surface, #fff);
  color: var(--text-main, #101828);
  border: 1px solid var(--line-soft, rgba(15, 23, 42, .10));
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.modal-buscar-negocio .modal-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 12px;
}

.modal-buscar-negocio .modal-card-header span {
  display: block;
  color: var(--brand-color, #0d6efd);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-buscar-negocio .modal-card-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
}

.modal-buscar-negocio .modal-card-header button {
  width: auto !important;
  min-height: 32px;
  border: 1px solid rgba(13, 110, 253, .18) !important;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(13, 110, 253, .08) !important;
  color: var(--brand-color, #0d6efd) !important;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.buscar-negocio-ayuda {
  margin: 0 0 12px;
  color: var(--text-muted, #667085);
  font-size: 13px;
  line-height: 1.4;
}

.modal-buscar-negocio input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft, rgba(15, 23, 42, .10));
  background: var(--surface-soft, rgba(15, 23, 42, .04));
  color: var(--text-main, #101828);
  font-size: 14px;
}

.buscar-negocio-resultados {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.buscar-negocio-resultado {
  width: 100% !important;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft, rgba(15, 23, 42, .10)) !important;
  background: var(--surface-soft, rgba(15, 23, 42, .04)) !important;
  color: var(--text-main, #101828) !important;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.buscar-negocio-resultado:hover {
  border-color: rgba(13, 110, 253, .34) !important;
  background: rgba(13, 110, 253, .08) !important;
}

.buscar-negocio-vacio {
  padding: 12px;
  border: 1px dashed var(--line-soft, rgba(15, 23, 42, .16));
  border-radius: 10px;
  color: var(--text-muted, #667085);
  font-size: 13px;
  text-align: center;
}

body.oscuro .modal-buscar-negocio .buscar-negocio-card,
body.oscuro .modal-buscar-negocio input,
body.oscuro .buscar-negocio-resultado {
  background: rgba(15, 23, 42, .92);
  border-color: rgba(226, 232, 240, .16);
  color: #f8fafc;
}

body.oscuro .buscar-negocio-ayuda,
body.oscuro .buscar-negocio-vacio {
  color: #cbd5e1;
}

.login-cuenta-campo {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted, #667085);
  font-size: 12px;
  font-weight: 800;
}

.login-cuenta-campo input {
  margin-top: 6px;
}

.btn-login-cuenta {
  width: 100% !important;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-color, #0d6efd), color-mix(in srgb, var(--brand-color, #0d6efd) 72%, #020617)) !important;
  color: #fff !important;
  font-weight: 900;
  cursor: pointer;
}

.login-cuenta-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .10);
  border: 1px solid rgba(220, 38, 38, .24);
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
}

.buscar-negocio-enlaces {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  text-align: center;
}

.buscar-negocio-enlaces button {
  width: auto !important;
  min-height: auto !important;
  padding: 4px 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--brand-color, #0d6efd) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

#buscarNegocioSetupSeccion {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft, rgba(15, 23, 42, .10));
}

body.oscuro .login-cuenta-campo {
  color: #cbd5e1;
}

body.oscuro #buscarNegocioSetupSeccion {
  border-top-color: rgba(226, 232, 240, .16);
}

.setup-card {
  width: 100%;
  min-height: 540px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 28px 80px rgba(0, 28, 80, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.setup-wizard {
  display: flex;
  flex-direction: column;
}

.setup-step {
  display: none;
  flex: 1;
}

.setup-step.active {
  display: block;
}

.setup-intro {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.setup-logo-preview {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  background: var(--brand-color);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 30px rgba(13, 110, 253, .22);
}

.setup-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.setup-logo-nexo {
  background: #fff;
}

.setup-logo-nexo img {
  padding: 12px;
  object-fit: contain;
}

.setup-intro span {
  color: var(--brand-color);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.setup-intro h1,
.setup-intro h2 {
  margin: 4px 0;
  font-size: 34px;
}

.setup-intro p {
  color: #64748b;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setup-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #334155;
  font-weight: 800;
}

.setup-grid input {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #111827;
  font-size: 15px;
}

.setup-grid input:focus {
  outline: 3px solid rgba(13, 110, 253, .14);
  border-color: rgba(13, 110, 253, .68);
  background: #fff;
}

.setup-grid input[type="color"] {
  padding: 5px;
}

.setup-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.setup-save,
.setup-secondary {
  min-width: 170px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.setup-save {
  background: var(--brand-color);
  color: #fff;
  box-shadow: 0 14px 26px rgba(13, 110, 253, .24);
}

.setup-secondary {
  background: rgba(15, 23, 42, .06);
  color: #0f172a;
}

.setup-secondary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.setup-finish {
  display: none;
}

@media (max-width: 900px) {
  #configuracionInicial {
    align-items: flex-start;
    padding: 16px;
    background: linear-gradient(180deg, #07152f 0 34%, #eef6ff 34% 100%);
  }

  .setup-shell {
    grid-template-columns: 1fr;
  }

  .setup-brand-panel {
    min-height: auto;
    padding: 22px;
  }

  .setup-nexo-lockup {
    margin-bottom: 24px;
  }

  .setup-brand-panel h1 {
    font-size: 30px;
  }

  .setup-card {
    min-height: auto;
    padding: 22px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-actions {
    flex-direction: column;
  }

  .setup-save,
  .setup-secondary {
    width: 100%;
  }
}
