/* ================================================================
   MÓDULO 04: Publicaciones y Productos — Semillero LOCXUE
   ================================================================ */

.pub-hero {
  position: relative;
  overflow: hidden;
  background-color: #0C1940;
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
}

.pub-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(100, 46, 160, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(100, 46, 160, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(107, 63, 160, 0.2) 0%, transparent 40%);
}

.pub-hero__watermark {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 1rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.6rem, 5vw, 5rem);
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: 0.2em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  overflow: hidden;
}

.pub-hero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.pub-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.pub-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.pub-hero h1, .pub-hero h2 {
  color: #FFFFFF;
  font-family: 'Playfair Display', Georgia, serif;
  margin-bottom: 1.5rem;
}

.pub-hero__lead {
  max-width: 60ch;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.pub-hero__tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.tab-btn[aria-selected="true"] {
  background-color: #FFFFFF;
  color: #0C1940;
  border-color: #FFFFFF;
}

.pub-main {
  max-width: 1200px;
  margin-inline: auto;
  padding: 4rem 1.5rem 6rem;
}

.tab-panel {
  display: none;
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: #F4F6F9;
  border-radius: 14px;
  border: 1px solid #E2E6EE;
}

.filter-bar__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #5A6478;
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #E2E6EE;
  background: #FFFFFF;
  color: #5A6478;
  transition: all 220ms ease;
}

.chip:hover {
  border-color: #642EA0;
  color: #642EA0;
}

.chip[aria-pressed="true"] {
  background: #642EA0;
  color: #FFFFFF;
  border-color: #642EA0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: rgba(12, 25, 64, 0.04);
  border: 2px dashed #E2E6EE;
  border-radius: 24px;
  min-height: 320px;
}

.empty-state__icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0C1940, #642EA0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(12, 25, 64, 0.12);
}

.empty-state__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
}

.empty-state__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #0C1940;
  margin-bottom: 0.75rem;
}

.empty-state__msg {
  max-width: 52ch;
  font-size: 1.05rem;
  color: #5A6478;
  line-height: 1.7;
  margin-bottom: 0;
}

.empty-state__msg strong {
  color: #642EA0;
  font-weight: 600;
}

.empty-state__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #642EA0;
  border: 1.5px solid #642EA0;
  background: transparent;
  cursor: default;
}

.empty-state__pill::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #642EA0;
  animation: lx-pub-pulse 1.8s ease infinite;
}

@keyframes lx-pub-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

.sources-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #0C1940 0%, #642EA0 100%);
  border-radius: 24px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.sources-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 55%);
}

.sources-section__inner {
  position: relative;
  z-index: 1;
}

.sources-section__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.sources-section h2 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.sources-section p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}

.sources-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

.source-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 220ms ease;
}

.source-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.source-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.source-item__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.source-item__link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 220ms ease;
}

.source-item__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.criteria-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #F4F6F9;
  border-left: 4px solid #642EA0;
  border-radius: 0 14px 14px 0;
}

.criteria-box__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #0C1940;
  margin-bottom: 0.75rem;
}

.criteria-box p {
  font-size: 0.875rem;
  color: #5A6478;
  margin: 0;
}
