/* ---- PUBLICACIONES ---- */
.publicaciones-home { padding: 3rem 0; }

.publicacion-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid #b2dde5;
}

.publicacion-card-header {
  padding: 1.25rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid #e0f5f8;
}

.publicacion-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003b4a;
}

.publicacion-viewer-wrap {
  position: relative;
  background: #2a2a3e;
  padding-bottom: 1rem;
}

.no-download-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 20;
  pointer-events: none;
}

.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px;
  background: rgba(0,0,0,0.3);
}

.pdf-controls button {
  background: #e0f5f8;
  color: #003b4a;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pdf-controls button:hover { background: #fff; }

.pdf-controls span {
  color: #fff;
  font-size: 13px;
}

.pdf-canvas-wrap {
  max-height: 680px;
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 1rem;
  background: #2a2a3e;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

#pdf-canvas {
  max-width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border-radius: 4px;
}

.publicacion-card-footer {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 0.5px solid #e0f5f8;
}

.publicacion-meta { font-size: 13px; color: #2e7d8f; }
.publicacion-meta strong { color: #003b4a; }

.mas-publicaciones {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #003b4a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.mas-publicaciones:hover { background: #005f78; }