/* Ajustes exclusivos del contenido nuevo. La grilla y el tema publicado no cambian. */
.nex-work {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  color: var(--ink);
  text-decoration: none;
}
.nex-work__brand {
  display: flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  background: #17161B;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 43px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
}
.nex-work__brand > span { color: #F0008B; }
.nex-work__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
}
.nex-work__copy h3 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}
.nex-work__copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.nex-work__cta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: auto;
  padding-top: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nex-work:hover .nex-work__cta { text-decoration-thickness: 2px; }
.nex-work:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }

/* La foto aportada está de costado; se orienta al mostrarla, sin editar el original. */
#cardReading .reading-cover img[src$="san-martin-tiene-historia.png"] { object-fit: contain; transform: rotate(90deg); }

@media (min-width: 761px) and (max-width: 1050px) {
  .nex-work__brand { flex-basis: 30px; font-size: 27px; }
  .nex-work__copy { padding: 6px 8px; }
  .nex-work__copy h3 { font-size: 11px; line-height: 1.2; }
  .nex-work__copy p { display: none; }
  .nex-work__cta { min-height: 24px; padding-top: 4px; font-size: 10.5px; }
}
@media (max-width: 760px) {
  #cardNex { min-height: 230px; }
  .nex-work__brand { flex-basis: 76px; font-size: 50px; }
  .nex-work__copy { padding: 18px; }
  .nex-work__copy h3 { font-size: 18px; }
  .nex-work__copy p { font-size: 14px; }
  .nex-work__cta { min-height: 40px; font-size: 14px; }
}
