:root {
  --marca: #c62828;
  --marca-oscuro: #8e0000;
}

body {
  background-color: var(--bs-body-bg);
}

/* ------------------------------- Login ------------------------------- */
.pantalla-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #1c1c1c, #3a3a3a);
}

.tarjeta-login {
  width: 100%;
  max-width: 420px;
  border: 0;
}

.logo-login {
  max-width: 180px;
  height: auto;
}

/* ------------------------------ Marca -------------------------------- */
.btn-primary {
  --bs-btn-bg: var(--marca);
  --bs-btn-border-color: var(--marca);
  --bs-btn-hover-bg: var(--marca-oscuro);
  --bs-btn-hover-border-color: var(--marca-oscuro);
  --bs-btn-active-bg: var(--marca-oscuro);
  --bs-btn-active-border-color: var(--marca-oscuro);
}

.navbar-brand img {
  object-fit: contain;
  max-height: 34px;
  width: auto;
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    max-height: 28px;
  }
}

/* ------------------------------ Tablas ------------------------------- */
.tabla-scroll {
  overflow-x: auto;
}

.tabla-scroll table {
  min-width: 800px;
}

.celda-codigo {
  font-family: var(--bs-font-monospace);
  font-size: 0.85rem;
}

.badge-estado {
  font-weight: 500;
}

/* Tarjetas de resumen del inicio */
.tarjeta-metrica .valor {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.tarjeta-metrica .etiqueta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 575.98px) {
  .tarjeta-metrica .valor {
    font-size: 1.35rem;
  }
}

/* --------------------- Navegacion por vehiculo ----------------------- */
.lista-scroll {
  max-height: 58vh;
  overflow-y: auto;
}

.lista-scroll .list-group-item {
  border-left: 0;
  border-right: 0;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .lista-scroll {
    max-height: 40vh;
  }
}

/* ------------------------------ Carrito ------------------------------ */
.toast-zona {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1080;
  background: var(--bs-emphasis-color);
  color: var(--bs-body-bg);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}
