/* RBAuth — estilos del modal de login. Paleta alineada con la marca RegenEbike. */
.rb-auth-modal {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rb-auth-modal[hidden] { display: none; }
.rb-auth-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20, 30, 28, .55);
}
.rb-auth-modal__panel {
  position: relative; width: 380px; max-width: calc(100vw - 32px);
  background: #ffffff; color: #243b36; border-radius: 16px; padding: 26px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.rb-auth-modal__x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; color: #6b7d78; cursor: pointer;
}
.rb-auth-modal__title { font-size: 1.35rem; margin: 0 0 4px; }
.rb-auth-modal__sub { font-size: .95rem; color: #5f716c; margin: 0 0 18px; }

.rb-auth-modal__google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border: 1px solid #e6e2d8; border-radius: 10px; background: #fff;
  color: #243b36; font: inherit; font-weight: 600; cursor: pointer;
}
.rb-auth-modal__google:hover { background: #faf9f6; }
.rb-auth-modal__g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #2f6f5e; color: #fff;
  font-weight: 700; font-size: .85rem;
}

.rb-auth-modal__sep {
  display: flex; align-items: center; gap: 10px; margin: 18px 0;
  color: #98a6a1; font-size: .82rem;
}
.rb-auth-modal__sep::before, .rb-auth-modal__sep::after {
  content: ""; flex: 1; height: 1px; background: #e6e2d8;
}

.rb-auth-modal__form label {
  display: block; font-size: .9rem; color: #5f716c; margin: 0 0 4px;
}
.rb-auth-modal__form input {
  width: 100%; padding: 11px 13px; border: 1px solid #e6e2d8; border-radius: 9px;
  font: inherit; margin-bottom: 14px; background: #fff; color: #243b36;
}
.rb-auth-modal__submit {
  width: 100%; padding: 12px 16px; border: 0; border-radius: 10px;
  background: #2f6f5e; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.rb-auth-modal__submit:hover { background: #285f50; }

.rb-auth-modal__error {
  margin: 14px 0 0; padding: 9px 12px; border-radius: 8px;
  background: #fff4ec; border: 1px solid #f0d3bf; color: #b4541f; font-size: .9rem;
}
.rb-auth-modal__error[hidden] { display: none; }

/* --- Lanzador flotante del asistente (burbuja "¿Hablamos?") --------------- */
#rb-chat {
  position: fixed; right: 22px; bottom: 22px; z-index: 2147483400;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rb-chat__btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid rgba(36, 59, 54, .12);
  background: #ffffff; color: #2f6f5e; padding: 15px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rb-chat__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .38); }
.rb-chat__label { font-size: 1.08rem; }
.rb-chat__panel {
  position: absolute; right: 0; bottom: 72px; width: 380px;
  max-width: calc(100vw - 44px); height: 600px; max-height: calc(100vh - 120px);
  background: #ffffff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .32); display: none; flex-direction: column;
}
#rb-chat.is-open .rb-chat__panel { display: flex; }
.rb-chat__bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #2f6f5e; color: #fff; padding: 10px 14px; font-weight: 600; font-size: .95rem;
}
.rb-chat__close {
  background: transparent; border: 0; color: #fff; font-size: 1.4rem; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.rb-chat__frame { flex: 1; width: 100%; border: 0; }
@media (max-width: 520px) {
  .rb-chat__label { display: none; }
  .rb-chat__btn { padding: 14px; }
  .rb-chat__panel { height: 70vh; }
}
