/* vip-destacados — tarjetas destacadas por estilo */

.vip-destacados-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .vip-destacados-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .vip-destacados-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* Home: 1 col en móvil; 2 cols desde tablet/desktop */
.vip-destacados-grid--home2 {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .vip-destacados-grid--home2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.vip-dest-card {
  isolation: isolate;
  display: block;
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  ring: 1px solid rgba(0, 0, 0, 0.08);
  outline: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vip-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .vip-dest-card:hover {
    transform: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  }
}

.vip-dest-card__stage {
  position: relative;
  width: 100%;
  /* +20% altura vs 72% → ~86.4% */
  padding-bottom: 86.4%;
}

/* ——— Estilo 1 ——— */
.vip-dest-estilo1 .vip-dest-card__fondo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fondo blanco / tono claro del auto */
  background: #fff;
}
/* Diagnóstico: sin color dominante → rojo / negro 50% */
.vip-dest-estilo1--no-dom .vip-dest-card__fondo {
  background: linear-gradient(
    to bottom,
    var(--bg-dom, #dc2626) 0%,
    var(--bg-dom, #dc2626) 50%,
    var(--bg-dom-b, #000000) 50%,
    var(--bg-dom-b, #000000) 100%
  );
}
.vip-dest-estilo1 .vip-dest-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.08) 35%,
    rgba(0, 0, 0, 0) 55%
  );
}

/* FX: fondo blanco fijo; el color dominante va al shape derecho */
.vip-dest-estilo1.fx-spotlight .vip-dest-card__fondo,
.vip-dest-estilo1.fx-mesh .vip-dest-card__fondo,
.vip-dest-estilo1.fx-matte .vip-dest-card__fondo {
  background: #fff;
}
.vip-dest-estilo1.fx-mesh .vip-dest-card__fondo::after,
.vip-dest-estilo1.fx-matte .vip-dest-card__fondo::after {
  display: none;
}
.vip-dest-estilo1.fx-spotlight .vip-dest-card__overlay,
.vip-dest-estilo1.fx-mesh .vip-dest-card__overlay,
.vip-dest-estilo1.fx-matte .vip-dest-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.22) 100%
  );
}
/* Letras hero detrás del auto: ocultas en listado actual */
.vip-dest-estilo1 .vip-dest-card__nombre { display: none; }
/*
 * Auto ≈ 65% del ancho visual de la tarjeta, centrado.
 * JS equalizeEstilo1Autos ajusta el width del <img> según fill del PNG
 * para que el bbox opaco quede ~65% (ver vip-destacados.js).
 */
/* Shape derecha: color dominante, sobre el fondo blanco y detrás del auto */
.vip-dest-estilo1 .vip-dest-card__banda {
  position: absolute;
  z-index: 2;
  background: var(--bg-dom, #9ca3af);
  pointer-events: none;
}
/* Vertical: desde arriba hasta la mitad, solo mitad derecha */
.vip-dest-estilo1 .vip-dest-card__banda--v {
  top: 0;
  left: 50%;
  right: 0;
  height: 50%;
  width: 50%;
}
/* Horizontal: 50px a media altura, solo del centro a la derecha */
.vip-dest-estilo1 .vip-dest-card__banda--h {
  top: 50%;
  left: 50%;
  right: 0;
  width: 50%;
  height: 50px;
  transform: translateY(-50%);
}
/* Spider de fallas (solo autos con spiderSistemas) sobre el shape derecho */
.vip-dest-estilo1 {
  --spider-ink: #ffffff;
  --spider-ink-soft: rgba(255, 255, 255, 0.4);
  --spider-fill: rgba(255, 255, 255, 0.28);
  --spider-dot: #ffffff;
  --spider-dot-stroke: rgba(0, 0, 0, 0.25);
  --spider-label-shadow:
    0 1px 1px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(0, 0, 0, 0.25);
}
.vip-dest-estilo1[data-spider-ink="dark"] {
  --spider-ink: #111827;
  --spider-ink-soft: rgba(17, 24, 39, 0.38);
  --spider-fill: rgba(17, 24, 39, 0.22);
  --spider-dot: #111827;
  --spider-dot-stroke: rgba(255, 255, 255, 0.4);
  --spider-label-shadow:
    0 1px 1px rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(255, 255, 255, 0.55),
    0 0 6px rgba(255, 255, 255, 0.35);
}
.vip-dest-estilo1 .vip-dest-card__spider {
  position: absolute;
  top: 6%;
  right: 2%;
  width: 44%;
  height: 40%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vip-dest-estilo1 .vip-dest-card__spider-svg {
  width: 100%;
  height: 100%;
  max-width: 180px;
  max-height: 180px;
}
/* Pie del shape derecho: tipografía mínima, tinta según luminancia del dominante */
.vip-dest-estilo1 .vip-dest-card__spider-label {
  position: absolute;
  top: calc(50% - 14px);
  right: 3%;
  z-index: 2;
  margin: 0;
  padding: 0;
  max-width: 46%;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: right;
  color: var(--spider-ink);
  text-shadow: var(--spider-label-shadow);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__spider-label {
    font-size: 9px;
    top: calc(50% - 16px);
  }
}
.vip-dest-estilo1 .vip-dest-card__auto {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  /* Base 65%; JS sube el % si el PNG tiene vacío */
  width: 65%;
  max-width: 65%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  /* Ancla el PNG al “suelo” del fondo */
  filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.4));
}
.vip-dest-estilo1 .vip-dest-card__ui { z-index: 5; position: absolute; }
.vip-dest-estilo1 .vip-dest-card__fade {
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}
.vip-dest-estilo1 .vip-dest-card__fecha {
  top: 0.5rem;
  left: 0.5rem;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__fecha { font-size: 12px; }
}
.vip-dest-estilo1 .vip-dest-card__anio {
  top: 0.5rem;
  right: 0.5rem;
  background: #000;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* Si hay badge Hoy/Descuento, el año baja a la izquierda bajo la fecha */
.vip-dest-estilo1:has(.vip-dest-card__badge-hoy) .vip-dest-card__anio,
.vip-dest-estilo1:has(.vip-dest-card__badge-desc) .vip-dest-card__anio {
  top: 2.35rem;
  left: 0.5rem;
  right: auto;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__anio { font-size: 12px; padding: 0.45rem 0.75rem; }
}

.vip-dest-estilo1 .vip-dest-card__badge-hoy {
  top: 0.5rem;
  right: 0.5rem;
  background: #fbbf24;
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__badge-hoy { font-size: 12px; }
}
.vip-dest-estilo1 .vip-dest-card__badge-desc {
  top: 0.5rem;
  right: 0.5rem;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}
.vip-dest-estilo1 .vip-dest-card__badge-desc--under {
  top: 2.35rem;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__badge-desc { font-size: 10px; }
}

.vip-dest-estilo1 .vip-dest-card__fuente {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.vip-dest-estilo1 .vip-dest-card__fuente img {
  height: 14px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.1);
}
.vip-dest-estilo1 .vip-dest-card__fuente span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-dest-estilo1 .vip-dest-card__price--deal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}
.vip-dest-estilo1 .vip-dest-card__price-old {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
}
.vip-dest-estilo1 .vip-dest-card__price-new {
  font-size: inherit;
  font-weight: 800;
  color: #6ee7b7;
}
.vip-dest-estilo1 .vip-dest-card__meta {
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0.625rem 0.625rem 0.75rem;
  color: #fff;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__meta { padding: 1rem; }
}
.vip-dest-estilo1 .vip-dest-card__meta h4 {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__meta h4 { font-size: 0.875rem; }
}
.vip-dest-estilo1 .vip-dest-card__meta .vip-dest-card__sub {
  font-size: 10px;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__meta .vip-dest-card__sub { font-size: 12px; }
}
.vip-dest-estilo1 .vip-dest-card__meta .vip-dest-card__price {
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .vip-dest-estilo1 .vip-dest-card__meta .vip-dest-card__price { font-size: 1.125rem; }
}
