/* =========================================================
   HOME – "Nuevos ingresos" igual a "Vehículos similares" (ficha)
   Scope: solo .home-latest-shell
   ========================================================= */

/* Variables (mismas de vehiculo.css, pero solo dentro del bloque HOME) */
.home-latest-shell{
  --veh-border: rgba(15,23,42,.12);
  --veh-shadow: 0 14px 34px rgba(15,23,42,.10);
  --veh-radius: 18px;
  --veh-soft: #f6f7fb;
}

/* Fondo/padding para que se sienta como la ficha */
.home-latest-shell{
  background: var(--veh-soft);
  padding: 18px 0 6px;
}

/* ===== Similares (full width) — igual a vehiculo.css ===== */
.home-latest-shell.related-shell{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  margin-top: 26px;
  margin-bottom: 36px;
  overflow: hidden;
}

.home-latest-shell .related-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-latest-shell .related-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.home-latest-shell .related-header h2{
  margin:0;
  font-size: 1.45rem;
  font-weight: 900;
}

.home-latest-shell .related-all{
  color: rgba(17,24,39,.8);
  text-decoration:none;
  font-weight: 700;
}
.home-latest-shell .related-all:hover{ color: var(--color-primary); }

.home-latest-shell .related-swiper{ padding: 8px 18px 60px; }
.home-latest-shell .related-slide{ width: 360px; }

@media (max-width: 980px){ .home-latest-shell .related-slide{ width: 320px; } }
@media (max-width: 640px){
  .home-latest-shell .related-slide{ width: 280px; }
  .home-latest-shell .related-swiper{ padding-left: 14px; padding-right: 14px; }
  .home-latest-shell .related-inner{ padding: 0 16px; }
}

/* =========================================================
   CARD (.vcard) — FORZAMOS look de ficha SOLO en este slider
   (esto es lo que te está quedando distinto en HOME)
   ========================================================= */

.home-latest-shell .vcard{
  display:block;
  text-decoration:none;
  color: inherit;

  border-radius: var(--veh-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--veh-border);
  box-shadow: var(--veh-shadow);

  /* por si home.css mete cosas raras */
  transform: none;
}

.home-latest-shell .vcard-media{
  display:block;
  position: relative;
  overflow:hidden;
  background: #e9eef6;

  /* 4:3 estable como en la ficha */
  padding-top: 75%;
}

.home-latest-shell .vcard-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.home-latest-shell .vcard-body{
  padding: 14px 16px 16px;
}

.home-latest-shell .vcard-title{
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 8px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-latest-shell .vcard-meta{
  font-size: .92rem;
  color: rgba(17,24,39,.65);
  font-weight: 600;
  margin: 0 0 12px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* En la ficha, el foco visual es el precio centrado (sin “Ver” visible) */
.home-latest-shell .vcard-cta{
  border-top: 1px solid rgba(13,119,190,.22);
  padding-top: 10px;
}

.home-latest-shell .vcard-cta-stack{
  display:block;
}

.home-latest-shell .vcard-cta-row{
  display:block;
}

/* Precio centrado y “premium” */
.home-latest-shell .vcard-price{
  display:block;
  text-align:center;
  font-weight: 900;
  color: var(--color-primary);
  font-size: 1.05rem;
}

/* Ocultamos el “Ver” para que sea idéntico a la ficha */
.home-latest-shell .vcard-view{
  display:none !important;
}

@media (max-width: 768px) {
    .home-latest-shell .vcard {
      box-shadow: none;
      transform: translateZ(0);
    }
  }
