/* Ficha pública de vehículo (/vehiculos/...). Base: blog.css */
.v-page { padding: 32px 0 72px; }
.v-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.v-photo { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.v-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-photo.is-closed img { filter: grayscale(.6); }
.v-photo figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 6px; color: #fff; background: rgba(17,19,24,.85); font-size: 13px; font-weight: 800; }
.v-nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 800; }
.v-page h1 { margin: 0 0 14px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(38px, 5vw, 58px); line-height: 1; }
.v-budget { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.v-budget label { display: block; margin-bottom: 8px; font-weight: 800; }
.v-budget-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v-budget-field { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.v-budget-field:focus-within { border-color: var(--red); }
.v-budget-field input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; outline: 0; font: inherit; font-weight: 700; background: transparent; }
/* Interruptor L / US$ como en la portada: radios nativos, sin JS. */
.v-cur { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 2px; border-radius: 7px; background: #e7e8eb; }
.v-cur label { margin: 0; cursor: pointer; }
.v-cur input { position: absolute; opacity: 0; pointer-events: none; }
.v-cur span { display: block; padding: 7px 10px; border-radius: 5px; color: var(--muted); font-size: 13px; font-weight: 800; line-height: 1; }
.v-cur input:checked + span { color: #fff; background: var(--red); }
.v-cur input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.v-budget .button { flex: 1 1 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.v-facts { margin-top: 8px; }
.v-facts h2, .v-similar h2 { font-family: "Barlow Condensed", sans-serif; font-size: 32px; margin: 0 0 16px; }
.v-facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.v-facts dl div { padding: 14px 16px; background: var(--white); }
.v-facts dt { color: var(--muted); font-size: 13px; font-weight: 800; }
.v-facts dd { margin: 2px 0 0; font-weight: 700; }
.v-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.v-similar a { color: var(--red); font-weight: 800; }
.v-similar { margin-top: 40px; }
.v-context { margin-top: 48px; padding: 28px; border-radius: 14px; color: #fff; background: var(--ink); }
.v-context h2 { margin: 0 0 12px; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; }
.v-context p { max-width: 820px; margin: 0 0 20px; color: #d0d3d8; }
.v-related { margin-top: 40px; }
.v-related h2 { font-family: "Barlow Condensed", sans-serif; font-size: 32px; margin: 0 0 12px; }
.v-related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.v-related a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 800; text-decoration: none; }
.v-related a:hover { border-color: var(--red); color: var(--red); }
.v-similar ul { padding-left: 18px; }
@media (max-width: 820px) { .v-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Cambio de página suave (marcas, paginación, ficha) en navegadores que lo soportan. */
@view-transition { navigation: auto; }
html { background: var(--ink); }

/* Catálogo /vehiculos */
.v-hero { padding: 40px 0 36px; color: #fff; background: linear-gradient(90deg, rgba(17,19,24,.96) 0 45%, rgba(17,19,24,.72)), url("/assets/media/autocosto-hero-port-800.webp") center / cover var(--ink); view-transition-name: v-hero; }
.v-hero .breadcrumbs { color: #b9bdc4; }
.v-hero .breadcrumbs a { color: #ff4a50; }
.v-hero .eyebrow { color: #ff4a50; }
.v-hero h1 { margin: 0 0 14px; max-width: 760px; color: #fff; font-family: "Barlow Condensed", sans-serif; font-size: clamp(40px, 5.5vw, 64px); line-height: 1; }
.v-hero .lede { max-width: 640px; margin: 0; color: #d0d3d8; }
.v-makes { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.v-makes a { padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 800; text-decoration: none; }
.v-makes a:hover { border-color: #ff4a50; }
.v-makes a span { color: #b9bdc4; font-weight: 700; }
.v-makes a[aria-current="page"] { background: var(--red); border-color: var(--red); }
.v-makes a[aria-current="page"] span { color: #ffd7d9; }
.v-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.v-card { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 12px 30px rgba(25,29,35,.08); text-decoration: none; transition: transform .15s ease; }
.v-card:hover { transform: translateY(-3px); }
.v-card-ph { position: relative; aspect-ratio: 16 / 10; background: var(--soft); }
.v-card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-card.is-closed img { filter: grayscale(.6); }
.v-card-ph em { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px; color: #fff; background: rgba(17,19,24,.85); font-size: 12px; font-style: normal; font-weight: 800; }
.v-card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px; }
.v-card-body small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.v-card-body strong { font-size: 17px; line-height: 1.3; }
.v-card-body b { margin-top: auto; padding-top: 12px; color: var(--red); font-size: 14px; }
.v-pager { display: flex; justify-content: space-between; margin-top: 32px; }
.v-pager a { color: var(--red); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .v-card { transition: none; } .v-card:hover { transform: none; } }

/* Ficha: la misma franja oscura, con foto, título y presupuesto adentro. */
.v-hero--ficha { padding-bottom: 44px; }
.v-hero--ficha .lede { font-size: 17px; }
.v-hero--ficha .v-photo { background: #22262d; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.v-hero--ficha .v-nophoto { color: #b9bdc4; }
.v-hero--ficha .v-budget { color: var(--ink); border: 0; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
