/* ============================================================
   LAS COSAS DE JUAN · V1.9 · FICHA PROFESIONAL DE VEHÍCULO
   Scope: product page only
   ============================================================ */

body#product {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 107, 0, .07), transparent 28%),
    linear-gradient(180deg, #09111d 0%, #0a121e 52%, #08101a 100%);
  color: #f6f8fb;
}

body#product main,
body#product #wrapper,
body#product .wrapper,
body#product .page-wrapper {
  background: transparent;
}

.lcdj-vehicle-page {
  --lcdj-bg: #09111d;
  --lcdj-panel: #101a27;
  --lcdj-panel-2: #0d1723;
  --lcdj-border: rgba(255,255,255,.12);
  --lcdj-border-strong: rgba(255,255,255,.18);
  --lcdj-text: #f7f9fc;
  --lcdj-muted: #a8b0bc;
  --lcdj-orange: #ff6900;
  --lcdj-orange-2: #ff7d1a;
  --lcdj-green: #2fb46e;
  --lcdj-radius: 18px;
  --lcdj-shadow: 0 24px 65px rgba(0,0,0,.28);
  padding: 14px 0 46px;
  color: var(--lcdj-text);
}

.lcdj-vehicle-page *,
.lcdj-vehicle-page *::before,
.lcdj-vehicle-page *::after {
  box-sizing: border-box;
}

.lcdj-vehicle-shell {
  width: min(100% - 32px, 1420px);
  margin: 0 auto;
}

.lcdj-vehicle-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.lcdj-vehicle-heading__copy {
  min-width: 0;
}

.lcdj-vehicle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lcdj-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  border: 1px solid rgba(255,105,0,.55);
  border-radius: 999px;
  color: #ffc39a;
  background: rgba(255,105,0,.09);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.lcdj-badge:hover {
  color: #fff;
  border-color: var(--lcdj-orange);
}

.lcdj-badge--demo {
  color: #fff;
  background: #59687b;
  border-color: #718198;
}

.lcdj-badge--brand {
  color: #dfe5ed;
  background: rgba(255,255,255,.045);
  border-color: var(--lcdj-border);
}

.lcdj-vehicle-title {
  max-width: 980px;
  margin: 0;
  color: var(--lcdj-text);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.lcdj-vehicle-price {
  margin-top: 12px;
}

.lcdj-vehicle-price .product__prices,
.lcdj-vehicle-price .product__prices-block,
.lcdj-vehicle-price .product__prices-inline {
  margin: 0;
}

.lcdj-vehicle-price .product__price {
  color: var(--lcdj-orange);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.04em;
}

.lcdj-vehicle-price .product__tax-infos,
.lcdj-vehicle-price .product__regular-price,
.lcdj-vehicle-price .product__unit-price,
.lcdj-vehicle-price .product__pack-price,
.lcdj-vehicle-price .product__taxless-price {
  color: var(--lcdj-muted);
  font-size: .82rem;
}

.lcdj-vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  color: #cbd2dc;
}

.lcdj-vehicle-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 15px;
  border-left: 1px solid var(--lcdj-border);
  font-size: .92rem;
}

.lcdj-vehicle-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.lcdj-vicon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  color: var(--lcdj-orange);
}

.lcdj-vicon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcdj-vehicle-meta .lcdj-vicon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  color: #8f99a8;
}

.lcdj-vehicle-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(360px, .82fr);
  gap: 26px;
  align-items: start;
}

.lcdj-vehicle-main__media,
.lcdj-vehicle-main__aside {
  min-width: 0;
}

.lcdj-vehicle-gallery {
  overflow: hidden;
  border: 1px solid var(--lcdj-border);
  border-radius: var(--lcdj-radius);
  background: #e9edf1;
  box-shadow: var(--lcdj-shadow);
}

.lcdj-vehicle-gallery .product__images {
  margin: 0;
}

.lcdj-vehicle-gallery .product__carousel,
.lcdj-vehicle-gallery .carousel-inner,
.lcdj-vehicle-gallery .carousel-item {
  background: #eef1f4;
}

.lcdj-vehicle-gallery .carousel-item > picture,
.lcdj-vehicle-gallery .carousel-item > a,
.lcdj-vehicle-gallery .carousel-item > div {
  width: 100%;
}

.lcdj-vehicle-gallery .carousel-item img,
.lcdj-vehicle-gallery .product__no-image img {
  display: block;
  width: 100%;
  max-height: 690px;
  object-fit: contain;
  background: #eef1f4;
}

.lcdj-vehicle-gallery .product__zoom {
  top: 16px;
  right: 16px;
  border-color: rgba(0,0,0,.14);
  background: rgba(9,17,29,.86);
  color: #fff;
}

.lcdj-vehicle-gallery .carousel-control-prev,
.lcdj-vehicle-gallery .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  bottom: auto;
  margin-top: -23px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(9,17,29,.82);
  opacity: 1;
}

.lcdj-vehicle-gallery .carousel-control-prev { left: 16px; }
.lcdj-vehicle-gallery .carousel-control-next { right: 16px; }

.lcdj-vehicle-gallery .product__thumbnails {
  padding: 12px;
  border-top: 1px solid rgba(9,17,29,.1);
  background: #101a27;
}

.lcdj-vehicle-gallery .product__thumbnails-list {
  gap: 10px;
}

.lcdj-vehicle-gallery .product__thumbnail {
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  background: #fff;
}

.lcdj-vehicle-gallery .product__thumbnail.active,
.lcdj-vehicle-gallery .product__thumbnail:hover {
  border-color: var(--lcdj-orange) !important;
}

.lcdj-vehicle-gallery .product__thumbnail-image {
  width: 108px;
  height: 74px;
  object-fit: cover;
  border: 0 !important;
  border-radius: 8px !important;
}

.lcdj-vehicle-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--lcdj-border);
  border-radius: var(--lcdj-radius);
  background: linear-gradient(180deg, rgba(18,29,43,.98), rgba(12,22,34,.98));
  box-shadow: var(--lcdj-shadow);
}

.lcdj-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lcdj-spec-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 9px;
  text-align: center;
  border: 1px solid var(--lcdj-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

.lcdj-spec-card .lcdj-vicon {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  margin-bottom: 2px;
}

.lcdj-spec-card__label {
  color: #d3d9e1;
  font-size: .79rem;
  line-height: 1.2;
}

.lcdj-spec-card strong {
  max-width: 100%;
  color: #fff;
  font-size: .96rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.lcdj-dgt-label {
  display: inline-flex;
  min-width: 30px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border-radius: 7px;
  color: #fff;
  background: #308f55;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.lcdj-dgt-label--eco { background: #36a864; }
.lcdj-dgt-label--0 { background: #2b8db5; }
.lcdj-dgt-label--b { background: #e0b12f; color: #10151c; }
.lcdj-dgt-label--c { background: #3eaa58; }

.lcdj-vehicle-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--lcdj-border);
}

.lcdj-vehicle-actions form {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lcdj-action {
  width: 100%;
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--lcdj-orange);
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.lcdj-action .lcdj-vicon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

.lcdj-action--primary {
  color: #fff;
  border-color: var(--lcdj-orange);
  background: linear-gradient(135deg, var(--lcdj-orange), var(--lcdj-orange-2));
  box-shadow: 0 12px 28px rgba(255,105,0,.22);
}

.lcdj-action--primary .lcdj-vicon { color: #fff; }

.lcdj-action--outline {
  color: #ff8c3b;
  background: transparent;
}

.lcdj-action:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255,105,0,.18);
}

.lcdj-action--outline:hover {
  background: rgba(255,105,0,.08);
}

.lcdj-action:disabled,
.lcdj-action[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
}

.lcdj-module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lcdj-service-links {
  margin-top: 18px;
  padding-top: 6px;
  border-top: 1px solid var(--lcdj-border);
}

.lcdj-service-links > a {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 60px;
  color: var(--lcdj-text);
  border-bottom: 1px solid var(--lcdj-border);
  text-decoration: none;
}

.lcdj-service-links > a:hover strong,
.lcdj-service-links > a:hover .lcdj-service-links__arrow {
  color: var(--lcdj-orange);
}

.lcdj-service-links .lcdj-vicon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  color: #d7dde6;
}

.lcdj-service-links strong,
.lcdj-service-links small {
  display: block;
}

.lcdj-service-links strong {
  color: #eef2f7;
  font-size: .9rem;
}

.lcdj-service-links small {
  margin-top: 2px;
  color: var(--lcdj-muted);
  font-size: .78rem;
}

.lcdj-service-links__arrow {
  color: #768292;
  font-size: 1.55rem;
  line-height: 1;
}

.lcdj-demo-box {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(255,105,0,.55);
  border-radius: 12px;
  background: rgba(255,105,0,.055);
}

.lcdj-demo-box .lcdj-vicon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.lcdj-demo-box strong {
  color: #ff8a37;
  font-size: .9rem;
}

.lcdj-demo-box p {
  margin: 5px 0 0;
  color: #aeb6c2;
  font-size: .79rem;
  line-height: 1.5;
}

.lcdj-vehicle-lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.lcdj-info-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--lcdj-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16,26,39,.95), rgba(12,21,33,.96));
}

.lcdj-info-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.lcdj-info-card__head .lcdj-vicon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.lcdj-info-card h2,
.lcdj-extra-content h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.lcdj-info-card p,
.lcdj-info-card .rich-text,
.lcdj-info-card .rich-text p {
  color: #b8c0cb;
  font-size: .86rem;
  line-height: 1.58;
}

.lcdj-info-card p:last-child { margin-bottom: 0; }

.lcdj-data-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.lcdj-data-list > div {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
  align-items: center;
  min-height: 33px;
  padding: 6px 8px;
  border-radius: 6px;
}

.lcdj-data-list > div:nth-child(odd) {
  background: rgba(255,255,255,.045);
}

.lcdj-data-list dt,
.lcdj-data-list dd {
  margin: 0;
  font-size: .79rem;
  line-height: 1.3;
}

.lcdj-data-list dt { color: #aab3bf; }
.lcdj-data-list dd { color: #f1f4f8; text-align: right; font-weight: 700; }

.lcdj-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-top: 22px;
  border-top: 1px solid var(--lcdj-border);
  border-bottom: 1px solid var(--lcdj-border);
  background: rgba(8,16,26,.42);
}

.lcdj-trust-strip > div {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-left: 1px solid var(--lcdj-border);
}

.lcdj-trust-strip > div:first-child { border-left: 0; }

.lcdj-trust-strip .lcdj-vicon {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
}

.lcdj-trust-strip strong,
.lcdj-trust-strip small { display: block; }
.lcdj-trust-strip strong { color: #f5f7fa; font-size: .88rem; }
.lcdj-trust-strip small { margin-top: 3px; color: #8f99a7; font-size: .75rem; }

.lcdj-native-reassurance,
.lcdj-extra-content,
.lcdj-accessories {
  margin-top: 24px;
}

.lcdj-extra-content {
  display: grid;
  gap: 14px;
}

.lcdj-native-reassurance .blockreassurance_product,
.lcdj-native-reassurance .blockreassurance_product > div {
  color: #dbe1e9;
}

.lcdj-accessories .product-accessories,
.lcdj-accessories .products-section-title {
  color: #fff;
}

/* Oculta la etiqueta nativa "Nuevo" únicamente dentro de la nueva ficha.
   El estado comercial se muestra mediante la Feature Estado del vehículo. */
.lcdj-vehicle-page .product__flags,
.lcdj-vehicle-page .product-flags {
  display: none !important;
}

@media (max-width: 1199.98px) {
  .lcdj-vehicle-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
    gap: 18px;
  }

  .lcdj-vehicle-lower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lcdj-info-card--description {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .lcdj-vehicle-shell {
    width: min(100% - 24px, 760px);
  }

  .lcdj-vehicle-heading {
    margin-bottom: 16px;
  }

  .lcdj-vehicle-main {
    grid-template-columns: 1fr;
  }

  .lcdj-vehicle-panel {
    position: static;
  }

  .lcdj-spec-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .lcdj-spec-card {
    min-height: 112px;
  }

  .lcdj-trust-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .lcdj-trust-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--lcdj-border);
  }

  .lcdj-trust-strip > div:nth-child(4) {
    border-top: 1px solid var(--lcdj-border);
  }
}

@media (max-width: 767.98px) {
  .lcdj-vehicle-page {
    padding-top: 4px;
  }

  .lcdj-vehicle-title {
    font-size: clamp(1.65rem, 7.6vw, 2.25rem);
  }

  .lcdj-vehicle-price .product__price {
    font-size: 2rem;
  }

  .lcdj-vehicle-meta > span {
    padding: 0 9px;
    font-size: .79rem;
  }

  .lcdj-vehicle-gallery,
  .lcdj-vehicle-panel {
    border-radius: 14px;
  }

  .lcdj-vehicle-gallery .carousel-item img,
  .lcdj-vehicle-gallery .product__no-image img {
    max-height: 460px;
  }

  .lcdj-spec-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .lcdj-spec-card {
    min-height: 118px;
  }

  .lcdj-vehicle-lower-grid {
    grid-template-columns: 1fr;
  }

  .lcdj-info-card--description {
    grid-column: auto;
  }

  .lcdj-trust-strip {
    grid-template-columns: 1fr;
  }

  .lcdj-trust-strip > div,
  .lcdj-trust-strip > div:nth-child(3),
  .lcdj-trust-strip > div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--lcdj-border);
  }

  .lcdj-trust-strip > div:first-child {
    border-top: 0;
  }

  .lcdj-vehicle-gallery .product__thumbnail-image {
    width: 86px;
    height: 59px;
  }
}

@media (max-width: 420px) {
  .lcdj-vehicle-shell { width: min(100% - 16px, 760px); }
  .lcdj-vehicle-panel { padding: 14px; }
  .lcdj-spec-card { min-height: 111px; padding-inline: 6px; }
  .lcdj-spec-card .lcdj-vicon { width: 31px; height: 31px; flex-basis: 31px; }
  .lcdj-action { min-height: 52px; font-size: .94rem; }
}

/* ============================================================
   V1.9.1 FIX1 - ajustes sobre markup real de Hummingbird 9
   ============================================================ */

/* El markup real de Hummingbird usa product__current-price. */
.lcdj-vehicle-price .product__current-price,
.lcdj-demo-price__amount {
  display: block;
  color: var(--lcdj-orange) !important;
  font-size: clamp(2rem, 3vw, 2.7rem) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: -.04em;
}

.lcdj-vehicle-price .prices__wrapper {
  gap: 0 !important;
  margin-bottom: 0 !important;
}

/* En la cabecera de coche no repetimos IVA, portes ni mensajes ecommerce genéricos. */
.lcdj-vehicle-price .product__tax-info,
.lcdj-vehicle-price .product__tax-label,
.lcdj-vehicle-price .product__shipping-badge {
  display: none !important;
}

.lcdj-demo-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.lcdj-demo-price small {
  color: var(--lcdj-muted);
  font-size: .78rem;
  font-weight: 600;
}

/* Las fotos de vehículo V1.8 son 4:3; anulamos el contenedor cuadrado heredado. */
.lcdj-vehicle-gallery #product-images > .carousel-inner > .carousel-item > div[style*="aspect-ratio"] {
  aspect-ratio: 4 / 3 !important;
}

/* Selectores reales del carrusel/miniaturas de Hummingbird 9. */
.lcdj-vehicle-gallery .thumbnails__container {
  padding: 12px;
  border-top: 1px solid rgba(9,17,29,.1);
  background: #101a27;
}

.lcdj-vehicle-gallery .thumbnails__list {
  gap: 10px;
  margin: 0;
}

.lcdj-vehicle-gallery .thumbnail {
  overflow: hidden;
  padding: 0 !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  background: #fff;
}

.lcdj-vehicle-gallery .thumbnail.active,
.lcdj-vehicle-gallery .thumbnail:hover {
  border-color: var(--lcdj-orange) !important;
}

.lcdj-vehicle-gallery .thumbnail .js-thumb {
  display: block;
  width: 108px !important;
  height: 74px !important;
  object-fit: cover;
  border: 0 !important;
  border-radius: 8px !important;
}

/* Con una sola foto no tiene sentido mostrar una miniatura duplicada. */
.lcdj-vehicle-gallery .thumbnails__container:has(.thumbnail:only-child) {
  display: none;
}

@media (max-width: 767.98px) {
  .lcdj-vehicle-price .product__current-price,
  .lcdj-demo-price__amount {
    font-size: 2rem !important;
  }

  .lcdj-demo-price {
    gap: 7px;
  }
}
