/* Arch Automotores — demo. Tokens de marca: negro del logo, gris del bloque del local, rojo del auto. */
:root {
  --negro: #141414;
  --carbon: #262626;
  --hormigon: #BDBAB4;
  --hormigon-claro: #E4E2DD;
  --blanco: #FAFAF8;
  --rojo: #C8102E;
  --rojo-oscuro: #9E0C24;
  --texto: #1E1E1E;
  --texto-suave: #5A5753;
  --wa: #177A3F; /* verde WhatsApp oscurecido: blanco encima pasa AA */

  --fondo: #EFEEEB;   /* gris muy claro, neutro */
  --linea: #DCDAD5;
  --radio: 10px;
  --sombra: 0 1px 2px rgba(20, 16, 12, .06), 0 8px 24px rgba(20, 16, 12, .07);
  --junta: 4px;
  --t-0: 1rem;
  --t-1: 1.25rem;
  --t-2: 1.563rem;
  --t-3: 1.953rem;
  --t-4: 2.441rem;
  --t-5: 3.815rem;
  --ancho: 72rem;
  --gutter: 1rem;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: 1.55;
  color: var(--texto);
  background: var(--fondo);
  padding-bottom: 4.5rem; /* lugar para la barra de WhatsApp en el celu */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.icono { width: 1.25em; height: 1.25em; flex: none; }

/* Cabecera */
.cabecera {
  background: var(--negro);
  color: var(--blanco);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  /* mismo borde izquierdo y derecho que el contenido de la página */
  padding: .5rem max(var(--gutter), calc((100% - var(--ancho)) / 2 + var(--gutter)));
  position: sticky; top: 0; z-index: 20;
}
/* Logo */
.cabecera__logo { display: block; padding: .25rem 0; }
.cabecera .logo { height: 2.75rem; width: auto; }
@media (max-width: 22.5rem) { .cabecera .logo { height: 2.25rem; } }
.cabecera__nav { display: flex; gap: 1.25rem; font-weight: 500; }
.cabecera__nav a { text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.cabecera__nav a:hover, .cabecera__nav a[aria-current="page"] { border-bottom-color: var(--rojo); }
@media (max-width: 30rem) {
  .cabecera__nav { gap: .875rem; font-size: .9375rem; }
  .cabecera__nav a:last-child { display: none; }
}

/* Botones */
.boton-wa, .boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.25rem;
  font-family: var(--body); font-weight: 600; font-size: var(--t-0);
  text-decoration: none; border: 0; cursor: pointer; border-radius: 2px;
}
.boton-wa { background: var(--wa); color: #fff; }
.boton-wa:hover { background: #11602F; }
.boton-wa--chico { min-height: 2.5rem; padding: .5rem .875rem; font-size: .9375rem; }
.boton { background: var(--rojo); color: #fff; }
.boton:hover { background: var(--rojo-oscuro); }
.boton--borde { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.boton--borde:hover { background: rgba(255,255,255,.08); }

.wa-fijo {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.5rem; background: var(--wa); color: #fff;
  font-weight: 600; text-decoration: none;
}
@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .wa-fijo { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0 1.25rem; border-radius: 2rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
}

/* Portada: fondo de fotos (o video) del local, slogan y llamado */
.portada {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(86svh - 3.5rem), 44rem);
  display: grid; grid-template-rows: 1fr auto;
  color: var(--blanco); background: #1b1410;
}
.portada__fondo { position: absolute; inset: 0; z-index: -2; }
.portada__fondo img, .portada__fondo video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.portada__fondo .activa { opacity: 1; }
@media (max-width: 48rem) { .portada__fondo .solo-escritorio { display: none; } }
.portada__velo {
  position: absolute; inset: 0; z-index: -1;
  /* velo cálido: marrón tostado arriba, casi negro abajo donde va el texto */
  background:
    radial-gradient(120% 70% at 20% 100%, rgba(18, 10, 6, .92) 0%, rgba(18, 10, 6, .55) 45%, transparent 75%),
    linear-gradient(180deg, rgba(60, 34, 18, .35) 0%, rgba(30, 18, 10, .2) 35%, rgba(16, 10, 6, .85) 100%);
}
.portada__contenido { align-self: end; padding-top: 4rem; padding-bottom: 2rem; display: grid; gap: 1rem; max-width: var(--ancho); width: 100%; margin: 0 auto; }
.portada__lugar { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; color: #EADFD3; }
.portada__lugar::before { content: ''; width: 2rem; height: 3px; background: var(--rojo); }
.portada__titulo {
  font-size: clamp(2.75rem, 11vw, 6rem); font-style: italic; font-weight: 700;
  line-height: .95; letter-spacing: -.01em; max-width: 12ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.portada__bajada { font-size: var(--t-1); max-width: 34rem; color: #F1EAE2; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.portada__acciones .boton { min-height: 3.25rem; padding-inline: 1.5rem; }
/* Compu: portada partida en dos. Texto sobre negro a la izquierda, foto a la derecha con el auto entero
   (las fotos son verticales: a pantalla completa se cortaban o dejaban franjas vacías). */
@media (min-width: 60rem) {
  .portada { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: 1fr; background: var(--negro); min-height: min(calc(100svh - 3.5rem), 40rem); }
  .portada__velo { display: none; }
  .portada__fondo { position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: 0; overflow: hidden; }
  .portada__fondo img { object-position: 50% 72%; }
  /* fundido suave entre el negro del texto y la foto */
  .portada__fondo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--negro) 0%, rgba(20, 20, 20, .35) 14%, transparent 30%);
  }
  .portada__contenido {
    grid-column: 1; grid-row: 1; align-self: center; margin: 0; max-width: none;
    padding: 3rem 2.5rem 3rem max(2.5rem, calc((100vw - var(--ancho)) / 2 + var(--gutter)));
  }
  .portada__titulo { font-size: clamp(3.5rem, 5.2vw, 5.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .portada__fondo img.activa { animation: acercar 9s ease-out both; }
  .portada__contenido > * { animation: entra-texto .8s cubic-bezier(.2,.7,.2,1) both; }
  .portada__contenido > :nth-child(2) { animation-delay: .12s; }
  .portada__contenido > :nth-child(3) { animation-delay: .24s; }
  .portada__contenido > :nth-child(4) { animation-delay: .36s; }
}
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }

@keyframes entra-texto { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }

/* Secciones */
.seccion { padding: 3rem 0; }
.seccion__cabeza { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.seccion__titulo { font-size: var(--t-4); }
.seccion__bajada { color: var(--texto-suave); max-width: 40rem; margin-top: .25rem; }
.link-flecha { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--rojo); }

/* Tarjeta de auto */
.tarjeta {
  position: relative; height: 100%;
  background: #fff; border-radius: var(--radio); overflow: hidden;
  box-shadow: var(--sombra); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tarjeta:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,16,12,.08), 0 14px 32px rgba(20,16,12,.12); }
.tarjeta__link { text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.tarjeta__marco { position: relative; }
.tarjeta__foto { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 80%; width: 100%; background: var(--hormigon-claro); }
.tarjeta__anio {
  position: absolute; left: .625rem; top: .625rem;
  background: rgba(20, 20, 20, .78); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--display); font-weight: 600; font-size: .9375rem; line-height: 1;
  padding: .375rem .5rem; border-radius: 6px;
}
.tarjeta__cuerpo { padding: .875rem 1rem .25rem; display: grid; gap: .125rem; flex: 1; align-content: start; }
.tarjeta__titulo { font-size: 1.375rem; line-height: 1.05; }
.tarjeta__version { color: var(--texto-suave); font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarjeta__resumen { color: var(--texto-suave); font-size: .875rem; }
.tarjeta__precio { font-family: var(--display); font-size: var(--t-1); font-weight: 700; margin-top: .5rem; color: var(--texto); }
.tarjeta__wa {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin: .5rem 1rem 1rem; min-height: 2.75rem; border-radius: 8px;
  background: #EAF4EE; color: var(--wa); font-weight: 600; text-decoration: none;
}
.tarjeta__wa:hover { background: var(--wa); color: #fff; }

/* Grilla del stock: de a dos en el celu */
.grilla { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .grilla { gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
@media (max-width: 30rem) {
  .grilla .tarjeta__cuerpo { padding: .625rem .625rem .125rem; }
  .grilla .tarjeta__titulo { font-size: 1.125rem; }
  .grilla .tarjeta__version, .grilla .tarjeta__resumen { font-size: .8125rem; }
  .grilla .tarjeta__precio { font-size: 1.0625rem; }
  .grilla .tarjeta__wa { margin: .375rem .625rem .625rem; min-height: 2.5rem; font-size: .875rem; }
}

/* Disponibles hoy: carrusel horizontal */
.disponibles { padding: 2.25rem 0 1.5rem; }
.disponibles__cabeza { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.disponibles__titulo { font-size: var(--t-3); margin-right: auto; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; order: 3; width: 100%; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .chips { order: 0; width: auto; } }
.chip {
  font: inherit; font-weight: 600; font-size: .9375rem; white-space: nowrap; cursor: pointer;
  padding: .5rem .875rem; min-height: 2.5rem; border-radius: 999px;
  border: 1px solid var(--linea); background: #fff; color: var(--texto);
}
.chip span { color: var(--texto-suave); font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--hormigon); }
.carrusel__flechas { display: none; gap: .5rem; }
@media (min-width: 48rem) { .carrusel__flechas { display: flex; } }
.flecha {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--linea); background: #fff; color: var(--texto);
  font-size: 1.75rem; line-height: 1; display: grid; place-items: center; padding: 0 0 .2rem;
}
.flecha:hover:not(:disabled) { background: var(--negro); color: #fff; border-color: var(--negro); }
.flecha:disabled { opacity: .35; cursor: default; }
.carrusel {
  --borde: max(var(--gutter), calc((100% - var(--ancho)) / 2 + var(--gutter)));
  list-style: none; margin: 0; display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .25rem var(--borde) 1.25rem;
  scroll-padding-inline: var(--borde);
  scrollbar-width: thin; scrollbar-color: var(--hormigon) transparent;
}
.carrusel > li { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 36rem) { .carrusel > li { flex-basis: 46%; } }
/* Compu: el carrusel queda dentro del ancho de la página, 4 tarjetas exactas, sin margen vacío */
@media (min-width: 60rem) {
  .carrusel { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .carrusel > li { flex-basis: calc((100% - 3rem) / 4); }
}
.carrusel__fin a {
  height: 100%; min-height: 14rem; display: grid; place-content: center; gap: .25rem; text-align: center;
  border-radius: var(--radio); border: 2px dashed var(--hormigon); text-decoration: none;
  font-family: var(--display); font-size: var(--t-2); font-weight: 700;
}
.carrusel__fin small { font-family: var(--body); font-size: .9375rem; font-weight: 500; color: var(--texto-suave); }
.carrusel__fin a:hover { border-color: var(--rojo); color: var(--rojo); }
.carrusel > .carrusel__vacio { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.5rem; background: #fff; border-radius: var(--radio); }

/* Por qué Arch: una línea */
.razones { display: grid; gap: .5rem 2rem; padding-top: .5rem; padding-bottom: 2.25rem; color: var(--texto-suave); }
@media (min-width: 40rem) { .razones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .razones { grid-template-columns: repeat(4, 1fr); } }

/* Entregas reales: tira de fotos deslizable */
.entregas { padding: 0 0 2.5rem; }
.entregas__cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.entregas__titulo { font-size: var(--t-3); }
.entregas__bajada { color: var(--texto-suave); }
.tira {
  --borde: var(--gutter);
  list-style: none; margin: 0; display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .25rem var(--borde) 1rem; scroll-padding-inline: var(--borde);
  scrollbar-width: thin; scrollbar-color: var(--hormigon) transparent;
}
.tira > li { flex: 0 0 42%; scroll-snap-align: start; }
.tira img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radio); background: var(--hormigon-claro); }
@media (min-width: 36rem) { .tira > li { flex-basis: 28%; } }
@media (min-width: 60rem) {
  .tira { max-width: var(--ancho); margin: 0 auto; }
  .tira > li { flex-basis: calc((100% - 3.75rem) / 6); }
}
.razones p { padding-left: .875rem; border-left: 3px solid var(--rojo); }
.razones strong { color: var(--texto); }

/* Permuta */
.permuta { background: var(--negro); color: var(--blanco); padding: 2.5rem 0; }
.permuta__grilla { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .permuta__grilla { grid-template-columns: 1fr 1.6fr; align-items: center; } }
.permuta__titulo { font-size: var(--t-4); margin-bottom: .5rem; }
.permuta__texto p { color: var(--hormigon); max-width: 26rem; }

.formulario { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 52rem) { .formulario { grid-template-columns: repeat(4, 1fr); } }
.campo { display: grid; gap: .25rem; align-content: start; }
.campo--ancho { grid-column: 1 / -1; }
@media (min-width: 52rem) { .campo--ancho { grid-column: span 2; } }
.campo label { font-weight: 600; font-size: .875rem; color: var(--hormigon); }
.campo input {
  font: inherit; color: var(--texto); background: var(--blanco);
  border: 2px solid transparent; border-radius: 8px; padding: .5rem .75rem; min-height: 2.875rem; width: 100%;
}
.campo input[aria-invalid="true"] { border-color: #ff6b81; }
.campo__error { color: #ff8fa0; font-size: .8125rem; }
.campo__error:empty { display: none; }
.formulario .boton-wa { grid-column: 1 / -1; border-radius: 8px; }
@media (min-width: 52rem) { .formulario .boton-wa { grid-column: span 2; align-self: end; min-height: 2.875rem; } }
.formulario__nota { grid-column: 1 / -1; color: var(--hormigon); font-size: .8125rem; }

/* Stock */
.filtros { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); margin-bottom: 1rem; align-items: end; }
.filtros label { display: grid; gap: .25rem; font-weight: 600; font-size: .9375rem; }
.filtros select {
  font: inherit; min-height: 3rem; padding: .5rem .75rem; border: 1px solid var(--linea);
  background: #fff; border-radius: 8px; color: var(--texto);
}
.contador { font-family: var(--display); font-size: var(--t-1); font-weight: 600; margin-bottom: .75rem; }
.vacio { background: #fff; padding: 2rem 1.5rem; display: grid; gap: 1rem; justify-items: start; border-radius: var(--radio); box-shadow: var(--sombra); }
.vacio h2 { font-size: var(--t-3); }

/* Ficha */
.migas { font-size: .9375rem; color: var(--texto-suave); padding: 1rem 0; }
.migas a { text-decoration: none; }
.ficha { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 60rem) { .ficha { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.galeria { display: grid; gap: .5rem; }
.galeria__principal, .galeria__miniaturas img { border-radius: 8px; }
.galeria__principal { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; background: var(--carbon); }
.galeria__miniaturas { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .5rem; }
.galeria__miniaturas button { padding: 0; border: 0; background: none; cursor: pointer; opacity: .65; }
.galeria__miniaturas button[aria-pressed="true"], .galeria__miniaturas button:hover { opacity: 1; outline: 3px solid var(--rojo); outline-offset: -3px; }
.galeria__miniaturas img { aspect-ratio: 1; object-fit: cover; object-position: 50% 75%; width: 100%; }
.ficha__panel { background: #fff; padding: 1.5rem; display: grid; gap: 1rem; border-radius: var(--radio); box-shadow: var(--sombra); }
@media (min-width: 60rem) { .ficha__panel { position: sticky; top: 4.5rem; } }
.ficha__titulo { font-size: var(--t-4); }
.ficha__precio { font-family: var(--display); font-size: var(--t-3); font-weight: 700; }
.ficha__acciones { display: grid; gap: .5rem; }
.ficha__acciones .boton--borde { color: var(--texto); }
.ficha__acciones .boton--borde:hover { background: var(--hormigon-claro); }
.ficha__permuta { background: var(--fondo); padding: 1rem; display: grid; gap: .25rem; border-radius: 8px; }
.ficha__permuta a { font-weight: 600; }
.datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .5rem; margin: 0; }
.datos div { background: #fff; padding: .875rem 1rem; border-radius: 8px; }
.datos dt { font-size: .875rem; color: var(--texto-suave); }
.datos dd { margin: 0; font-family: var(--display); font-size: var(--t-1); font-weight: 600; }
.ficha__texto { display: grid; gap: 1rem; }
.ficha__texto h2 { font-size: var(--t-3); }
.ficha__texto ul { margin: 0; padding-left: 1.25rem; }
.aviso-copiado { font-size: .875rem; color: var(--wa); font-weight: 600; min-height: 1.25rem; }

/* Pie con contacto */
.pie { background: var(--negro); color: var(--hormigon); padding: 2rem 0 1.5rem; }
.pie__in { display: grid; gap: 1.5rem; align-items: center; }
.pie__foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: var(--radio); }
.pie__datos { display: grid; gap: 1rem; align-content: center; }
/* compu: datos a la izquierda, foto del cartel a la derecha, ambos dentro del ancho de la página */
@media (min-width: 52rem) {
  .pie { padding: 3rem 0 2rem; }
  .pie__in { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .pie__foto { order: 2; aspect-ratio: 16 / 10; }
}
.pie .logo { height: 3.5rem; width: auto; }
.pie__frase { color: var(--blanco); font-size: var(--t-1); }
.pie__lista { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .875rem 1.5rem; }
.pie__lista dt { font-size: .8125rem; color: #8F8B85; }
.pie__lista dd { margin: 0; color: var(--blanco); }
.pie a { color: var(--blanco); }
.pie__legal { font-size: .8125rem; color: #8F8B85; border-top: 1px solid var(--carbon); padding-top: .875rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
