
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  overflow-y: visible;
  min-height: 100vh;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
main > :first-child {
  margin-top: 0 !important;
}
main > :last-child {
  margin-bottom: 0 !important;
}

#main-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
}

#mobile-drawer-overlay.hidden,
#kappacredit-float-widget.hidden,
#kappacredit-mini-btn.hidden {
  display: none !important;
}

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

/* Tema Carmesí  */
.bg-primary {
  background-color: #d72538 !important;
}
.hover\:bg-primary-dark:hover {
  background-color: #b71c2d !important;
}
.text-primary {
  color: #d72538 !important;
}
.border-primary {
  border-color: #d72538 !important;
}
.accent-primary {
  accent-color: #d72538 !important;
}
#wizard-progress-line {
  background-color: #d72538 !important;
}
.vender-step-tab {
  border: 1px solid rgba(13, 30, 76, 0.08);
}
.vender-step-tab.active {
  background-color: #ffffff;
  border-color: rgba(215, 37, 56, 0.45);
  box-shadow: 0 4px 12px rgba(215, 37, 56, 0.08);
}
.vender-step-tab.active .vender-step-badge {
  background-color: #d72538 !important;
  color: #ffffff !important;
}
.vender-step-tab.completed .vender-step-badge {
  background-color: #059669 !important;
  color: #ffffff !important;
}
.vender-input-wrapper.has-error select,
.vender-input-wrapper.has-error input,
.vender-input-wrapper.has-error textarea,
.vender-phone-wrapper.has-error,
.vender-checkbox-wrapper.has-error {
  box-shadow: 0 0 0 2px rgba(215, 37, 56, 0.55) !important;
  background-color: #fff5f5 !important;
}
.vender-dropzone {
  position: relative;
  min-height: 132px;
  border-radius: 0.75rem;
  border: 2px dashed #cbd5e1;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.vender-dropzone:hover {
  border-color: #d72538;
}
.vender-dropzone.completed {
  border-style: solid;
  border-color: #059669;
  background-color: #ecfdf5;
}
.vender-dropzone.error {
  border-color: #d72538;
  background-color: #fff5f5;
}
.vender-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  text-align: center;
}
.vender-photo-preview {
  position: relative;
  width: 100%;
  height: 132px;
}
.vender-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vender-photo-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background-color: rgba(13, 30, 76, 0.85);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.vender-photo-remove:hover {
  background-color: #d72538;
}
#dot-1 {
  background-color: #d72538 !important;
}
#tab-btn-comprar.bg-primary {
  background-color: #d72538 !important;
}
.term-btn.bg-primary {
  background-color: #d72538 !important;
}
header nav a[aria-current="page"] {
  color: #d72538 !important;
}
header a[data-path="publicar-auto"] {
  background-color: #d72538 !important;
}
header a[data-path="publicar-auto"]:hover {
  background-color: #b71c2d !important;
}
header a[data-path="asesor"]:hover,
header a[data-path="descargar-app"]:hover {
  color: #d72538 !important;
}

/* Estilos Responsivos  */
main, section {
  max-width: 100vw !important;
  overflow-x: clip !important;
}

@media (max-width: 1023px) {
  #main-site-header > div {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    justify-content: space-between !important;
  }
  #main-site-header a[data-path="inicio"] img {
    max-width: 120px !important;
    height: 32px !important;
    width: auto !important;
  }
  #main-site-header a[data-path="publicar-auto"],
  #main-site-header button[data-path="publicar-auto"] {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.75rem !important;
    line-height: 1rem !important;
  }
  .hero-slide {
    flex-direction: column !important;
    padding: 1.5rem !important;
    justify-content: flex-start !important;
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: 1.75rem !important;
    line-height: 2.25rem !important;
  }
  .hero-slide p {
    font-size: 0.95rem !important;
    line-height: 1.4rem !important;
  }
  .hero-slide > div:last-child {
    height: 240px !important;
    max-height: 260px !important;
    margin-top: 1rem !important;
  }
  .hero-slide img {
    max-height: 220px !important;
  }
  #hero .min-h-\[580px\] {
    min-height: 540px !important;
  }
  #hero .relative.-mt-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
  }
  #inventario-section .grid,
  #autoremates-section .grid,
  #motor-assist-section .grid,
  #novedades-section .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #cotizador-section .grid {
    grid-template-columns: 1fr !important;
  }
  #vehicle-search-form {
    grid-template-columns: 1fr !important;
  }
  #vehicle-search-form > div,
  #vehicle-search-form button,
  #vehicle-search-form select {
    width: 100% !important;
  }
  .wizard-step .grid {
    grid-template-columns: 1fr !important;
  }
  #modal-asesor > div,
  #modal-app > div,
  #modal-publicar > div,
  #modal-perfil > div,
  #modal-interes > div,
  #modal-vehicle-interest > div {
    max-width: 92vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: 1rem !important;
  }
}

@media (max-width: 768px) {
  #inventario-section .grid,
  #autoremates-section .grid,
  #motor-assist-section .grid,
  #novedades-section .grid,
  #hero .relative.-mt-6,
  .wizard-step .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  header a span.font-headline-sm {
    display: none !important;
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: 1.5rem !important;
    line-height: 1.9rem !important;
  }
  #hero .min-h-\[580px\] {
    min-height: 580px !important;
  }
  .term-btn {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.75rem !important;
  }
}

/* Animación de Carrusel  Agencias  */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.agencias-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 75s linear infinite;
}

.agencias-marquee-track:hover {
  animation-play-state: paused;
}

/* Modal Compartir Vehículo (PC y Móvil) */
.lk-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(13, 30, 76, 0.58);
  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: #ffffff;
  color: #141b2b;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 24px 48px -12px rgba(13, 30, 76, 0.28);
  border: 1px solid rgba(20, 27, 43, 0.08);
  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: #d72538;
  margin-bottom: 0.2rem;
}
.lk-share-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0d1e4c;
  line-height: 1.3;
}
.lk-share-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #5c647a;
}
.lk-share-close {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: none;
  background-color: #f1f5f9;
  color: #0d1e4c;
  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: #d72538;
  color: #ffffff;
}
.lk-share-link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  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: #475569;
  outline: none;
}
.lk-share-copy-inline {
  border: none;
  background-color: #d72538;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.lk-share-copy-inline:hover {
  background-color: #b71c2d;
}
.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 #e2e8f0;
  background-color: #f8fafc;
  color: #0d1e4c;
  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: #d72538;
  background-color: #ffffff;
}
.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; }
.lk-share-tg .lk-share-channel-icon { background-color: #229ed9; }
.lk-share-mail .lk-share-channel-icon { background-color: #d72538; }
.lk-share-copy .lk-share-channel-icon { background-color: #0d1e4c; }
.lk-share-native-btn {
  width: 100%;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #0d1e4c;
  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: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.lk-share-copy-feedback.is-visible {
  display: block;
}
.lk-share-overlay.is-dark {
  background-color: rgba(0, 0, 0, 0.76);
}
.lk-share-overlay.is-dark .lk-share-dialog {
  background-color: #141414;
  color: #e5e2e1;
  border-color: #262626;
}
.lk-share-overlay.is-dark .lk-share-kicker {
  color: rgb(0, 206, 166);
}
.lk-share-overlay.is-dark .lk-share-title {
  color: #ffffff;
}
.lk-share-overlay.is-dark .lk-share-meta {
  color: #a1a1aa;
}
.lk-share-overlay.is-dark .lk-share-close {
  background-color: #1f1f1f;
  color: #e5e2e1;
}
.lk-share-overlay.is-dark .lk-share-close:hover {
  background-color: rgb(0, 206, 166);
  color: #002018;
}
.lk-share-overlay.is-dark .lk-share-link-box {
  background-color: #1a1a1a;
  border-color: #2b2b2b;
}
.lk-share-overlay.is-dark .lk-share-url-input {
  color: #d4d4d8;
}
.lk-share-overlay.is-dark .lk-share-copy-inline {
  background-color: rgb(0, 206, 166);
  color: #002018;
}
.lk-share-overlay.is-dark .lk-share-channel {
  background-color: #1a1a1a;
  border-color: #2b2b2b;
  color: #e5e2e1;
}
.lk-share-overlay.is-dark .lk-share-channel:hover {
  border-color: rgb(0, 206, 166);
  background-color: #202020;
}
.lk-share-overlay.is-dark .lk-share-native-btn {
  background-color: #1a1a1a;
  border-color: #2b2b2b;
  color: rgb(0, 206, 166);
}
@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;
  }
}