/* =========================================================
   Tarjetas de Ofertas de Vehículos (Estilo Clásico Libra)
   ========================================================= */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  gap: 32px 26px;
  align-items: stretch;
  margin-top: 16px;
}

.offers-grid .offer-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transition: transform 0.22s ease;
}

.offers-grid .offer-card:hover {
  transform: translateY(-4px);
}

/* Foto flotante del vehículo sobre la cabecera (sin fondo) */
.offers-grid .offer-card__image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 175px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px;
  margin: 0 0 -18px 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.offers-grid .offer-card__image img {
  max-width: 92%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent !important;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.24));
}

/* Banda superior de color (100% de ancho y altura homogénea) */
.offers-grid .offer-card__header {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 122px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--card-header-bg, #eab932) !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 38px 20px 20px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

.offers-grid .offer-card__title {
  margin: 0 0 6px !important;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff !important;
  text-align: center !important;
}

.offers-grid .offer-card__subtitle {
  margin: 0 !important;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff !important;
  text-align: center !important;
}

/* Cinta horizontal en la esquina superior izquierda dentro del fondo del título */
.offers-grid .offer-card__ribbon {
  position: absolute !important;
  top: 12px !important;
  left: 0 !important;
  right: auto !important;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  padding: 4px 12px !important;
  margin: 0 !important;
  background: var(--ribbon-bg, #222222) !important;
  background-color: var(--ribbon-bg, #222222) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  white-space: nowrap !important;
  transform: none !important;
  border-radius: 0 4px 4px 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
  z-index: 3 !important;
  pointer-events: none;
}

/* Cuerpo blanco con precio y lista */
.offers-grid .offer-card__body {
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 26px 24px 28px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

/* Bloque de precio grande con superíndice */
.offers-grid .offer-card__price {
  margin: 0 0 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offers-grid .offer-card__price-main {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  color: #555555;
  font-weight: 800;
}

.offers-grid .offer-card__price-int {
  font-size: 3.35rem;
  letter-spacing: -0.03em;
}

.offers-grid .offer-card__price-dec {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.35rem;
  margin-left: 2px;
}

.offers-grid .offer-card__price-unit {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Lista de características con checkmarks y líneas separadoras */
.offers-grid .offer-card__features {
  list-style: none !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  flex: 1;
}

.offers-grid .offer-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid #e2e4e8;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #374151;
}

.offers-grid .offer-card__features li:last-child {
  border-bottom: none;
}

.offers-grid .offer-card__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #4b5563;
}

/* Botón Reservar + enlace WhatsApp centrado */
.offers-grid .offer-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.offers-grid .offer-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 155px;
  padding: 12px 28px;
  background-color: #eab932;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(234, 185, 50, 0.32);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.offers-grid .offer-card__btn:hover {
  background-color: #d9a720;
  transform: translateY(-1px);
}

.offers-grid .offer-card__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  text-align: center;
}

.offers-grid .offer-card__wa:hover {
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .offers-grid .offer-card__image {
    height: 155px;
  }

  .offers-grid .offer-card__image img {
    max-height: 150px;
  }

  .offers-grid .offer-card__header {
    min-height: auto;
    padding: 36px 18px 18px;
  }

  .offers-grid .offer-card__title {
    font-size: 1.4rem;
  }

  .offers-grid .offer-card__price-int {
    font-size: 2.95rem;
  }
}

/* Centrado simétrico definitivo del botón de reserva y WhatsApp */
article.offer-card .offer-card__body .offer-card__actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

article.offer-card .offer-card__body a.offer-card__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}

article.offer-card .offer-card__body a.offer-card__wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
}