/* ============================================================
   RECURSOS — Search Talent Pros
   ============================================================ */

/* ---------- HERO ---------- */
.rec-hero{
  position:relative;
  background:#fff;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:140px;
  padding-bottom:clamp(48px,7vw,96px);
  overflow:hidden;
}
.rec-hero .hero__inner{ max-width:760px; }
.rec-hero h1{ margin-bottom:26px; }
.rec-hero h1 em{ color:var(--red); font-style:normal; font-family:var(--sans); font-weight:500; }
.rec-hero .lede{ max-width:620px; margin-bottom:0; }
/* canvas — ocupa todo el hero como en Home */
.rec-hero .hero__canvas{
  position:absolute; top:0; right:0;
  height:100%; width:62%;
  pointer-events:none; z-index:0;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 26%);
  mask-image:linear-gradient(90deg, transparent, #000 26%);
}

/* ---------- MAIN LAYOUT ---------- */
.rec-section{ background:var(--paper); }
.rec-layout{
  display:grid;
  grid-template-columns:1fr 300px;
  gap:clamp(28px,4vw,56px);
  align-items:start;
}

/* ---------- FILTERS ---------- */
.rec-filters{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom:clamp(28px,3.5vw,44px);
}
.rec-filter{
  border:1.5px solid var(--purple-14);
  background:#fff;
  color:var(--ink-soft);
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:500;
  padding:.42em 1.1em;
  border-radius:var(--r-full);
  cursor:pointer;
  transition:background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.rec-filter:hover{ border-color:var(--purple-2); color:var(--purple); }
.rec-filter.on{
  background:var(--purple);
  border-color:var(--purple);
  color:#fff;
}

/* ---------- ARTICLE GRID ---------- */
.rec-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:clamp(14px,2vw,22px);
}

/* ---------- ARTICLE CARD ---------- */
.rec-card{
  background:#fff;
  border:1px solid var(--purple-10);
  border-radius:var(--r-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  transition:box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.rec-card:hover{ box-shadow:var(--sh-2); transform:translateY(-4px); border-color:var(--purple-14); }
/* Whole card is one link (stretched over the card); inner content stays visual. */
.rec-card__stretch{ position:absolute; inset:0; z-index:2; border-radius:inherit; }
.rec-card__stretch:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

/* Featured — purple background */
.rec-card--featured{ background:var(--purple); border-color:transparent; }
.rec-card--featured:hover{ border-color:transparent; box-shadow:var(--sh-3); }

/* Image */
.rec-card__img{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--paper-dim);
  flex:none;
}
.rec-card__img image-slot{ width:100%; height:100%; display:block; }

/* Featured image — inset with padding + rounded */
.rec-card--featured .rec-card__img{
  margin:14px 14px 0;
  width:calc(100% - 28px);
  border-radius:var(--r-md);
  aspect-ratio:4/3;
}

/* Body */
.rec-card__body{
  padding:clamp(16px,1.8vw,22px);
  display:flex;
  flex-direction:column;
  flex:1;
  gap:10px;
}

/* Category */
.rec-card__cat{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-mute);
}
.rec-card--featured .rec-card__cat{ color:var(--on-dark-soft); }

/* Title */
.rec-card__title{
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(.95rem,1.1vw,1.1rem);
  color:var(--purple);
  line-height:1.3;
  margin:0;
  flex:1;
}
.rec-card--featured .rec-card__title{ color:#fff; }

/* Arrow */
.rec-card__footer{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-top:6px;
}
.rec-card__arrow{
  width:42px; height:42px;
  border-radius:50%;
  border:1.5px solid var(--purple-14);
  background:transparent;
  color:var(--purple);
  display:grid;
  place-items:center;
  transition:background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  flex:none;
}
.rec-card__arrow svg{ width:16px; height:16px; }
.rec-card:hover .rec-card__arrow{ background:var(--red); border-color:var(--red); color:#fff; transform:rotate(45deg); }
.rec-card--featured .rec-card__arrow{ background:var(--red); border-color:var(--red); color:#fff; }
.rec-card--featured:hover .rec-card__arrow{ background:#fff; border-color:#fff; color:var(--red); }

/* ---------- STICKY ASIDE ---------- */
.rec-aside{ position:sticky; top:120px; }
.rec-cta-card{
  background:var(--purple);
  border-radius:var(--r-lg);
  padding:clamp(24px,2.8vw,36px);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rec-cta-card .kicker{ color:var(--on-dark-soft); }
.rec-cta-card h3{
  font-family:var(--serif);
  font-weight:700;
  font-size:1.3rem;
  color:#fff;
  margin:0;
  line-height:1.2;
}
.rec-cta-card p{
  font-size:.9rem;
  color:var(--on-dark-soft);
  margin:0;
  line-height:1.55;
}
.rec-cta-card .btn{ align-self:flex-start; margin-top:6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px){
  .rec-layout{ grid-template-columns:1fr; }
  .rec-aside{ position:static; }
  .rec-cta-card{ flex-direction:row; align-items:center; flex-wrap:wrap; gap:18px; }
  .rec-cta-card h3{ flex:1; min-width:200px; }
  .rec-cta-card p{ display:none; }
}
@media (max-width:760px){
  .rec-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .rec-grid{ grid-template-columns:1fr; }
}
