/* ==========================================================
   INICIO — portada, destacados, vista previa del stock y banner
   ========================================================== */

/* ── Portada ───────────────────────────────────────────── */
.portada {
  position: relative;
  min-height: 460px;
  height: calc(100svh - var(--alto-header) - 40px);
  max-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--borde);
}
.portada__fondo, .portada__fondo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portada__fondo img { object-fit: cover; object-position: 60% center; opacity: 0.65; }
.portada__degrade { position: absolute; inset: 0; background: linear-gradient(to top, var(--fondo) 0%, rgba(11, 11, 12, 0.55) 50%, rgba(11, 11, 12, 0.25) 100%); }
.portada__contenido { position: relative; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.portada__contenido > * { max-width: 672px; }

.etiqueta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(19, 19, 22, 0.9);
  border: 1px solid rgba(230, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.etiqueta__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { opacity: 0.35; } }

.portada__titulo {
  font-family: var(--ff-titulo);
  font-weight: 900;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.portada__titulo span { display: block; color: var(--rojo); }
.portada__bajada { color: #e5e5e5; font-size: 15px; max-width: 560px; line-height: 1.6; }
.portada__botones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 6px; }
.portada__botones .btn { padding-inline: 14px; }

@media (min-width: 640px) {
  .portada__contenido { padding-bottom: 48px; gap: 16px; }
  .portada__bajada { font-size: 18px; }
  .portada__botones { display: flex; gap: 16px; }
  .portada__botones .btn { padding: 17px 36px; font-size: 18px; }
}
@media (min-width: 1024px) {
  .portada { min-height: 520px; }
  .portada__titulo span { display: inline; }
}
/* Celular acostado: la portada no tapa toda la pantalla */
@media (max-height: 500px) and (orientation: landscape) {
  .portada { height: auto; min-height: 0; padding-top: 48px; }
}

/* ── Destacados (carrusel) ─────────────────────────────── */
.seccion--destacados { padding-bottom: 24px; }
.flechas { display: flex; gap: 8px; }
.carrusel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.carrusel::-webkit-scrollbar { display: none; }
.carrusel:focus-visible { outline-offset: -2px; }

.destacado {
  flex: 0 0 90%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  transition: border-color 0.3s;
}
.destacado__foto { position: relative; display: block; height: 100%; min-height: 128px; border-radius: 16px; overflow: hidden; background: var(--fondo); }
.destacado__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.destacado__foto .chip { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 2px 8px; }
.destacado__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.destacado__info h3 { font-family: var(--ff-titulo); font-weight: 900; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.destacado__info .btn { white-space: nowrap; }
.destacado__info p { font-size: 12px; margin-top: 2px; }
.destacado__precio { font-family: var(--ff-titulo); font-weight: 900; font-size: 21px; }
@media (hover: hover) {
  .destacado:hover { border-color: var(--rojo); }
  .destacado:hover .destacado__foto img { transform: scale(1.05); }
}
@media (min-width: 640px) {
  .destacado { flex-basis: 490px; padding: 18px; gap: 16px; }
  .destacado__foto { min-height: 160px; }
  .destacado__info h3 { font-size: 20px; }
  .destacado__precio { font-size: 24px; }
}
@media (min-width: 1024px) { .destacado { flex-basis: 540px; } }

/* ── Buscador del inicio ───────────────────────────────── */
.buscador {
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.buscador__fila { display: flex; gap: 10px; }
.buscador__fila .btn { font-family: var(--ff-titulo); text-transform: uppercase; padding-inline: 20px; min-height: 50px; }
.buscador__filtros summary { list-style: none; min-height: 48px; }
.buscador__filtros summary::-webkit-details-marker { display: none; }
.buscador__chevron { color: var(--apagado); transition: transform 0.25s; }
.buscador__filtros[open] .buscador__chevron { transform: rotate(180deg); }
.buscador__panel { margin-top: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; display: grid; gap: 16px; }
@media (min-width: 640px) {
  .buscador { padding: 24px; }
  .buscador__fila .btn { padding-inline: 28px; }
}
@media (min-width: 1024px) {
  .buscador__panel { grid-template-columns: 1fr 1.2fr 1.2fr auto; align-items: end; }
  .buscador__panel .btn { width: auto; }
}
#vehiculos-disp .contador { margin-bottom: 16px; }

/* ── Banner "Tomamos tu usado" ─────────────────────────── */
.banner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--superficie), var(--tarjeta));
  border: 1px solid var(--borde);
  border-radius: var(--radio-grande);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.banner__texto { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 680px; }
.banner h2 { font-family: var(--ff-titulo); font-weight: 900; font-size: clamp(22px, 4vw, 36px); line-height: 1.15; text-transform: uppercase; }
.banner p { color: var(--texto-2); font-size: 15px; }
.banner .btn { flex-shrink: 0; font-family: var(--ff-texto); text-transform: none; font-weight: 700; }
@media (min-width: 640px) { .banner { padding: 40px; } }
@media (min-width: 1024px) { .banner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Clientes (fotos de entregas) ──────────────────────── */
.clientes__bajada { margin-top: 6px; max-width: 560px; }
.clientes__lista {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 6px;
  scroll-padding-inline: var(--gutter);
}
.clientes__lista::-webkit-scrollbar { display: none; }
.cliente {
  position: relative;
  flex: 0 0 78%;
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radio-grande);
  overflow: hidden;
  background: var(--superficie);
  border: 1px solid var(--borde);
  transition: border-color 0.3s;
}
.cliente img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cliente figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 48px 18px 18px;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.95), rgba(11, 11, 12, 0));
}
.cliente figcaption strong { font-family: var(--ff-titulo); font-weight: 900; font-size: 18px; text-transform: uppercase; }
.cliente figcaption strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--rojo); vertical-align: middle; }
.cliente figcaption span { font-size: 14px; color: var(--texto-2); }
@media (hover: hover) {
  .cliente:hover { border-color: var(--rojo); }
  .cliente:hover img { transform: scale(1.04); }
}
@media (min-width: 640px) { .cliente { flex-basis: 44%; } }
/* PC: las 3 fotos en fila, sin deslizar */
@media (min-width: 1024px) {
  .clientes__lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; margin-inline: 0; padding: 0; }
}
