/* ================================
   VEHICULO.PHP - DETALLE VEHÍCULO
================================ */

body {
  background: #f4f5f7;
}

.site-header--solid {
  background: rgba(7, 8, 10, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.vehicle-page {
  padding-top: 0px;
}

/* ================================
   HERO DETALLE
================================ */

.vehicle-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 46px;
  background:
    radial-gradient(circle at 82% 12%, rgba(233, 9, 10, 0.22), transparent 34%),
    linear-gradient(135deg, #090a0d 0%, #101116 46%, #1a0506 100%);
  color: #fff;
}

.vehicle-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  pointer-events: none;
}

.vehicle-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
}

/* ================================
   GALERÍA
================================ */

.vehicle-gallery {
  display: grid;
  gap: 16px;
}

.vehicle-main-image {
  overflow: hidden;
  border-radius: 28px;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.vehicle-main-image img {
  display: block;
  width: 100%;
  height: min(620px, 62vh);
  min-height: 420px;
  object-fit: cover;
}

.vehicle-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.vehicle-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  height: 86px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #111317;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.vehicle-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.vehicle-thumb.active {
  opacity: 1;
  border-color: var(--dcm-red);
}

.vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
   INFO LATERAL
================================ */

.vehicle-info {
  position: sticky;
  top: 110px;
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
}

.back-link:hover {
  color: #fff;
}

.vehicle-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--dcm-red);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vehicle-info h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.vehicle-price-box {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.vehicle-price-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vehicle-price-box span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vehicle-price-box strong {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  text-align: right;
}

.vehicle-price-box div:last-child {
  background: rgba(233, 9, 10, 0.18);
  border-color: rgba(233, 9, 10, 0.38);
}

.vehicle-price-box div:last-child strong {
  color: #ffb3b3;
}

.vehicle-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.vehicle-actions .btn {
  width: 100%;
  justify-content: center;
}

.vehicle-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ================================
   DETALLES
================================ */

.vehicle-details-section {
  padding: 46px 0;
  background: linear-gradient(180deg, #f4f5f7, #fff);
}

.vehicle-details-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.details-card {
  padding: 30px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--dcm-line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.details-card h2 {
  margin: 0 0 22px;
  color: var(--dcm-ink);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.details-card p {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.75;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-grid div {
  padding: 18px;
  border-radius: 18px;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
}

.spec-grid span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-grid strong {
  display: block;
  color: var(--dcm-ink);
  font-size: 1.02rem;
  font-weight: 950;
}

/* ================================
   CTA FINAL
================================ */

.vehicle-cta-section {
  padding: 42px 0 58px;
  background: #fff;
}

.vehicle-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at right, rgba(233, 9, 10, 0.26), transparent 34%),
    linear-gradient(135deg, #101116, #050608);
  color: #fff;
  overflow: hidden;
}

.vehicle-cta h2 {
  max-width: 780px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.vehicle-cta p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.vehicle-cta .btn {
  white-space: nowrap;
}

/* ================================
   WHATSAPP FLOAT
================================ */

.floating-whatsapp .wa-icon,
.btn .wa-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20c45a;
  box-shadow: 0 18px 45px rgba(32, 196, 90, 0.35);
}

.floating-whatsapp .wa-icon {
  width: 34px;
  height: 34px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1100px) {
  .vehicle-layout,
  .vehicle-details-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-info {
    position: relative;
    top: auto;
  }

  .vehicle-main-image img {
    height: 520px;
  }
}

@media (max-width: 760px) {
  .vehicle-page {
    padding-top: 74px;
  }

  .vehicle-hero {
    padding: 32px 0 32px;
  }

  .vehicle-hero::before {
    inset: 12px;
    border-radius: 22px;
  }

  .vehicle-layout {
    gap: 22px;
  }

  .vehicle-main-image {
    border-radius: 22px;
  }

  .vehicle-main-image img {
    height: 360px;
    min-height: 300px;
  }

  .vehicle-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .vehicle-thumb {
    height: 72px;
    border-radius: 12px;
  }

  .vehicle-info {
    padding: 24px;
    border-radius: 22px;
  }

  .vehicle-info h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .vehicle-price-box div {
    display: grid;
    gap: 8px;
  }

  .vehicle-price-box strong {
    text-align: left;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .details-card {
    padding: 24px;
    border-radius: 22px;
  }

  .vehicle-cta {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: 22px;
  }

  .vehicle-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 460px) {
  .vehicle-main-image img {
    height: 300px;
  }

  .vehicle-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .vehicle-thumb {
    height: 66px;
  }

  .vehicle-info,
  .details-card,
  .vehicle-cta {
    padding: 20px;
  }
}









.site-header,
.site-header--solid {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.vehicle-main-image img {
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.vehicle-main-image img.is-changing {
  opacity: 0;
  transform: scale(1.015);
}

.vehicle-thumbs {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.vehicle-thumbs::-webkit-scrollbar {
  height: 6px;
}

.vehicle-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.vehicle-thumbs::-webkit-scrollbar-thumb {
  background: var(--dcm-red);
  border-radius: 999px;
}

.vehicle-thumb.active {
  border-color: var(--dcm-red);
  box-shadow: 0 0 0 3px rgba(233, 9, 10, 0.22);
}