/* Tarjetas de anuncio (autos y piezas) — ver js/tarjetas.js */
.tj{display:flex; flex-direction:column; background:#FFFFFF; border:1px solid #E6DFCF; border-radius:16px; overflow:hidden;
  text-decoration:none; color:#4F4F4F; transition:transform .15s, border-color .15s, box-shadow .15s;}
.tj:hover{transform:translateY(-3px); border-color:#D9CFB6; box-shadow:0 10px 24px -14px rgba(15,61,62,.35);}
.tj:focus-visible{outline:3px solid #FFD400; outline-offset:2px;}

.tj-foto{position:relative; aspect-ratio:4/3; background:
  repeating-linear-gradient(135deg,#d9d2bf 0 2px,transparent 2px 18px), linear-gradient(135deg,#e7e1d3,#cfc7b0);
  display:flex; align-items:center; justify-content:center; overflow:hidden;}
.tj-foto img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.tj-sinfoto{font-size:12px; font-weight:600; color:#8A7F63;}
.tj-chip{position:absolute; top:12px; left:12px; padding:6px 12px; border-radius:20px; font-size:12px; font-weight:700; z-index:1;}
.tj-chip-auto{background:#211402; color:#EDEBE4;}
.tj-chip-restaurado{background:#1E7A45; color:#FFFFFF;}
.tj-chip-pieza{background:#FFD400; color:#211402; font-weight:800;}
.tj-nfotos{position:absolute; bottom:12px; right:12px; display:flex; align-items:center; gap:5px; padding:4px 9px;
  border-radius:12px; background:rgba(15,61,62,.85); color:#FFFFFF; font-size:12px; font-weight:600; z-index:1;}

.tj-cuerpo{display:flex; flex-direction:column; gap:12px; padding:16px; flex-grow:1;}
.tj-banda{display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:12px; color:#211402;}
.tj-banda > div{display:flex; flex-direction:column; gap:1px; min-width:0;}
.tj-banda svg{flex-shrink:0;}
.tj-banda-dano{background:#FBF1EE;}
.tj-banda-neutra{background:#F3EFE4;}
.tj-banda-pieza{background:#FDF6E0;}
.tj-banda-k{font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#6F6A5E;}
.tj-banda-dano .tj-banda-k{color:#9A3B2E;}
.tj-banda-pieza .tj-banda-k{color:#7A5B00;}
.tj-banda-v{font-size:14px; font-weight:700; color:#211402;}
.tj-mas{font-size:12px; font-weight:700; color:#7A5B00;}

.tj-titulo{display:flex; flex-direction:column; gap:3px;}
.tj-kicker{font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#6F6A5E;}
.tj-titulo h3{margin:0; font-family:'Montserrat',sans-serif; font-weight:700; font-size:17px; line-height:1.3; color:#211402;}
.tj-sub{font-size:13px; color:#6F6A5E;}

.tj-pills{display:flex; gap:6px; flex-wrap:wrap; min-height:0;}
.tj-pills:empty{display:none;}
.tj-pill{display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:12px; font-size:12px; font-weight:700;}
.tj-pill-ok{background:#E8F4EC; color:#1E7A45;}
.tj-pill-mal{background:#F6E9E6; color:#9A3B2E;}
.tj-pill-neutra{background:#F3EFE4; color:#4F4F4F; font-weight:600;}

.tj-precio{display:flex; justify-content:space-between; align-items:baseline; margin-top:auto; padding-top:12px; border-top:1px solid #EEE8DA;}
.tj-precio b{font-family:'Montserrat',sans-serif; font-weight:900; font-size:22px; color:#211402;}
.tj-neg{font-size:12px; font-weight:700; color:#1E7A45;}
.tj-fijo{font-size:12px; font-weight:600; color:#6F6A5E;}

.tj-cargando{pointer-events:none;}
.tj-cargando .tj-foto{background:#EDE7DA; animation:tj-pulso 1.2s ease-in-out infinite;}
.tj-linea{display:block; height:12px; border-radius:6px; background:#EDE7DA; animation:tj-pulso 1.2s ease-in-out infinite;}
@keyframes tj-pulso{50%{opacity:.5;}}
@media (prefers-reduced-motion:reduce){.tj, .tj-cargando .tj-foto, .tj-linea{transition:none; animation:none;}}
