
:root {
  --color-primary: #44ebc1;
  --color-primary-container: #00cea6;
  --color-primary-fixed: #5bfcd1;
  --color-primary-fixed-dim: #32dfb6;
  --color-on-primary: #00382b;
  --color-on-primary-container: #005240;
  --color-on-primary-fixed: #002018;
  --color-on-primary-fixed-variant: #005140;
  --color-inverse-primary: #006b55;

  --color-secondary: #4eddb7;
  --color-secondary-container: #02b592;
  --color-secondary-fixed: #6ffad3;
  --color-secondary-fixed-dim: #4eddb7;
  --color-on-secondary: #00382b;
  --color-on-secondary-container: #004032;
  --color-on-secondary-fixed: #002018;
  --color-on-secondary-fixed-variant: #005140;

  --color-tertiary: #d4d1d1;
  --color-tertiary-container: #b8b6b5;
  --color-tertiary-fixed: #e5e2e1;
  --color-tertiary-fixed-dim: #c8c6c5;
  --color-on-tertiary: #313030;
  --color-on-tertiary-container: #484747;
  --color-on-tertiary-fixed: #1c1b1b;
  --color-on-tertiary-fixed-variant: #474646;

  --color-background: #131313;
  --color-on-background: #e5e2e1;
  --color-surface: #131313;
  --color-surface-dim: #131313;
  --color-surface-bright: #3a3939;
  --color-surface-variant: #353534;
  --color-surface-tint: #32dfb6;
  --color-surface-container-lowest: #0e0e0e;
  --color-surface-container-low: #1c1b1b;
  --color-surface-container: #201f1f;
  --color-surface-container-high: #2a2a2a;
  --color-surface-container-highest: #353534;
  --color-on-surface: #e5e2e1;
  --color-on-surface-variant: #bacac3;
  --color-inverse-surface: #e5e2e1;
  --color-inverse-on-surface: #313030;

  --color-outline: #85948d;
  --color-outline-variant: #3b4a44;

  --color-error: #ffb4ab;
  --color-error-container: #93000a;
  --color-on-error: #690005;
  --color-on-error-container: #ffdad6;

  /* Fondos y bordes  */
  --bg-header: rgba(10, 10, 10, 0.85);
  --bg-drawer: #0d0d0d;
  --bg-modal: #141414;
  --bg-modal-header: #0f0f0f;
  --bg-input: #1a1a1a;
  --border-subtle: #262626;
  --border-input: #2b2b2b;
  --border-button: #333333;
}


html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: #0e0e0e;
  color: #e5e2e1;
  overflow-y: visible;
  min-height: 100vh;
}

main > :first-child {
  margin-top: 0 !important;
}

main > :last-child {
  margin-bottom: 0 !important;
}

/* Respaldo de tema oscuro AutoRemate en caso de carga lenta del CDN en móvil */
.bg-surface { background-color: #131313; }
.bg-surface-container-lowest { background-color: #0e0e0e; }
.bg-surface-container-low { background-color: #1c1b1b; }
.bg-surface-container { background-color: #201f1f; }
.bg-surface-container-high { background-color: #2a2a2a; }
.bg-surface-variant { background-color: #353534; }
.bg-surface-bright { background-color: #3a3939; }
.bg-primary { background-color: #44ebc1; }
.bg-primary-container { background-color: #00cea6; }
.bg-secondary { background-color: #4eddb7; }
.bg-secondary-container { background-color: #02b592; }
.text-primary { color: #44ebc1; }
.text-primary-container { color: #00cea6; }
.text-on-primary { color: #00382b; }
.text-on-primary-container { color: #005240; }
.text-on-surface { color: #e5e2e1; }
.text-on-surface-variant { color: #bacac3; }
.text-outline { color: #85948d; }
.text-error { color: #ffb4ab; }

/* Respaldo de espaciados y tipografías del tema AutoRemate */
.px-margin { padding-left: 2rem; padding-right: 2rem; }
.px-space-md { padding-left: 1rem; padding-right: 1rem; }
.py-space-lg { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-space-xl { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.p-space-lg { padding: 1.5rem; }
.mb-space-lg { margin-bottom: 1.5rem; }
.mb-space-sm { margin-bottom: 0.5rem; }
.pt-space-md { padding-top: 1rem; }
.gap-gutter { gap: 1.5rem; }
.gap-space-lg { gap: 1.5rem; }
.gap-space-md { gap: 1rem; }
.gap-space-sm { gap: 0.5rem; }
.gap-space-xs { gap: 0.25rem; }
.font-display-xl { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-headline-lg { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-headline-md { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-title-sm { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-body-lg { font-family: 'Inter', sans-serif; }
.font-body-md { font-family: 'Inter', sans-serif; }
.font-label-sm { font-family: 'Inter', sans-serif; }
.font-label-badge { font-family: 'JetBrains Mono', monospace; }
.font-specs-val { font-family: 'JetBrains Mono', monospace; }
.font-price-headline { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Respaldo estructural y responsive en móvil mientras/si Tailwind CDN demora */
.hidden { display: none; }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.w-full { width: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.modal-backdrop.hidden,
#mobile-menu-wrapper.hidden,
#pagination-bar.hidden,
#btn-load-more.hidden,
#detalle-empty.hidden,
#detalle-content.hidden,
#detalle-lightbox.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:block { display: block; }
  .lg\:inline-flex { display: inline-flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-\[280px_1fr\] { grid-template-columns: 280px 1fr; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
}

#autoremate-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid #262626;
}

#mobile-menu-wrapper.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   LOGO EN BARRA SUPERIOR Y MENÚ MÓVIL
   ========================================================================== */
.header-logo {
  height: 102px;
  width: auto;
}

.mobile-drawer-logo {
  height: 36px;
  width: auto;
}

@media (max-width: 1023px) {
  .header-logo {
    height: 34px;
    max-width: 105px;
  }
}

@media (max-width: 640px) {
  .header-logo {
    height: 30px;
    max-width: 88px;
  }
  #autoremate-header > div {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    gap: 0.5rem !important;
  }
}

/* Modal Compartir Vehículo (PC y Móvil - AutoRemate) */
.lk-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lk-share-overlay.is-open {
  display: flex;
}
.lk-share-dialog {
  width: 100%;
  max-width: 440px;
  background-color: #141414;
  color: #e5e2e1;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  border: 1px solid #262626;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lk-share-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.lk-share-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00cea6;
  margin-bottom: 0.2rem;
}
.lk-share-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}
.lk-share-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #bacac3;
}
.lk-share-close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: none;
  background-color: #1f1f1f;
  color: #e5e2e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lk-share-close:hover {
  background-color: #00cea6;
  color: #002018;
}
.lk-share-link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1a1a1a;
  border: 1px solid #2b2b2b;
  border-radius: 0.75rem;
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
}
.lk-share-url-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #d4d4d8;
  outline: none;
}
.lk-share-copy-inline {
  border: none;
  background-color: #00cea6;
  color: #002018;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.lk-share-copy-inline:hover {
  opacity: 0.9;
}
.lk-share-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.lk-share-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #2b2b2b;
  background-color: #1a1a1a;
  color: #e5e2e1;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.lk-share-channel:hover {
  transform: translateY(-2px);
  border-color: #00cea6;
  background-color: #202020;
}
.lk-share-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.lk-share-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.lk-share-wa .lk-share-channel-icon { background-color: #25d366; }
.lk-share-fb .lk-share-channel-icon { background-color: #1877f2; }
.lk-share-x .lk-share-channel-icon { background-color: #111827; border: 1px solid #333333; }
.lk-share-tg .lk-share-channel-icon { background-color: #229ed9; }
.lk-share-mail .lk-share-channel-icon { background-color: #00cea6; color: #002018; }
.lk-share-copy .lk-share-channel-icon { background-color: #2a2a2a; }
.lk-share-native-btn {
  width: 100%;
  border: 1px solid #2b2b2b;
  background-color: #1a1a1a;
  color: #00cea6;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.lk-share-native-btn[hidden] {
  display: none;
}
.lk-share-copy-feedback {
  display: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 206, 166, 0.14);
  color: #44ebc1;
  border: 1px solid rgba(0, 206, 166, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.lk-share-copy-feedback.is-visible {
  display: block;
}
@media (max-width: 640px) {
  .lk-share-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .lk-share-dialog {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 1.25rem 1rem 1.5rem;
  }
}