/* Multas Pro — design system (Zapay layout, palette from logo) */
:root {
  --brand: #C9A46C;
  --brand-hot: #E8C898;
  --brand-dark: #A8845A;
  --brand-deep: #1E1C1E;
  --brand-soft: #F7EFE3;
  --brand-muted: #D4B896;
  --brand-lavender: #EDE4D4;
  --brand-enter: #F8F1E6;
  --brand-enter-text: #8B6B3E;

  --bg: #FFFFFF;
  --bg-soft: #F7F7F7;
  --bg-gray: #F0F0F0;
  --surface: #FFFFFF;
  --border: #E5E5E5;
  --border-2: #D1D1D1;

  --text: #2D161E;
  --text-2: #554A4A;
  --text-3: #666666;
  --text-4: #A3A3A3;

  --red: #D90429;
  --orange: #FF5E00;
  --green: #1BA76A;
  --yellow: #F9A000;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER (homepage pink bar style) ===== */
.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 8px 0 0;
  font-size: .78rem;
  opacity: .95;
}
.site-header .top-bar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.site-header .top-bar a:hover { text-decoration: underline; }
.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--brand-deep);
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
  margin-left: -2px;
}
.brand-name span { font-weight: 600; opacity: .92; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
}
.nav-links a:hover { opacity: .85; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: .2s;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: 10px 18px;
  font-size: .82rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-enter {
  background: var(--brand-enter);
  color: var(--brand-enter-text);
  padding: 10px 18px;
  font-size: .82rem;
}
.btn-enter:hover { filter: brightness(.97); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,164,108,.35);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline-brand:hover { background: var(--brand-soft); }
.btn-lg { padding: 14px 28px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header light variant (consulta affiliate style) */
.site-header.light {
  background: #fff;
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.site-header.light .brand img { background: var(--brand-deep); }
.site-header.light .brand-name { color: var(--brand); }
.site-header.light .nav-links a { color: var(--brand); font-weight: 600; }
.site-header.light .top-bar { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px;
}

/* ===== HERO ===== */
.hero {
  padding: 48px 0 36px;
  background: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  color: var(--text);
}
.hero-title .accent { color: var(--brand); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-3);
  margin-bottom: 22px;
  max-width: 480px;
  line-height: 1.55;
}

/* Consult form card */
.consult-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}
.consult-card.stacked .field { width: 100%; }
.field input {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201,164,108,.18);
}
.field input::placeholder { color: var(--text-4); }
.legal {
  font-size: .72rem;
  color: var(--text-4);
  text-align: center;
  line-height: 1.45;
}
.legal a { color: var(--text-3); text-decoration: underline; }
.trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.trust-row img { height: 42px; width: auto; }

/* Promo banner */
.promo {
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
}
.promo.promo-image-only {
  display: block;
  min-height: 0;
  background: transparent;
  grid-template-columns: none;
}
.promo.promo-image-only .hero-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.promo-copy {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  z-index: 1;
}
.promo-copy h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.25;
}
.promo-copy h3 .hl { color: var(--brand); }
.promo-copy p { font-size: .9rem; color: var(--text-2); }
.cupom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cupom .tag {
  background: var(--brand);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.cupom .code {
  background: var(--brand-deep);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: .06em;
}
.promo-visual {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-muted));
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.promo-visual img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 340px;
}
.promo-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 140px;
  z-index: 2;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-3);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.55;
}
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-visual { position: relative; display: flex; justify-content: center; }
#phoneTurnImg { transition: transform .15s ease-out; will-change: transform; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ─── Seção pinada: zoom no mapa + revelação dos Detrans no scroll ────────── */
.map-scroll-pin {
  position: relative;
  /* altura calculada via JS, pra travar exatamente no centro da tela e destravar sem sobra de espaço */
}
.map-scroll-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: var(--bg);
  box-sizing: border-box;
}
.br-map-wrap-zoom {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  padding: 0 20px;
  will-change: transform;
  transform-origin: center center;
}
.br-map-wrap-zoom svg.br-map { width: 100%; height: auto; display: block; }
.br-state { fill: #F0E8D8; stroke: #fff; stroke-width: 2; }

.br-detran-marker {
  position: absolute;
  width: 62px; height: 62px;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.br-detran-marker.revealed { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.br-detran-marker img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
.br-detran-marker img[src$="/pa.png"],
.br-detran-marker img[src$="/to.png"] {
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000);
}

.badge-27 {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 110px;
  height: 110px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s ease, transform .4s ease;
}
.badge-27.revealed { opacity: 1; transform: scale(1); }
.badge-27 strong { font-size: 2rem; line-height: 1; font-weight: 800; }
.badge-27 span { font-size: .65rem; font-weight: 600; line-height: 1.2; padding: 0 8px; }

.map-scroll-hint {
  margin-top: 24px;
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 600; color: var(--brand-dark);
  opacity: .8;
  animation: br-hint-bounce 1.6s ease-in-out infinite;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .3s;
}
.map-scroll-hint svg { width: 18px; height: 18px; }
.map-scroll-hint.hidden { opacity: 0; animation: none; }
@keyframes br-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .map-scroll-hint { animation: none; opacity: .85; }
  .br-detran-marker { transition: none; }
  .badge-27 { transition: none; }
}
@media (max-width: 720px) {
  .br-map-wrap-zoom { max-width: 340px; }
  .br-detran-marker { width: 40px; height: 40px; padding: 5px; }
  .badge-27 { width: 84px; height: 84px; }
  .badge-27 strong { font-size: 1.4rem; }
}

/* ─── Carrossel de Detrans conveniados ────────────────────────────────────── */
.detran-marquee {
  margin-top: 48px;
  padding: 6px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.detran-marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: detran-scroll 38s linear infinite;
}
.detran-marquee:hover .detran-marquee-track { animation-play-state: paused; }
.detran-marquee-track img {
  height: 56px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
}
.detran-marquee-track img:hover { opacity: 1; filter: grayscale(0); }
.detran-marquee-track img[src$="/pa.png"],
.detran-marquee-track img[src$="/to.png"] {
  filter:
    grayscale(1)
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000);
}
.detran-marquee-track img[src$="/pa.png"]:hover,
.detran-marquee-track img[src$="/to.png"]:hover {
  filter:
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000);
}
@keyframes detran-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .detran-marquee-track { animation: none; }
}

/* App section */
.app-list { list-style: none; margin: 16px 0 24px; }
.app-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-2);
  font-size: .95rem;
}
.app-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 7px;
  flex-shrink: 0;
}
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Debits icons */
.debits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.debit-item { display: block; text-align: center; color: inherit; text-decoration: none; }
.debit-ico {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
  transition: background .15s, transform .15s;
}
.debit-item:hover .debit-ico { background: var(--brand); color: #fff; transform: translateY(-2px); }
.debit-item strong {
  display: block;
  font-size: .95rem;
  color: var(--brand-deep);
  border-bottom: 2px solid var(--brand-muted);
  padding-bottom: 4px;
  display: inline-block;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  text-align: center;
}
.step-visual {
  background: linear-gradient(180deg, var(--brand-soft), #fff);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 20px 14px 22px;
  min-height: 280px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-label {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin: 18px 0 10px;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.step p { font-size: .88rem; color: var(--text-3); line-height: 1.5; padding: 0 8px 16px; }
.mock-field {
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  padding: 10px;
  margin: 16px 8px 10px;
  text-align: left;
  font-size: .78rem;
  color: var(--text-4);
}
.mock-field-label { color: var(--text-4); }
.mock-typed { color: var(--text); font-weight: 700; letter-spacing: .5px; }
.mock-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: -2px;
  margin-left: 2px;
  background: var(--brand);
  animation: mock-blink 1s steps(1) infinite;
}
@keyframes mock-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mock-cursor { animation: none; }
}
.mock-btn {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  margin: 0 8px;
  font-size: .8rem;
  font-weight: 700;
}
.mock-debt {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin: 8px;
  text-align: left;
  font-size: .75rem;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.mock-pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 8px;
}
.mock-pay span {
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  padding: 10px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
}
.mock-pay span.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Reviews */
.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.rating-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rating-big .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
}
.rating-big .of { color: var(--text-3); font-weight: 600; }
.rating-big .count { color: var(--text-4); font-size: .9rem; }
.stars { color: var(--brand); letter-spacing: 2px; margin-bottom: 4px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.review-card p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 16px;
}
.review-card .author {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}
.review-card .author span { font-weight: 400; color: var(--text-4); }

.media-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 40px;
  opacity: .7;
  filter: grayscale(1);
}
.media-row img { height: 28px; width: auto; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 8px 18px;
  color: var(--text-3);
  font-size: .92rem;
  line-height: 1.6;
}
.faq-help {
  text-align: center;
  margin-top: 36px;
  color: var(--text-3);
}
.faq-help .btn { margin: 8px; }

/* Security */
.security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.security-row img { height: 64px; width: auto; }

/* SEO content */
.seo-content {
  padding: 48px 0 72px;
  color: var(--text-3);
  font-size: .88rem;
  line-height: 1.65;
}
.seo-content h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 28px 0 10px;
}
.seo-content h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 20px 0 8px;
}
.seo-content ul { padding-left: 18px; margin: 8px 0; }
.seo-content a { color: var(--brand-dark); text-decoration: underline; }
.seo-toggle {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  font-size: .9rem;
}
.seo-more { display: none; }
.seo-more.open { display: block; }

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: #cfcfcf;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.footer-brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #000;
}
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.footer-grid h4 {
  color: #fff;
  font-size: .85rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #b0b0b0; font-size: .85rem; }
.footer-grid a:hover { color: var(--brand-hot); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  font-size: .75rem;
  color: #888;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  left: 20px !important;
  right: auto !important;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float img { width: 30px; height: 30px; }

/* ===== CONSULTA / APP PAGE ===== */
.app-shell { min-height: 100vh; background: var(--bg-soft); }
.app-main { padding: 32px 0 64px; }
.consult-hero {
  max-width: 560px;
}
.consult-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 22px;
  color: var(--text);
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tab {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: .15s;
}
.tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.tab.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.search-inline {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.search-inline .field { flex: 1; min-width: 180px; }
.search-inline .btn { flex-shrink: 0; }

/* Results (Zapay-like) */
.result-wrap { margin-top: 22px; }
.result { display: none; }
.result.show { display: block; animation: fadeUp .28s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
.mod-tab {
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: .15s;
}
.mod-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.mod-tab.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.vcard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.vcard-top { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.plate {
  background: #fff;
  border: 2px solid #1E40AF;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 110px;
}
.plate-br { font-size: .5rem; font-weight: 800; letter-spacing: .12em; color: #1E40AF; }
.plate-num { font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; font-family: ui-monospace, monospace; }
.plate-loc { font-size: .58rem; color: var(--text-4); margin-top: 2px; }
.vmodel { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.vchips, .vpills, .dtags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .dtag {
  font-size: .72rem;
  color: var(--text-2);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}
.p-green { background: #E8F8F0; color: #1BA76A; border-color: rgba(27,167,106,.2); }
.p-red { background: #FFF0F3; color: #D90429; border-color: rgba(217,4,41,.2); }
.p-orange { background: #FFF4EC; color: #FF5E00; border-color: rgba(255,94,0,.2); }
.p-yellow { background: #FFF8E8; color: #B8860B; border-color: rgba(249,160,0,.25); }
.p-gray { background: var(--bg-soft); color: var(--text-3); border-color: var(--border); }
.p-brand { background: var(--brand-soft); color: var(--brand-dark); border-color: rgba(201,164,108,.3); }

.sum-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.sum-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.sum-box .sl { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); margin-bottom: 4px; }
.sum-box .sv { font-size: 1.25rem; font-weight: 800; }
.sum-box .ss { font-size: .7rem; color: var(--text-4); }
.sv.red { color: var(--red); } .sv.green { color: var(--green); } .sv.orange { color: var(--orange); }

.total-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.tl-disc { font-size: 1.35rem; font-weight: 800; color: var(--red); }
.tl-orig { text-decoration: line-through; color: var(--text-4); margin-right: 10px; }
.tl-save { font-size: .7rem; color: var(--green); }

.debits-card, .kv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-head, .kv-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: .9rem;
}
.drow {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.drow:last-child { border-bottom: none; }
.drow:hover { background: var(--bg-soft); }
.dic {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #FFF0F3;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.db { flex: 1; min-width: 0; }
.dt { font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.dobs { font-size: .72rem; color: var(--text-4); margin-top: 5px; font-style: italic; }
.dp { text-align: right; flex-shrink: 0; min-width: 88px; }
.dp-orig { font-size: .7rem; color: var(--text-4); text-decoration: line-through; }
.dp-val { font-size: .95rem; font-weight: 700; color: var(--orange); }
.dp-save { font-size: .65rem; color: var(--green); }
.no-deb { padding: 40px; text-align: center; }
.no-deb-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-soft); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: var(--brand-dark);
}

.kv-body { padding: 4px 0; }
.kv-section-title {
  padding: 12px 18px 4px;
  font-size: .64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--text-4);
}
.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  padding: 0 18px 8px;
}
.kv-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv-k { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-4); display: block; margin-bottom: 2px; }
.kv-v { font-size: .84rem; font-weight: 500; display: block; word-break: break-word; }
.kv-v.hi { font-weight: 700; font-size: .9rem; }
.kv-sep { height: 1px; background: var(--border); margin: 4px 18px; }

.ipva-table-wrap { overflow-x: auto; }
.ipva-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ipva-table th {
  padding: 8px 14px; text-align: left;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-4); border-bottom: 1px solid var(--border);
}
.ipva-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.ipva-table td.state { font-weight: 700; color: var(--text); }
.ipva-table td.val { font-weight: 700; color: var(--orange); }
.venc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; padding: 16px 18px;
}
.venc-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
}
.vi-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--text-4); margin-bottom: 4px; }
.vi-val { font-size: .88rem; font-weight: 600; }

.frota-item {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.frota-item:last-child { border-bottom: none; }
.frota-plate {
  background: var(--bg-soft); border: 1.5px solid var(--border-2);
  border-radius: 6px; padding: 5px 10px;
  font-family: ui-monospace, monospace; font-size: .9rem; font-weight: 800;
}
.frota-model { font-size: .84rem; font-weight: 600; }
.frota-meta { font-size: .72rem; color: var(--text-3); }

.crlv-success {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(16, 185, 129, .22);
  background: linear-gradient(160deg, #ffffff 0%, #f3fbf7 55%, #eef8f3 100%);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}
.crlv-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, .1);
}
.crlv-success:focus-visible {
  outline: 2px solid var(--brand, #D90429);
  outline-offset: 3px;
}
.crlv-success-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.18) 0%, rgba(16,185,129,0) 70%);
  pointer-events: none;
}
.crlv-success-inner {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 20px;
}
.crlv-success-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #059669;
  background: rgba(16, 185, 129, .12);
}
.crlv-success-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: 4px;
}
.crlv-success-plate {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text, #1E1C1C);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.crlv-success-plate span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-3, #6b7280);
  background: rgba(0,0,0,.04);
  border-radius: 999px;
  padding: 3px 8px;
}
.crlv-success-copy p {
  margin: 6px 0 0;
  font-size: .88rem;
  color: var(--text-2, #4b5563);
  line-height: 1.4;
}
.crlv-success-hint {
  margin-top: 10px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand, #D90429);
}

body.crlv-modal-lock { overflow: hidden; }
.crlv-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.crlv-modal.open { display: flex; }
.crlv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 18, .62);
  backdrop-filter: blur(4px);
}
.crlv-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  height: min(92vh, 1100px);
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
}
.crlv-modal-bar {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 18px;
  background: #0b0b0d;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.crlv-modal-title {
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crlv-modal-actions { display: flex; align-items: center; gap: 6px; }
.crlv-modal-dl {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.crlv-modal-dl:hover { background: var(--brand, #D90429); }
.crlv-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.crlv-modal-close:hover { background: rgba(255,255,255,.16); }
.crlv-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  background: #525659;
  position: relative;
}
.crlv-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #525659;
}
.crlv-modal-loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: .95rem;
  background: #17171a;
}
.crlv-modal-loading-sub {
  font-size: .78rem;
  opacity: .65;
}
@media (max-width: 640px) {
  .crlv-modal { padding: 0; }
  .crlv-modal-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .crlv-success-inner { padding: 18px; }
  .crlv-success-plate { font-size: 1.15rem; }
}

.err-box {
  background: #FFF0F3;
  border: 1px solid rgba(217,4,41,.2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.err-box h3 { font-size: .88rem; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.err-box p { font-size: .8rem; color: var(--text-2); }

.loader {
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 48px 0;
}
.loader.show { display: flex; }
.spin {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.home-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: .2s;
  box-shadow: var(--shadow-sm);
}
.home-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hc-ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.hc-title { font-size: .92rem; font-weight: 700; margin-bottom: 5px; }
.hc-desc { font-size: .76rem; color: var(--text-3); line-height: 1.5; }

.hist-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow, none);
}
.hist-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-4);
  font-size: .85rem;
  line-height: 1.5;
}
.hist-empty strong {
  display: block;
  color: var(--text-3);
  font-size: .92rem;
  margin-bottom: 4px;
}
.hrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.hrow:last-child { border-bottom: none; }
.hrow:hover { background: var(--bg-soft, var(--sf)); }
.hico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hico svg { width: 16px; height: 16px; }
.hbody { flex: 1; min-width: 0; }
.h-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.hbadge {
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  padding: 2px 7px; border-radius: 999px;
}
.hval {
  font-size: .92rem; font-weight: 700; color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em;
}
.hlbl { font-size: .82rem; font-weight: 600; }
.hprev {
  font-size: .74rem; color: var(--text-3); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.htime { font-size: .66rem; color: var(--text-4); }
.hright { flex-shrink: 0; display: flex; align-items: center; color: var(--text-4); }
.hright svg { opacity: .55; }
.hist-sub {
  margin: -4px 0 16px;
  color: var(--text-3);
  font-size: .86rem;
  line-height: 1.45;
  max-width: 42rem;
}
.hist-cnt {
  font-size: .66rem; font-weight: 700; color: var(--text-4);
  background: var(--sf, var(--bg-soft)); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 999px;
}
.sec-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 12px; gap: 12px;
}
.sec-title { font-size: .9rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.btn-clr {
  font-size: .75rem; font-weight: 600; color: var(--text-3);
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.btn-clr:hover {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 35%, var(--border));
  background: color-mix(in srgb, var(--red) 8%, transparent);
}
.btn-ghost {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  color: var(--text-3);
}
.btn-ghost.on { color: var(--orange); border-color: var(--orange); background: #FFF4EC; }

.side-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.side-cat {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.side-cat.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232,200,152,.35), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201,164,108,.2), transparent 45%),
    var(--bg-soft);
}
.login-box { width: 100%; max-width: 400px; }
.login-brand { text-align: center; margin-bottom: 28px; }
.login-brand .brand { display: inline-flex; }
.login-brand .brand img {
  width: 48px; height: 48px;
  margin: 0;
  border-radius: 12px;
  background: var(--brand-deep);
}
.login-brand p { color: var(--text-4); font-size: .85rem; margin-top: 4px; }
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.login-card label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.login-card input {
  width: 100%;
  border: 1.5px solid var(--border-2);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
}
.login-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201,164,108,.18);
}
.login-error {
  background: #FFF0F3;
  color: var(--red);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .85rem;
  margin-bottom: 14px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .steps, .reviews-grid, .footer-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .debits-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .site-header .top-bar { display: none; }
  .menu-toggle { display: inline-flex; color: #fff; }
  .site-header.light .menu-toggle { color: var(--brand); }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--brand);
    padding: 16px 24px 20px;
    gap: 14px;
  }
  .site-header.light .nav-links.open { background: #fff; border-bottom: 1px solid var(--border); }
  .sum-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-actions .btn-outline-light { display: none; }
  .consult-card { max-width: none; }
  .drow { flex-direction: column; }
  .dp { text-align: left; }
}
