/* BsAs Cars — claro, esqueleto de concesionaria (Autopremium, Schojet) con fotos de estudio. */
:root {
  --fondo: #f4f3f0;
  --blanco: #ffffff;
  --piso: #ebe9e4;
  --linea: #dedbd4;
  --texto: #151515;
  --gris: #6b6862;
  --rojo: #d2060f;
  --pad: clamp(18px, 4vw, 56px);
  --fx: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--fondo); color: var(--texto); font: 400 16px/1.55 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, .sec-tit { font-weight: 600; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h3 { font-size: 18px; line-height: 1.2; }
.sec-tit { font-size: clamp(28px, 3.2vw, 44px); }
.lead { font-size: 18px; color: var(--gris); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.btn-negro, .btn-rojo { background: var(--texto); color: #fff; }
.btn-negro:hover, .btn-rojo:hover { background: #333; }
.btn-linea { border: 1px solid #c9c5bc; background: transparent; }
.btn-linea:hover { border-color: var(--texto); }
.btn-blanco { background: #fff; color: var(--texto); }
.link { border-bottom: 1px solid var(--rojo); padding-bottom: 2px; font-weight: 600; }

/* encabezado */
.barra { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--rojo); z-index: 60; }
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; display: flex; align-items: center; gap: 34px; padding: 0 var(--pad); background: rgba(244, 243, 240, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: height .3s, transform .4s var(--fx), border-color .3s; }
.cab.compacta { height: 60px; border-color: var(--linea); }
.cab.oculta { transform: translateY(-100%); }
.cab-logo img { height: 20px; width: auto; }
.cab-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 500; }
.cab-nav a:hover { color: var(--gris); }
.cab-wa { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px; background: var(--texto); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--texto); transition: transform .3s; }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }

/* hero: la foto entera (nunca recortada) y todo dentro de una pantalla */
.h3 { position: relative; height: 100svh; min-height: 540px; padding-top: 72px; background: #b3aaa4; display: flex; justify-content: center; overflow: hidden; }
.h3-fotos { position: relative; width: 100%; height: 100%; }
.h3-fotos img, .h3-fotos video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; transition: opacity 1.1s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.h3-fotos img.on, .h3-fotos video.on { opacity: 1; }
.h3::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 55% 60% at 0% 0%, rgba(244, 243, 240, .82), rgba(244, 243, 240, 0) 70%); }
.h3-txt { position: absolute; left: var(--pad); top: calc(72px + clamp(16px, 4vh, 56px)); max-width: min(560px, 42vw); z-index: 2; }
.h3-txt h1 { font-size: clamp(30px, min(4.2vw, 7vh), 64px); }
.h3-txt p { margin: 10px 0 min(24px, 2.5vh); color: #2f2d2a; font-size: 17px; }
.h3-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.h3-ficha { position: absolute; right: var(--pad); bottom: clamp(16px, 4vh, 44px); z-index: 2; background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 12px; display: grid; gap: 2px; transition: opacity .5s; }
.h3-ficha b { font-size: 15px; }
.h3-ficha span { font-size: 13px; color: var(--gris); }

/* barra de confianza */
.confianza { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--blanco); border-bottom: 1px solid var(--linea); }
.confianza div { padding: 26px var(--pad); display: grid; gap: 2px; border-right: 1px solid var(--linea); }
.confianza div:last-child { border-right: 0; }
.confianza b { font-size: 16px; }
.confianza span { font-size: 14px; color: var(--gris); }

/* secciones y grilla */
.sec { padding: clamp(60px, 8vw, 110px) var(--pad); max-width: 1480px; margin: 0 auto; }
.sec-cab { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.ver { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--texto); padding-bottom: 2px; }
.grilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tarjeta { display: flex; flex-direction: column; background: var(--blanco); border-radius: 14px; overflow: hidden; border: 1px solid var(--linea); transition: box-shadow .3s, transform .3s var(--fx); }
.tarjeta:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.tarjeta figure { position: relative; aspect-ratio: 16/9; background: #b3aaa4; overflow: hidden; }
.tarjeta img { width: 100%; height: 100%; object-fit: contain; }
.t-sello { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--texto); color: #fff; }
.t-txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t-txt h3 { font-size: 17px; }
.t-txt p { font-size: 13px; color: var(--gris); flex: 1; }
.t-btn { margin-top: 12px; align-self: flex-start; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid #c9c5bc; transition: background .2s, color .2s, border-color .2s; }
.tarjeta:hover .t-btn { background: var(--texto); color: #fff; border-color: var(--texto); }
.tarjeta.fuera { display: none; }

/* marcas */
.marcas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: clamp(28px, 5vw, 70px); padding: 44px var(--pad); background: var(--blanco); border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.marcas img { height: 34px; width: auto; opacity: .75; }

/* salón */
.salon { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--blanco); }
.salon { max-height: calc(100svh - 60px); }
.salon > img { width: 100%; height: 100%; max-height: calc(100svh - 60px); object-fit: cover; object-position: center 60%; }
.salon-txt { padding: clamp(40px, 6vw, 90px) var(--pad); display: grid; align-content: center; gap: 26px; }
.salon-txt h2 { font-size: clamp(28px, 3.2vw, 44px); }
.salon-sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.salon-sedes h3 { margin-bottom: 6px; }
.salon-sedes p { color: var(--gris); font-size: 15px; }
.salon-sedes a { color: var(--texto); border-bottom: 1px solid #c9c5bc; }
.salon-txt .btn { justify-self: start; }

/* páginas internas */
.pag-cab { padding: 120px var(--pad) 10px; max-width: 1480px; margin: 0 auto; }
.pag-cab h1 { font-size: clamp(34px, 4vw, 56px); }
.pag-cab .lead { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips button { background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer; }
.chips button.on { background: var(--texto); color: #fff; border-color: var(--texto); }
.sec-stock { padding-top: 30px; }
.vacio { color: var(--gris); margin-top: 20px; }
.pag-404 { min-height: 70svh; }
.pag-404 .hero-cta { display: flex; gap: 10px; margin-top: 26px; }

/* ficha */
.ficha { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 60px); padding: 100px var(--pad) 80px; max-width: 1480px; margin: 0 auto; align-items: start; }
.ficha-gal { position: sticky; top: 84px; }
.g-grande { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-it { border: 0; padding: 0; background: #e3e0da; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.g-it:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.g-it:not(:first-child) { aspect-ratio: 3/4; }
.ficha-gal { max-height: calc(100svh - 100px); overflow: auto; scrollbar-width: none; }
.g-it img { width: 100%; height: 100%; object-fit: contain; }
.g-it:first-child img { object-fit: cover; }
.volver { font-size: 13px; color: var(--gris); display: inline-block; margin-bottom: 18px; }
.volver::before { content: "‹ "; }
.ficha-info h1 { font-size: clamp(30px, 3.2vw, 46px); }
.ficha-linea { color: var(--gris); margin-top: 10px; }
.ficha-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.datos { display: grid; grid-template-columns: 1fr 1fr; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
.datos div { padding: 14px 16px; border-bottom: 1px solid var(--linea); }
.datos div:nth-child(odd) { border-right: 1px solid var(--linea); }
.datos dt { font-size: 12px; color: var(--gris); }
.datos dd { font-weight: 600; margin-top: 2px; }
.ficha-texto { margin: 28px 0; color: #3d3b37; display: grid; gap: 12px; }
.ficha-vid { margin-top: 20px; border-radius: 12px; overflow: hidden; aspect-ratio: 9/16; max-width: 300px; }
.ficha-vid video { width: 100%; height: 100%; object-fit: cover; }
.ficha-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
.ficha-nav a:hover { color: var(--texto); }
.visor { position: fixed; inset: 0; z-index: 90; background: rgba(20, 20, 20, .94); display: grid; place-items: center; }
.visor[hidden] { display: none; }
.visor img { max-width: 92vw; max-height: 86svh; border-radius: 8px; }
.visor button { position: absolute; background: none; border: 0; font-size: 42px; width: 60px; height: 60px; cursor: pointer; color: #fff; }
.v-x { top: 16px; right: 16px; } .v-a { left: 12px; top: 50%; transform: translateY(-50%); } .v-s { right: 12px; top: 50%; transform: translateY(-50%); }
.v-n { position: absolute; bottom: 22px; font-size: 13px; color: #bbb; }

/* visita: un paso por pantalla */
.sec-visita { padding-top: 20px; padding-bottom: 60px; }
.visita { max-width: 980px; }
.paso { border: 0; min-width: 0; }
.por-pasos .paso { display: none; }
.por-pasos .paso.activo { display: block; animation: entra .35s var(--fx); }
@keyframes entra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.paso legend { font-weight: 600; font-size: clamp(20px, 3.2vh, 26px); margin-bottom: 16px; }
.paso legend span { display: none; }
.v-autos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
[hidden] { display: none !important; }
.pag-visita { padding-top: 96px; }
.pag-visita h1 { font-size: clamp(26px, 4.5vh, 40px); }
.v-auto { position: relative; border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--blanco); display: grid; align-content: start; }
.v-auto input, .v-ops input, .v-checks input { position: absolute; opacity: 0; pointer-events: none; }
.v-auto img { aspect-ratio: 16/9; object-fit: contain; width: 100%; background: #b3aaa4; }
.v-auto b { font-size: 12px; padding: 6px 8px 0; line-height: 1.2; }
.v-auto small { font-size: 11px; color: var(--gris); padding: 1px 8px 8px; line-height: 1.3; }
.v-auto:has(input:checked) { border-color: var(--texto); box-shadow: 0 0 0 1px var(--texto); }
.v-auto:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--texto); color: #fff; display: grid; place-items: center; font-size: 12px; }
.v-ops, .v-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.v-ops label, .v-checks label { position: relative; border: 1px solid var(--linea); background: var(--blanco); border-radius: 10px; padding: 14px 16px; cursor: pointer; display: grid; gap: 2px; }
.v-ops label:has(input:checked), .v-checks label:has(input:checked) { border-color: var(--texto); box-shadow: 0 0 0 1px var(--texto); }
.v-ops b, .v-checks b { font-size: 15px; }
.v-ops small, .v-checks small { font-size: 12px; color: var(--gris); }
.v-horas { margin-top: 10px; }
.v-checks label.apagado { opacity: .4; }
.v-nombre { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--gris); max-width: 320px; }
.v-nombre input { background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; height: 46px; padding: 0 14px; font-size: 16px; }
.v-para { font-size: 14px; color: var(--gris); margin-bottom: 12px; }
.v-para b { color: var(--texto); }
.v-msg blockquote { font-size: 15px; line-height: 1.5; white-space: pre-line; padding: 16px; border-radius: 12px; background: var(--blanco); border: 1px solid var(--linea); margin-bottom: 16px; max-width: 620px; }
.v-msg .btn { min-width: 260px; }
.v-msg .btn.falta { opacity: .4; pointer-events: none; }
.v-nota { font-size: 12px; color: var(--gris); margin-top: 10px; }
.v-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--linea); }
.v-nav .btn { min-width: 130px; }
.v-nav .btn[disabled] { opacity: .35; pointer-events: none; }
.v-prog { font-size: 13px; color: var(--gris); }

/* pie */
.pie { background: var(--texto); color: #e8e6e1; padding: 60px var(--pad) 36px; }
.pie-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pie-top img { height: 22px; width: auto; filter: invert(1) hue-rotate(180deg); }
.pie-top p, .pie-grid p { color: #a9a59d; }
.pie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px 0; }
.pie-grid h3 { font-size: 15px; margin-bottom: 8px; color: #fff; }
.pie-grid p { font-size: 14px; line-height: 1.9; }
.pie-grid a:hover { color: #fff; }
.pie-legal { font-size: 12px; color: #77736c; }

/* entrada por sección */
.js .rev { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--fx), transform .45s var(--fx); }
.js .rev.v { opacity: 1; transform: none; }
.js .rev-t { opacity: 0; transition: opacity .5s var(--fx); }
.js .rev-t.v { opacity: 1; }

@media (max-width: 1100px) { .grilla { grid-template-columns: repeat(3, 1fr); } .v-autos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) {
  .cab { height: 62px; gap: 12px; }
  .cab-nav { position: fixed; inset: 62px 0 auto; flex-direction: column; gap: 0; padding: 8px var(--pad) 22px; background: var(--fondo); border-bottom: 1px solid var(--linea); opacity: 0; pointer-events: none; transition: opacity .25s; font-size: 19px; }
  .cab-nav a { padding: 13px 0; border-bottom: 1px solid var(--linea); }
  .menu-abierto .cab-nav { opacity: 1; pointer-events: auto; }
  .menu-abierto .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-abierto .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .cab-wa { margin-left: auto; padding: 7px 14px; font-size: 13px; }
  .menu-btn { display: block; }
  .cab-logo img { height: 17px; }

  .h3 { height: auto; min-height: 0; padding-top: 62px; flex-direction: column; background: var(--fondo); }
  .h3-fotos { height: auto; aspect-ratio: 16/9; background: #b3aaa4; }
  .h3-fotos img, .h3-fotos video { -webkit-mask-image: none; mask-image: none; }
  .h3-txt { position: static; max-width: none; padding: 22px var(--pad) 26px; }
  .h3-txt h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .h3-cta .btn { flex: 1; }
  .h3-ficha { display: none; }
  .h3::after { display: none; }
  .confianza { grid-template-columns: 1fr; }
  .confianza div { border-right: 0; border-bottom: 1px solid var(--linea); padding: 16px var(--pad); }
  .grilla { grid-template-columns: 1fr 1fr; gap: 10px; }
  .t-txt { padding: 12px; }
  .t-txt h3 { font-size: 14px; }
  .t-txt p { font-size: 12px; }
  .t-btn { font-size: 12px; padding: 6px 11px; margin-top: 8px; }
  .marcas { gap: 24px 34px; padding: 30px var(--pad); }
  .marcas img { height: 26px; }
  .salon { grid-template-columns: 1fr; }
  .salon > img { min-height: 0; aspect-ratio: 4/3; }
  .salon-sedes { grid-template-columns: 1fr; }
  .pie-grid { grid-template-columns: 1fr; margin: 30px 0; }
  .pag-cab { padding-top: 90px; }
  .ficha { grid-template-columns: 1fr; padding: 62px 0 50px; gap: 20px; }
  .ficha-gal { position: static; max-height: none; overflow: visible; }
  .g-grande { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 90%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; padding: 0 var(--pad); }
  .g-it, .g-it:first-child, .g-it:not(:first-child) { aspect-ratio: 4/3; scroll-snap-align: center; grid-column: auto; }
  .ficha-info { padding: 0 var(--pad); }
  .ficha-cta .btn { flex: 1 1 100%; }
  .v-ops, .v-checks { grid-template-columns: 1fr 1fr; }
  .v-autos { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .v-auto small { display: none; }
  .v-auto b { font-size: 11px; padding: 5px 6px 7px; }
  .pag-visita { padding-top: 80px; }
  .v-msg .btn { width: 100%; min-width: 0; }
  .v-nav { margin-top: 18px; }
  .v-nav .btn { min-width: 0; flex: 0 0 auto; padding: 0 18px; height: 46px; }
  .salon { max-height: none; }
  .salon > img { max-height: 60svh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
