/* =============================================
   Paginador RTVC — Componente unificado
   Aplica a todas las vistas con paginación.
   ============================================= */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 0;
  flex-wrap: wrap;
}

.pager .pager__items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pager .pager__item {
  margin: 0;
}

.pager .pager__item a,
.pager .pager__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid #e6effd;
  color: #0943b5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.pager .pager__item a:hover {
  background-color: #e6effd;
}

/* Ítem activo */
.pager .pager__item.is-active a,
.pager .pager__item.is-active span,
.pager .pager__item--active a,
.pager .pager__item--active span {
  background: #0943b5;
  color: #fff;
  border-color: #0943b5;
}

/* Anterior / Siguiente */
.pager .pager__item--previous a,
.pager .pager__item--next a {
  border: none;
  background: transparent;
  text-decoration: underline;
  font-size: 1rem;
  min-width: auto;
}

.pager .pager__item--previous a {
  color: #aaa;
}

.pager .pager__item--next a {
  color: #0943b5;
}

/* Ocultar Primera / Última */
.pager .pager__item--first,
.pager .pager__item--last {
  display: none;
}

/* Ellipsis */
.pager .pager__item--ellipsis span {
  border: none;
  background: transparent;
  min-width: 30px;
}
