    /* ---------- CUADRÍCULA ---------- */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* ---------- TARJETA ---------- */
.hover-effect-container {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-effect-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hover-effect-container img,
.hover-effect-container [data-bynder-widget] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hover-effect-container:hover img {
  transform: scale(1.03);
}

/* ---------- OVERLAY ---------- */
.hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  color: #fff;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0.4px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Icono fino tipo línea (flecha de descarga) */
.hover-text::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/><polyline points='7 10 12 15 17 10'/><line x1='12' y1='15' x2='12' y2='3'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.hover-effect-container:hover .hover-text,
.hover-effect-container:focus-visible .hover-text {
  opacity: 1;
}

/* ---------- MÓVIL (sin hover) ---------- */
@media (hover: none) {
  .hover-text {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0) 50%
    );
    justify-content: flex-end;
    padding-bottom: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hover-text::before {
    width: 20px;
    height: 20px;
  }
}

