/* Visual overrides for the supplied RUNT widgets.
   Form logic, visibility states, IDs, results and PDF code remain in the widgets. */

.runt-widget-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  border: 1px solid #e0e3e8;
  border-radius: 4px;
  background: #fff;
  color: #263044;
  box-shadow: 0 1px 2px rgb(25 42 77 / 4%);
}

.runt-widget-shell .widget-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid #e0e3e8;
  background: #fafbfc;
}

.runt-widget-shell .widget-tab {
  position: relative;
  flex: 0 1 auto;
  min-height: 48px;
  margin: 0 0 -1px;
  padding: 13px 19px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #626c7d;
  box-shadow: none;
  font: 500 14px/1.4 "Montserrat", "Segoe UI", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.runt-widget-shell .widget-tab:hover {
  background: #f0f2f7;
  color: #163082;
}

.runt-widget-shell .widget-tab[aria-selected="true"],
.runt-widget-shell .widget-tab.is-active,
.runt-widget-shell .widget-tab.active {
  border-bottom-color: #ad045d;
  background: #fff;
  color: #163082;
}

.runt-widget-shell .widget-tab:focus-visible {
  z-index: 1;
  outline: 3px solid #163082;
  outline-offset: -4px;
}

.runt-widget-shell .widget-panel {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.runt-widget-shell #nbi-rt,
.runt-widget-shell #nbi-rtc,
.runt-widget-shell #nbi-rt.rt-wide,
.runt-widget-shell #nbi-rtc.rtc-wide {
  --marino: #163082;
  --azul: #163082;
  --tinta: #263044;
  --linea: #dce0e6;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  background: #fff;
  color: #263044;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  text-align: left;
}

.runt-widget-shell #nbi-rt .rt-card,
.runt-widget-shell #nbi-rtc .rtc-card,
.runt-widget-shell #nbi-rt.rt-wide .rt-card,
.runt-widget-shell #nbi-rtc.rtc-wide .rtc-card {
  width: 100%;
  min-width: 0;
  padding: 26px 28px 22px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.runt-widget-shell #nbi-rt .rt-tit,
.runt-widget-shell #nbi-rtc .rtc-tit {
  margin: 0 0 8px;
  color: #163082;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.runt-widget-shell #nbi-rt .rt-sub,
.runt-widget-shell #nbi-rtc .rtc-sub {
  max-width: 78ch;
  margin: 0 0 26px;
  color: #626c7d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.runt-widget-shell #nbi-rt label,
.runt-widget-shell #nbi-rtc label {
  margin: 20px 0 5px;
  padding-left: 11px;
  color: #163082;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.runt-widget-shell #nbi-rt input,
.runt-widget-shell #nbi-rt select,
.runt-widget-shell #nbi-rtc input,
.runt-widget-shell #nbi-rtc select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #858b96;
  border-radius: 24px;
  background: #fff;
  color: #263044;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.runt-widget-shell #nbi-rt select,
.runt-widget-shell #nbi-rtc select {
  padding-right: 30px;
}

.runt-widget-shell #nbi-rt input#rt-placa {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: left;
}

.runt-widget-shell #nbi-rt input::placeholder,
.runt-widget-shell #nbi-rtc input::placeholder {
  color: #657184;
  opacity: 1;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
}

.runt-widget-shell #nbi-rt input:focus,
.runt-widget-shell #nbi-rt select:focus,
.runt-widget-shell #nbi-rtc input:focus,
.runt-widget-shell #nbi-rtc select:focus {
  border-color: #163082;
}

.runt-widget-shell #nbi-rt :is(input, select, button, a, summary):focus-visible,
.runt-widget-shell #nbi-rtc :is(input, select, button, a, summary):focus-visible {
  outline: 3px solid #163082;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #eef1fb;
}

.runt-widget-shell #nbi-rt .rt-row,
.runt-widget-shell #nbi-rtc .rtc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 20px;
}

.runt-widget-shell #nbi-rt .rt-row > *,
.runt-widget-shell #nbi-rtc .rtc-row > * {
  min-width: 0;
}

/* No display rule on the captcha container: the original inline state controls it. */
.runt-widget-shell #nbi-rt .rt-cap,
.runt-widget-shell #nbi-rtc .rtc-cap {
  width: 100%;
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  text-align: left;
}

.runt-widget-shell #nbi-rt .rt-cap-top,
.runt-widget-shell #nbi-rtc .rtc-cap-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 18px;
  margin: 0 0 10px;
}

.runt-widget-shell #nbi-rt .rt-cap-top span,
.runt-widget-shell #nbi-rtc .rtc-cap-top span {
  color: #163082;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.runt-widget-shell #nbi-rt .rt-cap-top button,
.runt-widget-shell #nbi-rtc .rtc-cap-top button {
  min-height: 32px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #163082;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.runt-widget-shell #nbi-rt .rt-cap-img,
.runt-widget-shell #nbi-rtc .rtc-cap-img {
  max-width: 100%;
  height: auto;
  min-height: 56px;
  max-height: 100px;
  margin: 0 0 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  object-fit: contain;
  object-position: left center;
}

.runt-widget-shell #nbi-rt .rt-btn,
.runt-widget-shell #nbi-rtc .rtc-btn {
  display: block;
  width: auto;
  max-width: 100%;
  min-width: 156px;
  min-height: 40px;
  margin: 28px 0 0 auto;
  padding: 10px 18px;
  border: 1px solid #ad045d;
  border-radius: 3px;
  background: #ad045d;
  color: #fff;
  box-shadow: 0 2px 4px rgb(76 8 45 / 15%);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.runt-widget-shell #nbi-rt .rt-btn:hover,
.runt-widget-shell #nbi-rtc .rtc-btn:hover {
  border-color: #8f034c;
  background: #8f034c;
}

.runt-widget-shell #nbi-rt .rt-btn:disabled,
.runt-widget-shell #nbi-rtc .rtc-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.runt-widget-shell #nbi-rt .rt-legal,
.runt-widget-shell #nbi-rtc .rtc-legal {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #edf0f3;
  color: #626c7d;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

.runt-widget-shell #nbi-rt .rt-legal a,
.runt-widget-shell #nbi-rtc .rtc-legal a {
  color: #163082;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Preserve JS-controlled display values for alerts, forms and results. */
.runt-widget-shell #nbi-rt .rt-msg,
.runt-widget-shell #nbi-rtc .rtc-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #eed4d1;
  border-left: 4px solid #b3261e;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.runt-widget-shell #nbi-rt .rt-msg.err,
.runt-widget-shell #nbi-rtc .rtc-msg.err {
  background: #fff3f2;
  color: #8b211b;
}

.runt-widget-shell #nbi-rtc .rtc-msg.info {
  border-color: #d8deee;
  border-left-color: #163082;
  background: #f3f5fb;
  color: #163082;
}

.runt-widget-shell #nbi-rt .rt-res,
.runt-widget-shell #nbi-rtc .rtc-res {
  width: 100%;
  min-width: 0;
}

.runt-widget-shell #nbi-rt .rt-h,
.runt-widget-shell #nbi-rtc .rtc-h {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e3e8;
  color: #163082;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.runt-widget-shell #nbi-rt .rt-panel,
.runt-widget-shell #nbi-rtc .rtc-panel {
  max-width: 100%;
  margin-bottom: 12px;
  border-color: #e0e3e8;
  border-radius: 3px;
  box-shadow: none;
}

.runt-widget-shell #nbi-rt .rt-panel > summary,
.runt-widget-shell #nbi-rtc .rtc-panel > summary {
  padding: 12px 14px;
  color: #163082;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.runt-widget-shell #nbi-rt .rt-tr .k,
.runt-widget-shell #nbi-rtc .rtc-tr .k {
  font-size: 10.5px;
}

.runt-widget-shell #nbi-rt .rt-tr .v,
.runt-widget-shell #nbi-rtc .rtc-tr .v {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.runt-widget-shell #nbi-rt .rt-up,
.runt-widget-shell #nbi-rtc .rtc-up {
  margin: 20px 0 10px;
  padding: 14px 16px;
  border: 1px solid #e0e3e8;
  border-left: 3px solid #7b8495;
  border-radius: 3px;
  background: #f7f8fa;
  color: #4e5868;
  font-size: 12px;
  line-height: 1.7;
}

/* Secondary styling keeps external services distinct from the primary query. */
.runt-widget-shell #nbi-rt .rt-res .rt-cta,
.runt-widget-shell #nbi-rtc .rtc-res .rtc-cta {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #ccd2dc;
  border-radius: 3px;
  background: #fff;
  color: #38445b !important;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.runt-widget-shell #nbi-rt .rt-res .rt-cta::before,
.runt-widget-shell #nbi-rtc .rtc-res .rtc-cta::before {
  display: block;
  margin-bottom: 2px;
  color: #626c7d;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3px;
  text-decoration: none;
  text-transform: uppercase;
  content: "Recurso externo";
}

.runt-widget-shell #nbi-rt .rt-res .rt-cta:hover,
.runt-widget-shell #nbi-rtc .rtc-res .rtc-cta:hover {
  border-color: #8d98ac;
  background: #f3f5f9;
  color: #163082 !important;
}

.runt-widget-shell #nbi-rt .rt-pdf,
.runt-widget-shell #nbi-rtc .rtc-pdf {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 1px solid #b9c0cc;
  border-radius: 3px;
  background: #fff;
  color: #37445e;
  box-shadow: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.runt-widget-shell #nbi-rt .rt-again,
.runt-widget-shell #nbi-rtc .rtc-again {
  min-height: 36px;
  margin: 10px 0 0;
  padding: 5px 0;
  color: #163082;
  font-size: 12px;
  text-align: left;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .runt-widget-shell .widget-tabs {
    gap: 0;
    padding: 0 6px;
  }

  .runt-widget-shell .widget-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 8px;
    font-size: 13px;
    white-space: normal;
  }

  .runt-widget-shell #nbi-rt .rt-card,
  .runt-widget-shell #nbi-rtc .rtc-card,
  .runt-widget-shell #nbi-rt.rt-wide .rt-card,
  .runt-widget-shell #nbi-rtc.rtc-wide .rtc-card {
    padding: 22px 16px 18px;
  }

  .runt-widget-shell #nbi-rt .rt-row,
  .runt-widget-shell #nbi-rtc .rtc-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .runt-widget-shell #nbi-rt .rt-tit,
  .runt-widget-shell #nbi-rtc .rtc-tit,
  .runt-widget-shell #nbi-rt .rt-h,
  .runt-widget-shell #nbi-rtc .rtc-h {
    font-size: 19px;
  }

  .runt-widget-shell #nbi-rt .rt-sub,
  .runt-widget-shell #nbi-rtc .rtc-sub {
    margin-bottom: 20px;
  }

  .runt-widget-shell #nbi-rt input,
  .runt-widget-shell #nbi-rt select,
  .runt-widget-shell #nbi-rtc input,
  .runt-widget-shell #nbi-rtc select {
    min-height: 44px;
    font-size: 16px;
  }

  .runt-widget-shell #nbi-rt input#rt-placa {
    font-size: 16px;
  }

  .runt-widget-shell #nbi-rt .rt-cap,
  .runt-widget-shell #nbi-rtc .rtc-cap {
    margin-top: 26px;
  }

  .runt-widget-shell #nbi-rt .rt-btn,
  .runt-widget-shell #nbi-rtc .rtc-btn {
    min-height: 44px;
    margin-top: 24px;
    padding: 11px 16px;
  }

  .runt-widget-shell #nbi-rt .rt-pdf,
  .runt-widget-shell #nbi-rtc .rtc-pdf {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  .runt-widget-shell #nbi-rt .rt-panel > summary,
  .runt-widget-shell #nbi-rtc .rtc-panel > summary {
    min-height: 44px;
    padding: 11px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .runt-widget-shell #nbi-rt .rt-res.show,
  .runt-widget-shell #nbi-rtc .rtc-res.show {
    animation: none;
  }

  .runt-widget-shell #nbi-rt .rt-panel > summary::after,
  .runt-widget-shell #nbi-rtc .rtc-panel > summary::after {
    transition: none;
  }
}


/* Avisos breves del contenedor integrado. */
.runt-widget-shell .widget-provider{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 21px;border-bottom:1px solid #e0e3e8;background:#fff;color:#697183;font:500 10px/1.6 "Montserrat",system-ui,sans-serif}
.runt-widget-shell .widget-provider span:first-child{color:#163082;font-weight:600}
.runt-widget-shell .widget-field-help{font:400 11px/1.6 "Montserrat",system-ui,sans-serif;color:#737b8b;margin:6px 10px 0}
.runt-widget-shell .widget-official-alternative{font:400 11px/1.7 "Montserrat",system-ui,sans-serif;color:#626b7b;margin:8px 0 0}
.runt-widget-shell .widget-official-alternative a{color:#163082}
.runt-widget-shell .widget-offer-label{font:500 10px/1.7 "Montserrat",system-ui,sans-serif;color:#697183;margin:15px 0 5px}
.runt-widget-shell .widget-noscript{padding:18px 25px;font-size:13px}
.runt-widget-shell img.rt-cap-img:not([src]),.runt-widget-shell img.rtc-cap-img:not([src]),.runt-widget-shell img.rt-cap-img[src=""],.runt-widget-shell img.rtc-cap-img[src=""]{display:none}
@media(max-width:600px){.runt-widget-shell .widget-provider{padding:10px 16px;font-size:9px;flex-wrap:wrap;gap:1px 10px}.runt-widget-shell .widget-provider span:first-child{display:none}.runt-widget-shell .widget-official-alternative{font-size:10px}.runt-widget-shell .widget-field-help{font-size:10px}}
