.pk-galeria {
  background-color: #0b0f14;
  color: #e8eef4;
  padding: 3.5rem 1.25rem 5rem 1.25rem;
  box-sizing: border-box;
  min-height: 80vh;
}

.pk-galeria *,
.pk-galeria *::before,
.pk-galeria *::after {
  box-sizing: border-box;
}

.pk-contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.pk-cabecera {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem auto;
}

.pk-titulo {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
  letter-spacing: -0.02em;
}

.pk-subtitulo {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 2rem 0;
  text-wrap: balance;
}

.pk-filtros {
  display: inline-flex;
  gap: 0.5rem;
  background: #121820;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  justify-content: center;
}

.pk-filtro {
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pk-filtro:hover {
  color: #ffffff;
}

.pk-filtro:focus-visible {
  outline: 2px solid #3d8bfd;
  outline-offset: 2px;
}

.pk-filtro.pk-activo {
  background: #1b2430;
  color: #ffffff;
  border-color: rgba(61, 139, 253, 0.35);
}

.pk-conteo {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #cbd5e1;
}

.pk-filtro.pk-activo .pk-conteo {
  background: rgba(61, 139, 253, 0.2);
  color: #3d8bfd;
}

.pk-grilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .pk-grilla {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pk-grilla {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pk-tarjeta {
  background: #121820;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pk-tarjeta:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 139, 253, 0.45);
}

.pk-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 750;
  background: #090d12;
  overflow: hidden;
}

.pk-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pk-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #0e141c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pk-fallback-dominio {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d8bfd;
  background: rgba(61, 139, 253, 0.08);
  border: 1px solid rgba(61, 139, 253, 0.25);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  word-break: break-all;
  text-align: center;
}

.pk-cuerpo {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pk-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.pk-rubro {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.1em;
}

.pk-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.pk-pill-publicado {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pk-pill-ejecucion {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.pk-nombre {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.pk-resultado {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.pk-resultado-vacio {
  margin-bottom: 1.25rem;
}

.pk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #17212d;
  color: #e8eef4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pk-btn:hover {
  background: #3d8bfd;
  color: #ffffff;
  border-color: #3d8bfd;
}

.pk-btn:focus-visible {
  outline: 2px solid #3d8bfd;
  outline-offset: 2px;
}

.pk-icono {
  width: 14px;
  height: 14px;
}

.pk-oculto {
  display: none !important;
}
