/* ======================================================
   ERIANS – IMAGE CARD UI (EDITORIAL)
   Imagen narrativa · sin texto · animación sutil
====================================================== */

/* ---------- GRID ---------- */
.erians-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

/* ---------- CARD BASE ---------- */
.erians-card-ui {
  position: relative;
  background: #0b0b0b;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
  transition: transform .45s ease, box-shadow .45s ease;
  cursor: default;
}

.erians-card-ui:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,.65);
}

/* ---------- IMAGEN ---------- */
.erians-card-ui-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
}

.erians-card-ui-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease, filter .7s ease;
}

/* Hover imagen */
.erians-card-ui:hover img {
  transform: scale(1.045);
  filter: brightness(1.06) saturate(1.05);
}

/* ---------- OVERLAY SUAVE (MAGIA SUTIL) ---------- */
.erians-card-ui::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(212,175,55,.12),
    rgba(120,160,255,.08),
    rgba(0,0,0,.15)
  );
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.erians-card-ui:hover::after {
  opacity: 1;
}

/* ---------- JERARQUÍA VISUAL ---------- */
.erians-card-ui:first-child .erians-card-ui-img {
  height: 300px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {

  .erians-card-ui-img {
    height: 220px;
  }

  .erians-cards-grid {
    gap: 26px;
    margin: 36px 0;
  }
}