/* ==========================================================================
   RUES · Portal design system
   Capa visual inspirada en portal.rues.org.co
   Se carga después de los estilos heredados para poder modernizarlos.
   ========================================================================== */

:root {
  --rues-navy-900: #022a56;
  --rues-navy: #034a9b;
  --rues-blue: #0578be;
  --rues-sky: #28a9e6;
  --rues-yellow: #ffde14;
  --rues-lime: #bccf21;
  --rues-ink: #0b2e4f;
  --rues-text: #40556b;
  --rues-muted: #6b7f94;
  --rues-line: #dce7f2;
  --rues-soft: #f4f7fb;
  --rues-soft-2: #eef4fa;
  --rues-white: #ffffff;
  --rues-radius: 18px;
  --rues-shadow: 0 20px 50px rgba(4, 44, 92, 0.12);
  --rues-shadow-sm: 0 8px 22px rgba(4, 44, 92, 0.09);
  --rues-font: "Titillium Web", "Segoe UI", Tahoma, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.rues-app,
body.rues-simple {
  margin: 0;
  font-family: var(--rues-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rues-text);
  background: var(--rues-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.rues-app h1,
body.rues-app h2,
body.rues-app h3,
body.rues-app h4,
body.rues-app h5,
body.rues-app h6,
body.rues-simple h1,
body.rues-simple h2,
body.rues-simple h3,
body.rues-simple h4 {
  font-family: var(--rues-font);
  color: var(--rues-ink);
  letter-spacing: -0.01em;
}

/* Enlaces: neutraliza las reglas heredadas de styles.css */
body.rues-app a,
body.rues-simple a {
  color: var(--rues-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.rues-app a:link,
body.rues-app a:visited,
body.rues-simple a:link,
body.rues-simple a:visited {
  color: var(--rues-blue);
}

body.rues-app a:hover,
body.rues-simple a:hover {
  color: var(--rues-navy);
  background: transparent;
  text-decoration: none;
}

.rues-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.rues-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e3ebf3;
  box-shadow: 0 2px 14px rgba(4, 44, 92, 0.05);
  backdrop-filter: blur(12px);
}

.rues-header__inner {
  width: 100%;
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.rues-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.rues-brand img {
  display: block;
  width: 174px;
  max-width: 100%;
  height: auto;
}

.rues-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 10px;
}

.rues-nav a {
  position: relative;
  padding: 7px 0;
  color: #3c5a78 !important;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.rues-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rues-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.rues-nav a:hover {
  color: var(--rues-navy) !important;
}

.rues-nav a:hover::after {
  transform: scaleX(1);
}

.rues-header__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rues-blue), var(--rues-navy));
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(3, 74, 155, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rues-header__cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(3, 74, 155, 0.3);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.rues-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 132px;
  color: #fff;
  background:
    linear-gradient(118deg, #022a56 0%, #034a9b 54%, #0a7cc1 100%);
}

.rues-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 222, 20, 0.17), transparent 25%),
    radial-gradient(circle at 10% 92%, rgba(188, 207, 33, 0.13), transparent 27%);
}

.rues-hero__decor::before {
  content: "";
  position: absolute;
  right: -95px;
  top: -110px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(255, 255, 255, 0.035),
    0 0 0 128px rgba(255, 255, 255, 0.022);
}

.rues-hero__decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.05) 0 8px,
    transparent 8px 46px
  );
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.rues-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.rues-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #cfe2f6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rues-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rues-lime);
  box-shadow: 0 0 0 4px rgba(188, 207, 33, 0.2);
}

body.rues-app .rues-hero h1,
body.rues-simple .rues-hero h1 {
  margin: 0 0 16px;
  max-width: 700px;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body.rues-app .rues-card__heading h2,
body.rues-app .rues-card__heading h3,
body.rues-app .rues-dashboard-toolbar__copy h2 {
  color: #08335f;
}

.rues-hero h1 span {
  color: var(--rues-yellow);
}

.rues-hero__copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #d5e5f5;
  font-size: 17px;
  line-height: 1.65;
}

.rues-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: #e8f2fb;
  font-size: 14px;
  font-weight: 600;
}

.rues-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rues-hero__meta i {
  color: var(--rues-yellow);
}

.rues-hero__panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(9px);
}

.rues-hero__panel-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.rues-hero__panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rues-hero__panel li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.rues-hero__panel li > i {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--rues-yellow);
  font-size: 17px;
}

.rues-hero__panel strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.rues-hero__panel small,
.rues-hero__panel span {
  display: block;
  color: #cfe2f6;
  font-size: 13px;
  line-height: 1.4;
}

/* Hero compacto (dashboard y páginas legales) */
.rues-hero--compact {
  padding: 46px 0 102px;
}

.rues-hero--compact h1 {
  margin-bottom: 8px;
  font-size: 36px;
}

.rues-hero--compact p {
  margin-bottom: 0;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Contenido principal / tarjetas
   -------------------------------------------------------------------------- */
#home-banner.rues-main,
.rues-main {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: -82px !important;
  padding: 0 0 54px !important;
  background: transparent !important;
  background-image: none !important;
}

#home-banner.rues-main::before,
.rues-main::before {
  display: none !important;
}

#content_body_ {
  position: relative;
  z-index: 3;
}

#content_body_ > .row {
  display: block;
  margin: 0;
}

#content_body_ .rues-col {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding: 0 !important;
}

.rues-card,
.rues-dashboard .panel-content .card.crypto {
  background: #fff !important;
  border: 1px solid #e1eaf3 !important;
  border-radius: 20px !important;
  box-shadow: var(--rues-shadow) !important;
  overflow: hidden;
}

.rues-card {
  position: relative;
  z-index: 3;
}

.rues-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 30px;
  border-bottom: 1px solid #e8eff6;
  background: linear-gradient(180deg, #fcfdff, #f5f9fd);
}

.rues-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f4fd, #d7e9f9);
  color: var(--rues-navy);
  font-size: 20px;
}

.rues-card__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.rues-card__eyebrow {
  display: block;
  margin-bottom: 2px;
  color: var(--rues-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rues-card__heading h2,
.rues-card__heading h3 {
  margin: 0;
  color: #08335f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.rues-card__heading p {
  margin: 4px 0 0;
  color: var(--rues-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rues-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--rues-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rues-navy) !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rues-back:hover {
  background: var(--rues-soft-2);
  border-color: #c4d8ea;
}

/* --------------------------------------------------------------------------
   Formulario principal
   -------------------------------------------------------------------------- */
.rues-card #action1,
.rues-card #action2_2 {
  display: block;
  margin: 0;
}

.rues-card #action1 > .card,
.rues-card #action2_2 > .card {
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.rues-intro {
  padding: 26px 30px 0 !important;
  color: var(--rues-text);
  font-size: 15.5px;
  line-height: 1.7;
}

.rues-wizard {
  padding: 18px 30px 30px !important;
}

.rues-wizard-inner {
  padding: 0 !important;
}

.rues-intro .card-body,
.rues-wizard .card-body {
  padding-left: 0;
  padding-right: 0;
}

/* Barra de progreso */
#barraPro {
  margin: 0 0 20px !important;
}

.containerPG_ {
  width: 100% !important;
  margin: 0 0 16px !important;
}

.progressbar {
  display: flex;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progressbar li {
  position: relative;
  float: none;
  flex: 1 1 0;
  width: auto;
  padding: 0 6px;
  color: var(--rues-muted);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.progressbar li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 9px;
  border: 2px solid #cbd9e7;
  border-radius: 50%;
  background: #fff;
  color: #7a8fa5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.2s ease;
}

.progressbar li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #d7e3ef;
  z-index: -1;
}

.progressbar li:first-child::after {
  display: none;
}

.progressbar li.active {
  color: var(--rues-navy);
}

.progressbar li.active::before {
  border-color: var(--rues-navy);
  background: var(--rues-navy);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(3, 74, 155, 0.12);
}

.progressbar li.active + li::after {
  background: var(--rues-navy);
}

.progressbar span {
  color: inherit;
}

/* Pestañas */
.rues-card .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rues-card .nav-tabs > li {
  float: none;
  flex: 1 1 0;
  width: auto !important;
  margin: 0;
  padding: 0;
}

.rues-card .nav-tabs > li > a.tab-contentTabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #dce7f2 !important;
  border-radius: 12px 12px 0 0 !important;
  background: #f2f7fc !important;
  color: #7b8fa3 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.rues-card .nav-tabs > li > a.tab-contentTabs:hover {
  background: #eaf3fb !important;
  color: var(--rues-navy) !important;
}

.rues-card .nav-tabs > li.active > a.tab-contentTabs {
  border-color: var(--rues-navy) !important;
  border-bottom-color: #fff !important;
  background: #fff !important;
  color: var(--rues-navy) !important;
  box-shadow: inset 0 3px 0 var(--rues-navy);
}

.rues-card .nav-tabs > li.visit > a.tab-contentTabs {
  border-color: #cfe4d8 !important;
  background: #f1f8f3 !important;
  color: #3c7a55 !important;
}

.rues-card .tab-content {
  margin-top: -1px;
  padding: 26px 28px 28px !important;
  border: 1px solid var(--rues-navy) !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: var(--rues-text);
  font-size: 15px;
}

.rues-card .tab-pane {
  width: 100%;
}

.rues-form-intro {
  margin: 0 0 20px;
  color: var(--rues-text);
  font-size: 15px;
  line-height: 1.65;
}

.rues-form-intro strong {
  color: var(--rues-ink);
}

.rues-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.rues-field label {
  display: block;
  margin-bottom: 7px;
  color: #40556b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.rues-field--captcha {
  min-width: 0;
}

.rues-input,
.rues-select,
.rues-card .styInput,
.rues-card .form-control,
.rues-card select,
.rues-card .form-control-sm {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid #cfddeb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--rues-ink) !important;
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rues-input:focus,
.rues-select:focus,
.rues-card .styInput:focus,
.rues-card .form-control:focus,
.rues-card select:focus {
  border-color: var(--rues-blue) !important;
  box-shadow: 0 0 0 3px rgba(5, 120, 190, 0.14) !important;
  outline: none;
}

.rues-card input[readonly] {
  background: #f7fafd !important;
  color: #6b7f94 !important;
}

.rues-card .g-recaptcha {
  transform: scale(0.78);
  transform-origin: left top;
}

.rues-field--captcha .g-recaptcha {
  min-height: 60px;
}

.rues-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.rues-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
  margin: 0;
  padding: 0;
  color: #5a6f84;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}

.rues-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--rues-navy);
  cursor: pointer;
}

.rues-card .show_terms,
.rues-card .show_politics,
.rues-legal-card .show_terms,
.rues-legal-card .show_politics {
  color: var(--rues-blue);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.rues-card .show_terms:hover,
.rues-card .show_politics:hover {
  color: var(--rues-navy);
  text-decoration: underline;
}

.rues-loading {
  margin-top: 12px;
  text-align: center;
}

/* Botones */
.rues-btn,
.rues-card .btn-mn,
.rues-card input[type="submit"],
.rues-card input[type="button"],
body.rues-simple .btn-mn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--rues-blue), var(--rues-navy)) !important;
  color: #fff !important;
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(3, 74, 155, 0.22) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rues-btn:hover,
.rues-card .btn-mn:hover,
.rues-card input[type="submit"]:hover,
.rues-card input[type="button"]:hover,
body.rues-simple .btn-mn:hover {
  background: linear-gradient(135deg, #0686d3, #03559f) !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(3, 74, 155, 0.28) !important;
}

.rues-btn:focus,
.rues-card .btn-mn:focus,
.rues-card input[type="submit"]:focus,
.rues-card input[type="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(5, 120, 190, 0.22), 0 10px 22px rgba(3, 74, 155, 0.2) !important;
}

.rues-btn[disabled],
.rues-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed;
  transform: none !important;
}

.rues-card .nav-tabs > li > a.tab-contentTabs[aria-disabled="true"] {
  cursor: default;
}

.rues-card .nav-tabs > li > a.tab-contentTabs:focus-visible,
.rues-back:focus-visible {
  outline: 3px solid rgba(5, 120, 190, 0.35);
  outline-offset: 2px;
}

/* El datepicker de jQuery UI debe quedar por encima del panel de filtros. */
#ui-datepicker-div {
  z-index: 3000 !important;
}

.rues-btn--ghost {
  background: #fff !important;
  border: 1px solid var(--rues-line) !important;
  color: var(--rues-navy) !important;
  box-shadow: none !important;
}

.rues-btn--ghost:hover {
  background: var(--rues-soft-2) !important;
  color: var(--rues-navy) !important;
}

/* Entrega de token */
.rues-delivery {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.rues-delivery__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
}

.rues-delivery__row .rues-check {
  align-items: center;
  font-weight: 600;
  color: var(--rues-ink);
}

.rues-delivery__row .rues-check input {
  margin-top: 0;
}

.rues-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

/* Token */
.rues-token-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  max-width: 620px;
}

.rues-token-row .rues-field {
  flex: 1 1 auto;
}

.rues-token-row .rues-btn {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Alertas y tablas
   -------------------------------------------------------------------------- */
.rues-card .alert,
.rues-legal-card .alert {
  margin: 14px 0 !important;
  padding: 16px 18px !important;
  border: 1px solid transparent !important;
  border-left-width: 4px !important;
  border-radius: 12px !important;
  background: #fff;
  font-size: 14px !important;
  line-height: 1.6;
  box-shadow: none !important;
}

.rues-card .alert-warning,
.rues-legal-card .alert-warning {
  border-color: #f1c4c0 !important;
  border-left-color: #d92d20 !important;
  background: #fff6f5 !important;
  color: #7a271a !important;
}

.rues-card .alert-info,
.rues-legal-card .alert-info {
  border-color: #f3d5a3 !important;
  border-left-color: #d97706 !important;
  background: #fffaeb !important;
  color: #7a4a00 !important;
}

.rues-card .alert-success,
.rues-legal-card .alert-success {
  border-color: #b7e2c8 !important;
  border-left-color: #067647 !important;
  background: #f2fbf5 !important;
  color: #05603a !important;
}

.rues-card .alert strong,
.rues-legal-card .alert strong {
  margin-left: 8px;
  font-size: 15px !important;
}

.rues-card .alert span,
.rues-legal-card .alert span {
  color: inherit !important;
}

.rues-card .alert .close,
.rues-legal-card .alert .close {
  top: 4px !important;
  right: 6px !important;
  color: inherit;
  opacity: 0.6;
}

.rues-card .table,
.rues-legal-card .table {
  margin-bottom: 0;
  color: var(--rues-text);
  font-size: 13.5px;
}

.rues-card .table thead th,
.rues-legal-card .table thead th {
  border-bottom: 2px solid #dce8f4 !important;
  background: #f2f7fc !important;
  color: #08335f !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.rues-card .table td,
.rues-legal-card .table td {
  border-top: 1px solid #edf2f7 !important;
  vertical-align: middle;
}

.rues-card .table-striped tbody tr:nth-of-type(odd) {
  background: #f9fbfd !important;
}

/* --------------------------------------------------------------------------
   Términos dentro del flujo
   -------------------------------------------------------------------------- */
#action2 {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: #fff;
  box-shadow: none !important;
  overflow: hidden;
}

#action2 > .card {
  padding: 26px 30px 8px;
  border: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

#action2 p {
  font-size: 15px !important;
  line-height: 1.7;
  color: var(--rues-text);
}

#action2 > .text-center {
  padding: 12px 30px 30px !important;
  background: #fff !important;
}

#action2 .card-body {
  height: auto !important;
  max-height: 520px;
  padding: 0 !important;
  overflow: auto !important;
  background: #fff !important;
  font-size: 15px !important;
}

#action2 .MsoNormal,
#action2 .MsoNormal span {
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */
.rues-legal-card {
  position: relative;
  z-index: 3;
  border: 1px solid #e1eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--rues-shadow);
  overflow: hidden;
}

.rues-legal-body {
  padding: 30px;
}

.rues-legal-body .card-body {
  height: auto !important;
  padding: 0 !important;
  background: #fff !important;
  overflow: visible !important;
  font-size: 15px !important;
  color: var(--rues-text);
}

.rues-legal-body .MsoNormal,
.rues-legal-body p {
  margin: 0 0 12px !important;
  color: var(--rues-text) !important;
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.rues-legal-body .MsoNormal span,
.rues-legal-body p span {
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.rues-legal-body body,
.rues-legal-body .WordSection1 {
  display: block;
}

.rues-legal-body b,
.rues-legal-body strong {
  color: var(--rues-ink);
}

.rues-legal-body o\:p,
.rues-legal-body .MsoNormal o\:p {
  display: none !important;
}

.rues-legal-intro {
  padding: 24px 30px;
  border-bottom: 1px solid #e8eff6;
  background: #f7fafd;
  color: var(--rues-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.rues-legal-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 30px 30px;
  background: #fff;
}

.rues-legal-body .card-body {
  max-height: none !important;
  overflow: visible !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.rues-footer {
  margin-top: 0;
  padding: 34px 0;
  border-top: 1px solid #dce7f2;
  background: #fff;
  color: var(--rues-muted);
  font-size: 13.5px;
}

.rues-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.rues-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rues-footer__brand img {
  width: 118px;
  height: auto;
}

.rues-footer__brand span {
  max-width: 360px;
  line-height: 1.45;
}

.rues-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.rues-footer__links a {
  color: #3c5a78 !important;
  font-weight: 600;
}

.rues-footer__links a:hover {
  color: var(--rues-navy) !important;
}

.rues-footer__meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef4fa;
  color: #7f93a8;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.rues-dashboard {
  background: var(--rues-soft);
}

.rues-dashboard .container-fluid.rues-dashboard-main {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  margin: -70px auto 0;
  padding: 0 24px 60px;
}

.rues-dashboard .panel-content {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.rues-dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 22px 26px;
  border: 1px solid #e1eaf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--rues-shadow-sm);
}

.rues-dashboard-toolbar__copy {
  min-width: 0;
}

.rues-dashboard-toolbar__copy h2 {
  margin: 2px 0 6px;
  color: #08335f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.rues-dashboard-toolbar__copy p {
  max-width: 830px;
  margin: 0;
  color: var(--rues-muted);
  font-size: 14px;
  line-height: 1.55;
}

.rues-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #f1c4c0;
  border-radius: 999px;
  background: #fff6f5;
  color: #b42318 !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rues-logout:hover {
  background: #feecea;
  transform: translateY(-1px);
  text-decoration: none;
}

.rues-dashboard .card,
.rues-dashboard .card.crypto,
.rues-dashboard .card.crypt-primary {
  margin-bottom: 20px;
  border: 1px solid #e1eaf3 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(4, 44, 92, 0.07) !important;
}

.rues-dashboard .card .card-body {
  padding: 20px 22px !important;
}

.rues-dashboard .card > .row {
  margin: 16px 18px 0 !important;
}

.rues-dashboard .card > .row label,
.rues-dashboard .card .card-body > .row > label {
  margin: 0;
  color: #08335f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rues-dashboard #id_filtros {
  padding: 0 !important;
}

.rues-dashboard #id_filtros > .row {
  margin: 0 -9px;
}

.rues-dashboard #id_filtros > .row > [class*="col-"] {
  padding: 0 9px;
  margin-bottom: 14px;
}

.rues-dashboard #id_filtros label {
  display: block;
  margin-bottom: 6px;
  color: #40556b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.rues-dashboard .form-control,
.rues-dashboard .fc-datepicker1 {
  height: 44px !important;
  border: 1px solid #cfddeb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--rues-ink) !important;
  font-family: var(--rues-font) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.rues-dashboard .form-control:focus,
.rues-dashboard .fc-datepicker1:focus {
  border-color: var(--rues-blue) !important;
  box-shadow: 0 0 0 3px rgba(5, 120, 190, 0.14) !important;
}

.rues-dashboard .bootstrap-select > .dropdown-toggle,
.rues-dashboard .bootstrap-select > .btn {
  height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #cfddeb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--rues-ink) !important;
  font-family: var(--rues-font) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.rues-dashboard .bootstrap-select .dropdown-menu {
  border-color: #dce7f2;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(4, 44, 92, 0.12);
}

.rues-dashboard .bootstrap-select .dropdown-menu li a {
  color: #40556b !important;
  font-size: 14px;
}

.rues-filter-actions__inner {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.rues-dashboard #search-id,
.rues-dashboard #refresh-id,
.rues-dashboard #help-id {
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--rues-blue), var(--rues-navy)) !important;
  color: #fff !important;
  font-family: var(--rues-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(3, 74, 155, 0.2) !important;
}

.rues-dashboard #search-id {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 10px !important;
}

.rues-dashboard #refresh-id,
.rues-dashboard #help-id {
  flex: 0 0 38px;
  width: 38px !important;
  min-width: 38px;
  padding: 0 !important;
  margin-left: 0 !important;
}

.rues-dashboard #id_filtros [class*="col-"] {
  margin-top: 0 !important;
}

.rues-dashboard #id_filtros [class*="col-"] > .input-group {
  width: 100%;
  float: none !important;
}

.rues-dashboard #id_filtros [class*="col-lg-1"] {
  margin-top: 0 !important;
}

.rues-dashboard #id_filtros [class*="col-lg-1"] > .input-group {
  margin-top: 0;
}

.rues-dashboard #query-board-id > .row {
  margin: 0 -10px;
}

.rues-dashboard #query-board-id > .row > [class*="col-"] {
  padding: 0 10px;
}

.rues-dashboard #query-board-id .card.crypto {
  height: 100%;
}

.rues-dashboard #query-board-id .card > .row {
  margin: 16px 18px 0 !important;
}

.rues-dashboard #query-board-id .table {
  font-size: 13px;
}

.rues-dashboard #query-board-id .table thead th {
  border-bottom: 2px solid #dce8f4 !important;
  background: #f2f7fc !important;
  color: #08335f !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rues-dashboard #query-board-id .table td {
  border-top: 1px solid #edf2f7 !important;
}

.rues-dashboard #total_reg {
  margin-top: 20px !important;
  color: var(--rues-navy);
  font-size: 46px !important;
  font-weight: 700;
  line-height: 1;
}

.rues-dashboard #save-info {
  min-height: 46px;
  padding: 0 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--rues-blue), var(--rues-navy)) !important;
  color: #fff !important;
  font-family: var(--rues-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 22px rgba(3, 74, 155, 0.22) !important;
}

.rues-dashboard .flot-chart.text-right {
  padding: 20px 22px;
  border: 1px solid #e1eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rues-shadow-sm);
  color: var(--rues-text);
}

.rues-dashboard .typeFile {
  accent-color: var(--rues-navy);
}

.rues-dashboard .inputRadio {
  margin: 0 4px 0 8px;
  vertical-align: middle;
}

.rues-dashboard .alert {
  margin: 14px 0 !important;
  padding: 15px 18px !important;
  border: 1px solid transparent !important;
  border-left-width: 4px !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: none !important;
}

.rues-dashboard .alert-warning {
  border-color: #f1c4c0 !important;
  border-left-color: #d92d20 !important;
  background: #fff6f5 !important;
}

.rues-dashboard .alert-info {
  border-color: #f3d5a3 !important;
  border-left-color: #d97706 !important;
  background: #fffaeb !important;
}

.rues-dashboard .alert span {
  color: inherit !important;
}

.rues-dashboard .alert strong {
  font-size: 15px !important;
}

.rues-dashboard .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(4, 44, 92, 0.2);
}

.rues-dashboard .modal-header {
  border-bottom: 1px solid #e8eff6;
  background: #f7fafd;
  border-radius: 16px 16px 0 0;
}

.rues-dashboard .modal-title {
  color: #08335f;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .rues-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 34px;
  }

  .rues-hero h1 {
    font-size: 40px;
  }

  .rues-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rues-field--captcha {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .rues-dashboard #id_filtros > .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .rues-dashboard #id_filtros > .row > .rues-filter-actions {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .rues-filter-actions__inner {
    max-width: 360px;
  }
}

@media (max-width: 860px) {
  .rues-header__inner {
    min-height: 68px;
    gap: 16px;
  }

  .rues-brand img {
    width: 146px;
  }

  .rues-nav {
    display: none;
  }

  .rues-header__cta {
    min-height: 38px;
    padding: 0 16px !important;
    font-size: 13px;
  }

  .rues-hero {
    padding: 48px 0 112px;
  }

  .rues-hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rues-hero h1 {
    font-size: 38px;
  }

  .rues-hero__panel {
    max-width: 520px;
  }

  .rues-hero--compact {
    padding: 38px 0 94px;
  }

  .rues-hero--compact h1 {
    font-size: 30px;
  }

  #home-banner.rues-main {
    margin-top: -70px !important;
  }

  .rues-card__head {
    padding: 18px 20px;
  }

  .rues-card__heading h2,
  .rues-card__heading h3 {
    font-size: 19px;
  }

  .rues-intro {
    padding: 22px 20px 0 !important;
  }

  .rues-wizard {
    padding: 16px 20px 24px !important;
  }

  .rues-card .tab-content {
    padding: 20px !important;
  }

  .rues-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .rues-consent .rues-btn {
    width: 100%;
  }

  .rues-dashboard .container-fluid.rues-dashboard-main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rues-dashboard-toolbar {
    align-items: flex-start;
  }

  .rues-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .rues-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .rues-dashboard #id_filtros > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .rues-filter-actions__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    max-width: none;
  }

  .rues-dashboard #refresh-id,
  .rues-dashboard #help-id {
    width: 100% !important;
    min-width: 0;
  }

  .rues-hero {
    padding: 40px 0 100px;
  }

  .rues-hero h1 {
    font-size: 32px;
  }

  .rues-hero__copy p {
    font-size: 15.5px;
  }

  .rues-hero__meta {
    flex-direction: column;
    gap: 8px;
  }

  .rues-hero__panel {
    padding: 18px;
  }

  .rues-card__head {
    flex-wrap: wrap;
  }

  .rues-card__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 17px;
  }

  .rues-back {
    margin-left: 56px;
  }

  .rues-form-grid {
    grid-template-columns: 1fr;
  }

  .rues-card .nav-tabs {
    gap: 5px;
  }

  .rues-card .nav-tabs > li > a.tab-contentTabs {
    min-height: 46px;
    padding: 8px 6px !important;
    font-size: 12px !important;
  }

  .rues-delivery__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rues-form-actions {
    justify-content: stretch;
  }

  .rues-form-actions .rues-btn {
    width: 100%;
  }

  .rues-token-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rues-token-row .rues-btn {
    width: 100%;
  }

  .rues-legal-body {
    padding: 20px;
  }

  .rues-legal-intro {
    padding: 18px 20px;
  }

  .rues-dashboard-toolbar {
    flex-direction: column;
    padding: 18px 20px;
  }

  .rues-logout {
    width: 100%;
    justify-content: center;
  }

  .rues-dashboard .card .card-body {
    padding: 16px !important;
  }

  .rues-dashboard .flot-chart.text-right {
    padding: 16px;
  }
}
