/* ---------- Filtros de la lista (JC, 5 nov 2026) ---------- */
.tv2-lista-cuerpo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tv2-lista-cuerpo .tv2-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tv2-lista-res { min-width: 0; scroll-margin-top: 84px; }
.tv2-filtros { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 100px); overflow-y: auto; scroll-margin-top: 84px; }
.tv2-filtros-cab, .tv2-filtros-pie, .tv2-filtros-abrir, .tv2-filtros-fondo { display: none; }
.tv2-filtro-grupo { display: flex; flex-direction: column; gap: 2px; }
.tv2-filtro-grupo h2 { margin: 0 0 6px; font-size: 14px; font-weight: 800; color: #141a3c; }
.tv2-filtro { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; color: #2b2f45; font-size: 14px; font-weight: 500; text-decoration: none; }
.tv2-filtro:hover { background: #f3f4f8; color: #2b2f45; }
.tv2-filtro small { color: #6b6b6b; font-size: 13px; font-variant-numeric: tabular-nums; }
.tv2-filtro[aria-current="true"] { background: var(--acs); color: var(--acd); font-weight: 700; }
.tv2-filtro[aria-current="true"] small { color: inherit; }
.tv2-etiquetas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.tv2-etiqueta { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--acs); color: var(--acd); font-size: 14px; font-weight: 600; text-decoration: none; }
.tv2-etiqueta:hover { color: var(--acd); }
.tv2-etiqueta span { font-size: 17px; line-height: 1; }
.tv2-limpiar { padding: 8px 4px; color: var(--ac); font-size: 14px; font-weight: 700; }
@media (max-width: 1200px) and (min-width: 761px) { .tv2-lista-cuerpo .tv2-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) {
  .tv2-lista-cuerpo { display: block; }
  .tv2-lista-cuerpo .tv2-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tv2-filtros-abrir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 14px; padding: 0 18px; border-radius: 999px; background: #f3f4f8; color: #2b2f45; font-size: 15px; font-weight: 700; text-decoration: none; }
  .tv2-filtros-abrir small { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--ac); color: #ffffff; font-size: 12px; text-align: center; }
  .tv2-filtros { display: none; position: fixed; inset: auto 0 0 0; top: auto; z-index: 90; max-height: 85dvh; padding: 0 16px; gap: 16px; background: #ffffff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(20,26,60,0.25); }
  .tv2-filtros:target { display: flex; }
  .tv2-filtros:target + .tv2-filtros-fondo { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(20,26,60,0.45); }
  .tv2-filtros-cab { display: flex; flex: none; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 12px 0; background: #ffffff; font-size: 17px; }
  .tv2-filtros-cerrar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #2b2f45; font-size: 26px; text-decoration: none; }
  .tv2-filtros-pie { display: block; flex: none; position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: #ffffff; }
  .tv2-filtros-pie .tv2-boton { width: 100%; }
  .tv2-filtro { min-height: 44px; }
}
