/* Centro de recursos Nuvacta: una única fuente de verdad para su composición. */

.resources-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 3.2vw, 3.5rem);
}
.resources-hero::after {
  content: "⌁";
  position: absolute;
  top: clamp(1.4rem, 4vw, 3.5rem);
  right: 0;
  display: grid;
  place-items: center;
  width: clamp(7rem, 14vw, 13rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--surface-radius);
  color: var(--blue-deep);
  font: 700 clamp(3rem, 7vw, 7rem)/1 var(--font-ui);
  opacity: .18;
  pointer-events: none;
}
.resources-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin: 0;
  font: 760 clamp(3rem, 2rem + 4vw, 6.8rem)/.94 var(--font-ui);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.resources-hero h1 strong { font-weight: 900; }
.resources-lede {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.02rem, .94rem + .3vw, 1.35rem);
  font-weight: 430;
  line-height: 1.58;
}
.topic-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.6rem;
}
.topic-pills span {
  padding: .68rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--surface-radius);
  background: rgba(255,255,255,.26);
  font: 780 .76rem/1 var(--font-ui);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}
.resource-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(17rem, 24vw, 21rem);
  overflow: hidden;
  flex-direction: column;
  padding: clamp(1.2rem, 1.7vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--surface-radius);
  background: rgba(255,255,255,.32);
}
.resource-card--featured {
  grid-column: span 2;
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.resource-card::before {
  content: "01";
  position: absolute;
  top: .85rem;
  right: 1rem;
  color: rgba(42,37,67,.18);
  font: 600 clamp(1.55rem, 2vw, 2.8rem)/1 var(--font-data);
}
.resource-card:nth-child(2)::before { content: "02"; }
.resource-card:nth-child(3)::before { content: "03"; }
.resource-card:nth-child(4)::before { content: "04"; }
.resource-card:nth-child(5)::before { content: "05"; }
.resource-card--featured::before { color: rgba(254,253,113,.26); }
.resource-status {
  margin: 0 0 auto;
  color: var(--blue-deep);
  font: 650 .72rem/1.25 var(--font-data);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.resource-card--featured .resource-status { color: var(--acid); }
.resource-card h3 {
  max-width: 24ch;
  margin: 2rem 0 .8rem;
  padding-right: 2.4rem;
  font: 860 clamp(1.3rem, .7vw + 1.1rem, 2rem)/1.05 var(--font-ui);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.resource-card p:not(.resource-status) {
  max-width: 54ch;
  margin: 0 0 1.3rem;
  font-weight: 430;
  line-height: 1.56;
}
.resource-topic {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font: 560 .74rem/1.35 var(--font-data);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.resource-card--featured .resource-topic {
  border-color: var(--line-light);
  color: rgba(247,247,237,.75);
}

.resource-method {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.resource-method-copy { max-width: 58ch; }
.resource-method-copy p:last-child { margin-bottom: 0; }
.resource-method-copy strong {
  font-family: var(--font-ui);
  font-weight: 720;
}
.resource-cta { padding-top: clamp(2rem, 3vw, 2.8rem); }
.resource-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.resource-cta-actions .button {
  white-space: normal;
  text-align: center;
}

@media (max-width: 70rem) {
  .resource-method { grid-template-columns: 1fr; align-items: start; }
  .resources-hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
}

@media (max-width: 60rem) {
  .resources-hero { padding-block: clamp(2.3rem, 6vw, 3.2rem); }
  .resources-hero::after {
    width: clamp(5rem, 18vw, 8rem);
    top: 1rem;
    opacity: .13;
  }
  .resource-card--featured { grid-column: auto; }
  .resource-card { min-height: 0; }
  .resource-cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .resource-cta-actions .button { width: 100%; }
}

@media (max-width: 42rem) {
  .resources-hero h1 { font-size: clamp(2.35rem, 11vw, 3.8rem); line-height: .98; }
  .resources-lede { font-size: 1rem; }
  .topic-pills {
    display: grid;
    grid-template-columns: 1fr;
  }
  .topic-pills span { text-align: center; }
  .resource-grid { grid-template-columns: 1fr; gap: .8rem; }
  .resource-card { padding: 1.1rem; }
  .resource-card h3 { margin-top: 1.65rem; padding-right: 2rem; }
}

@media (max-width: 24rem) {
  .resources-hero::after { display: none; }
  .resource-card::before {
    position: static;
    display: block;
    margin-bottom: .6rem;
  }
  .resource-card h3 { margin-top: .8rem; padding-right: 0; }
}

/* La portada visual de /recursos se controla únicamente desde resources-guide-hero.css. */
