/*
 * AutoClass — sitio público. Todo en oscuro: fondo negro grafito y letra
 * blanca, también en las secciones de contenido (lo pidió el cliente).
 *
 * La identidad sale del logotipo: el grafito y los plateados del auto, las
 * letras anchas de "AUTO/CLASS" (títulos en Archivo expandida) y su barra
 * inclinada, que aquí es el trazo rojo de cada rótulo y el ángulo de los
 * reflejos sobre los fondos oscuros. El rojo solo marca; nunca llena una
 * superficie grande. Las fotos de los autos ponen el color.
 */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b0d10;
  --night-2: #12161b;
  --night-3: #1b2027;
  --night-line: rgba(255, 255, 255, 0.11);
  --silver: #c5cbd3;
  --silver-2: #8f98a5;
  /* Texto y fondos de las secciones de contenido. */
  --ink: #f2f4f7;
  --ink-2: #aeb6c1;
  --ink-3: #7d8693;
  --paper: #0b0d10;
  --mist: #101419;
  --surface: #14181e;
  --surface-2: #1b2027;
  --field: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --red: #e11d2a;
  --red-2: #c1121f;
  --wa: #0f7d43;
  --wa-2: #0b6836;
  --ok: #0f7b57;
  --warn: #8a5300;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  --top: 68px;
  /* El ángulo de la barra del logo. */
  --slash: -14deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(225, 29, 42, 0.2);
}

.icon {
  flex: none;
}

.wrap {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ Rótulos */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 1px;
  background: var(--red);
  transform: skewX(var(--slash));
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.head h2,
.split__aside h2,
.closing h2 {
  font-size: clamp(1.8rem, 1.25rem + 2.3vw, 2.85rem);
}

.head__lead {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.075rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s, gap 0.25s var(--ease);
}

.link:hover {
  gap: 12px;
  border-color: var(--ink);
}

.link--light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.link--light:hover {
  border-color: #fff;
}

.textlink {
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 600;
}

.textlink:hover {
  border-color: var(--ink);
}

/* ------------------------------------------------------------------ Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

/* Un brillo cruza el botón al pasar el cursor, como la luz sobre la pintura. */
.btn--light,
.btn--dark,
.btn--wa,
.btn--red {
  position: relative;
  overflow: hidden;
}

.btn--light::after,
.btn--dark::after,
.btn--wa::after,
.btn--red::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
  pointer-events: none;
}

.btn--light::after,
.btn--dark::after {
  background: linear-gradient(104deg, transparent 32%, rgba(15, 19, 24, 0.1) 50%, transparent 68%);
}

.btn--light:hover::after,
.btn--dark:hover::after,
.btn--wa:hover::after,
.btn--red:hover::after {
  transform: translateX(130%);
}

.btn .icon:last-child:not(:only-child) {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon:last-child:not(:only-child) {
  transform: translateX(3px);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.btn--light {
  background: #fff;
  color: var(--night);
}

.btn--light:hover {
  background: var(--silver);
}

.btn--dark {
  background: #fff;
  color: var(--night);
}

.btn--dark:hover {
  background: var(--silver);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.btn--outline,
.btn--ghost-dark {
  border-color: var(--line-2);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover,
.btn--ghost-dark:hover {
  border-color: var(--ink);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
}

.btn--wa:hover {
  background: var(--wa-2);
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: var(--red-2);
}

/* ----------------------------------------------------------------- Cabecera */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--night-line);
  color: #fff;
}

/*
 * El fondo translúcido va en una capa aparte. Si el desenfoque estuviera en
 * la propia cabecera, el menú del teléfono (que es fijo y ocupa la pantalla)
 * quedaría encerrado dentro de ella.
 */
.top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 13, 16, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background-color 0.35s, box-shadow 0.35s;
}

/* Al bajar por la página la cabecera se asienta: más opaca y con sombra. */
.top.is-scrolled::before {
  background: rgba(11, 13, 16, 0.96);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--top);
  transition: height 0.4s var(--ease);
}

.top__logo img {
  width: auto;
  height: 44px;
  transition: height 0.4s var(--ease);
}

.top__burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: var(--radius);
  color: #fff;
}

.top__burger-close,
.top__burger[aria-expanded='true'] .top__burger-open {
  display: none;
}

.top__burger[aria-expanded='true'] .top__burger-close {
  display: block;
}

.top__nav {
  position: fixed;
  inset: var(--top) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--night);
  /* Cerrado: fuera de la vista, del foco y de los toques. */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.45s var(--ease), visibility 0s 0.3s;
}

.top__nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* Los enlaces entran uno tras otro. */
.top__nav li,
.top__contact {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.top__nav.is-open li,
.top__nav.is-open .top__contact {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
  transition-delay: calc(90ms + var(--i, 6) * 55ms);
}

.top__nav ul {
  display: flex;
  flex-direction: column;
}

.top__nav li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: 1.4rem;
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: -0.01em;
}

.top__nav a[aria-current='page'] {
  color: #fff;
}

.top__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.top__contact .btn {
  min-height: 52px;
}

.top__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1040px) {
  :root {
    --top: 78px;
  }

  .top__logo img {
    height: 54px;
  }

  .top.is-scrolled .top__row {
    height: 64px;
  }

  .top.is-scrolled .top__logo img {
    height: 44px;
  }

  .top__burger {
    display: none;
  }

  .top__nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 36px;
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .top__nav li,
  .top__contact {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .top__nav ul {
    flex-direction: row;
    gap: 30px;
  }

  .top__nav li a {
    position: relative;
    padding: 8px 0;
    border: 0;
    color: var(--silver);
    font-size: 0.93rem;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: 0;
    transition: color 0.2s;
  }

  .top__nav li a:hover {
    color: #fff;
  }

  /* La barra roja crece bajo el enlace; en la página actual ya está puesta. */
  .top__nav li a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--red);
    transform: skewX(var(--slash)) scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.4s var(--ease);
  }

  .top__nav li a:hover::after,
  .top__nav li a[aria-current='page']::after {
    transform: skewX(var(--slash)) scaleX(1);
  }

  .top__contact {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .top__contact .btn {
    min-height: 40px;
  }

  .top__phone {
    font-size: 0.9rem;
  }
}

@media (min-width: 1040px) and (max-width: 1239px) {
  .top__phone {
    display: none;
  }
}

/* ----------------------------------------------------- Fondos oscuros y hero */

/* Reflejos inclinados como los de una carrocería bajo la luz del salón. */
.hero,
.pagehead,
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 90% at 88% -20%, #232a33 0%, rgba(35, 42, 51, 0) 58%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
}

.hero::before,
.pagehead::before,
.closing::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    linear-gradient(104deg, transparent 0 55%, rgba(255, 255, 255, 0.05) 55% 56%, transparent 56% 61%, rgba(255, 255, 255, 0.028) 61% 71%, transparent 71% 78%, rgba(255, 255, 255, 0.018) 78% 80%, transparent 80%),
    radial-gradient(48% 60% at 6% 108%, rgba(225, 29, 42, 0.16) 0%, rgba(225, 29, 42, 0) 70%);
  pointer-events: none;
}

.hero .eyebrow,
.pagehead .eyebrow,
.closing .eyebrow,
.section--night .eyebrow {
  color: var(--silver);
}

.hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(36px, 5vw, 56px);
}

/*
 * La foto de la portada. En teléfono y tableta va arriba y se funde con el
 * fondo: el texto empieza sobre su parte baja. En pantallas grandes se ancla a
 * la derecha y se funde hacia la izquierda, así el auto queda lejos del texto
 * y el título se lee sobre oscuro limpio.
 */
.hero--photo {
  padding-top: min(44vh, 350px);
  background: var(--night);
}

.hero__photo {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: min(66vh, 540px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 46%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 46%, transparent 100%);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  /* Llega un poco más cerca y se asienta, como al encender las luces del salón. */
  animation: asentar 3s var(--ease) both;
}

@keyframes asentar {
  from {
    opacity: 0.25;
    transform: scale(1.1);
  }
}

/* El velo: oscurece bajo la cabecera y donde va el texto. */
.hero.hero--photo::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 14%),
    linear-gradient(180deg, rgba(11, 13, 16, 0) 30%, rgba(11, 13, 16, 0.7) 56%, var(--night) 78%);
  animation: none;
}

@media (min-width: 1040px) {
  .hero--photo {
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: center;
    min-height: clamp(600px, 88vh, 920px);
    padding-top: clamp(56px, 8vw, 104px);
  }

  /* En pantallas grandes pero angostas la foto se corre más a la derecha (y se sale un poco): así el faro no toca el título. */
  .hero__photo {
    inset: 0 -14% 0 32%;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
  }

  .hero__photo img {
    object-position: 100% 34%;
  }

  .hero.hero--photo::before {
    background:
      linear-gradient(90deg, rgba(11, 13, 16, 0.94) 0%, rgba(11, 13, 16, 0.86) 30%, rgba(11, 13, 16, 0.4) 52%, rgba(11, 13, 16, 0) 72%),
      linear-gradient(0deg, rgba(11, 13, 16, 0.9) 0%, rgba(11, 13, 16, 0) 30%),
      linear-gradient(180deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 20%);
  }
}

@media (min-width: 1360px) {
  .hero__photo {
    inset: 0 0 0 22%;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.hero__grid > * {
  min-width: 0;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.75rem);
  font-stretch: 116%;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

.hero__lead {
  max-width: 50ch;
  margin-top: 24px;
  color: #d5dae1;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.24rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 12px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.finder label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s;
}

.finder label:hover,
.finder label:focus-within {
  background: rgba(255, 255, 255, 0.1);
}

.finder label:last-of-type {
  grid-column: 1 / -1;
}

.finder span {
  color: var(--silver-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.finder select {
  width: 100%;
  padding: 0 22px 0 0;
  border: 0;
  outline: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5cbd3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.finder option {
  background: var(--night-2);
  color: #fff;
}

.finder .btn {
  grid-column: 1 / -1;
  min-height: 56px;
}

@media (min-width: 760px) {
  .finder {
    grid-template-columns: 1fr 1fr 1fr auto;
  }

  .finder label:last-of-type,
  .finder .btn {
    grid-column: auto;
  }

  .finder .btn {
    padding-inline: 34px;
  }
}


.brands {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brands__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}

.brands p {
  flex: none;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brands ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}

.brands ul::-webkit-scrollbar {
  display: none;
}

.brands li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s;
}

.brands li a:hover {
  border-color: var(--ink);
}

.brands li span {
  color: var(--ink-3);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- Secciones */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 44px) clamp(64px, 9vw, 112px);
}

.section--mist {
  background: var(--mist);
}

.section--night {
  background: var(--night);
  color: #fff;
}

.section--night .head__lead {
  color: var(--silver);
}

/*
 * Banners: una foto a lo ancho entre secciones de la portada, para que no sea
 * todo texto. En teléfono la foto es alta (4:5) y la frase va abajo; en
 * pantallas grandes es una franja y la frase va a un lado, sobre un velo.
 */
.banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(125vw, 600px);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.banner__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.banner__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0) 20%),
    linear-gradient(180deg, rgba(11, 13, 16, 0) 38%, rgba(11, 13, 16, 0.78) 74%, rgba(11, 13, 16, 0.94) 100%);
  pointer-events: none;
}

.banner__body {
  padding-block: 48px clamp(40px, 6vw, 56px);
}

.banner__title {
  max-width: 15ch;
  font-size: clamp(2.05rem, 1.15rem + 3.7vw, 4rem);
  font-stretch: 116%;
  line-height: 1.04;
  letter-spacing: -0.026em;
}

.banner__text {
  max-width: 42ch;
  margin-top: 16px;
  color: #d5dae1;
  font-size: clamp(1.03rem, 0.96rem + 0.3vw, 1.2rem);
}

.banner .btn {
  margin-top: 28px;
}

/* En teléfono, cuando lo importante de la foto está abajo, la frase va arriba. */
@media (max-width: 639px) {
  .banner--top {
    align-items: flex-start;
  }

  .banner--top::before {
    background:
      linear-gradient(0deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0) 20%),
      linear-gradient(180deg, rgba(11, 13, 16, 0.94) 0%, rgba(11, 13, 16, 0.78) 30%, rgba(11, 13, 16, 0) 64%);
  }

  .banner--top .banner__body {
    padding-block: clamp(40px, 6vw, 56px) 48px;
  }
}

@media (min-width: 640px) {
  .banner {
    min-height: clamp(420px, 60vw, 560px);
  }

  .banner__photo img {
    object-position: var(--focus, 50% 50%);
  }
}

@media (min-width: 1040px) {
  .banner {
    align-items: center;
    min-height: clamp(480px, 42vw, 680px);
  }

  .banner::before {
    background:
      linear-gradient(90deg, rgba(11, 13, 16, 0.88) 0%, rgba(11, 13, 16, 0.6) 32%, rgba(11, 13, 16, 0) 62%),
      linear-gradient(0deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 30%),
      linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0) 22%);
  }

  .banner--end::before {
    background:
      linear-gradient(270deg, rgba(11, 13, 16, 0.88) 0%, rgba(11, 13, 16, 0.6) 32%, rgba(11, 13, 16, 0) 62%),
      linear-gradient(0deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 30%),
      linear-gradient(180deg, rgba(11, 13, 16, 0.5) 0%, rgba(11, 13, 16, 0) 22%);
  }

  .banner--end .banner__body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
}

/* «Ver todos» al pie de los destacados. */
.more {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4.5vw, 52px);
}

.more .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .more .btn {
    width: auto;
    min-width: 260px;
  }
}

.split {
  display: grid;
  gap: 40px;
}

.split__aside .head__lead {
  margin-top: 18px;
}

.split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 104px);
    align-items: start;
  }

  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .split__aside {
    position: sticky;
    top: calc(var(--top) + 32px);
  }
}

/* ------------------------------------------------------------ Tarjeta de auto */

.cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.car {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.car:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.car__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car__link:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-lg);
}

.car__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.car__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

.car:hover .car__media img {
  transform: scale(1.045);
}

.car__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(11, 13, 16, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.car__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 20px;
}

.car__brand {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.car__name {
  margin-top: 6px;
  font-size: 1.24rem;
  font-stretch: 108%;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.car__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-block: 10px 18px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.car__specs li:not(:last-child)::after {
  content: '·';
  margin-inline: 8px;
  color: var(--ink-3);
}

.car__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.car__price {
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 106%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.car__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s, gap 0.25s var(--ease);
}

.car:hover .car__go {
  gap: 10px;
  color: var(--ink);
}

.car--sold .car__media img,
.car--sold .nophoto {
  filter: grayscale(1) contrast(0.92);
  opacity: 0.72;
}

.car--sold .car__price {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
  color: var(--night);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(11, 13, 16, 0.2);
}

.tag--sold {
  background: var(--night);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.tag--reserved {
  background: #ffedc7;
  color: #6b4100;
}

/* El lugar de la foto cuando una publicación aún no tiene. */
.nophoto {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  background:
    linear-gradient(104deg, transparent 0 52%, rgba(255, 255, 255, 0.055) 52% 54%, transparent 54% 60%, rgba(255, 255, 255, 0.03) 60% 74%, transparent 74%),
    radial-gradient(90% 120% at 80% -10%, #2a323c 0%, rgba(42, 50, 60, 0) 60%),
    linear-gradient(160deg, #1a1f26 0%, #0c0e11 100%);
}

.nophoto__brand {
  padding-inline: 8%;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.7rem;
  font-size: clamp(1.15rem, 9cqw, 3.2rem);
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f1f3f6 0%, #8d96a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nophoto__note {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.nophoto--large .nophoto__note {
  bottom: 22px;
  font-size: 11.5px;
}

.empty {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty h3 {
  font-size: 1.5rem;
}

.empty p {
  margin-top: 12px;
  color: var(--ink-2);
}

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* -------------------------------------------------------------- Pasos y listas */

.steps {
  display: grid;
  border-top: 1px solid var(--line-2);
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-2);
}

.step__n {
  padding-top: 5px;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 1.32rem;
}

.step p {
  max-width: 54ch;
  margin-top: 8px;
  color: var(--ink-2);
}

.steps--cards {
  gap: 14px;
  border: 0;
}

.steps--cards .step {
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.duo {
  display: grid;
  gap: 20px;
}

.duo__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 4.4vw, 52px);
  border: 1px solid var(--night-line);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--night-3) 0%, var(--night-2) 100%);
}

.duo__card h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem);
}

.duo__card > p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--silver);
  font-size: 1.08rem;
}

.duo__list {
  display: grid;
  gap: 14px;
  margin-block: 30px 36px;
  padding-top: 28px;
  border-top: 1px solid var(--night-line);
  width: 100%;
}

.duo__list li {
  display: flex;
  gap: 12px;
  color: var(--silver);
}

.duo__list .icon {
  margin-top: 3px;
  color: var(--red);
}

.duo__list strong {
  color: #fff;
  font-weight: 600;
}

.duo__card .btn {
  margin-top: auto;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.perk {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.perk__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.perk h3 {
  font-size: 1.16rem;
}

.perk p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.block .perks {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.block .perk {
  padding: 22px;
}

.flow {
  display: grid;
  gap: 16px;
  counter-reset: paso;
}

.flow li {
  padding: 30px 28px 32px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.flow span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow h3 {
  font-size: 1.28rem;
}

.flow p {
  margin-top: 10px;
  color: var(--silver);
}

@media (min-width: 860px) {
  .flow {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- Testimonios */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.quotes--wall {
  display: block;
  columns: 3 320px;
  column-gap: 18px;
}

.quotes--wall .quote {
  margin-bottom: 18px;
  break-inside: avoid;
}

.quote {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.quote::before {
  content: '“';
  height: 38px;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.quote blockquote {
  flex: 1;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.65;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quote__photo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.quote__photo--initials {
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quote figcaption span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.quote strong {
  font-weight: 600;
}

.quote small {
  color: var(--ink-3);
  font-size: 0.84rem;
}

/* ------------------------------------------------------------------ Preguntas */

.faq {
  border-top: 1px solid var(--line-2);
}

.faq__item {
  border-bottom: 1px solid var(--line-2);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--ink-3);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] summary .icon {
  transform: rotate(180deg);
}

/* Mientras se cierra, la flecha ya vuelve a su sitio. */
.faq__item.is-closing summary .icon {
  transform: none;
}

.faq summary:hover .icon {
  color: var(--ink);
}

.faq__answer {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------- Cierre */

.closing {
  padding-block: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--night-line);
}

.closing--soft {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}

.closing__row {
  display: grid;
  gap: 32px;
  align-items: end;
}

.closing p:not(.eyebrow) {
  max-width: 50ch;
  margin-top: 16px;
  color: var(--silver);
  font-size: 1.1rem;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

@media (min-width: 900px) {
  .closing__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ------------------------------------------------------------------------ Pie */

.foot {
  background: var(--night);
  border-top: 1px solid var(--night-line);
  color: var(--silver);
  font-size: 0.95rem;
}

.foot__grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 80px);
}

.foot__brand img {
  width: auto;
  height: 68px;
}

.foot__brand p {
  max-width: 32ch;
  margin-top: 18px;
}

.foot__social {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.foot__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.foot__social a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.foot h2 {
  margin-bottom: 18px;
  color: var(--silver-2);
  font-size: 11.5px;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.foot li + li {
  margin-top: 11px;
}

.foot__social li + li {
  margin-top: 0;
}

.foot a {
  transition: color 0.2s;
}

.foot a:hover {
  color: #fff;
}

.foot__contact li {
  display: flex;
  gap: 12px;
}

.foot__contact .icon {
  margin-top: 4px;
  color: var(--silver-2);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  color: var(--silver-2);
  font-size: 0.85rem;
}

@media (min-width: 820px) {
  .foot__grid {
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 64px;
  }
}

.wa {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 28px -8px rgba(11, 13, 16, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease), background-color 0.2s;
}

.wa.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa:hover {
  background: var(--wa-2);
}

/* Un anillo que se abre cada tanto, para que el botón se note sin molestar. */
.wa::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--wa);
  border-radius: 50%;
  animation: pulso 3.6s ease-out infinite;
  pointer-events: none;
}

@keyframes pulso {
  0%,
  35% {
    opacity: 0.7;
    transform: scale(1);
  }

  85%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* --------------------------------------------------------- Páginas interiores */

.pagehead {
  padding-block: clamp(52px, 7vw, 96px) clamp(44px, 6vw, 80px);
  border-bottom: 1px solid var(--night-line);
}

.pagehead h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4rem);
  font-stretch: 116%;
  line-height: 1.04;
  letter-spacing: -0.026em;
}

.pagehead__lead {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--silver);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
}

.pagehead--photo {
  background: linear-gradient(90deg, rgba(11, 13, 16, 0.94) 0%, rgba(11, 13, 16, 0.7) 55%, rgba(11, 13, 16, 0.35) 100%), var(--photo) center / cover no-repeat, var(--night);
}

.pagehead--photo::before {
  display: none;
}

.pagehead--center {
  padding-block: clamp(88px, 13vw, 168px);
  text-align: center;
}

.pagehead--center h1,
.pagehead--center .pagehead__lead {
  margin-inline: auto;
}

.pagehead__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* -------------------------------------------------------------------- Filtros */

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter > span:first-child {
  padding-left: 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter select,
.filter__input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background-color: var(--field);
  font-size: 0.97rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filter select {
  padding: 0 34px 0 12px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8491' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.filter select:hover,
.filter__input:hover {
  border-color: var(--ink-3);
}

.filter select:focus,
.filter__input:focus-within {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Un filtro en uso se nota sin leerlo. */
.filter select.is-set {
  border-color: var(--ink);
  font-weight: 600;
}

.filter--search {
  grid-column: 1 / -1;
}

.filter__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink-3);
}

.filter__input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 1rem;
}

.filter__input input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.filters__submit,
.filters__more {
  grid-column: 1 / -1;
  min-height: 46px;
}

.filters__more {
  display: none;
}

/* Con JavaScript los filtros se aplican solos: el botón sobra. */
.js .filters__submit {
  display: none;
}

@media (max-width: 759px) {
  .js .filters.is-compact .filter--extra {
    display: none;
  }

  .js .filters__more {
    display: inline-flex;
  }
}

@media (min-width: 760px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px;
  }

  .filter--search {
    grid-column: span 3;
  }
}

@media (min-width: 1100px) {
  .filters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .filter--search {
    grid-column: span 2;
  }

  .filters__submit {
    grid-column: auto;
    align-self: end;
  }
}

.results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-block: 28px 22px;
}

.results__count {
  color: var(--ink-2);
  font-size: 0.97rem;
}

.results__count strong {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.chips a:hover {
  background: rgba(255, 255, 255, 0.13);
}

.chips a.chips__clear {
  padding: 6px 4px;
  background: none;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-results] {
  transition: opacity 0.2s;
}

[data-results].is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* ------------------------------------------------------------ Ficha del auto */

.crumbs {
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.87rem;
}

.crumbs nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.crumbs a {
  color: var(--ink-2);
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  text-overflow: ellipsis;
}

.detail {
  display: grid;
  gap: 28px;
  padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 104px);
}

.detail > * {
  min-width: 0;
}

@media (min-width: 1040px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) 388px;
    grid-template-areas: 'gallery side' 'blocks side';
    column-gap: clamp(36px, 4.5vw, 64px);
    row-gap: 0;
  }

  .detail__gallery {
    grid-area: gallery;
  }

  .detail__blocks {
    grid-area: blocks;
  }

  .detail__side {
    grid-area: side;
  }

  .buy {
    position: sticky;
    top: calc(var(--top) + 24px);
  }
}

.gallery__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.7s var(--ease);
}

/* Entre una foto y la siguiente: se va, y la nueva llega asentándose. */
.gallery__open img.is-changing {
  opacity: 0;
  transform: scale(1.035);
}

.gallery__stage .tag {
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  font-size: 11.5px;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--night);
  box-shadow: 0 4px 16px -4px rgba(11, 13, 16, 0.4);
  transform: translateY(-50%);
  transition: background-color 0.2s, transform 0.25s var(--ease);
}

.gallery__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.gallery__nav--prev {
  left: 14px;
}

.gallery__nav--next {
  right: 14px;
}

.gallery__counter,
.gallery__zoom {
  position: absolute;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(11, 13, 16, 0.72);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gallery__counter {
  right: 14px;
}

.gallery__zoom {
  left: 14px;
  padding: 0 8px;
}

.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.gallery__thumbs li {
  flex: none;
  scroll-snap-align: start;
}

.gallery__thumbs button {
  display: block;
  width: 104px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.gallery__thumbs button:hover {
  opacity: 1;
}

.gallery__thumbs button[aria-current='true'] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumbs {
  padding: 4px;
  margin-inline: -4px;
}

.buy {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.buy h1 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.15rem);
  line-height: 1.12;
}

.buy__specs {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.buy__summary {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.5;
}

.buy__price {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.buy__amount,
.buy__sold {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
  font-weight: 700;
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.buy__hint {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.buy__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.buy__actions .btn {
  width: 100%;
}

.buy__meta {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
}

.buy__meta li {
  display: flex;
  gap: 10px;
}

.buy__meta .icon {
  margin-top: 3px;
  color: var(--ink-3);
}

.buy__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.buy__share:hover {
  color: var(--ink);
}

.block {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.block h2 {
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.specs > div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.specs dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.specs dt .icon {
  color: var(--ink-3);
}

.specs dd {
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 1.05em;
}

.prose--lead {
  color: var(--ink);
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.32rem);
  line-height: 1.55;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px 28px;
}

.checks li {
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.checks .icon {
  margin-top: 4px;
  color: var(--red);
}

/* ---------------------------------------------------------------- Formularios */

.card {
  padding: clamp(22px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card__title {
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.form__grid {
  display: grid;
  gap: 16px;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span {
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--field);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 116px;
  padding-block: 12px;
  line-height: 1.5;
  resize: vertical;
}

.field select {
  padding-right: 36px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8491' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  -webkit-appearance: none;
  appearance: none;
}

.field option,
.filter option {
  background: var(--surface);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f7884;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.field [aria-invalid='true'] {
  border-color: var(--red);
}

@media (min-width: 620px) {
  .form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .form__grid .wide,
  .form__grid .field:has(.wide) {
    grid-column: 1 / -1;
  }
}

.form__status {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: #ff6b75;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}

.form__actions .btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.form__note {
  color: var(--ink-3);
  font-size: 0.87rem;
}

.form__done {
  padding: 12px 0 4px;
  animation: subir 0.7s var(--ease) both;
}

.form__done-icon {
  animation: latido 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* El visto bueno se dibuja de un trazo. */
.form__done-icon path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: trazo 0.5s var(--ease) 0.45s forwards;
}

@keyframes latido {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes trazo {
  to {
    stroke-dashoffset: 0;
  }
}

.form__done-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(65, 212, 154, 0.14);
  color: #41d49a;
}

.form__done h3 {
  font-size: 1.5rem;
}

.form__done p {
  margin-top: 10px;
  color: var(--ink-2);
}

.form__done .btn {
  margin-top: 24px;
}

.notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}

.notice--ok {
  background: rgba(65, 212, 154, 0.12);
  color: #7fe3b9;
}

.notice--error {
  background: rgba(225, 29, 42, 0.14);
  color: #ff8a93;
}

/* ------------------------------------------------------------------- Contacto */

.ways {
  border-top: 1px solid var(--line-2);
}

.ways li > * {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-2);
}

.ways li > a > .icon:last-child {
  margin-left: auto;
  color: var(--ink-3);
  transition: color 0.2s, transform 0.25s var(--ease);
}

.ways li > a:hover > .icon:last-child {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.ways__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.ways__icon--wa {
  background: var(--wa);
  color: #fff;
}

.ways li > * > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.ways small {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ways strong {
  margin-top: 3px;
  font-size: 1.12rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.ways em {
  color: var(--ink-2);
  font-size: 0.93rem;
  font-style: normal;
}

.map iframe {
  width: 100%;
  height: clamp(320px, 46vw, 480px);
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) grayscale(0.35) contrast(0.92);
}

/* ------------------------------------------------------- Fotos a pantalla llena */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #08090b;
  color: #fff;
  animation: aparecer 0.25s ease both;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.lightbox__title {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox__title small {
  margin-left: 10px;
  color: var(--silver-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background-color 0.2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Filas y columnas con tope: así el 100 % de la foto es el del escenario y no al revés. */
.lightbox__stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding-inline: 12px;
  touch-action: pan-y pinch-zoom;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.28s ease, transform 0.6s var(--ease);
  animation: acercar 0.5s var(--ease) backwards;
}

.lightbox__stage img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.lightbox.is-closing {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.lightbox__bar,
.lightbox__strip {
  animation: subir 0.5s var(--ease) 0.08s both;
}

@keyframes acercar {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__strip {
  display: flex;
  gap: 8px;
  justify-content: safe center;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
}

.lightbox__strip::-webkit-scrollbar {
  display: none;
}

.lightbox__strip button {
  flex: none;
  width: 72px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lightbox__strip button[aria-current='true'] {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff;
}

.lightbox__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .lightbox__nav {
    display: none;
  }
}

.toast {
  position: fixed;
  bottom: calc(26px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 130;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-size: 0.93rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  animation: aparecer 0.25s ease both;
}

@keyframes aparecer {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ Movimiento */

/*
 * Tres capas de movimiento, todas sobre `transform`, `opacity` y `clip-path`
 * (lo que el navegador anima sin volver a pintar la página):
 *
 *   1. Al cargar: la cabecera de cada página entra por piezas.
 *   2. Al bajar: lo que estaba más abajo aparece al llegar a la vista.
 *   3. Entre páginas: fundido, y la foto de una tarjeta se transforma en la
 *      galería de su ficha.
 *
 * Nada de esto es necesario para usar el sitio: sin JavaScript no hay nada
 * oculto, y con «reducir movimiento» activado en el equipo todo queda quieto.
 */

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes desde-derecha {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes desde-izquierda {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

/* ---- 1. Al cargar */

/* Cada palabra del título sube desde detrás de su propia línea. */
.word {
  display: inline-block;
  margin: -0.14em -0.05em -0.16em;
  padding: 0.14em 0.05em 0.16em;
  overflow: hidden;
  vertical-align: top;
}

.word > span {
  display: inline-block;
  animation: palabra 1s var(--ease) both;
  animation-delay: calc(120ms + var(--i) * 65ms);
}

@keyframes palabra {
  from {
    transform: translateY(115%);
  }
}

.hero .eyebrow,
.pagehead .eyebrow {
  animation: desde-izquierda 0.8s var(--ease) both;
}

.hero__lead,
.pagehead__lead {
  animation: subir 1s var(--ease) 0.5s both;
}

.hero__actions,
.pagehead__actions {
  animation: subir 1s var(--ease) 0.64s both;
}

.finder {
  animation: subir 1.1s var(--ease) 0.8s both;
}

.brands__row {
  animation: subir 0.9s var(--ease) 0.95s both;
}

.crumbs nav {
  animation: desde-izquierda 0.7s var(--ease) both;
}

.buy {
  animation: subir 0.9s var(--ease) 0.12s both;
}

.gallery__thumbs {
  animation: subir 0.8s var(--ease) 0.25s both;
}

.filters {
  animation: subir 0.8s var(--ease) 0.2s both;
}

/* Los reflejos del fondo se mecen despacio, y al entrar cruza un destello. */
.hero::before,
.pagehead::before,
.closing::before {
  animation: deriva 20s ease-in-out infinite alternate;
}

@keyframes deriva {
  from {
    transform: translate3d(-3%, 0, 0);
  }

  to {
    transform: translate3d(3%, 0, 0);
  }
}

.hero::after,
.pagehead::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 42%;
  background: linear-gradient(104deg, transparent 18%, rgba(255, 255, 255, 0.05) 44%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 56%, transparent 82%);
  transform: translateX(-110%);
  animation: destello 2.4s cubic-bezier(0.45, 0, 0.2, 1) 0.3s both;
  pointer-events: none;
}

@keyframes destello {
  to {
    transform: translateX(350%);
  }
}

/* La cinta de marcas en stock. */
.marquee {
  padding-block: clamp(22px, 3vw, 36px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--mist);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee + .section--mist {
  padding-top: clamp(40px, 6vw, 80px);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: desfile 60s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee li {
  display: flex;
  align-items: center;
  color: transparent;
  font-size: clamp(2rem, 1.1rem + 3.8vw, 4.4rem);
  font-weight: 700;
  font-stretch: 125%;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

/* Una de cada tres va rellena: da ritmo sin ruido. */
.marquee li:nth-child(3n + 1) {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.marquee li::after {
  content: '';
  width: 0.09em;
  height: 0.74em;
  margin-inline: clamp(20px, 3vw, 46px);
  border-radius: 1px;
  background: var(--red);
  transform: skewX(var(--slash));
}

/* La pista lleva la lista dos veces: al llegar a la mitad vuelve a empezar sin que se note. */
@keyframes desfile {
  to {
    transform: translateX(-50%);
  }
}

/* ---- 2. Al bajar */

/*
 * El JavaScript marca con `is-waiting` solo lo que queda por debajo de la
 * primera pantalla; al entrar en la vista cambia a `is-entering` mientras dura
 * el movimiento y luego quita las dos, para que cada pieza recupere sus
 * propias transiciones (el realce de una tarjeta al pasar el cursor).
 */
.reveal.is-waiting {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-entering {
  transition: opacity 0.9s var(--ease) var(--delay, 0ms), transform 0.9s var(--ease) var(--delay, 0ms);
}

/* Títulos de sección: la barra y el rótulo, luego el título sube tras su línea, luego el resto. */
.reveal--title.is-waiting {
  opacity: 1;
  transform: none;
}

.reveal--title.is-waiting .eyebrow {
  opacity: 0;
  transform: translateX(-16px);
}

.reveal--title.is-waiting h2 {
  clip-path: inset(-0.3em -0.3em 100% -0.3em);
  transform: translateY(0.55em);
}

.reveal--title.is-waiting :is(.head__lead, .link, .prose, .split__actions) {
  opacity: 0;
  transform: translateY(16px);
}

.reveal--title.is-entering .eyebrow {
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.reveal--title.is-entering h2 {
  clip-path: inset(-0.3em);
  transition: clip-path 1.05s var(--ease) 0.08s, transform 1.05s var(--ease) 0.08s;
}

.reveal--title.is-entering :is(.head__lead, .link, .prose, .split__actions) {
  transition: opacity 0.8s ease 0.26s, transform 0.9s var(--ease) 0.26s;
}

/* Tarjeta de auto: la foto llega un poco más grande y se asienta. */
.car.is-waiting .car__media img,
.car.is-waiting .nophoto {
  transform: scale(1.12);
}

.car.is-entering .car__media img,
.car.is-entering .nophoto {
  transition: transform 1.5s var(--ease) var(--delay, 0ms);
}

/* Banner: la frase sube tras su línea, luego el texto y el botón. */
.banner__body.is-waiting {
  opacity: 1;
  transform: none;
}

.banner__body.is-waiting .banner__title {
  clip-path: inset(-0.3em -0.3em 100% -0.3em);
  transform: translateY(0.55em);
}

.banner__body.is-waiting > :not(.banner__title) {
  opacity: 0;
  transform: translateY(18px);
}

.banner__body.is-entering .banner__title {
  clip-path: inset(-0.3em);
  transition: clip-path 1.1s var(--ease) 0.1s, transform 1.1s var(--ease) 0.1s;
}

.banner__body.is-entering > :not(.banner__title) {
  transition: opacity 0.8s ease 0.34s, transform 0.9s var(--ease) 0.34s;
}

.banner__body.is-entering > .btn {
  transition-delay: 0.46s;
}

/* Formas de pago: el icono da un pequeño salto. */
.perk.is-waiting .perk__icon {
  opacity: 0;
  transform: scale(0.5) rotate(-14deg);
}

.perk.is-entering .perk__icon {
  transition: opacity 0.4s ease calc(var(--delay, 0ms) + 0.22s), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--delay, 0ms) + 0.22s);
}

/* Ficha técnica: las casillas llegan en fila. */
.block.is-waiting .specs > div {
  opacity: 0;
  transform: translateY(14px);
}

.block.is-entering .specs > div {
  transition: opacity 0.6s ease calc(var(--n, 0) * 50ms + 0.1s), transform 0.8s var(--ease) calc(var(--n, 0) * 50ms + 0.1s);
}

/* Las fotos que se cargan al llegar no saltan: se funden. */
img.is-pending {
  opacity: 0;
}

.gallery__thumbs img,
.quote__photo {
  transition: opacity 0.6s ease;
}

/* Resultado de un filtro donde el navegador no anima el cambio por sí mismo. */
.cars.is-fresh > .car {
  animation: subir 0.65s var(--ease) both;
  animation-delay: calc(var(--n, 0) * 45ms);
}

.chips li {
  animation: subir 0.45s var(--ease) both;
}

/* Pequeños gestos al pasar el cursor. */
.nophoto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(104deg, transparent 34%, rgba(255, 255, 255, 0.09) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}

.car:hover .nophoto::after {
  transform: translateX(130%);
}

.brands li a {
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.brands li a:hover {
  background: #fff;
  color: var(--night);
  transform: translateY(-2px);
}

.brands li a:hover span {
  color: rgba(11, 13, 16, 0.55);
}

.quote,
.perk,
.steps--cards .step {
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.quote:hover,
.perk:hover,
.steps--cards .step:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.perk__icon {
  transition: background-color 0.3s, transform 0.5s var(--ease);
}

.perk:hover .perk__icon {
  background: var(--red);
  transform: rotate(-6deg) scale(1.06);
}

.flow li {
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

.flow li:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.flow span {
  transition: background-color 0.3s, border-color 0.3s;
}

.flow li:hover span {
  border-color: var(--red);
  background: var(--red);
}

.duo__card {
  transition: border-color 0.4s, transform 0.5s var(--ease);
}

.duo__card:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-4px);
}

.ways li > a {
  transition: padding 0.35s var(--ease);
}

.ways li > a:hover {
  padding-left: 8px;
}

.ways__icon {
  transition: transform 0.4s var(--ease);
}

.ways li > a:hover .ways__icon {
  transform: scale(1.08);
}

.gallery__thumbs button {
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.3s var(--ease);
}

.gallery__thumbs button:hover {
  transform: translateY(-2px);
}

.foot__social a {
  transition: background-color 0.2s, border-color 0.2s, transform 0.35s var(--ease);
}

.foot__social a:hover {
  transform: translateY(-3px);
}

/* ---- Con el desplazamiento (donde el navegador lo permite sin JavaScript) */

@supports (animation-timeline: scroll()) {
  /* Una línea roja bajo la cabecera marca cuánto se ha bajado. */
  .top::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: avance linear both;
    animation-timeline: scroll(root block);
    pointer-events: none;
  }

  @keyframes avance {
    to {
      transform: scaleX(1);
    }
  }

  /* La foto de la portada baja más despacio que la página. */
  .hero__photo {
    animation: paralaje linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 900px;
  }

  @keyframes paralaje {
    to {
      transform: translateY(120px) scale(1.05);
    }
  }

  /* El texto de la portada se aleja al dejarla atrás. */
  .hero__text {
    animation: alejar linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 560px;
  }

  @keyframes alejar {
    to {
      opacity: 0.2;
      transform: translateY(-40px);
    }
  }
}

@supports (animation-timeline: view()) {
  /* El banner se abre hasta los bordes al entrar y su foto se desliza más lenta que la página. */
  .banner {
    animation: abrir-banner linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }

  @keyframes abrir-banner {
    from {
      clip-path: inset(7% 4% round 28px);
    }
    to {
      clip-path: inset(0 round 0);
    }
  }

  .banner__photo img {
    animation: deslizar-banner linear both;
    animation-timeline: view();
  }

  @keyframes deslizar-banner {
    from {
      transform: translateY(-8%) scale(1.2);
    }
    to {
      transform: translateY(8%) scale(1.2);
    }
  }
}

/* ---- 3. Entre páginas */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.34s;
  animation-timing-function: ease;
}

/* La foto que viaja de la tarjeta a la ficha (y de vuelta). */
::view-transition-group(.foto) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.2, 0.85, 0.2, 1);
}

::view-transition-image-pair(.foto) {
  border-radius: 18px;
  overflow: clip;
}

::view-transition-old(.foto),
::view-transition-new(.foto) {
  height: 100%;
  object-fit: cover;
}

/* Las tarjetas que cambian de sitio al filtrar u ordenar. */
::view-transition-group(.tarjeta) {
  animation-duration: 0.55s;
  animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .marquee__track,
  .wa::before,
  .hero::before,
  .pagehead::before,
  .closing::before,
  .hero__text,
  .hero__photo,
  .banner,
  .banner__photo img,
  .top::after {
    animation: none !important;
  }

  .hero::after,
  .pagehead::after {
    display: none;
  }
}

@media print {
  .top,
  .foot,
  .wa,
  .closing,
  .gallery__nav,
  .gallery__thumbs,
  #formulario {
    display: none !important;
  }
}
