/* AutoContentGenerator – Blog Images (cards modernas) */

.acg-images {
  max-width: 1200px;
  margin: 40px auto 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Tarjeta */
.acg-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f5f7;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover suave */
.acg-image:hover {
  transform: translateY(-4px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.10),
    0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Imagen */
.acg-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom sutil */
.acg-image:hover img {
  transform: scale(1.045);
}

/* =========================
   MODO UNA SOLA IMAGEN
   ========================= */

.acg-images:has(.acg-image:only-child) {
  display: block;
  max-width: 1200px;
}

.acg-images:has(.acg-image:only-child) .acg-image {
  width: 100%;
  border-radius: 18px;
}

.acg-images:has(.acg-image:only-child) img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Tablet */
@media (max-width: 1024px) {
  .acg-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .acg-images {
    grid-template-columns: 1fr;
    margin: 30px auto 45px;
    gap: 18px;
  }
}
