/* Ficha Toyota FJ 2027. Usa la paleta y la tipografía del sitio TrustCol. */
.vehicle-detail-page { background: #fff; color: #17263d; }
.vehicle-main { background: #fff; padding-bottom: 36px; }
.vehicle-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding-top: 22px; padding-bottom: 8px; }
.vehicle-crumb [aria-current="page"] { color: #627086; }
.vehicle-top { padding-top: 20px; padding-bottom: 42px; }
.vehicle-gallery { display: block; min-width: 0; }
.gallery-stage { position: relative; margin: 0; overflow: hidden; border: 1px solid #e3e9f1; border-radius: 18px; background: #f4f7fb; }
.gallery-stage > img { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 620px; object-fit: contain; }
.image-counter { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 7px 11px; border-radius: 999px; background: rgba(10,42,94,.82); color: #fff; font-size: .82rem; font-weight: 700; }
.thumbnail-rail { display: flex; gap: 10px; overflow-x: auto; padding: 13px 2px 9px; scroll-snap-type: x mandatory; scrollbar-color: #9aabba #edf1f6; scrollbar-width: thin; }
.vehicle-thumbnail { flex: 0 0 108px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 11px; background: #f4f7fb; cursor: pointer; scroll-snap-align: start; transition: border-color .18s ease, transform .18s ease; }
.vehicle-thumbnail img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vehicle-thumbnail:hover { transform: translateY(-2px); }
.vehicle-thumbnail[aria-pressed="true"] { border-color: #00AEEF; box-shadow: 0 0 0 2px rgba(0,174,239,.16); }
.vehicle-thumbnail:focus-visible, .vehicle-detail-page a:focus-visible { outline: 3px solid #00AEEF; outline-offset: 3px; }
.gallery-hint { margin: 3px 2px 0; color: #718198; font-size: .82rem; }
.vehicle-summary { top: 28px; }
.vehicle-summary .eyebrow, .vehicle-section-heading .eyebrow, .vehicle-import-note .eyebrow { margin: 0 0 9px; }
.vehicle-summary .detail-title { font-size: clamp(1.9rem,3.3vw,2.8rem); line-height: 1.12; margin: 0 0 16px; }
.vehicle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 17px; }
.vehicle-chip { border-radius: 999px; padding: 7px 11px; background: #edf4fa; color: #0A2A5E; font-size: .8rem; font-weight: 750; line-height: 1.25; }
.summary-intro { color: #59677a; margin: 0 0 19px; }
.price-panel { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 0; border-top: 1px solid #e3e9f1; border-bottom: 1px solid #e3e9f1; }
.price-panel span { color: #627086; font-size: .92rem; }
.price-panel strong { color: #0A2A5E; font-size: 1.35rem; }
.vehicle-summary .vehicle-primary-action { width: 100%; margin-top: 18px; }
.summary-note { margin: 10px 0 0; color: #718198; font-size: .8rem; text-align: center; }
.vehicle-specs { padding-top: 20px; padding-bottom: 44px; }
.vehicle-section-heading { margin-bottom: 19px; }
.vehicle-section-heading h2, .vehicle-import-note h2 { margin: 0 0 9px; color: #0A2A5E; font-size: clamp(1.5rem,3vw,2rem); }
.vehicle-section-heading > p:last-child { margin: 0; color: #627086; }
.vehicle-spec-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0; border-top: 1px solid #e3e9f1; }
.vehicle-spec { display: flex; justify-content: space-between; gap: 18px; padding: 15px 2px; border-bottom: 1px solid #e3e9f1; }
.vehicle-spec dt { color: #0A2A5E; font-weight: 750; }
.vehicle-spec dd { margin: 0; color: #536176; text-align: right; }
.vehicle-import-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 27px 30px; border: 1px solid #dce8f3; border-left: 4px solid #00AEEF; border-radius: 17px; background: #f4f7fb; }
.vehicle-import-note > div { max-width: 780px; }
.vehicle-import-note p:last-child { margin: 0; color: #536176; }
.vehicle-import-note .btn { flex-shrink: 0; }
.vehicle-back { margin-top: 26px; }
@media (max-width: 900px) {
  .vehicle-top { gap: 22px; }
  .vehicle-summary { position: static; }
}
@media (max-width: 640px) {
  .vehicle-crumb { font-size: .8rem; gap: 6px; }
  .gallery-stage { border-radius: 14px; }
  .gallery-stage > img { aspect-ratio: 4 / 3; }
  .vehicle-thumbnail { flex-basis: 91px; }
  .vehicle-spec-grid { grid-template-columns: 1fr; }
  .vehicle-spec { padding: 13px 1px; }
  .vehicle-import-note { display: block; padding: 22px; }
  .vehicle-import-note .btn { width: 100%; margin-top: 18px; }
}

.gallery-arrow { position: absolute; z-index: 2; top: 50%; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; transform: translateY(-50%); border: 1px solid rgba(10,42,94,.12); border-radius: 50%; background: rgba(255,255,255,.94); color: #0A2A5E; box-shadow: 0 5px 16px rgba(10,42,94,.16); cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.gallery-arrow svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow:hover { background: #00AEEF; color: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-arrow:focus-visible { outline: 3px solid #00AEEF; outline-offset: 3px; }
.gallery-arrow-prev { left: 16px; }
.gallery-arrow-next { right: 16px; }
@media (max-width: 640px) {
  .gallery-arrow { width: 42px; height: 42px; }
  .gallery-arrow-prev { left: 10px; }
  .gallery-arrow-next { right: 10px; }
}

.gallery-brand { position: absolute; z-index: 3; top: 15px; left: 15px; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 11px; border: 1px solid rgba(10,42,94,.1); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 4px 16px rgba(10,42,94,.12); backdrop-filter: blur(6px); }
.gallery-brand img { display: block; width: 126px; height: auto; }
@media (max-width: 640px) {
  .gallery-brand { top: 10px; left: 10px; min-height: 43px; padding: 5px 8px; border-radius: 9px; }
  .gallery-brand img { width: 105px; }
}

/* Compartir la ficha desde la fotografía principal. */
.gallery-share { position:absolute; z-index:4; top:15px; right:15px; display:flex; align-items:center; justify-content:center; width:46px; height:46px; padding:0; border:1px solid rgba(10,42,94,.12); border-radius:50%; background:rgba(255,255,255,.96); color:#0A2A5E; box-shadow:0 5px 16px rgba(10,42,94,.16); cursor:pointer; transition:background-color .18s ease,color .18s ease,transform .18s ease; }
.gallery-share svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.gallery-share:hover { background:#00AEEF; color:#fff; transform:scale(1.05); }
.gallery-share:focus-visible { outline:3px solid #00AEEF; outline-offset:3px; }
.gallery-share-status { position:absolute; top:52px; right:0; width:max-content; padding:5px 9px; border-radius:6px; background:#0A2A5E; color:white; font-size:.75rem; font-weight:600; }
.gallery-stage > img, .vehicle-thumbnail img { -webkit-user-drag:none; user-select:none; }
@media (max-width:640px) { .gallery-share { top:10px; right:10px; width:42px; height:42px; } }

.vehicle-color-picker { margin: 0 0 14px; padding: 0; border: 0; }
.vehicle-color-picker legend { margin-bottom: 9px; color: #0A2A5E; font-weight: 750; }
.vehicle-color-picker legend span { color: #627086; font-weight: 600; }
.vehicle-color-options { display:flex; flex-wrap:wrap; gap:8px; }
.vehicle-color-option { display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #d7e0ea; border-radius:999px; background:#fff; color:#42516a; font:inherit; font-size:.88rem; cursor:pointer; transition:border-color .16s ease,background-color .16s ease,color .16s ease; }
.vehicle-color-option:hover, .vehicle-color-option[aria-pressed="true"] { border-color:#0A2A5E; background:#edf4fa; color:#0A2A5E; }
.vehicle-color-option:focus-visible { outline:3px solid #00AEEF; outline-offset:3px; }
.color-swatch { width:17px; height:17px; flex:0 0 17px; border:1px solid rgba(10,42,94,.22); border-radius:50%; }
.swatch-white { background:#fff; } .swatch-blue { background:#6fa6cf; } .swatch-beige { background:#b5aa8e; } .swatch-orange { background:#db762f; } .swatch-black { background:#24272b; }
.vehicle-color-picker > p { margin:8px 0 0; color:#718198; font-size:.8rem; }
.vehicle-thumbnail[hidden] { display:none !important; }

/* Galería: fundido suave de 0,3 s al salir y 0,3 s al entrar. */
.gallery-stage > img { transition: opacity .3s ease, transform .3s ease; }
.gallery-stage > img.gallery-image-fading { opacity: 0; transform: scale(.995); }
@media (prefers-reduced-motion: reduce) { .gallery-stage > img { transition: none; } }
