.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-white); border: 1px solid var(--line-white); }
.catalog-card { display: flex; flex-direction: column; min-height: 330px; padding: 1.4rem; background: var(--ink); }
.catalog-card h3 { margin: .4rem 0 .75rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.75rem; font-weight: 400; line-height: 1.08; }
.catalog-card p { color: var(--muted); }
.catalog-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: auto 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-white); }
.catalog-card dt { color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.catalog-card dd { margin: .15rem 0 0; font-weight: 700; }
.catalog-card a { color: var(--gold); font-weight: 700; }
.catalog-card.featured { background: linear-gradient(150deg, rgba(214,173,58,.14), var(--ink) 62%); }
.resource-document { max-width: 980px; margin: 0 auto; padding: 4rem 1.25rem 7rem; }
.resource-document header { padding-bottom: 2rem; border-bottom: 1px solid var(--gold); }
.resource-document h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.resource-document section { padding: 2rem 0; border-bottom: 1px solid var(--line-white); }
.resource-document table { width: 100%; border-collapse: collapse; }
.resource-document th, .resource-document td { padding: .75rem; border: 1px solid var(--line-white); text-align: left; vertical-align: top; }
.resource-document th { color: var(--gold); }
.resource-actions { position: sticky; top: 72px; z-index: 10; display: flex; justify-content: flex-end; gap: .7rem; padding: .7rem max(1.25rem, calc((100vw - 980px) / 2)); background: rgba(5,5,5,.94); border-bottom: 1px solid var(--line-white); }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr; } .resource-document { padding-top: 2rem; } }
@media print { .resource-actions { display: none; } .resource-document { max-width: none; padding: 0; } .resource-document section { break-inside: avoid; } }

/* Catálogo compacto — naranja educación financiera */
.catalog-grid {
  gap: .8rem;
  border: 0;
  background: transparent;
}

.catalog-card {
  min-height: 270px;
  padding: 1.15rem;
  border: 1px solid rgb(255 122 26 / 22%);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgb(255 122 26 / 6%), transparent 46%),
    #0b0a09;
  box-shadow: 0 14px 34px rgb(0 0 0 / 16%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.catalog-card:hover {
  border-color: rgb(255 122 26 / 62%);
  background:
    radial-gradient(circle at 100% 0, rgb(255 122 26 / 13%), transparent 36%),
    #0d0b09;
  transform: translateY(-2px);
}

.catalog-card.featured {
  border-color: rgb(255 122 26 / 58%);
  background: linear-gradient(150deg, rgb(255 122 26 / 18%), #0b0a09 64%);
}

.catalog-card h3 {
  margin: .3rem 0 .6rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.catalog-card > p:not(.eyebrow) {
  margin-bottom: .8rem;
  font-size: .88rem;
  line-height: 1.45;
}

.catalog-card dl {
  gap: .55rem;
  margin: auto 0 .85rem;
  padding-top: .75rem;
  border-top-color: rgb(255 122 26 / 18%);
}

.catalog-card dt { font-size: .62rem; }
.catalog-card dd { font-size: .88rem; }
.catalog-card a { color: #ff8f37; font-size: .86rem; }

.resource-actions {
  border-bottom-color: rgb(255 122 26 / 24%);
  background: rgb(5 5 5 / 96%);
}

@media (max-width: 640px) {
  .catalog-card { min-height: 0; padding: 1rem; border-radius: 11px; }
  .catalog-card h3 { font-size: 1.35rem; }
}

/* Superficies claras para el catálogo y los documentos. */
.catalog-card,
.catalog-card.featured {
  border-color: rgb(255 122 26 / 28%);
  background:
    linear-gradient(145deg, rgb(255 122 26 / 7%), transparent 46%),
    #fff;
  box-shadow: 0 14px 34px rgb(62 40 20 / 8%);
}

.catalog-card:hover {
  border-color: rgb(255 122 26 / 68%);
  background:
    radial-gradient(circle at 100% 0, rgb(255 122 26 / 14%), transparent 36%),
    #fff;
}

.catalog-card p {
  color: #625950;
}

.catalog-card dl {
  border-top-color: rgb(23 19 15 / 13%);
}

.resource-document,
.resource-document section {
  background: #f6f3ed;
}

.resource-actions {
  background: rgb(8 7 6 / 96%);
  color: #fffaf4;
}

.resource-document th,
.resource-document td {
  border-color: rgb(23 19 15 / 14%);
}
