
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform .3s, opacity .3s;
  opacity: 1;
}
.post-card:hover {
  transform: translateY(-5px);
}
.post-img {
  width: 100% !important;
  height: 200px;
  position: relative;
  /*object-fit: cover;*/
}
.post-content {
  padding: 15px;
  padding-top: 0px !important;
}
.post-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.post-desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-actions {
  text-align: right;
}
.share-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.9rem;
}
.share-btn:hover {
  background: #0056b3;
}
/* === BOTÓN CARGAR MÁS === */
.load-more-container {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 30px;
}
#loadMoreBtn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}
#loadMoreBtn:hover {
  background: #0056b3;
}
#loadMoreBtn.no-more {
  background: #ccc;
  color: #333;
  cursor: default;
  pointer-events: none;
}
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  padding: 20px 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: none;
  z-index: 999999;
  width: 280px;
  animation: fadeInScale 0.3s ease forwards;
  border: 1px solid #e5e5e5;
}
.share-popup.active {
  display: block;
}
.share-popup h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-links a,
.social-links button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}
#shareFacebook { background: #1877f2; }
#shareTwitter { background: #1da1f2; }
#shareWhatsApp { background: #25d366; }
#copyLink { background: #6c757d; }
.social-links a:hover,
.social-links button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (max-width: 600px) {
  .share-popup {
    width: 90%;
    max-width: 320px;
  }
}
@media (max-width: 992px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

.search-bar {
  text-align: center;
  margin-bottom: 20px;
}

.search-bar input {
  width: 90%;
  margin-top: 20px;
  max-width: 400px;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.25s ease;
}

.search-bar input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}
