/* ==========================================================================
   TRANSFER PRO CORE - FLOTA  ([tpm_fleet])
   Tarjeta de vehículo: foto completa arriba (4:3) y los datos en un panel oscuro debajo.
   ========================================================================== */
.tpc-fleet {
  --tpc-gold: #c5a059;
  --tpc-black: #0a0a0a;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--tp-font, 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  box-sizing: border-box;
}
.tpc-fleet *, .tpc-fleet *::before, .tpc-fleet *::after { box-sizing: border-box; }

.tpc-fleet-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.tpc-fleet-grid.tpc-cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
.tpc-fleet-grid.tpc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpc-fleet-grid.tpc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tpc-fleet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.tpc-fleet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  border-color: rgba(197, 160, 89, 0.55);
}

/* Foto completa: marco 4:3 (recomendado subir las fotos en formato apaisado 4:3) */
.tpc-fleet-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141416;
}
.tpc-fleet-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.tpc-fleet-card:hover .tpc-fleet-img { transform: scale(1.03); }

.tpc-fleet-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 24px 26px;
  text-align: left;
  border-top: 2px solid var(--tpc-gold);
}

.tpc-fleet-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.tpc-fleet-dash { display: inline-block; width: 16px; height: 1.5px; background: var(--tpc-gold); }
.tpc-fleet-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tpc-gold); }

.tpc-fleet-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-wrap: balance;
}
.tpc-nowrap { white-space: nowrap; }

.tpc-fleet-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 4px; }
.tpc-fleet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e4e4e7;
}
.tpc-fleet-badge svg { flex-shrink: 0; color: var(--tpc-gold); }

.tpc-fleet-desc { margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }

.tpc-fleet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 20px;
  background: #ffffff;
  color: var(--tpc-black);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.tpc-fleet-desc + .tpc-fleet-btn, .tpc-fleet-specs + .tpc-fleet-btn, .tpc-fleet-title + .tpc-fleet-btn { margin-top: 6px; }
.tpc-fleet-btn:hover { background: var(--tpc-gold); color: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4); }
.tpc-fleet-btn svg { transition: transform 0.2s ease; }
.tpc-fleet-btn:hover svg { transform: translateX(3px); }

.tpc-admin-notice { margin: 0; padding: 18px 20px; background: #fff8e5; border: 1px dashed #c5a059; font-size: 14px; color: #52525b; }

/* 4 columnas solo con sitio de sobra (1.3.3): por debajo de 1280 px, 2 (4 en fila quedarían estrechas) */
@media (max-width: 1279px) {
  .tpc-fleet-grid.tpc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 1080px) {
  .tpc-fleet-grid, .tpc-fleet-grid.tpc-cols-3, .tpc-fleet-grid.tpc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 680px) {
  .tpc-fleet-grid, .tpc-fleet-grid.tpc-cols-2, .tpc-fleet-grid.tpc-cols-3, .tpc-fleet-grid.tpc-cols-4 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tpc-fleet-card { max-width: 480px; width: 100%; margin: 0 auto; }
  .tpc-fleet-info { padding: 20px 18px 22px; }
  .tpc-fleet-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpc-fleet-card, .tpc-fleet-img, .tpc-fleet-btn { transition: none; }
}
