/* =====================================================================
   Vistas de los directorios (14 nov 2026, pedido de Daniel): tarjetas, lista o tabla, con la elección recordada.
   Lo usan el Directorio de Organizaciones y Partidos. Esquinas rectas, morado y neutros, sin colores de partidos.
   Las tres vistas están en la página y data-vista de .vv-zona decide cuál se ve:
   «auto» = tarjetas en compu y lista en celular (hasta 719 px).
   ===================================================================== */
.vv-zona { --vv-linea: var(--mr-linea, #e3dfe8); --vv-morado: var(--mr-morado, #7444b4); --vv-tinta: var(--mr-tinta, #2a2333); --vv-piedra: var(--mr-piedra, #6b6475); }

/* Barra: conteo a la izquierda y selector a la derecha */
.vv-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1.1rem 0 .9rem; padding-top: .9rem; border-top: 1px solid var(--vv-linea); }
.vv-conteo { margin: 0; font-size: .95rem; color: var(--vv-piedra); }
.vv-selector { display: inline-flex; align-items: stretch; border: 1px solid var(--vv-linea); background: #fff; }
.vv-selector-et { display: inline-flex; align-items: center; padding: 0 .7rem; font-size: .8rem; color: var(--vv-piedra); border-right: 1px solid var(--vv-linea); background: #faf8fd; }
.vv-op { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .35rem .95rem; font-size: .88rem; font-weight: 600; color: var(--vv-tinta); text-decoration: none; border-right: 1px solid var(--vv-linea); }
.vv-op:last-child { border-right: 0; }
.vv-op:hover { background: var(--mr-morado-claro, #f3eefb); color: #4b2a7b; }
.vv-op.activa, .vv-op.activa:hover { background: var(--vv-morado); color: #fff; }
.vv-op:focus-visible { outline: 3px solid var(--vv-morado); outline-offset: -3px; }
@media (max-width: 575.98px) {
    .vv-barra { flex-direction: column; align-items: stretch; }
    .vv-selector { width: 100%; }
    .vv-selector-et { display: none; }
    .vv-op { flex: 1 1 0; justify-content: center; padding: .35rem .4rem; }
}

/* Cuál de las tres vistas se ve */
.vv-zona .vv-v { display: none; }
.vv-zona[data-vista="tarjetas"] .vv-tarjetas, .vv-zona[data-vista="lista"] .vv-lista, .vv-zona[data-vista="tabla"] .vv-tabla,
.vv-zona[data-vista="auto"] .vv-tarjetas { display: block; }
@media (max-width: 719.98px) {
    .vv-zona[data-vista="auto"] .vv-tarjetas { display: none; }
    .vv-zona[data-vista="auto"] .vv-lista { display: block; }
}

/* Tabla: se desliza de lado dentro de su caja (la página no) */
.vv-tabla-caja { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--vv-linea); background: #fff; max-width: 100%; }
.vv-tabla-tabla { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9rem; color: var(--vv-tinta); }
.vv-tabla-tabla th, .vv-tabla-tabla td { padding: .6rem .8rem; border-bottom: 1px solid var(--vv-linea); text-align: left; vertical-align: middle; }
.vv-tabla-tabla thead th { background: #f7f4fb; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: #4b2a7b; white-space: nowrap; border-bottom: 2px solid #ddd0f2; }
.vv-tabla-tabla tbody tr:last-child > * { border-bottom: 0; }
.vv-tabla-tabla tbody tr:hover { background: #faf8fd; }
.vv-tabla-tabla tbody th { font-weight: 700; }
.vv-tabla-tabla tbody th a { color: inherit; text-decoration: none; }
.vv-tabla-tabla tbody th a:hover { color: var(--vv-morado); text-decoration: underline; text-underline-offset: 2px; }
.vv-tabla-tabla .num { text-align: right; font-variant-numeric: tabular-nums; }
.vv-tabla-tabla .vv-cero { color: #a59fb0; }
.vv-tabla-tabla tr.vv-con-senal > :first-child { box-shadow: inset 4px 0 0 var(--snl-borde, #b5338f); }
.vv-tabla-tabla thead .vv-orden { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; }
.vv-tabla-tabla thead .vv-orden::after { content: "\f0dc"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif; font-weight: 900; font-size: .8em; opacity: .45; }
.vv-tabla-tabla thead th[aria-sort="ascending"] .vv-orden::after { content: "\f0de"; opacity: 1; }
.vv-tabla-tabla thead th[aria-sort="descending"] .vv-orden::after { content: "\f0dd"; opacity: 1; }
.vv-tabla-tabla thead .vv-orden:focus-visible { outline: 3px solid var(--vv-morado); outline-offset: 2px; }
.vv-tabla-tabla thead th.num .vv-orden { flex-direction: row-reverse; }

/* Grupos de Partidos (nacionales, locales…) dentro de tarjetas y lista */
.vv-zona .pt-grupo { margin: 1.8rem 0 .2rem; }
.vv-zona .pt-grupo:first-child { margin-top: .2rem; }
.vv-zona .pt-grupo-texto { margin: 0 0 .8rem; font-size: .92rem; }
.pt-tabla .ptv-sello, .pt-tabla [class*="ptv-sello"] { white-space: nowrap; }

/* Partidos: encabezados que pueden partirse en dos renglones para que quepan sin deslizar en compu */
.pt-tabla th, .pt-tabla td { padding: .6rem .5rem; }
.pt-tabla thead th { white-space: normal; font-size: .72rem; vertical-align: bottom; }
.pt-tabla th:first-child, .pt-tabla td:first-child { padding-left: .8rem; }
.pt-tabla th:last-child, .pt-tabla td:last-child { padding-right: .8rem; }
/* En celular el nombre se queda fijo mientras se desliza la tabla */
@media (max-width: 719.98px) {
    .vv-tabla-tabla tbody th, .vv-tabla-tabla thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--vv-linea); }
    .vv-tabla-tabla thead th:first-child { background: #f7f4fb; z-index: 2; }
    .vv-tabla-tabla tr.vv-con-senal > :first-child { box-shadow: inset 4px 0 0 var(--snl-borde, #b5338f), 1px 0 0 var(--vv-linea); }
    .vv-tabla-tabla tbody tr:hover th { background: #faf8fd; }
}
