/* RM | cuota de análisis GEO. Componente común, no alertas intrusivas. */
body.rm-pilots .rm-native-tool-page .rm-native-tool-widget .rmgt-tool>.rm-quota{
  margin:0 0 22px!important;padding:16px 19px!important;
  background:#f4f5fa!important;border:1px solid #dce1e9!important;border-radius:11px!important;
  box-shadow:none!important;color:#171b31;
}
.rm-quota__top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.rm-quota__label{color:#4f578d;font:750 11px/1.5 Roboto,system-ui,sans-serif;letter-spacing:.07em}
.rm-quota__count{color:#171b31;font:750 14px/1.35 Roboto,system-ui,sans-serif}
.rm-quota__progress{margin:14px 0 11px;height:7px;background:#dae0ea;border-radius:99px;overflow:hidden}
.rm-quota__progress>span{display:block;height:100%;width:0%;background:#4f578d;border-radius:99px;transition:width .2s}
.rm-quota__bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
.rm-quota__bottom p{max-width:680px;margin:0!important;color:#526077!important;font:400 13px/1.55 Roboto,system-ui,sans-serif}
.rm-quota__links{display:flex;gap:13px;flex-wrap:wrap;align-items:center}
.rm-quota__links[hidden]{display:none!important}
.rm-quota__links a{color:#344477!important;font-size:13px!important;font-weight:700;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.rm-quota__links a:hover{color:#db244c!important}
.rm-quota--exhausted{border-color:#c5ccda!important}
.rm-quota--exhausted .rm-quota__count{color:#962748}
.rm-quota--pending .rm-quota__count{color:#a25a21}
body.rm-pilots .rm-native-tool-page .rmgt-tool:has(>.rm-quota)>.rmgt-usage{display:none!important}
body.rm-pilots .rm-native-tool-page .rmgt-tool .rmgt-limit-popup .rmgt-limit-icon{background:#4f578d!important}
@media(max-width:620px){
  body.rm-pilots .rm-native-tool-page .rm-native-tool-widget .rmgt-tool>.rm-quota{padding:15px!important}
  .rm-quota__bottom{display:block}
  .rm-quota__links{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.rm-quota__progress>span{transition:none}}

/* Límite alcanzado: aquí el registro sí es el CTA principal. */
.rm-quota--exhausted .rm-quota__links a:first-child{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:39px;padding:9px 14px;border-radius:8px;
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:#F73760;text-decoration:none!important;
}
.rm-quota--exhausted .rm-quota__links a:first-child:hover{background:#dc2250}
.rm-quota--exhausted .rm-quota__links a:last-child{padding:8px 0}
/* Modales de uso se mueven a document.body para evitar stacking contexts. */
body.rm-pilots > .rmgt-popup-overlay .rmgt-popup{
  width:min(545px,calc(100vw - 30px));
  padding:clamp(20px,3vw,30px)!important;
  border:1px solid #dce1e9;border-radius:14px!important;
  font-family:Roboto,system-ui,sans-serif;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-popup h3{
  color:#171b31!important;font-size:clamp(1.35rem,2.6vw,1.75rem)!important;
  line-height:1.28!important;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-limit-icon{
  background:#4f578d!important;border-radius:12px!important;
  color:#fff!important;font-size:13px!important;
  width:54px;height:54px;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-limit-primary,
body.rm-pilots > .rmgt-popup-overlay .rmgt-popup button[type=submit]{
  background:#F73760!important;color:#fff!important;
  -webkit-text-fill-color:#fff!important;border-radius:9px!important;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-limit-secondary,
body.rm-pilots > .rmgt-popup-overlay .rmgt-popup .rmgt-button-secondary{
  background:#f4f5fa!important;color:#344477!important;
  border:1px solid #dce1e9!important;border-radius:9px!important;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-popup-x{
  background:transparent!important;color:#526077!important;
  border:0!important;box-shadow:none!important;
}
body.rm-pilots > .rmgt-popup-overlay .rmgt-limit-privacy{
  color:#63718a!important;font-size:12px!important;line-height:1.5!important;
}
body.rm-pilots > .rmgt-popup-overlay :is(button,a):focus-visible{
  outline:3px solid #4f578d!important;outline-offset:3px!important;
}


.rm-quota__why{margin:12px 0 0;padding-top:10px;border-top:1px solid #dce1e9}
.rm-quota__why > summary{
  display:inline-flex;align-items:center;gap:7px;
  cursor:pointer;color:#344477;font:690 13px/1.5 Roboto,system-ui,sans-serif;
  text-decoration:underline;text-decoration-color:#b2bbca;text-underline-offset:3px;
}
.rm-quota__why > summary:focus-visible{outline:3px solid #4f578d;outline-offset:3px}
.rm-quota__why > p{margin:9px 0 3px!important;max-width:850px;color:#526077;
  font:400 13px/1.65 Roboto,system-ui,sans-serif}
