/* PortalCar 1.9.7 — composición aprobada con fotografías originales.
   Esta hoja se carga después de las anteriores y se limita a galerías/tarjetas. */
.car-image,.featured-card-image,.similar-photo,.compare-head-photo {
  background:#eef3f6!important; overflow:hidden;
}
.car-image {height:auto!important;aspect-ratio:1.2 / 1!important;min-height:0!important}
.car-image img,.featured-card-image img,.similar-photo img,.compare-head-photo img {
  display:block!important;width:100%!important;height:100%!important;
  object-fit:cover!important;object-position:50% 54%!important;
}
/* La portada solo depende de la foto que el vendedor escoja; no alteramos el archivo. */
.detail-gallery-layout {
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:10px!important;width:min(100%,840px)!important;
  max-width:840px!important;margin:0 auto!important;padding:14px 12px!important;
  background:#fff!important;align-items:stretch!important;min-width:0!important;
}
.detail-main-photo {
  box-sizing:border-box!important;display:block!important;
  width:100%!important;height:auto!important;max-height:none!important;
  aspect-ratio:1/1!important;min-height:0!important;min-width:0!important;
  border-radius:13px!important;background:#edf2f5!important;overflow:hidden!important;
  position:relative!important;cursor:zoom-in;
}
.detail-main-photo img {
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:50% 54%!important;
  border-radius:0!important;background:transparent!important;
}
.detail-main-photo.pc197-image::after{
  content:'⤢  Ampliar';position:absolute;right:12px;bottom:12px;
  padding:7px 11px;border-radius:10px;background:rgba(255,255,255,.94);
  color:#0b2d5b;font-weight:800;font-size:12px;pointer-events:none;
}
.detail-thumbs {
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;width:100%!important;height:auto!important;max-height:none!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
}
.detail-thumb {
  position:relative!important;box-sizing:border-box!important;display:block!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  aspect-ratio:1/1!important;padding:0!important;background:#edf2f5!important;
  border:0!important;border-radius:11px!important;overflow:hidden!important;
  cursor:pointer;scroll-snap-align:none!important;
}
.detail-thumb img {
  width:100%!important;height:100%!important;display:block!important;
  object-fit:cover!important;object-position:50% 56%!important;
}
.detail-thumb:hover,.detail-thumb:focus-visible,.detail-thumb.pc197-active {
  outline:3px solid #00b4c6!important;outline-offset:-3px!important;
}
.detail-thumb.pc197-more{
  display:flex!important;align-items:center;justify-content:center;flex-direction:column;
  gap:7px;color:#17687b;background:linear-gradient(150deg,#eaf8fa,#edf3f7)!important;
  font-weight:800;font-size:12px;text-align:center;padding:12px!important;
}
.detail-thumb.pc197-more span{font-size:26px}
.detail-thumb.pc197-more small{font-size:11px;font-weight:600}
.detail-title-row.pc197-head{
  padding:19px clamp(16px,3vw,30px) 12px!important;
  margin:0!important;align-items:flex-start!important;
}
.detail-info>.detail-facts{margin-top:14px!important}
.pc197-tools{display:flex;flex-wrap:wrap;align-items:center;gap:9px;justify-content:center;
  padding:0 15px 12px;background:#fff;color:#567085;font-size:12px}
.pc197-tools button{background:#eef9fb;color:#0c5c70;border:1px solid #cce9ee;
  border-radius:10px;padding:9px 12px;font:inherit;font-weight:750;cursor:pointer}
.pc197-tools button:disabled{opacity:.55;cursor:default}
.pc197-tools button:focus-visible{outline:3px solid #00b4c6;outline-offset:2px}
.detail-description-v04 p{white-space:pre-wrap!important;overflow-wrap:anywhere}
@media(min-width:761px){.detail-gallery-layout{max-height:440px!important}}
@media(max-width:760px){
 .detail-gallery-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;gap:8px!important;padding:9px 12px!important;
  max-height:none!important;width:100%!important;overflow:visible!important}
 .detail-main-photo{height:auto!important;max-height:none!important;width:100%!important;
  aspect-ratio:1/1!important;min-height:0!important}
 .detail-thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:auto!important;gap:8px!important;height:auto!important;max-height:none!important;
  overflow:hidden!important;padding:0!important}
 .detail-thumb{width:100%!important;height:auto!important;flex:none!important;aspect-ratio:1/1!important}
 .detail-thumb.pc197-more{display:none!important}
 .detail-title-row.pc197-head{display:flex!important;gap:8px!important;flex-direction:column!important;padding:18px 15px 12px!important}
 .detail-price-v04{margin-top:4px!important}
 .pc197-tools{justify-content:flex-start;padding:0 14px 12px}
 .car-image{height:auto!important;aspect-ratio:1.2/1!important}
}

.detail-gallery-layout.pc197-single{grid-template-columns:minmax(0,1fr)!important;max-width:470px!important}
.detail-gallery-layout.pc197-single .detail-thumbs{display:none!important}
