.back-link {
  display: inline-block;
  margin-top: 1.95rem;
  text-decoration: none;
  text-align: center;
}

.auto-head {
  margin-bottom: 1.5rem;
}

.auto-title {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  line-height: 1.1;
  margin: 0;
}
.auto-title span {
  color: var(--text-muted);
  font-weight: 600;
}

.auto-price {
  margin: 0.5rem 0 0;
  font-size: clamp(2.25rem, 1.2vw + 1rem, 2.9rem);
  font-weight: 800;
  color: green;
  margin-bottom: 2rem;
}

.auto-subtitle {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-weight: 500;
}
/* =========================
   FINANCIACIÓN
========================= */

.auto-finance {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.finance-label {
  font-size: 0.85rem;
  color: #666;
}

.finance-logos {
  display: flex;
  gap: 8px;
}

.finance-logos img {
  height: 32px;
  width: auto;

  background: white;
  padding: 4px 6px;
  border-radius: 6px;

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.auto-layout {
  display: grid;
  gap: 1.5rem;
}

.auto-gallery {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  padding: 1rem;
}

.auto-hero {
  width: 100%;
  height: clamp(220px, 40vw, 460px);
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.auto-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.auto-thumbs img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.9;
}

.auto-specs {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  padding: 1.25rem;
}

.spec-list {
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}
.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.03);
}
.spec-item dt {
  color: var(--text-muted);
}
.spec-item dd {
  margin: 0;
  font-weight: 600;
}

.btn-full {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

.auto-note {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .auto-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
  .auto-thumbs img {
    height: 100px;
  }
}

/* Thumbs como botones (mejor UX) */
.auto-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.thumb {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  outline: none;
}

.thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.92;
}

.thumb:hover img {
  transform: scale(1.02);
  opacity: 1;
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999999;
  place-items: center;
  padding: 16px;
}

.lightbox.is-open {
  display: grid;
}

.lightbox-backdrop {
  display: none;
}

.lightbox-dialog {
  position: relative;
  margin-top: 2rem;
  width: min(1000px, 92vw);
  height: min(720px, 85vh);
  padding: 18px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 3px;
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);

  overflow: hidden;
}

.lb-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}

.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 38px;
  cursor: pointer;
  z-index: 5;
}

.lb-prev {
  left: 10px;
  width: 56px;
  height: 56px;
}

.lb-next {
  right: 10px;
  width: 56px;
  height: 56px;
}

.lb-counter {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  z-index: 5;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 10px;
  }

  .lightbox-dialog {
    padding: 14px;
    border-radius: 3px;
  }

  .lb-image {
    max-width: 92vw;
    max-height: 70vh;
  }

  .lb-nav {
    width: 56px;
    height: 56px;
    font-size: 32px;
  }

  .lb-close {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .lb-counter {
    font-size: 1rem;
    padding: 0.5rem 0.85rem;
  }
}

/* imagen principal */

.auto-hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* clave */
}

/* contenedor de la galería */

.auto-gallery {
  width: 100%;
}

/* thumbs */

.auto-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.auto-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.auto-gallery {
  max-width: 520px; /* ajustá este valor */
}

.auto-hero {
  width: 100%;
  height: auto;
  display: block;
}

.auto-description {
  margin-top: 60px;
}

.auto-description-content {
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  padding: 1.25rem;
}

.auto-description-content p {
  margin-bottom: 16px;
}

.auto-features {
  margin: 20px 0;
  padding-left: 18px;
}

.auto-features li {
  margin-bottom: 6px;
}

.section-title {
  margin-bottom: 1rem;
}

.thumb-more {
  position: relative;
}

.thumb-more span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 22px;
  font-weight: 600;
  border-radius: 6px;
}

.thumb-hidden {
  display: none;
}

.auto-thumbs img:nth-child(n + 5) {
  display: none;
}

.thumb-more {
  position: relative;
}

.thumb-more span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 22px;
  font-weight: 600;
  border-radius: 6px;
}
