/* ── GALERÍA ÚLTIMAS LLEGADAS ─────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.gallery-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.4,0,.2,1), border-color .3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

/* ── EFECTO HOLO: la tarjeta se inclina y brilla como una carta foil ── */
.gallery-item.holo {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .3s;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.gallery-item.holo:hover { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px); }

.gallery-item.holo .gallery-photo-wrap { position: relative; }
.gallery-item.holo .gallery-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 45%),
    linear-gradient(115deg, transparent 30%, rgba(255,215,0,.35) 42%, rgba(255,68,68,.3) 50%, rgba(255,140,0,.3) 58%, transparent 70%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  transition: opacity .25s ease;
  pointer-events: none;
}
.gallery-item.holo:hover .gallery-photo-wrap::after { opacity: .55; }

.gallery-photo-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .5rem;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.gallery-item:hover .gallery-photo {
  transform: scale(1.04);
}

.gallery-photo[src=""] { display: none; }

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
  border: 1px dashed var(--line-strong);
}

.gallery-photo:not([src=""]) + .gallery-placeholder { display: none; }

.gallery-caption {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px solid var(--line);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-tag {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .7rem;
  background: transparent;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  border-radius: var(--radius);
  white-space: nowrap;
}
