/* PL_ROBOT_THEORY_20261006 — solo Electrónica y Robótica */
#rbTheoryRoot { position: fixed; z-index: 60; left: 14px; bottom: 18px; pointer-events: none; }
.rbtheory-fab,
.rbtheory-panel,
.rbtheory-x { pointer-events: auto; }
.rbtheory-fab {
  border: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  font: 800 0.95rem/1 Fredoka, Nunito, ui-rounded, system-ui, sans-serif;
  color: #1c1204;
  background: #fbbf24;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}
.rbtheory-fab:focus-visible,
.rbtheory-x:focus-visible { outline: 2px solid #f7f1e6; outline-offset: 2px; }
.rbtheory-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: min(440px, calc(100vw - 28px));
  max-height: min(70vh, 640px);
  overflow: auto;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: #16120c;
  color: #f7f1e6;
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.rbtheory-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rbtheory-top p { margin: 0; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fbbf24; font-weight: 800; }
.rbtheory-top strong { display: block; margin-top: 2px; font-size: 1.05rem; }
.rbtheory-x {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #f7f1e6; font-weight: 800;
}
.rbtheory-body p { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.45; color: rgba(247, 241, 230, 0.94); }
.rbtheory-body strong { color: #fbbf24; font-weight: 800; }
.rbtheory-note { margin: 4px 0 0 !important; font-size: 0.8rem !important; color: rgba(247, 241, 230, 0.62) !important; }
@media (max-width: 720px) {
  #rbTheoryRoot { bottom: 12px; left: 10px; }
  .rbtheory-panel { max-height: 58vh; }
}
