.topics article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d7dcdf;
  padding: calc(62.5% + 28px) 28px 28px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 43, 47, .08);
}

.topics article::after {
  content: "";
  position: absolute;
  top: calc(62.5% - 42px);
  right: 0;
  left: 0;
  height: 44px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.topic-image {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center;
  background: #dfe3e5;
  transition: transform .45s ease;
}

.topics article[data-content-card="cnc"] .topic-image { object-position: 50% 50%; }
.topics article[data-content-card="procesos"] .topic-image { object-position: 50% 50%; }
.topics article[data-content-card="fabricacion"] .topic-image { object-position: 50% 50%; }

.topics article:hover .topic-image { transform: scale(1.018); }
.topics article h3 {
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 30px);
}
.topics article p {
  z-index: 1;
  max-width: 36rem;
  margin: 12px 0 22px;
  color: var(--muted);
  line-height: 1.55;
}
.topics article .topic-footer,
.topics article time {
  z-index: 1;
  margin-top: auto;
  color: var(--blue);
}

@media (max-width: 760px) {
  .topics article {
      padding: calc(62.5% + 24px) 24px 24px;
  }
  .topics article:hover .topic-image { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .topic-image { transition: none; }
}
.topics time {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.topic-link {
  align-self: flex-start;
  margin-top: 16px;
  border-bottom: 2px solid #d5ad00;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
}

.topic-link:hover,
.topic-link:focus-visible {
  color: var(--blue);
}

.topic-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 200%;
}

.topics article.has-link { cursor: pointer; }
.topics article:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.topic-cta{display:block;margin-top:18px;font-size:15px;color:var(--blue);text-decoration:underline;text-underline-offset:4px}
