/* =========================================================
   CRUC Balam — Crear cuenta V2 (encapsulado)
   Conserva IDs / data-wizard / FormValidation de Metronic
   ========================================================= */

body.cruc-cuenta-page {
  --cc-teal: #008F8C;
  --cc-teal-dark: #00564F;
  --cc-petrol: #00564F;
  --cc-magenta: #E5007E;
  --cc-magenta-deep: #D20A55;
  --cc-text: #0F1D22;
  --cc-muted: #536063;
  --cc-border: #DCE8E8;
  --cc-bg: #F3F5F7;
  --cc-white: #FFFFFF;
  --cc-aside: #043F3B;
  margin: 0;
  background: var(--cc-bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--cc-text);
}

body.cruc-cuenta-page .cruc-cuenta-v2 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cc-bg);
}

body.cruc-cuenta-page .cruc-cuenta-pleca {
  flex: 0 0 auto;
  height: 28px;
  width: 100%;
  background-image: url("../img/svg/pleca_rosa.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-color: var(--cc-magenta-deep);
}

body.cruc-cuenta-page #kt_login.login.login-3 {
  flex: 1 1 auto;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

/* ---------- Aside: PNG estructural + HTML encima ---------- */
body.cruc-cuenta-page .cruc-cuenta-aside.login-aside,
body.cruc-cuenta-page .login.login-3 .login-aside.cruc-cuenta-aside {
  background: transparent !important;
  background-image: none !important;
  width: clamp(300px, 24vw, 360px) !important;
  max-width: clamp(300px, 24vw, 360px) !important;
  flex: 0 0 clamp(300px, 24vw, 360px) !important;
  position: relative;
  overflow: visible !important;
  z-index: 3;
  border-right: 0;
  min-height: calc(100vh - 28px);
  box-shadow: none;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  filter: none !important;
}

@media (min-width: 992px) {
  body.cruc-cuenta-page .login.login-3 .login-aside .aside-img {
    min-height: auto !important;
    background-image: none !important;
    background-size: auto !important;
  }
}

body.cruc-cuenta-page .cruc-cuenta-aside__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

body.cruc-cuenta-page .cruc-cuenta-aside__bg.aside-img {
  background-image: none !important;
  background-color: transparent !important;
  min-height: calc(100vh - 28px) !important;
  position: relative;
  overflow: visible;
  padding: 32px 30px 30px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  z-index: 2;
}

body.cruc-cuenta-page .cruc-cuenta-aside__brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

body.cruc-cuenta-page .cruc-cuenta-aside__gov {
  display: block;
  width: 190px;
  max-width: 190px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
  margin-bottom: 26px;
}

body.cruc-cuenta-page .cruc-cuenta-aside__cruc {
  display: block;
  width: 220px;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
}

body.cruc-cuenta-page .cruc-cuenta-aside__rule {
  position: relative;
  z-index: 2;
  width: 210px;
  max-width: 100%;
  height: 1px;
  margin: 24px 0 22px;
  background: rgba(255, 255, 255, 0.22);
}

body.cruc-cuenta-page .cruc-cuenta-aside__rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #E5007E;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 4px rgba(6, 63, 59, 0.92);
}

body.cruc-cuenta-page .cruc-cuenta-aside__rule--steps {
  margin: 28px 0 26px;
}

body.cruc-cuenta-page .cruc-cuenta-aside__rule--foot {
  width: 92px;
  margin: 0 0 12px;
}

body.cruc-cuenta-page .cruc-cuenta-aside__process {
  position: relative;
  z-index: 2;
  max-width: 250px;
  margin: 0;
}

body.cruc-cuenta-page .cruc-cuenta-aside__eyebrow {
  margin: 0 0 0.4rem;
  color: #5FE0D6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.cruc-cuenta-page .cruc-cuenta-aside__heading {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

body.cruc-cuenta-page .cruc-cuenta-aside__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

body.cruc-cuenta-page .cruc-cuenta-wizard-nav.wizard-nav,
body.cruc-cuenta-page .wizard-nav {
  position: relative !important;
  z-index: 2;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.cruc-cuenta-page .wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding: 0;
}

body.cruc-cuenta-page .wizard-step {
  position: relative;
  z-index: 1;
  min-height: 102px;
}

body.cruc-cuenta-page .wizard-step:last-child {
  min-height: 0;
}

body.cruc-cuenta-page .wizard-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  width: 1px;
  height: calc(100% - 54px);
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
  pointer-events: none;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="done"]:not(:last-child)::before {
  background: #28BDB2;
}

body.cruc-cuenta-page .wizard-wrapper {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 18px;
  align-items: start;
}

body.cruc-cuenta-page .wizard-icon {
  width: 50px;
  height: 50px;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="current"] .wizard-icon {
  width: 54px;
  height: 54px;
  background: #fff;
  border: 2px solid #5FE0D6;
  color: #008F8C;
  box-shadow: 0 0 0 5px rgba(0, 190, 180, 0.13);
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="done"] .wizard-icon {
  background: #008F8C;
  border-color: #008F8C;
  color: #fff;
}

body.cruc-cuenta-page .wizard-number {
  color: inherit !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="current"] .wizard-number {
  font-size: 18px;
}

body.cruc-cuenta-page .wizard-check {
  display: none;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="done"] .wizard-check {
  display: inline-block;
  color: #fff;
  font-size: 0.95rem;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="done"] .wizard-check::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="done"] .wizard-number {
  display: none;
}

body.cruc-cuenta-page .wizard-label {
  padding-top: 6px;
}

body.cruc-cuenta-page .cruc-cuenta-aside .wizard-title {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 0.2rem !important;
  line-height: 1.25 !important;
}

body.cruc-cuenta-page .cruc-cuenta-aside .wizard-desc {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

body.cruc-cuenta-page .cruc-cuenta-aside .wizard-step[data-wizard-state="current"] .wizard-title,
body.cruc-cuenta-page .cruc-cuenta-aside .wizard-step[data-wizard-state="done"] .wizard-title {
  color: #fff !important;
}

body.cruc-cuenta-page .cruc-cuenta-aside .wizard-step[data-wizard-state="current"] .wizard-desc {
  color: rgba(255, 255, 255, 0.65) !important;
}

body.cruc-cuenta-page .cruc-cuenta-aside .wizard-step[data-wizard-state="done"] .wizard-desc {
  color: rgba(255, 255, 255, 0.62) !important;
}

body.cruc-cuenta-page .wizard-step[data-wizard-state="current"] .wizard-label::after {
  content: "Paso actual";
  display: inline-block;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 180, 170, 0.2);
  color: #5FE0D6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

body.cruc-cuenta-page .cruc-cuenta-aside__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

body.cruc-cuenta-page .cruc-cuenta-aside__foot strong {
  color: #5FE0D6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.cruc-cuenta-page .cruc-cuenta-aside__foot span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Contenido + fondo edificios ---------- */
body.cruc-cuenta-page .cruc-cuenta-content.login-content {
  position: relative;
  background: #E8EEEF !important;
  padding: 0.85rem 1.35rem 1rem 1.55rem !important;
  overflow: hidden;
}

body.cruc-cuenta-page .cruc-cuenta-content.login-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/login/login-bg-building.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

body.cruc-cuenta-page .cruc-cuenta-content.login-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243, 245, 247, 0.55) 0%, rgba(243, 245, 247, 0.2) 45%, rgba(243, 245, 247, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}

body.cruc-cuenta-page .cruc-cuenta-content.login-content > * {
  position: relative;
  z-index: 1;
}

body.cruc-cuenta-page .login-form.login-form-signup {
  width: 100%;
  max-width: 1140px;
  background: var(--cc-white);
  border-radius: 18px;
  padding: 1.75rem 2.25rem 1.45rem;
  box-shadow: 0 16px 40px rgba(15, 29, 34, 0.08);
  border: 1px solid rgba(220, 232, 232, 0.95);
}

body.cruc-cuenta-page .cruc-cuenta-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--cc-border);
}

body.cruc-cuenta-page .cruc-cuenta-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-teal);
}

body.cruc-cuenta-page .cruc-cuenta-title {
  color: var(--cc-petrol) !important;
  font-size: clamp(1.35rem, 2vw, 1.7rem) !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

body.cruc-cuenta-page .cruc-cuenta-step-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cc-muted);
}

body.cruc-cuenta-page .cruc-cuenta-step-hint::after {
  content: "Paso 1 de 3 · Información del contratista";
}

body.cruc-cuenta-page .wizard[data-wizard-state="between"] .cruc-cuenta-step-hint::after {
  content: "Paso 2 de 3 · Domicilio y contacto";
}

body.cruc-cuenta-page .wizard[data-wizard-state="last"] .cruc-cuenta-step-hint::after {
  content: "Paso 3 de 3 · Datos de acceso";
}

body.cruc-cuenta-page .cruc-cuenta-back,
body.cruc-cuenta-page .colorinpt {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--cc-teal) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
}

body.cruc-cuenta-page .cruc-cuenta-back:hover,
body.cruc-cuenta-page .cruc-cuenta-back:focus {
  color: var(--cc-magenta) !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="between"] .cruc-cuenta-back,
body.cruc-cuenta-page .wizard[data-wizard-state="last"] .cruc-cuenta-back {
  display: none !important;
}

body.cruc-cuenta-page .wizard-desc.text-center {
  color: var(--cc-text) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.4rem;
}

/* Línea + rombo entre tipo trámite / tipo persona */
body.cruc-cuenta-page .cruc-cuenta-choice-row {
  position: relative;
  margin-bottom: 0.5rem !important;
}

body.cruc-cuenta-page .cruc-cuenta-choice-row::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  bottom: 10%;
  width: 1px;
  transform: translateX(-50%);
  background: #DCE8E8;
  z-index: 2;
  pointer-events: none;
}

body.cruc-cuenta-page .cruc-cuenta-choice-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #E5007E;
  box-shadow: 0 0 0 2px #FFFFFF;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Radio tiles: texto DENTRO del botón ---------- */
body.cruc-cuenta-page .radio-tile-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch;
  gap: 0.65rem !important;
}

body.cruc-cuenta-page .radio-tile-group .input-container {
  position: relative !important;
  width: 132px !important;
  height: 96px !important;
  margin: 0 !important;
  flex: 0 0 132px;
}

body.cruc-cuenta-page .radio-tile-group .input-container .radio-button {
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

body.cruc-cuenta-page .radio-tile-group .input-container .radio-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem;
  width: 100% !important;
  height: 100% !important;
  padding: 0.45rem 0.4rem 0.4rem !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 10px !important;
  background: #FAFCFC !important;
  box-shadow: 0 4px 12px rgba(31, 39, 48, 0.04);
  overflow: hidden;
  box-sizing: border-box !important;
  transform: none !important;
  pointer-events: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.cruc-cuenta-page .radio-tile-group .input-container .radio-button:checked + .radio-tile {
  background-color: var(--cc-teal) !important;
  border-color: var(--cc-teal) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: 0 8px 18px rgba(0, 143, 140, 0.24);
}

body.cruc-cuenta-page .radio-tile-group .input-container .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

body.cruc-cuenta-page .radio-tile-group .input-container .icon svg {
  fill: var(--cc-petrol) !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  background: transparent !important;
}

body.cruc-cuenta-page .radio-tile-group .input-container .radio-button:checked + .radio-tile .icon svg,
body.cruc-cuenta-page .radio-tile-group .input-container .radio-button:checked + .radio-tile .radio-tile-label {
  fill: #fff !important;
  color: #fff !important;
  background-color: transparent !important;
}

body.cruc-cuenta-page .radio-tile-group .input-container .radio-tile-label {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 0.1rem !important;
  color: var(--cc-petrol) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- Campos ---------- */
body.cruc-cuenta-page .login-form .form-group {
  margin-bottom: 0.55rem;
}

body.cruc-cuenta-page .login-form label,
body.cruc-cuenta-page .login-form .col-form-label {
  color: var(--cc-text) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.4rem;
}

body.cruc-cuenta-page .login-form .form-control.myshadow,
body.cruc-cuenta-page .login-form .form-control {
  height: 52px !important;
  min-height: 52px;
  border: 1px solid var(--cc-border) !important;
  border-radius: 12px !important;
  background: #F7FAFA !important;
  box-shadow: none !important;
  color: var(--cc-text) !important;
  font-size: 1.02rem !important;
  padding: 0.78rem 1.15rem !important;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

body.cruc-cuenta-page .login-form .form-control:focus {
  border-color: var(--cc-teal) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 143, 140, 0.14) !important;
}

body.cruc-cuenta-page .login-form select.form-control {
  appearance: auto;
}

body.cruc-cuenta-page .form-group.row.fisica {
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

body.cruc-cuenta-page .form-group.row.fisica > .col-form-label {
  margin-top: 0 !important;
  padding-top: 0;
}

body.cruc-cuenta-page .wrapper {
  display: flex !important;
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  align-items: stretch;
}

body.cruc-cuenta-page .wrapper .option {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  flex: 1 1 0;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 0.35rem !important;
  padding: 0.45rem 0.75rem !important;
  border: 1.5px solid var(--cc-border) !important;
  border-radius: 12px !important;
  background: #F7FAFA !important;
  box-shadow: none !important;
  overflow: hidden;
  box-sizing: border-box;
}

body.cruc-cuenta-page .wrapper .option .dot {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  background: #C5D0D0 !important;
}

body.cruc-cuenta-page .wrapper .option .dot::before {
  top: 3px !important;
  left: 3px !important;
  width: 10px !important;
  height: 10px !important;
  background: var(--cc-teal);
}

body.cruc-cuenta-page #option-1:checked:checked ~ .option-1,
body.cruc-cuenta-page #option-2:checked:checked ~ .option-2 {
  border-color: var(--cc-teal) !important;
  background: var(--cc-teal) !important;
  box-shadow: 0 6px 14px rgba(0, 143, 140, 0.2);
}

body.cruc-cuenta-page #option-1:checked:checked ~ .option-1 .dot,
body.cruc-cuenta-page #option-2:checked:checked ~ .option-2 .dot {
  background: #fff !important;
}

body.cruc-cuenta-page .wrapper .option span {
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  color: var(--cc-muted) !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

body.cruc-cuenta-page #option-1:checked:checked ~ .option-1 span,
body.cruc-cuenta-page #option-2:checked:checked ~ .option-2 span {
  color: #fff !important;
}

/* ---------- Botones del wizard: un botón por paso ---------- */
body.cruc-cuenta-page .login-form .btn.btn-primary,
body.cruc-cuenta-page .login-form .btn.btn-light-primary {
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem;
  min-height: 48px !important;
  height: auto !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  transform: none !important;
}

body.cruc-cuenta-page .wizard [data-wizard-type="action-prev"],
body.cruc-cuenta-page .wizard [data-wizard-type="action-submit"] {
  display: none !important;
}

body.cruc-cuenta-page .wizard [data-wizard-type="action-next"] {
  display: inline-flex !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="first"] [data-wizard-type="action-prev"],
body.cruc-cuenta-page .wizard[data-wizard-state="first"] [data-wizard-type="action-submit"] {
  display: none !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="first"] [data-wizard-type="action-next"] {
  display: inline-flex !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="between"] [data-wizard-type="action-prev"],
body.cruc-cuenta-page .wizard[data-wizard-state="between"] [data-wizard-type="action-next"] {
  display: inline-flex !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="between"] [data-wizard-type="action-submit"] {
  display: none !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="last"] [data-wizard-type="action-prev"],
body.cruc-cuenta-page .wizard[data-wizard-state="last"] [data-wizard-type="action-submit"] {
  display: inline-flex !important;
}

body.cruc-cuenta-page .wizard[data-wizard-state="last"] [data-wizard-type="action-next"] {
  display: none !important;
}

body.cruc-cuenta-page .wizard [data-wizard-type="step-content"] {
  display: none !important;
}

body.cruc-cuenta-page .login-form [data-wizard-type="step-content"] {
  padding-bottom: 0.35rem !important;
}

body.cruc-cuenta-page .wizard [data-wizard-type="step-content"][data-wizard-state="current"] {
  display: block !important;
}

body.cruc-cuenta-page .btn.btn-primary {
  background: var(--cc-teal) !important;
  border: 1px solid var(--cc-teal) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 143, 140, 0.22);
}

body.cruc-cuenta-page .btn.btn-primary:hover,
body.cruc-cuenta-page .btn.btn-primary:focus {
  background: var(--cc-teal-dark) !important;
  border-color: var(--cc-teal-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(0, 86, 79, 0.28);
}

body.cruc-cuenta-page .btn.btn-light-primary {
  background: #fff !important;
  border: 1.5px solid var(--cc-border) !important;
  color: var(--cc-petrol) !important;
  box-shadow: none;
}

body.cruc-cuenta-page .btn.btn-light-primary:hover,
body.cruc-cuenta-page .btn.btn-light-primary:focus {
  border-color: var(--cc-teal) !important;
  background: rgba(0, 143, 140, 0.06) !important;
  color: var(--cc-teal) !important;
}

body.cruc-cuenta-page .cruc-cuenta-actions .btn i {
  font-size: 0.82rem;
  line-height: 1;
}

body.cruc-cuenta-page .btn .svg-icon,
body.cruc-cuenta-page .btn .svg-icon svg {
  display: none !important;
}

body.cruc-cuenta-page .login-form p.text-justify {
  grid-column: 1 / -1;
  background: rgba(0, 143, 140, 0.07);
  border: 1px solid rgba(0, 143, 140, 0.18);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--cc-text);
  font-size: 0.86rem !important;
  line-height: 1.45;
}

@keyframes crucCuentaErrIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crucCuentaShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

body.cruc-cuenta-page .fv-plugins-message-container {
  margin-top: 0.4rem;
}

body.cruc-cuenta-page .fv-plugins-message-container .fv-help-block {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  border-radius: 8px;
  background: rgba(229, 0, 126, 0.08);
  border: 1px solid rgba(229, 0, 126, 0.22);
  color: #D20A55 !important;
  font-weight: 600;
  font-size: 0.76rem;
  line-height: 1.25;
  animation: crucCuentaErrIn 280ms ease both;
}

body.cruc-cuenta-page .fv-plugins-message-container .fv-help-block::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #E5007E;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

body.cruc-cuenta-page .form-control.is-invalid,
body.cruc-cuenta-page .form-control.fv-plugins-bootstrap-invalid {
  border-color: #E5007E !important;
  background: #FFF7FA !important;
  box-shadow: 0 0 0 3px rgba(229, 0, 126, 0.12) !important;
  animation: crucCuentaShake 360ms ease;
}

@media (min-width: 768px) {
  body.cruc-cuenta-page .wizard [data-wizard-type="step-content"][data-wizard-state="current"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.9rem;
  }

  body.cruc-cuenta-page .cruc-cuenta-choice-row,
  body.cruc-cuenta-page .form-group.row,
  body.cruc-cuenta-page .form-group.moral,
  body.cruc-cuenta-page .cruc-cuenta-user-field,
  body.cruc-cuenta-page .cruc-cuenta-rfc-field,
  body.cruc-cuenta-page [data-wizard-type="step-content"] > .row {
    grid-column: 1 / -1;
  }
}

body.cruc-cuenta-page .wizard [data-wizard-type="step-content"] .d-none {
  display: none !important;
}

body.cruc-cuenta-page .cruc-cuenta-rfc-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--cc-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

body.cruc-cuenta-page #modal-message-contacto .modal-header {
  background: var(--cc-aside) !important;
  color: #fff !important;
  border: 0 !important;
}

body.cruc-cuenta-page #modal-message-contacto .modal-title {
  color: #fff !important;
}

body.cruc-cuenta-page #modal-message-contacto .btn-dark {
  background: var(--cc-teal) !important;
  border-color: var(--cc-teal) !important;
}

body.cruc-cuenta-page .cruc-cuenta-swal {
  border-radius: 16px !important;
  padding: 1.35rem 1.25rem 1.1rem !important;
  font-family: Inter, system-ui, sans-serif !important;
}

body.cruc-cuenta-page .cruc-cuenta-swal .swal2-html-container,
body.cruc-cuenta-page .cruc-cuenta-swal .swal2-content {
  font-size: 0.95rem !important;
  color: #0F1D22 !important;
  line-height: 1.5 !important;
}

body.cruc-cuenta-page .cruc-cuenta-passwrap {
  position: relative;
}

body.cruc-cuenta-page .cruc-cuenta-passwrap .form-control {
  padding-right: 2.7rem !important;
}

body.cruc-cuenta-page .cruc-cuenta-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--cc-teal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.cruc-cuenta-page .cruc-cuenta-eye:hover,
body.cruc-cuenta-page .cruc-cuenta-eye:focus {
  color: var(--cc-petrol);
  outline: none;
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8A9398;
  line-height: 1.25;
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.7rem;
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li.is-miss {
  color: #D20A55;
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li.is-miss::before {
  content: "✕";
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li.is-ok {
  color: var(--cc-teal);
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter li.is-ok::before {
  content: "✓";
}

body.cruc-cuenta-page .cruc-cuenta-pass-meter.is-complete li {
  color: var(--cc-teal);
}

@media (max-width: 991.98px) {
  body.cruc-cuenta-page .cruc-cuenta-aside.login-aside,
  body.cruc-cuenta-page .login.login-3 .login-aside.cruc-cuenta-aside {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: hidden !important;
    background: #063F3B !important;
    box-shadow: none;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__panel {
    display: none;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__bg.aside-img {
    min-height: 0 !important;
    padding: 0.95rem 1rem 0.85rem !important;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__brand {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__gov {
    width: auto;
    height: 38px;
    max-width: 48%;
    margin-bottom: 0;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__cruc {
    width: auto;
    max-width: 140px;
    max-height: 40px;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__rule,
  body.cruc-cuenta-page .cruc-cuenta-aside__lead,
  body.cruc-cuenta-page .cruc-cuenta-aside__foot,
  body.cruc-cuenta-page .wizard-step[data-wizard-state="current"] .wizard-label::after {
    display: none;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__process {
    margin: 0.7rem 0 0.85rem;
  }

  body.cruc-cuenta-page .cruc-cuenta-aside__heading {
    font-size: 0.9rem;
  }

  body.cruc-cuenta-page .wizard-steps {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.35rem;
    overflow: hidden;
  }

  body.cruc-cuenta-page .wizard-step {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
  }

  body.cruc-cuenta-page .wizard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    grid-template-columns: none;
  }

  body.cruc-cuenta-page .wizard-icon {
    width: 36px;
    height: 36px;
  }

  body.cruc-cuenta-page .wizard-title {
    font-size: 0.72rem !important;
    margin: 0 !important;
  }

  body.cruc-cuenta-page .wizard-label .wizard-desc {
    display: none;
  }

  body.cruc-cuenta-page .wizard-step:not(:last-child)::before {
    left: 50%;
    top: 18px;
    width: calc(100% - 36px);
    height: 2px;
    margin-left: 18px;
    background: rgba(255, 255, 255, 0.15);
  }

  body.cruc-cuenta-page .wizard-step[data-wizard-state="done"]:not(:last-child)::before {
    background: rgba(65, 210, 196, 0.75);
  }

  body.cruc-cuenta-page .wizard-step[data-wizard-state="current"]::after {
    display: none;
  }

  body.cruc-cuenta-page .login-form.login-form-signup {
    padding: 1.2rem 1.05rem 1.05rem;
    border-radius: 14px;
  }

  body.cruc-cuenta-page .cruc-cuenta-card-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  body.cruc-cuenta-page .cruc-cuenta-choice-row::before,
  body.cruc-cuenta-page .cruc-cuenta-choice-row::after {
    display: none;
  }

  body.cruc-cuenta-page .radio-tile-group {
    flex-wrap: wrap !important;
  }

  body.cruc-cuenta-page .radio-tile-group .input-container {
    width: 108px !important;
    height: 80px !important;
    flex-basis: 108px;
  }
}

@media (max-width: 575.98px) {
  body.cruc-cuenta-page .wrapper {
    flex-direction: column;
    max-width: 100% !important;
  }

  body.cruc-cuenta-page .wrapper .option {
    margin: 0.3rem 0 !important;
    width: 100%;
  }
}
