/* ==========================================================================
   L&S Automóviles — estilos
   Estilo concesionario: catálogo primero, gris claro + blanco, cabecera negra
   como el letrero de la automotora, rojo L&S solo para acciones.
   Tipografía Barlow (inspirada en patentes y señalética vial).
   ========================================================================== */
:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --soft: #f7f7f5;
  --line: #e3e3e0;
  --line-2: #cdcdc8;
  --text: #2a2c30;
  --muted: #6c6f75;
  --ink: #111214;
  --ink-2: #1c1e21;
  --ink-line: #2c2f33;
  --red: #d5161e;
  --red-2: #b10f16;
  --red-soft: #fdeeee;
  --ok: #1d7a46;

  --r: 4px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.14);
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 24px);
  --header-h: 66px;
  --font: "Barlow", "Segoe UI", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.no-scroll {
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-compare {
  padding-bottom: 88px;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.fine {
  font-size: 0.82rem;
  color: var(--muted);
}
.rate-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--red);
  background: var(--surface);
  font-size: 0.92rem;
  color: #4a4d52;
}

/* ---------- íconos ---------- */
.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i .fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-red {
  background: var(--red);
}
.btn-red:hover:not(:disabled) {
  background: var(--red-2);
}
.btn-dark:hover {
  background: #2a2c30;
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-outline:hover {
  border-color: var(--text);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: #ececea;
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.btn-lg {
  height: 50px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  position: relative;
}
.icon-btn:hover {
  background: rgba(127, 127, 127, 0.16);
}
.icon-btn .i {
  width: 21px;
  height: 21px;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: var(--red);
}
.text-link {
  color: var(--red);
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- barra superior + header ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  text-align: center;
}
.topbar a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.topbar .icon-btn {
  width: 28px;
  height: 28px;
  margin-left: auto;
  position: absolute;
  right: 8px;
}
.topbar .icon-btn .i {
  width: 16px;
  height: 16px;
}
.topbar {
  position: relative;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand img {
  height: 52px;
  width: auto;
}
.brand-lg img {
  height: 92px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--r);
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.main-nav a[aria-current] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
  border-radius: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fav-link .dot {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.menu-btn {
  display: none;
}
.mobile-nav {
  border-top: 1px solid var(--ink-line);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav nav {
  display: grid;
}
.mobile-nav nav a {
  padding: 14px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--ink-line);
}
.mobile-contact {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 0;
  font-size: 0.92rem;
  margin-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 32ch;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.site-footer ul {
  display: grid;
  gap: 8px;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-list .i {
  margin-top: 3px;
}
.social {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  color: #fff;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- formularios ---------- */
.field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.field > span,
.field-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.input,
.select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.97rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input {
  height: auto;
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}
.select:disabled {
  background-color: var(--soft);
  color: #a0a2a6;
  cursor: not-allowed;
}
.input::placeholder {
  color: #9a9da2;
}
.input:hover,
.select:hover:not(:disabled) {
  border-color: #a9aaa5;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 18, 20, 0.12);
}
.input-prefix {
  position: relative;
  display: block;
}
.input-prefix > b {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 500;
  pointer-events: none;
}
.input-prefix .input {
  padding-left: 24px;
}
.range {
  width: 100%;
  accent-color: var(--red);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  margin: 0;
}

/* chips (filtros rápidos) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.9rem;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip:hover {
  border-color: var(--text);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-x {
  height: 30px;
  padding: 0 8px 0 12px;
  font-size: 0.85rem;
  background: #e9e9e6;
  border-color: transparent;
}
.chip-x:hover {
  border-color: var(--line-2);
}
.chip-x .i {
  width: 15px;
  height: 15px;
}

/* etiquetas */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(17, 18, 20, 0.86);
  color: #fff;
}
.badge .i {
  width: 14px;
  height: 14px;
}
.badge-red {
  background: var(--red);
}
.badge-demo {
  background: #fff1b8;
  color: #5c4700;
}
.badge-dark {
  background: rgba(17, 18, 20, 0.86);
}

/* ---------- siluetas (autos sin foto) ---------- */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #e9e9e6;
}
.ph .sil {
  width: 74%;
}
.sil-body {
  fill: #3a3d42;
}
.sil-win {
  fill: #c3c6cb;
}
.sil-line {
  stroke: #c3c6cb;
  stroke-width: 3;
  fill: none;
}
.sil-tire {
  fill: #1b1c1f;
}
.sil-rim {
  fill: #9a9da3;
}
.sil-ground {
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 3;
}

/* ---------- tarjetas de auto ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e5e5e2;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media img.is-contain {
  object-fit: contain;
  background: var(--ink-2);
}
.card-media-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-media-wrap .card-media {
  flex: 1;
}
.card-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.card-nav.prev {
  left: 8px;
}
.card-nav.next {
  right: 8px;
}
.card-nav .i {
  width: 18px;
  height: 18px;
}
.card:hover .card-nav,
.card-nav:focus-visible {
  opacity: 1;
}
.card-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(17, 18, 20, 0.72);
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
}
/* en pantallas táctiles no hay hover: flechas siempre visibles */
@media (hover: none) {
  .card-nav {
    opacity: 1;
  }
}
.card-tags {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.fav-btn .i {
  width: 19px;
  height: 19px;
}
.fav-btn:hover {
  color: var(--red);
}
[data-fav].is-on {
  color: var(--red);
}
[data-fav].is-on .fav-star {
  fill: currentColor;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 14px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 600;
}
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-title a:hover {
  color: var(--red);
}
.card-version {
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.card-specs {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  margin-top: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.card-specs li + li {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.card-specs li:not(:last-child) {
  padding-right: 12px;
}
.card-price {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 12px;
  line-height: 1.1;
}
.card-cuota {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 8px;
}
.cmp-check {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 0;
}
.cmp-check:hover {
  color: var(--text);
}
.cmp-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--red);
}

/* vista lista */
.cards.is-list {
  grid-template-columns: 1fr;
}
.cards.is-list .card {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.cards.is-list .card-media {
  aspect-ratio: auto;
  min-height: 210px;
}
.cards.is-list .card-body {
  padding: 18px 22px;
}
.cards.is-list .card-specs {
  justify-content: start;
}

/* tarjeta promocional dentro de la grilla */
.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.promo-card .sil {
  width: 92%;
  margin: 0 auto auto;
}
.promo-card .sil-body {
  fill: #2f3237;
}
.promo-card .sil-win,
.promo-card .sil-rim {
  fill: #50545a;
}
.promo-card .sil-tire {
  fill: #000;
}
.promo-card .sil-ground {
  stroke: rgba(255, 255, 255, 0.1);
}
.promo-card h3 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}
.promo-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}
.promo-card .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- carrusel de promociones (inicio) ---------- */
.promos {
  position: relative;
  margin-top: 20px;
}
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.promo-track::-webkit-scrollbar {
  display: none;
}
.promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  overflow: hidden;
}
.promo-slide:hover {
  text-decoration: none;
}
.promo-text {
  padding: 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.promo-text small {
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
}
.promo-title {
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.15;
}
.promo-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}
.promo-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 10px;
}
.promo-text .promo-price {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}
.promo-price span {
  display: block;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}
/* La foto escala completa con el ancho (sin recortes) */
.promo-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
}
.promo-media img {
  display: block;
  width: 100%;
  height: auto;
}
.promo-media.is-sil {
  aspect-ratio: 4 / 3;
  align-self: center;
  width: 100%;
}
.promo-media .sil {
  width: 82%;
}
.promo-media .sil-body {
  fill: #2f3237;
}
.promo-media .sil-win,
.promo-media .sil-rim {
  fill: #50545a;
}
.promo-media .sil-tire {
  fill: #000;
}
.promo-media .sil-ground {
  stroke: rgba(255, 255, 255, 0.1);
}
.promo-rate {
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.promo-rate b {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
}
.promo-rate span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.promo-nav {
  position: absolute;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.promo-nav:disabled {
  opacity: 0.45;
  cursor: default;
}
.promo-nav.prev {
  right: 56px;
}
.promo-nav.next {
  right: 12px;
}
.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.promo-dots button {
  width: 18px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--line-2);
  cursor: pointer;
}
.promo-dots button[aria-current="true"] {
  background: var(--red);
}

/* ---------- encabezado de página interior ---------- */
.page-head {
  padding: 22px 0 6px;
}
.page-head h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-top: 8px;
}
.page-head p {
  color: var(--muted);
  margin-top: 4px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}
.crumbs .i {
  width: 14px;
  height: 14px;
}

/* ---------- catálogo ---------- */
.catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  padding-top: 20px;
  align-items: start;
}
.filters {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.filters-head {
  display: none;
}
.filters-body {
  padding: 8px 24px 20px;
}
.f-group {
  padding: 16px 0;
  display: grid;
  gap: 10px;
}
.f-group + .f-group {
  border-top: 1px solid var(--line);
}
.f-group > h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
.f-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.f-list {
  display: grid;
  gap: 2px;
}
.f-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.f-opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--red);
}
.f-opt small {
  color: var(--muted);
  font-size: 0.9rem;
}
.f-opt.is-off {
  color: #a3a5a9;
}
.filters-foot {
  display: none;
}
.results-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.results-count {
  font-size: 0.95rem;
  margin-right: auto;
}
.results-count b {
  font-weight: 600;
}
.results-count span {
  color: var(--muted);
  padding-left: 8px;
  margin-left: 6px;
  border-left: 1px solid var(--line-2);
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--r);
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--text);
}
.view-toggle button[aria-pressed="true"] {
  background: #e2e2df;
}
.results-head .select {
  width: auto;
  min-width: 170px;
  height: 40px;
}
.results-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}
.results-search .i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.results-search .input {
  height: 40px;
  padding-left: 36px;
}
.filter-btn {
  display: none;
}
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 16px;
}
.active-chips:empty {
  display: none;
}
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.empty .sil {
  width: 180px;
  margin: 0 auto 16px;
  opacity: 0.3;
}
.empty h3 {
  font-size: 1.3rem;
}
.empty p {
  color: var(--muted);
  margin: 6px auto 18px;
  max-width: 44ch;
}
.empty .btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}
.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 0.92rem;
  display: grid;
  place-items: center;
}
.pager button:hover:not(:disabled) {
  border-color: var(--text);
}
.pager button[aria-current="page"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pager .i {
  width: 16px;
  height: 16px;
}

/* ---------- secciones de inicio ---------- */
.section {
  padding-top: 56px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 1.7rem;
}
.section-head p {
  color: var(--muted);
  margin-top: 4px;
  max-width: 64ch;
}
.panel {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.about h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.about h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.about p {
  color: #4a4d52;
  font-size: 0.95rem;
}
.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--red);
}
.faq summary .i {
  transition: transform 0.2s;
  color: var(--muted);
}
.faq details[open] summary .i {
  transform: rotate(180deg);
}
.faq details p {
  color: #4a4d52;
  padding: 0 32px 16px 0;
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
}
.contact h2 {
  font-size: 1.45rem;
}
.contact-items {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.contact-items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-items .i {
  color: var(--red);
  margin-top: 3px;
}
.contact-items b {
  display: block;
  font-weight: 600;
}
.contact-items a:hover {
  color: var(--red);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}

/* ---------- simulador ---------- */
.sim-host {
  container-type: inline-size;
}
@container (max-width: 760px) {
  .sim {
    grid-template-columns: 1fr !important;
  }
}
.sim {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}
.sim-form {
  display: grid;
  gap: 18px;
  align-content: start;
}
.sim-row {
  display: grid;
  gap: 6px;
}
.sim-row header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.sim-row output {
  font-weight: 600;
}
.sim-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sim-result {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sim-result > span {
  color: var(--muted);
  font-size: 0.92rem;
}
.sim-amount {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.sim-amount small {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}
.sim-breakdown {
  display: grid;
  margin: 14px 0 18px;
  font-size: 0.93rem;
}
.sim-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.sim-breakdown dt {
  color: var(--muted);
}
.sim-breakdown dd {
  margin: 0;
  font-weight: 600;
}
.sim-result .btn {
  align-self: stretch;
}
.sim-result .fine {
  margin-top: 10px;
}

/* ---------- ficha de auto ---------- */
.detail-top {
  padding: 18px 0 16px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.detail-title h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
}
.detail-title .version {
  font-size: 1.1rem;
  margin-top: 2px;
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.93rem;
  color: var(--muted);
}
.detail-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-tags .i {
  width: 17px;
  height: 17px;
}
.detail-actions {
  display: flex;
  gap: 8px;
}
.detail-actions .btn {
  height: 38px;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 500;
}
.detail-actions [data-compare].is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: clamp(360px, 44vw, 540px);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.mosaic button {
  position: relative;
  border: 0;
  padding: 0;
  background: #ddd;
  overflow: hidden;
}
.mosaic button:first-child {
  grid-row: span 2;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}
.mosaic button:hover img {
  filter: brightness(0.9);
}
.mosaic-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}
.mosaic-video {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
}
.mosaic-all .btn,
.mosaic-video .btn {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.mosaic-all .btn:hover,
.mosaic-video .btn:hover {
  background: #efefec;
}
.mosaic-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.carousel {
  display: none;
}
.nophoto {
  display: grid;
  place-items: center;
  gap: 10px;
  aspect-ratio: 16 / 7;
  border-radius: var(--r);
  background: #e7e7e4;
  color: var(--muted);
  padding: 24px;
}
.nophoto .sil {
  width: min(480px, 70%);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}
.block {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 28px);
}
.block + .block {
  margin-top: 16px;
}
.block > h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.spec {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.spec .i {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--muted);
  margin-top: 2px;
}
.spec dt {
  font-size: 0.82rem;
  color: var(--muted);
}
.spec dd {
  margin: 0;
  font-weight: 600;
}
.equip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}
.equip h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.equip li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
  font-size: 0.95rem;
}
.equip .i {
  color: var(--ok);
  width: 17px;
  height: 17px;
  margin-top: 3px;
}
.desc {
  max-width: 72ch;
}
.video-block {
  display: grid;
  grid-template-columns: minmax(0, 240px) 1fr;
  gap: 24px;
  align-items: start;
}
.video-block video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--ink);
}
.video-block h2 {
  font-size: 1.35rem;
}
.video-block p {
  color: #4a4d52;
  margin-top: 8px;
}
.video-block .btn {
  margin-top: 16px;
}
.price-card {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.price-top {
  padding: 20px 22px 16px;
}
.price-top > span {
  font-size: 0.88rem;
  color: var(--muted);
}
.price-big {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.price-cuota {
  margin-top: 4px;
  font-size: 0.93rem;
  color: var(--muted);
}
.price-cuota strong {
  color: var(--text);
}
.price-actions {
  display: grid;
  gap: 8px;
  padding: 0 22px 20px;
}
.price-facts {
  border-top: 1px solid var(--line);
  padding: 16px 22px 18px;
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
}
.price-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-facts .i {
  color: var(--muted);
  margin-top: 2px;
}
.price-facts b {
  font-weight: 600;
  display: block;
}
.price-facts small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}
.mobile-buy {
  display: none;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0b0c0d;
  color: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 16px;
}
.lb-head p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}
.lb-head b {
  color: #fff;
  margin-right: 10px;
  font-weight: 600;
}
.lb-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.lb-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
}
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lb-nav .i {
  width: 26px;
  height: 26px;
}
.lb-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 14px 14px;
  justify-content: safe center;
  scrollbar-width: thin;
}
.lb-thumbs button {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #222;
  opacity: 0.5;
}
.lb-thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: #fff;
}
.lb-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- vender ---------- */
.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.mode {
  text-align: left;
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  align-content: start;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.mode::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  grid-row: span 2;
}
.mode:hover {
  border-color: var(--text);
}
.mode[aria-pressed="true"] {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.mode[aria-pressed="true"]::before {
  border: 5px solid var(--red);
}
.mode h3 {
  font-size: 1.1rem;
}
.mode p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}
.sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  padding-top: 16px;
}
.stepper {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.stepper li {
  flex: 1;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.stepper li::before {
  content: "";
  height: 3px;
  background: var(--line);
}
.stepper li.is-done::before,
.stepper li.is-current::before {
  background: var(--red);
}
.stepper li.is-current {
  color: var(--text);
  font-weight: 600;
}
.form-step h2 {
  font-size: 1.4rem;
}
.form-step > p {
  color: var(--muted);
  margin-top: 2px;
}
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.field.is-invalid .input,
.field.is-invalid .select {
  border-color: var(--red);
}
.field .err {
  font-size: 0.82rem;
  font-style: normal;
  color: var(--red);
  display: none;
}
.field.is-invalid .err {
  display: block;
}
.summary {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.summary div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.summary div:last-child {
  border-bottom: 0;
}
.summary dt {
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-weight: 500;
}
.side-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.side-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.side-list .i {
  color: var(--ok);
  margin-top: 3px;
}
.side-list small {
  display: block;
  color: var(--muted);
}
.plain-steps {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  counter-reset: ps;
}
.plain-steps li {
  counter-increment: ps;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  font-size: 0.95rem;
}
.plain-steps li::before {
  content: counter(ps) ".";
  font-weight: 600;
}
.plain-steps small {
  display: block;
  color: var(--muted);
}

/* ---------- comparador ---------- */
.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}
.compare-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.cmp-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  white-space: nowrap;
}
.cmp-count {
  color: var(--muted);
  font-weight: 400;
}
.cmp-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
}
.cmp-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 5px 6px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  min-width: 0;
  font-size: 0.88rem;
}
.cmp-slot.is-empty {
  border-style: dashed;
  justify-content: center;
  color: var(--muted);
}
.cmp-thumb {
  position: relative;
  width: 56px;
  height: 40px;
  border-radius: 3px;
  overflow: hidden;
  flex: none;
  background: #e7e7e4;
  display: grid;
  place-items: center;
}
.cmp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmp-thumb .sil {
  width: 90%;
}
.cmp-name {
  display: grid;
  min-width: 0;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp-name small {
  color: var(--muted);
  font-weight: 400;
}
.cmp-remove {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.cmp-remove:hover {
  background: var(--bg);
  color: var(--text);
}
.cmp-remove .i {
  width: 15px;
  height: 15px;
}
.cmp-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.table-scroll {
  overflow-x: auto;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.94rem;
}
.cmp-table th,
.cmp-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp-table tbody th {
  color: var(--muted);
  font-weight: 500;
  width: 150px;
}
.cmp-table td.is-best {
  color: var(--ok);
  font-weight: 600;
}
.cmp-head {
  display: grid;
  gap: 2px;
}
.cmp-head:hover strong {
  color: var(--red);
}
.cmp-head-img {
  max-width: 220px;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: #e7e7e4;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.cmp-head-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmp-head-img .sil {
  width: 84%;
}
.cmp-head span:last-child {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.86rem;
}

/* ---------- modal ---------- */
.modal {
  border: 0;
  padding: 0;
  border-radius: var(--r);
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.modal-wide {
  width: min(960px, calc(100vw - 24px));
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 10px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-head h2 {
  font-size: 1.25rem;
}
.modal-body {
  padding: 18px 22px 22px;
}
.modal-body .form-grid {
  margin-top: 0;
}

/* ---------- toast & WhatsApp flotante ---------- */
#toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
.has-compare #toasts {
  bottom: 96px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.in {
  opacity: 1;
  transform: none;
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.wa-float:hover {
  background: #1a9149;
}
.wa-float .i {
  width: 26px;
  height: 26px;
}
.has-compare .wa-float {
  bottom: 92px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 58px;
  }
  .brand img {
    height: 46px;
  }
  .main-nav,
  .hide-sm {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .header-actions {
    margin-left: auto;
  }
  .contact,
  .about-cols {
    grid-template-columns: 1fr;
  }

  /* catálogo: filtros como panel inferior */
  .catalog {
    grid-template-columns: 1fr;
  }
  .filter-btn {
    display: inline-flex;
  }
  .filters {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    max-height: 88dvh;
    border-radius: 8px 8px 0 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    display: flex;
    flex-direction: column;
  }
  .filters.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }
  .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
  }
  .filters-head h2 {
    font-size: 1.2rem;
  }
  .filters-body {
    overflow-y: auto;
    flex: 1;
    padding: 4px 20px 12px;
  }
  .filters-foot {
    display: flex;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .filters-foot .btn {
    flex: 1;
  }
  .scrim {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(0, 0, 0, 0.45);
  }
  .results-search {
    max-width: none;
    order: 5;
    flex-basis: 100%;
  }

  /* ficha */
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .price-card {
    position: static;
  }
  .mosaic {
    display: none;
  }
  .carousel {
    display: block;
    position: relative;
    margin: 0 calc(var(--gutter) * -1);
  }
  .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 4px;
  }
  .carousel-track::-webkit-scrollbar {
    display: none;
  }
  .carousel-track button {
    flex: 0 0 86%;
    aspect-ratio: 3 / 4;
    max-height: 68vh;
    scroll-snap-align: center;
    border: 0;
    padding: 0;
    background: #ddd;
  }
  .carousel-track button:first-child {
    margin-left: var(--gutter);
  }
  .carousel-track button:last-child {
    margin-right: var(--gutter);
  }
  .carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .carousel-count {
    position: absolute;
    right: calc(var(--gutter) + 10px);
    bottom: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(17, 18, 20, 0.8);
    color: #fff;
    font-size: 0.82rem;
  }
  .mobile-buy {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
  }
  .mobile-buy b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
  }
  .mobile-buy small {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .page-detail {
    padding-bottom: 70px;
  }
  .page-detail .wa-float {
    display: none;
  }
  .page-detail.has-compare .compare-bar {
    bottom: 64px;
  }
  .sell-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .cards.is-list .card {
    grid-template-columns: 1fr;
  }
  .cards.is-list .card-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .modes {
    grid-template-columns: 1fr;
  }
  .equip,
  .video-block,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .specs {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .hide-xs {
    display: none;
  }
  .video-block video {
    max-width: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .compare-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cmp-actions {
    margin-left: auto;
  }
  .cmp-slots {
    order: 2;
    flex-basis: 100%;
  }
  .cmp-slot {
    height: 46px;
  }
  .cmp-slot .cmp-name small,
  .cmp-slot.is-empty {
    display: none;
  }
  .cmp-thumb {
    width: 42px;
    height: 32px;
  }
  body.has-compare {
    padding-bottom: 130px;
  }
  .has-compare .wa-float,
  .has-compare #toasts {
    bottom: 140px;
  }
  .summary div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .detail-actions .btn span {
    display: none;
  }
  .lb-nav {
    display: none;
  }
  .results-head .select {
    min-width: 0;
    flex: 1;
  }
  .topbar .wrap {
    font-size: 0.8rem;
    padding-right: 40px;
  }

  /* promociones: tarjetas bajas que se deslizan, asomando la siguiente */
  .promos {
    margin-top: 12px;
  }
  .promo-track {
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .promo-slide {
    flex-basis: 86%;
    grid-template-columns: 40% minmax(0, 1fr);
  }
  .promo-media {
    order: -1;
  }
  .promo-text {
    padding: 10px 12px;
    gap: 2px;
  }
  .promo-text small {
    font-size: 0.72rem;
  }
  .promo-title {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .promo-meta,
  .promo-price span,
  .promo-slide.is-car .btn,
  .promo-nav {
    display: none;
  }
  .promo-row {
    margin-top: 4px;
  }
  .promo-text .promo-price {
    font-size: 1.3rem;
  }
  .promo-slide .btn {
    height: auto;
    padding: 0;
    background: none;
    border: 0;
    color: #ff5a5f;
    font-size: 0.85rem;
  }
  .promo-rate b {
    font-size: 1.7rem;
  }
  .promo-rate span {
    font-size: 0.7rem;
  }
  .promo-dots {
    margin-top: 8px;
  }
  /* en celular la tarjeta "Compramos tu auto" no interrumpe la lista de autos */
  .cards .promo-card {
    display: none;
  }
}
