:root {
  --blue: #1769ff;
  --cyan: #00b7ff;
  --dark: #061322;
  --soft: #f4f7fb;
  --text: #132033;
  --muted: #6c7a90;
  --success: #20c997;
  --danger: #ff4d6d;
  --warning: #ffbf00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--text);
  overflow-x: hidden;
}

.fw-black {
  font-weight: 900;
}

/* =========================
   NAVBAR
========================= */

.glass-nav {
  background: rgba(6, 19, 34, 0.9);
  backdrop-filter: blur(14px);
  min-height: 64px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.navbar-brand {
  font-size: 1.05rem;
  letter-spacing: .2px;
}

/* =========================
   HOME / HERO
========================= */

.hero {
  min-height: 100vh;
  padding-top: 72px;
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 105, 255, .46), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(21, 198, 255, .30), transparent 32%),
    linear-gradient(135deg, #061322, #0d2f63 58%, #08192b);
}

.hero .container {
  padding-left: 16px;
  padding-right: 16px;
}

.hero .badge {
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.lead {
  line-height: 1.55;
}

/* =========================
   CARDS
========================= */

.search-card,
.result-card,
.login-card,
.panel-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  padding: 24px;
}

.search-card {
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(23, 105, 255, .16), transparent 70%);
  pointer-events: none;
}

.search-card h2,
.search-card form,
.search-card .alert {
  position: relative;
  z-index: 2;
}

/* =========================
   FORMULARIO
========================= */

.form-label {
  font-weight: 700;
  color: #27384f;
}

.plate-input {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 900;
  text-align: center;
  font-size: 1.25rem;
  min-height: 58px;
  border-radius: 18px;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 .25rem rgba(23, 105, 255, .14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: 0;
  box-shadow: 0 12px 30px rgba(23, 105, 255, .28);
  min-height: 54px;
  font-weight: 800;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 105, 255, .34);
}

.btn-lg {
  min-height: 54px;
}

/* =========================
   BADGES PÚBLICOS
========================= */

.mini-stat {
  color: #ffffff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 9px 13px;
  backdrop-filter: blur(10px);
  font-size: .9rem;
  font-weight: 700;
}

.mini-stat i {
  margin-right: 4px;
}

/* =========================
   RESULTADO
========================= */

.result-card {
  background: rgba(255, 255, 255, .97);
  margin-bottom: 24px;
}

.vehicle-img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  background: #eef4ff;
}

.no-img {
  height: 200px;
  border-radius: 22px;
  background: #eef4ff;
  display: grid;
  place-items: center;
  font-size: 74px;
  color: var(--blue);
}

.info-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #f6f9ff;
  word-break: break-word;
  height: 100%;
}

.info-tile i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e1edff;
  color: var(--blue);
  font-size: 21px;
}

.info-tile span {
  font-size: .8rem;
  color: var(--muted);
}

.info-tile strong {
  font-size: .98rem;
  line-height: 1.2;
}

.alert {
  border-radius: 18px;
  font-weight: 600;
}

/* =========================
   LOGIN ADMIN
========================= */

.admin-login {
  min-height: 100vh;
  padding: 92px 16px 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(23, 105, 255, .14), transparent 28%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.login-card {
  width: 100%;
  max-width: 460px;
  box-shadow: 0 18px 50px rgba(8, 25, 43, .12);
}

/* =========================
   DASHBOARD ADMIN
========================= */

.dashboard {
  padding-top: 78px;
  min-height: 100vh;
}

.dashboard .container {
  padding-left: 14px;
  padding-right: 14px;
}

.stat-card {
  min-height: 130px;
  border-radius: 22px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #101c2e, #1769ff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(8, 25, 43, .12);
}

.stat-card i {
  font-size: 26px;
  opacity: .9;
}

.stat-card span {
  opacity: .82;
  font-weight: 700;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1;
}

.stat-card.success {
  background: linear-gradient(135deg, #0f5132, #20c997);
}

.stat-card.danger {
  background: linear-gradient(135deg, #842029, #ff4d6d);
}

.stat-card.online {
  background: linear-gradient(135deg, #3b2a78, #8b5cf6);
}

.stat-card.credits {
  background: linear-gradient(135deg, #7a4d00, #ffbf00);
}

.panel-card {
  box-shadow: 0 18px 50px rgba(8, 25, 43, .08);
  overflow: hidden;
}

.country-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f7;
}

.country-row:last-child {
  border-bottom: 0;
}

.table-responsive {
  overflow-x: auto;
}

.table {
  min-width: 720px;
}

.table thead th {
  font-size: .76rem;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.table td {
  vertical-align: middle;
}

.badge {
  white-space: nowrap;
}

/* =========================
   TABLET
========================= */

@media (max-width: 991.98px) {
  .hero {
    text-align: center;
    padding-top: 74px;
  }

  .hero .row {
    gap: 1.25rem;
  }

  .public-badges {
    justify-content: center;
  }

  .display-4 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  .lead {
    font-size: 1.03rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  .search-card,
  .result-card {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   MÓVIL
========================= */

@media (max-width: 575.98px) {
  .glass-nav .container {
    justify-content: center;
  }

  .navbar-brand {
    margin: 0;
    font-size: 1rem;
  }

  .hero {
    padding-top: 68px;
  }

  .hero .container {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .badge {
    max-width: 100%;
    white-space: normal;
  }

  .display-4 {
    font-size: 1.95rem;
  }

  .lead {
    font-size: .98rem;
  }

  .search-card,
  .result-card,
  .login-card,
  .panel-card {
    border-radius: 20px;
    padding: 18px;
  }

  .search-card h2 {
    font-size: 1.2rem;
  }

  .plate-input {
    letter-spacing: 2px;
    font-size: 1.12rem;
  }

  .btn-lg {
    font-size: 1rem;
  }

  .mini-stat {
    flex: 1 1 calc(33.333% - 8px);
    padding: 9px 8px;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .mini-stat i {
    margin-right: 0;
  }

  .result-card h3 {
    font-size: 1.3rem;
  }

  .vehicle-img,
  .no-img {
    max-height: 190px;
  }

  .info-tile {
    padding: 13px;
  }

  .admin-login {
    align-items: start;
  }

  .dashboard h1 {
    font-size: 1.65rem;
  }

  .stat-card {
    min-height: 116px;
  }

  .stat-card strong {
    font-size: 25px;
  }
}

/* =========================
   MÓVILES PEQUEÑOS
========================= */

@media (max-width: 380px) {
  .display-4 {
    font-size: 1.72rem;
  }

  .mini-stat {
    font-size: .76rem;
  }

  .plate-input {
    font-size: 1rem;
  }
}



.default-vehicle-img {
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid #dce8ff;
  color: var(--blue);
  text-align: center;
}

.default-vehicle-img i {
  font-size: 86px;
  line-height: 1;
}

.default-vehicle-img span {
  font-weight: 900;
  font-size: 1.1rem;
  color: #27384f;
}

.vehicle-emoji {
  font-size: 82px;
  line-height: 1;
}

.motorcycle-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 105, 255, .16), transparent 32%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.car-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 183, 255, .18), transparent 32%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

@media (max-width: 575.98px) {
  .default-vehicle-img {
    min-height: 180px;
    border-radius: 20px;
  }

  .default-vehicle-img i {
    font-size: 68px;
  }

  .vehicle-emoji {
    font-size: 68px;
  }

  .default-vehicle-img span {
    font-size: 1rem;
  }
}


.default-vehicle-img {
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid #dce8ff;
  color: var(--blue);
  text-align: center;
}

.default-vehicle-img i {
  font-size: 86px;
  line-height: 1;
}

.default-vehicle-img span {
  font-weight: 900;
  font-size: 1.1rem;
  color: #27384f;
}

.vehicle-emoji {
  font-size: 82px;
  line-height: 1;
}

.motorcycle-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 105, 255, .16), transparent 32%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.car-img {
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 183, 255, .18), transparent 32%),
    linear-gradient(135deg, #eef4ff, #ffffff);
}

.fiscalia-alert {
  border-radius: 24px;
}

.fiscalia-icon-danger {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 16px;
  background: rgba(220, 53, 69, .12);
  color: #dc3545;
  display: grid;
  place-items: center;
  font-size: 26px;
}

.fiscalia-record {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid rgba(220, 53, 69, .18);
}

.fiscalia-record span {
  display: block;
  font-size: .78rem;
  color: #6c7a90;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.fiscalia-record strong {
  display: block;
  font-size: .98rem;
  color: #132033;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .default-vehicle-img {
    min-height: 180px;
    border-radius: 20px;
  }

  .default-vehicle-img i {
    font-size: 68px;
  }

  .vehicle-emoji {
    font-size: 68px;
  }

  .default-vehicle-img span {
    font-size: 1rem;
  }
}

.modal-info-tile {
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  padding: 14px;
  height: 100%;
}

.modal-info-tile span {
  display: block;
  font-size: .76rem;
  color: #6c7a90;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-info-tile strong {
  display: block;
  color: #132033;
  word-break: break-word;
}

.fiscalia-timeline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: #fff5f5;
  border: 1px solid rgba(220, 53, 69, .14);
}

.fiscalia-timeline-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #dc3545;
  margin-top: 4px;
  box-shadow: 0 0 0 6px rgba(220, 53, 69, .12);
}

.blog-article {
  max-width: 880px;
  margin: 0 auto;
}

.blog-article h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.blog-article h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.blog-article p,
.blog-article li {
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-article ul {
  padding-left: 1.2rem;
}


.site-footer {
  background: #ffffff;
  border-top: 1px solid #edf1f7;
}

.footer-link {
  color: #27384f;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}

.footer-link:hover {
  color: var(--blue);
}

.navbar .nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
}

.navbar .nav-link:hover {
  color: #ffffff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 14px;
  }

  .navbar-nav {
    background: rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 12px;
  }
}


.guide-link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  border-radius: 20px;
  background: #f6f9ff;
  color: #132033;
  text-decoration: none;
  border: 1px solid #e2ecff;
  transition: .2s ease;
}

.guide-link-card i {
  font-size: 28px;
  color: var(--blue);
}

.guide-link-card:hover {
  transform: translateY(-2px);
  color: var(--blue);
  box-shadow: 0 14px 30px rgba(8, 25, 43, .08);
}