:root {
  --ink: #29343e;
  --muted: #5c5c5c;
  --link: #006f94;
  --navy: #004582;
  --navy-deep: #00345b;
  --navy-card: #00235a;
  --cyan: #00aae2;
  --cyan-mid: #0b85c4;
  --cyan-title: #36d4ff;
  --lime: #addb1d;
  --bg: #ffffff;
  --bg-page: linear-gradient(180deg, #d8e7f3 0%, #ffffff 100%);
  --header: 51px;
  --radius-card: 25px;
  --radius-input: 6px;
  --radius-btn: 8px;
  --shadow-card: 0 1px 4px 1px rgba(0, 0, 0, 0.15), 0 1px 6px 2px rgba(0, 0, 0, 0.08);
  --footer: linear-gradient(90deg, #194770 0%, #196a9f 100%);
  --title: "Geogrotesque Sharp", Roboto, sans-serif;
  --title-bold: "Geogrotesque Sharp Bold", "Geogrotesque Sharp", Roboto, sans-serif;
  --ui: "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-family: var(--ui); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.app-header[hidden],
.app-footer[hidden],
.chat-bubble[hidden] { display: none !important; }

.app-header {
  height: var(--header);
  background-image: linear-gradient(90deg, #00aae2 0%, #004582 100%);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/images/header-bg.svg") center / cover no-repeat;
  pointer-events: none;
}
.header-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-top: 6px;
}
.header-logo {
  height: 30px;
  width: 104px;
  object-fit: contain;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-help {
  color: #fff;
  text-decoration: none;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-help-text {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .header-help-text { display: none; }
}
.header-help-ico {
  width: 24px;
  height: 24px;
  border: 1.6px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.login-chip {
  height: 28px;
  border: 0;
  border-radius: 100px;
  padding: 2px 8px;
  color: #fff;
  background-image: linear-gradient(90deg, #00aae2 0%, #0b85c4 100%);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.login-chip span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.login-chip svg { flex-shrink: 0; }

.page { min-height: calc(100vh - var(--header)); }
body:not(.home-bg):not(.nx-body) .page {
  background-image: var(--bg-page);
}
.wrap {
  width: min(540px, calc(100% - 30px));
  margin: 0 auto;
  padding: 24px 0 140px;
}

.page-enter {
  animation: pageEnter 0.28s ease;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 16px;
}
.crumbs a { color: var(--link); text-decoration: underline; }
.crumbs .sep { color: var(--muted); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
}

h1, .title {
  font-family: var(--title);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
}
h2, h5.section-title, .section-title {
  font-family: var(--title);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 28px 0 16px;
}
h5.section-title:nth-of-type(2),
.section-title + .tax-grid {
  margin-top: 0;
}
.lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  margin: 0 0 24px;
}
.lead a { color: var(--link); text-decoration: underline; }

/* HOME */
.container-home-page {
  background-image: linear-gradient(101.16deg, #004582 -10.55%, #004b88 55.66%, #0075b0 96.4%);
}
.home-banner {
  position: relative;
  background: #00345b;
  display: flex;
  justify-content: center;
  padding-top: 24px;
  overflow: hidden;
}
.home-banner picture {
  display: block;
  width: auto;
  max-width: 100%;
  animation: bannerFade 0.35s ease;
}
.home-banner picture[hidden] {
  display: none !important;
  animation: none;
}
@keyframes bannerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.home-banner picture img {
  display: block;
  width: min(90vw, 720px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.banner-nav {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 92px;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.banner-nav.prev {
  left: 0;
  background: linear-gradient(90deg, #00345b, rgba(0, 52, 91, 0));
}
.banner-nav.next {
  right: 0;
  background: linear-gradient(90deg, rgba(0, 52, 91, 0), #00345b);
}
.banner-nav img { width: 15px; height: 17px; max-width: none; }

.home-hero {
  background: transparent;
  padding: 36px 15px 48px;
}
.home-hero > h1 {
  text-align: center;
  color: #fff;
  font-family: var(--ui);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  margin: 0 0 28px;
}
.hero-cards {
  display: grid;
  gap: 16px;
  width: min(423px, 100%);
  margin: 0 auto;
}

.bl-hc-card {
  font-family: var(--title);
  display: block;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    linear-gradient(0deg, rgba(0, 52, 91, 0.1), rgba(0, 52, 91, 0.1)),
    rgba(0, 52, 91, 0.19);
  text-decoration: none;
  border-radius: 25px;
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.bl-hc-card::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    linear-gradient(0deg, rgba(0, 52, 91, 0.1), rgba(0, 52, 91, 0.1)),
    rgba(0, 52, 91, 0.19);
  pointer-events: none;
}
.bl-hc-card__body {
  display: flex;
  gap: 16px;
  height: 100%;
  padding-right: 20px;
}
.bl-hc-card__bubble {
  position: relative;
  z-index: 2;
  width: 122px;
  height: 100%;
  background: linear-gradient(90deg, #004582, #0b85c4);
  border-radius: 25px 200px 200px 25px;
  flex-shrink: 0;
}
.bl-hc-card__bubble::after {
  content: "";
  background: linear-gradient(90deg, #004582, #32a430);
  z-index: 3;
  position: absolute;
  inset: 0;
  max-width: 122px;
  border-radius: 25px 200px 200px 25px;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
.bl-hc-card__img {
  z-index: 5;
  width: 90px;
  height: 90px;
  transition: 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  object-fit: contain;
}
.bl-hc-card__img--emision { left: 16px; }
.bl-hc-card__img--gestiones { left: 9px; }
.bl-hc-card__container {
  display: flex;
  z-index: 4;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.bl-hc-card__title {
  color: var(--cyan-title);
  font-family: var(--title-bold);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
  transition: color 0.3s ease-in;
}
.bl-hc-card__text {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  margin: 8px 0 0;
}
.bl-hc-card__text strong { font-weight: 700; }
.bl-hc-card .divider {
  width: 154px;
  height: 12px;
  filter: invert(56%) sepia(30%) saturate(6936%) hue-rotate(162deg) brightness(98%) contrast(101%);
  transition: 0.3s ease-in;
}
.bl-hc-card__shape {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 25px;
  width: 100%;
  height: 165px;
  clip-path: polygon(0 0, 100% 0, 100% 67%, 0 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45));
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
.bl-hc-card:hover .bl-hc-card__img {
  width: 120px;
  height: 120px;
  left: 0;
}
.bl-hc-card:hover .bl-hc-card__bubble::after { opacity: 1; }
.bl-hc-card:hover .bl-hc-card__shape { opacity: 1; }
.bl-hc-card:hover .bl-hc-card__title { color: var(--lime); }
.bl-hc-card:hover .divider {
  filter: invert(75%) sepia(65%) saturate(561%) hue-rotate(23deg) brightness(98%) contrast(91%);
}

.home-panel {
  background-image: var(--bg-page);
  padding: 36px 15px 48px;
}
.home-panel h1,
.home-panel h2 {
  text-align: center;
  font-family: var(--ui);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0;
}
.medios-row .height-35-35,
.medios-row .height-25-30,
.medios-row .height-35-30 { height: auto; }
.venc-list {
  width: min(540px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.venc-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.venc-item time {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.medios-row {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 32px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.medios-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 40px;
  flex: 0 0 auto;
}
.medios-row img,
.medios-logo img {
  display: block;
  width: auto;
  height: 32px;
  max-width: 110px;
  max-height: 36px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  flex-shrink: 0;
}

/* TAX CARDS */
.tax-list { display: grid; gap: 16px; }
.tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 145px);
  gap: 16px;
}
.tax-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 82px;
  min-height: 82px;
  border-radius: var(--radius-card);
  padding: 0;
  text-decoration: none;
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.17;
  background-color: var(--navy-card);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  scale: 1;
  transition: scale 0.2s ease;
}
.tax-card .tax-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 76px;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.tax-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.tax-card:hover { scale: 1.012; }
.tax-auto {
  border: 3px solid rgb(110, 190, 100);
  background-image: linear-gradient(34deg, rgba(50, 164, 48, 0) 2.13%, rgb(42, 142, 52) 97.88%);
  color: rgb(110, 190, 100);
}
.tax-inmueble {
  border: 3px solid rgb(230, 120, 100);
  background-image: linear-gradient(34deg, rgba(198, 81, 70, 0) 2.13%, rgb(185, 86, 80) 97.88%);
  color: rgb(230, 120, 100);
}
.tax-iibb {
  border: 3px solid rgb(180, 120, 180);
  background-image: linear-gradient(34deg, rgba(175, 65, 120, 0) 2.13%, rgb(143, 58, 113) 97.88%);
  color: rgb(180, 120, 180);
}
.tax-sellos {
  border: 3px solid rgb(90, 102, 171);
  background-image: linear-gradient(34deg, rgba(90, 102, 171, 0) 2.13%, rgb(80, 94, 157) 97.88%);
  color: rgb(90, 102, 171);
}
.tax-caminera {
  border: 3px solid rgb(223, 186, 16);
  background-image: linear-gradient(34deg, rgba(247, 190, 43, 0) 2.13%, rgb(219, 173, 51) 97.88%);
  color: rgb(223, 186, 16);
}
.tax-secondary {
  width: 145px;
  min-height: 145px;
  height: 145px;
  padding: 10px;
  background: #fff;
  color: #29343e;
  border: 2px solid #29343e;
  font-size: 16px;
  font-weight: 400;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.tax-secondary img { width: 56px; height: 56px; }

/* FORMS */
.card,
.form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.form-card-title,
h5.form-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--title);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.form-card-title img { width: 28px; height: 28px; object-fit: contain; }
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.field { margin: 16px 0 8px; }
.field label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #5c5c5c;
  border-radius: var(--radius-input);
  padding: 9px 16px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.field input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.hint { color: var(--muted); font-size: 14px; line-height: 1.2; margin: 8px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: var(--radius-btn);
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: background-color 0.2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #003d73; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; margin-top: 10px; }

.chip {
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-card);
}

.obl {
  background: #f2f2f2;
  border-radius: 0 0 16px 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: #b61616;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
}
.amount { font-weight: 600; font-size: 20px; color: #000; }
.amount sup { font-size: 60%; }
.checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--navy);
}

.paybar {
  position: sticky;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
}
.paybar .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
}
.paybar .cta {
  margin-top: 12px;
  background: var(--navy);
  color: #fff;
  border: 0;
  width: 100%;
  min-height: 36px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  cursor: pointer;
}
.paybar .cta:hover:not(:disabled) { background: #003d73; }
.paybar .cta:disabled { opacity: 0.4; cursor: not-allowed; }

.pay-option,
.brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #bfbfbf;
  border-radius: 17px;
  padding: 20px;
  margin: 0 0 16px;
  text-decoration: none;
  min-height: 72px;
  transition: border-color 0.2s ease, scale 0.2s ease;
  scale: 1;
}
.pay-option:hover,
.brand-card:hover {
  border-color: var(--navy);
  scale: 1.01;
}
.pay-option small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.pay-option b { font-size: 18px; font-weight: 600; color: var(--ink); }
.brand-grid { display: grid; }
.brand-card img { height: 28px; width: auto; }
.amex-badge {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 28px;
  border-radius: 6px;
  background: #1b6fb5;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.pay-processing {
  min-height: 70vh;
}
.pay-processing .loader {
  min-height: 56vh;
}
.pay-processing .loader p {
  margin: 0;
  font-family: "Geogrotesque Sharp", "IBM Plex Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #29343e;
}
.pay-processing .loader .muted {
  margin-top: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
}
.loader {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.bar {
  width: 180px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 99px;
  overflow: hidden;
  margin: 16px auto 0;
}
.bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--navy);
  animation: load 1.1s ease-in-out infinite;
}
@keyframes load {
  0% { translate: -120% 0; }
  100% { translate: 320% 0; }
}

.app-footer {
  background-image: var(--footer);
  color: #fff;
  padding: 40px 20px 32px;
}
.footer-inner { width: min(1080px, 100%); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-col h5 {
  margin: 0;
  font-family: var(--title);
  font-size: 16px;
  font-weight: 600;
}
.footer-col a,
.footer-col p {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  margin: 0;
}
.footer-col a:hover { text-decoration: underline; }
.footer-more { color: var(--cyan-title) !important; }
.footer-brand {
  display: flex;
  justify-content: center;
  margin: 40px 0 16px;
}
.footer-brand img { width: 240px; height: auto; max-width: 100%; }
.footer-copy {
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copy p { margin: 0; }

.chat-bubble {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0b85c4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 22px;
  cursor: pointer;
  z-index: 25;
}

.result-ok {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #206b1f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}
.result-err {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 auto 16px;
}
.result-msg {
  color: var(--muted);
  margin: 8px 0 0;
}
.btn-link {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  margin-top: 8px;
}
.result-box { text-align: center; padding: 36px 24px; }
.result-box dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  text-align: left;
  margin: 24px 0 0;
}
.result-box dt { color: var(--muted); font-size: 14px; }
.result-box dd { margin: 0; font-weight: 600; }

.empty {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
  box-shadow: var(--shadow-card);
}
.alert-err {
  background: #fff1f1;
  color: #b61616;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 12px;
}
.icon-row { display: flex; align-items: center; gap: 12px; }
.pay-ico {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ecf8fe;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}
.chev { color: #004582; font-size: 24px; }
.contrib { margin: 0 0 6px; font-weight: 600; font-size: 16px; }
.muted { color: var(--muted); font-size: 14px; }

@media (min-width: 768px) {
  :root { --header: 59px; }
  .header-inner { margin-top: 0; padding: 0 24px; }
  .header-logo { height: 35px; width: 120px; }
  .login-chip { padding: 2px 16px; }
  .home-banner picture img { width: 720px; max-width: 720px; }
  .medios-row .height-25-30,
  .medios-row .height-35-30 { height: 30px; }
  .wrap-wide { width: min(1140px, calc(100% - 80px)); }
  .tax-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
  }
  .tax-list .tax-card { height: 180px; }
  .tax-list .tax-card .tax-card__body {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 8px;
    gap: 0;
  }
  .tax-list .tax-card img { margin-bottom: 17px; }
}

@media (min-width: 996px) {
  .hero-cards {
    width: min(882px, 100%);
    grid-template-columns: 423px 423px;
    justify-content: center;
    gap: 36px;
  }
  .bl-hc-card { height: 218px; width: 423px; }
  .bl-hc-card__body { padding-right: 31px; gap: 36px; }
  .bl-hc-card__bubble { width: 182px; }
  .bl-hc-card__bubble::after { max-width: 182px; }
  .bl-hc-card__img { width: 182px; height: 182px; left: -10px; }
  .bl-hc-card .bl-hc-card__img--gestiones { left: -5px; }
  .bl-hc-card:hover .bl-hc-card__img { width: 222px; height: 222px; left: -20px; }
}

@media (min-width: 1359px) {
  .home-banner picture img { width: min(1200px, 92vw); max-width: 1200px; }
}

@media (min-width: 1920px) {
  .home-banner picture img { width: min(50vw, 1400px); }
}

@media (max-width: 479px) {
  .home-banner {
    padding-top: 12px;
    overflow: hidden;
  }
  .home-banner picture img {
    width: calc(100vw - 8px);
    max-width: 100%;
  }
  .banner-nav { width: 44px; }
  .medios-row {
    gap: 12px;
    padding: 16px 12px;
  }
  .medios-row img,
  .medios-row .height-35-35,
  .medios-row .height-25-30,
  .medios-row .height-35-30 {
    height: 28px;
    max-width: 88px;
    max-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .home-banner picture {
    animation: none;
  }
  .page-enter,
  .bl-hc-card,
  .bl-hc-card__img,
  .bl-hc-card__title,
  .bl-hc-card__bubble::after,
  .tax-card,
  .pay-option,
  .brand-card,
  .btn { transition: none; }
  .bl-hc-card:hover .bl-hc-card__img { width: 90px; height: 90px; }
  .tax-card:hover,
  .pay-option:hover,
  .brand-card:hover { scale: 1; }
  .bar i { animation: none; }
}

/* AUTOMOTOR */
.auto-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cumplidor {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.cumplidor-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #206b1f;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.cumplidor-badge small { font-size: 11px; font-weight: 500; }
.cumplidor-badge b { font-size: 22px; }
.cumplidor p { margin: 0; color: var(--muted); font-size: 14px; }
.cumplidor strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.tasa-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.auto-plate {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.auto-plate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.auto-plate .plate {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}
.auto-plate-estado {
  flex-shrink: 0;
}
.badge-deuda {
  display: inline-block;
  background: #be1e24;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.badge-juicio {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #d42228 0%, #a8181d 100%);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px 10px;
  min-width: 132px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(190, 30, 36, 0.4);
  border: 2px solid #fff;
  outline: 1px solid rgba(190, 30, 36, 0.5);
}
.badge-juicio--compact {
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  gap: 2px;
}
.badge-juicio-title {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}
.badge-juicio--compact .badge-juicio-title {
  font-size: 12px;
}
.badge-juicio-detail {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.95;
  max-width: 140px;
}
.badge-juicio--compact .badge-juicio-detail {
  font-size: 9px;
  max-width: 120px;
}
.year-acc {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.year-acc + .year-acc { margin-top: 12px; }
.year-btn {
  width: 100%;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 18px 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.year-btn::after {
  content: "▾";
  color: #004582;
  font-size: 16px;
}
.year-acc.is-open .year-btn::after { content: "▴"; }
.year-body { display: none; padding: 0 12px 12px; }
.year-acc.is-open .year-body { display: grid; gap: 12px; }
.cuota-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.cuota-card:hover { border-color: #004582; }
.cuota-card.is-on { outline: 2px solid #004582; }
.badge-mora {
  display: inline-block;
  background: #be1e24;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.badge-vencer {
  display: inline-block;
  background: #b65b11;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.cuota-card h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.cuota-card .vence { margin: 0; color: var(--muted); font-size: 14px; }
.cuota-card .ver-det {
  color: #006f94;
  font-size: 14px;
  text-decoration: underline;
  margin: 4px 0 0;
}
.cuota-amt {
  text-align: right;
  font-size: 22px;
  font-weight: 600;
  align-self: center;
}
.cuota-amt sup { font-size: 12px; }
.cuota-recargo {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.notif-link {
  color: #006f94;
  font-size: 14px;
  text-decoration: underline;
}

.wrap-wide {
  width: min(1140px, calc(100% - 30px));
  margin: 0 auto;
}

body.nx-body {
  background: #f2f2f2;
}
body.nx-body .page {
  background: transparent;
  min-height: 100vh;
}
#shell.nx-mode .page-enter {
  animation: nxFadeIn 0.25s ease;
}
@keyframes nxFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .obl { grid-template-columns: 1fr auto; }
  .bl-hc-card__title { font-size: 24px; }
  .tax-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    justify-content: center;
  }
  .tax-secondary {
    width: 100%;
    max-width: 145px;
    justify-self: center;
  }
  .tax-list .tax-card {
    font-size: 18px;
  }
  .paybar {
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  }
  .brand-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-card img {
    max-width: 96px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  .medios-row {
    gap: 12px;
    padding: 16px;
  }
  .medios-row img {
    max-width: 88px;
    max-height: 28px;
  }
  .footer-brand img {
    width: min(240px, 80vw);
  }
  .chat-bubble {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
