/* Fondo general */
body {
  background: url('../Media/meme/fondo.png') no-repeat center center/cover;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding-top: 0;
  margin: 0;
}

/* Logo centrado */
.logo {
  text-align: center;
  margin-top: -120px;
}

/* Contenedor Masonry */
.masonry {
  column-gap: 1rem;
  padding: 1rem;
  margin-top: -120px;
}

/* Ítems */
.masonry-item {
  display: inline-block;
  width: 100%;
  margin: 10px 0 1rem;
  break-inside: avoid;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20,20,40,0.06);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.masonry-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(20,20,40,0.12);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body-compact {
  padding: .75rem;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  margin-right: .4rem;
}

.author {
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

.img-caption {
  font-size: 13px;
  color: #555;
  margin-top: .35rem;
}

/* ------------------------------
   📱 RESPONSIVE OPTIMIZADO
   ------------------------------ */

/* Desktop grande */
@media (min-width: 1200px) {
  .masonry {
    column-count: 4;
  }
}

/* Laptop */
@media (min-width: 992px) and (max-width: 1199px) {
  .masonry {
    column-count: 3;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .masonry {
    column-count: 2;
  }
}
/* 📱 Celulares */
@media (max-width: 767px) {

  /* 1 columna para que los items se centren */
  .masonry {
    column-count: 2;
    padding: 1rem;
    margin-top: 0;
  }

  /* Centrado correcto */
  .masonry-item {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px; /* opcional, evita que se estiren demasiado */
  }

  body {
    padding-top: 0;
  }

  .logo {
    margin-top: 1px;
  
  }
   .logo img{
    height: 250px;
   }
}