/* mesh — individual-profile single (perfil CPT).
   EPK-inspired (scannable, portrait-forward, contact impossible to miss) but in
   the mesh brutalist system: cream paper, black borders, yellow/purple accents,
   Barlow Condensed heads + Space Grotesk body, hard offset shadows. */

/* Full-bleed past the Astra content container (same reset pattern as servicios):
   the theme sizes the content column to ~1180px, which cut the profile at ~85%. */
.mesh-perfil-single-wrap {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: clip;
}
body:has(.mesh-perfil-single-wrap) #page,
body:has(.mesh-perfil-single-wrap) .site-content,
body:has(.mesh-perfil-single-wrap) .ast-container,
body:has(.mesh-perfil-single-wrap) .entry-content {
  max-width: none !important;
  padding-left: 0 !important; padding-right: 0 !important;
  margin-left: 0 !important; margin-right: 0 !important;
  width: 100% !important;
}
/* The site footer is transparent, so the cream page bg was bleeding through it.
   Give it a solid dark background under the profile (matches the mesh footer). */
body:has(.mesh-perfil-single-wrap) .elementor-location-footer { background-color: #0a0a0a; }

#perfil-wrap {
  --bk: #0a0a0a;
  --wh: #f5f2eb;
  --yl: #ffe135;
  --pu: #7c3aff;
  --pl: #ede9fe;
  --mut: rgba(10,10,10,.6);
  --bd: 2px solid #0a0a0a;
  --fh: 'Barlow Condensed', sans-serif;
  --fb: 'Space Grotesk', sans-serif;
  font-family: var(--fb);
  color: var(--bk);
  background: var(--wh);
}
#perfil-wrap, #perfil-wrap * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
#perfil-wrap a { text-decoration: none; color: inherit; }
#perfil-wrap img { max-width: 100%; display: block; }

/* ── Hero: full-bleed black band, portrait beside the name ─────────────── */
#perfil-wrap .prf-hero { background: var(--bk); width: 100%; }
#perfil-wrap .prf-hero-inner {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(32px,5vw,64px) clamp(16px,5vw,56px);
  display: flex; gap: clamp(24px,4vw,48px); align-items: center; flex-wrap: wrap;
}
#perfil-wrap .prf-portrait {
  flex: 0 0 auto; width: clamp(160px,26vw,248px); aspect-ratio: 1;
  border: 2px solid var(--wh); box-shadow: 10px 10px 0 var(--yl);
  background: var(--pu); overflow: hidden;
}
#perfil-wrap .prf-portrait img { width: 100%; height: 100%; object-fit: cover; }
#perfil-wrap .prf-portrait-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 900; font-size: 72px; color: var(--wh);
}
#perfil-wrap .prf-hero-b { flex: 1 1 340px; min-width: 0; }

#perfil-wrap .prf-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; }
#perfil-wrap .prf-role {
  font-family: var(--fh); font-weight: 800; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; background: var(--yl); color: var(--bk);
  border: 1px solid var(--bk);
}
/* Professional roles (rol-profesional) — outlined chips; primary filled purple */
#perfil-wrap .prf-profroles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
#perfil-wrap .prf-profrole {
  font-family: var(--fb); font-weight: 600; font-size: 12.5px; letter-spacing: .01em;
  padding: 4px 11px; color: rgba(245,242,235,.9);
  background: rgba(245,242,235,.06); border: 1px solid rgba(245,242,235,.32);
}
#perfil-wrap .prf-profrole--primary { background: var(--pu); color: #fff; border-color: var(--pu); font-weight: 700; }
#perfil-wrap .prf-meta-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#perfil-wrap .prf-meta-link:hover { color: var(--yl); }
#perfil-wrap .prf-avail {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fb); font-weight: 600; font-size: 12px; letter-spacing: .02em;
  padding: 4px 11px 4px 9px; color: var(--bk); background: #7CFFB2;
  border: 1px solid var(--bk); text-transform: none;
}
#perfil-wrap .prf-avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #0a7d3a; box-shadow: 0 0 0 2px rgba(10,125,58,.25); }
#perfil-wrap .prf-name {
  font-family: var(--fh); font-weight: 900; font-size: clamp(40px,7vw,76px);
  line-height: .94; letter-spacing: -.015em; text-transform: uppercase;
  color: var(--wh); margin: 0;
}
#perfil-wrap .prf-titular {
  font-family: var(--fb); font-size: clamp(15px,2vw,19px); font-weight: 500;
  color: rgba(245,242,235,.82); margin: 10px 0 0;
}
#perfil-wrap .prf-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px;
  color: rgba(245,242,235,.7); font-size: 14px;
}
#perfil-wrap .prf-meta i { color: var(--yl); }

/* Hero actions: prominent Contact CTA + the save/rec/share control */
#perfil-wrap .prf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
#perfil-wrap .prf-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fh); font-weight: 800; font-size: 17px; letter-spacing: .02em;
  text-transform: uppercase; padding: 12px 24px; background: var(--yl); color: var(--bk);
  border: 2px solid var(--bk); box-shadow: 4px 4px 0 var(--wh);
  transition: transform .12s ease, box-shadow .12s ease;
}
#perfil-wrap .prf-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--wh); }
#perfil-wrap .prf-cta i { font-size: 20px; }
/* Owner "edit my profile" — secondary (outline on the dark band) vs the yellow contact CTA */
#perfil-wrap .prf-cta--edit { background: transparent; color: var(--wh); box-shadow: 4px 4px 0 rgba(255,255,255,.25); }
#perfil-wrap .prf-cta--edit:hover { box-shadow: 6px 6px 0 rgba(255,255,255,.35); }
/* the inline control sits on the dark band; its buttons are already light */
#perfil-wrap .prf-actions .mesh-inline { display: inline-flex; gap: 8px; }

/* ── Body: main column + prominent contact rail ───────────────────────── */
/* Top zone only is 2-col (About | sticky Contact sidebar); every section below
   spans the full width, so the portfolio/rails get room the old all-in-one
   sidebar layout denied them. */
#perfil-wrap .prf-cols {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(28px,4vw,52px) clamp(16px,5vw,56px);
}
#perfil-wrap .prf-top { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(28px,4vw,56px); align-items: start; margin-bottom: clamp(28px,4vw,44px); }
#perfil-wrap .prf-top-main { min-width: 0; }
#perfil-wrap .prf-main { min-width: 0; }
#perfil-wrap .prf-sec { margin-bottom: clamp(32px,4vw,48px); }
#perfil-wrap .prf-h2 {
  font-family: var(--fh); font-weight: 900; font-size: clamp(22px,3vw,30px);
  text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 18px;
  padding-left: 14px; border-left: 6px solid var(--yl); line-height: 1;
}
#perfil-wrap .prf-bio { font-size: 16px; line-height: 1.7; color: rgba(10,10,10,.86); }
#perfil-wrap .prf-bio p { margin: 0 0 1em; }

/* Chips (skills / tags) */
#perfil-wrap .prf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#perfil-wrap .prf-chips-sm { gap: 6px; }
#perfil-wrap .prf-chip {
  font-family: var(--fb); font-size: 13px; font-weight: 500;
  padding: 6px 12px; background: #fff; border: 1px solid rgba(10,10,10,.2);
}
#perfil-wrap .prf-chips-sm .prf-chip { font-size: 11px; padding: 3px 8px; background: var(--pl); border-color: transparent; }
/* "Busco" chips read as intent/action — filled violet, distinct from the plain
   discipline/competency chips. */
#perfil-wrap .prf-chip--busco {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pl); border-color: var(--pu); color: var(--pu); font-weight: 600;
}
#perfil-wrap .prf-chip--busco i { font-size: 15px; }
/* Busco leads the profile as a light "open to" banner, paired with Contact. */
#perfil-wrap .prf-sec--busco {
  background: rgba(96, 65, 213, .05); border: 1px solid var(--pm, rgba(96,65,213,.3));
  padding: 16px 18px; margin-bottom: 20px;
}
#perfil-wrap .prf-sec--busco .prf-h2 { margin-top: 0; }

/* Mis intereses — statement pills + optional tag chips */
#perfil-wrap .prf-interests { display: flex; flex-direction: column; gap: 10px; }
#perfil-wrap .prf-interest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border: 1px solid rgba(10,10,10,.2); background: #fff; border-left: 4px solid var(--pu); }
#perfil-wrap .prf-interest-txt { font-family: var(--fb); font-weight: 600; font-size: 15px; color: var(--bk); }
#perfil-wrap .prf-interest-tags { display: flex; flex-wrap: wrap; gap: 5px; }
#perfil-wrap .prf-interest-tag { font-family: var(--fh); font-weight: 800; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; background: var(--pl); color: var(--pu); }

/* Services rail — horizontal scroll of gig-style cards */
#perfil-wrap .prf-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px,240px);
  gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
#perfil-wrap .prf-svc {
  scroll-snap-align: start; border: var(--bd); background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
#perfil-wrap .prf-svc:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--pu); }
#perfil-wrap .prf-svc-img { position: relative; height: 140px; background: var(--pl); border-bottom: var(--bd); overflow: hidden; display: flex; align-items: center; justify-content: center; }
#perfil-wrap .prf-svc-img img { width: 100%; height: 100%; object-fit: cover; }
#perfil-wrap .prf-svc-ph { font-family: var(--fh); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--pu); padding: 0 10px; text-align: center; }
#perfil-wrap .prf-svc-cat { position: absolute; left: 8px; bottom: 8px; font-family: var(--fh); font-weight: 800; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; background: var(--yl); color: var(--bk); border: 1px solid var(--bk); padding: 3px 7px; }
#perfil-wrap .prf-svc-t { font-family: var(--fb); font-weight: 600; font-size: 14px; line-height: 1.3; margin: 0; padding: 12px 14px; }
/* Enriched event/course/opp cards: date + place + status badge, like the standard cards */
#perfil-wrap .prf-ev .prf-ev-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
#perfil-wrap .prf-ev .prf-svc-t { padding: 0; }
#perfil-wrap .prf-ev-date { display: inline-flex; align-items: center; gap: 5px; font-family: var(--fh); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--pu); }
#perfil-wrap .prf-ev-where { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mut); font-weight: 500; }
#perfil-wrap .prf-ev-date i, #perfil-wrap .prf-ev-where i { font-size: 14px; flex: 0 0 auto; }
#perfil-wrap .prf-ev-badge { position: absolute; left: 8px; top: 8px; font-family: var(--fh); font-weight: 800; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; background: var(--yl); color: var(--bk); border: 1px solid var(--bk); padding: 3px 7px; }
/* Service cards: title + modality + price/access meta line */
#perfil-wrap .prf-sv .prf-sv-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
#perfil-wrap .prf-sv .prf-svc-t { padding: 0; }
#perfil-wrap .prf-sv-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: var(--mut); font-weight: 500; }
#perfil-wrap .prf-sv-meta span { display: inline-flex; align-items: center; gap: 5px; }
#perfil-wrap .prf-sv-meta i { font-size: 14px; color: var(--pu); flex: 0 0 auto; }
#perfil-wrap .prf-sv-price { font-weight: 700; color: var(--bk); }

/* Portfolio grid: 3 across on desktop (now full-width → roomy cards), capped at
   3; "ver todo" reveals the rest inline (no gallery-mode switch). */
#perfil-wrap .prf-portfolio { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 4px 12px; scrollbar-width: thin; }
#perfil-wrap .prf-proj { flex: 0 0 300px; max-width: 300px; scroll-snap-align: start; border: var(--bd); background: #fff; box-shadow: 4px 4px 0 var(--bk); display: flex; flex-direction: column; }
@media (max-width: 480px) { #perfil-wrap .prf-proj { flex-basis: 80vw; max-width: 80vw; } }
#perfil-wrap .prf-proj-img { border-bottom: var(--bd); aspect-ratio: 16/10; overflow: hidden; background: var(--pl); }
#perfil-wrap .prf-proj-img img { width: 100%; height: 100%; object-fit: cover; }
#perfil-wrap .prf-proj-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
#perfil-wrap .prf-proj-t { font-family: var(--fh); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
/* Description clamps to 3 lines; a per-card "leer más" (JS-added when it overflows) toggles .is-open. */
#perfil-wrap .prf-proj-d { font-size: 14px; line-height: 1.5; color: var(--mut); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#perfil-wrap .prf-proj-d.is-open { -webkit-line-clamp: unset; overflow: visible; }
#perfil-wrap .prf-proj-readmore { align-self: flex-start; margin: -2px 0 0; padding: 0; background: none; border: none; cursor: pointer; font-family: var(--fb); font-weight: 700; font-size: 12.5px; color: var(--pu); text-decoration: underline; }
#perfil-wrap .prf-proj-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--mut); font-weight: 600; }
#perfil-wrap .prf-proj-meta i { color: var(--pu); }

/* Work experience — a clean timeline */
#perfil-wrap .prf-exp { list-style: none; margin: 0; padding: 0; }
#perfil-wrap .prf-exp-item { border-left: 2px solid var(--bk); padding: 0 0 22px 18px; position: relative; }
#perfil-wrap .prf-exp-item:last-child { padding-bottom: 0; }
#perfil-wrap .prf-exp-item::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; background: var(--yl); border: 2px solid var(--bk); border-radius: 50%; }
#perfil-wrap .prf-exp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
#perfil-wrap .prf-exp-role { font-family: var(--fh); font-weight: 800; font-size: 18px; text-transform: uppercase; }
#perfil-wrap .prf-exp-span { font-size: 12px; font-weight: 600; color: var(--mut); }
#perfil-wrap .prf-exp-org { font-size: 14px; color: var(--pu); font-weight: 600; margin-top: 2px; }
#perfil-wrap .prf-exp-d { font-size: 14px; line-height: 1.5; color: var(--mut); margin: 6px 0 0; }

/* Reviews / testimonials */
#perfil-wrap .prf-recs-count {
  margin: 0 0 16px; font-family: var(--fh); font-weight: 800; font-size: 18px;
  text-transform: uppercase; letter-spacing: .01em; color: var(--pu);
}
#perfil-wrap .prf-recs { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
#perfil-wrap .prf-rec { margin: 0; border: var(--bd); background: #fff; padding: 16px; box-shadow: 4px 4px 0 var(--pl); transition: transform .14s ease, box-shadow .14s ease; }
#perfil-wrap .prf-rec:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--pu); }
#perfil-wrap .prf-rec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#perfil-wrap .prf-rec-av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--bk); object-fit: cover; }
/* Purple monogram in place of the gray gravatar default. */
#perfil-wrap .prf-rec-av--ph { display: inline-flex; align-items: center; justify-content: center; background: var(--pl); color: var(--pu); font-family: var(--fh); font-weight: 800; font-size: 18px; }
#perfil-wrap .prf-rec-avlink { display: inline-flex; flex: 0 0 auto; }
#perfil-wrap .prf-rec-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#perfil-wrap .prf-rec-name { font-family: var(--fh); font-weight: 800; font-size: 16px; text-transform: uppercase; line-height: 1.1; }
#perfil-wrap .prf-rec-name a { color: inherit; }
#perfil-wrap .prf-rec-name a:hover { color: var(--pu); }
#perfil-wrap .prf-rec-meta { font-size: 12px; color: rgba(10,10,10,.6); font-weight: 500; }
#perfil-wrap .prf-rec-meta a { color: inherit; text-decoration: underline; text-decoration-color: rgba(10,10,10,.25); }
#perfil-wrap .prf-rec-meta a:hover { color: var(--pu); text-decoration-color: var(--pu); }
#perfil-wrap .prf-rec-why { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(10,10,10,.82); }
/* Textless recommenders: an overlapping avatar stack instead of empty cards. */
#perfil-wrap .prf-recs-also { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
#perfil-wrap .prf-recs-also-lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(10,10,10,.55); }
#perfil-wrap .prf-recs-also-avs { display: flex; }
#perfil-wrap .prf-also-av { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--bk); overflow: hidden; margin-left: -8px; display: inline-flex; background: #fff; transition: transform .12s ease; }
#perfil-wrap .prf-also-av:first-child { margin-left: 0; }
#perfil-wrap .prf-also-av:hover { transform: translateY(-3px); position: relative; z-index: 2; }
#perfil-wrap .prf-also-av img { width: 100%; height: 100%; object-fit: cover; }
#perfil-wrap .prf-also-ph { width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center; background: var(--pl); color: var(--pu); font-family: var(--fh); font-weight: 800; font-size: 15px; }

/* "Be the first to recommend" empty state */
#perfil-wrap .prf-rec-invite {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: var(--bd); background: #fff; padding: 20px 22px; box-shadow: 6px 6px 0 var(--pl);
}
#perfil-wrap .prf-invite-rocket {
  width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--pl); border: 1px solid var(--bk); color: var(--pu); font-size: 22px;
}
#perfil-wrap .prf-invite-txt { margin: 0; flex: 1 1 200px; font-size: 15px; font-weight: 600; }
#perfil-wrap .prf-invite-ctl { display: inline-flex; }

/* Owner CTA: "Pide una recomendación" — sits under the rec section in every
   owner state. Solid violet action, matches the hero's prominent buttons. */
#perfil-wrap .prf-req-cta { display: inline-flex; margin-top: 14px; }
#perfil-wrap .prf-req-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--fh); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
  color: #fff; background: var(--pu); border: 1px solid var(--bk); box-shadow: 4px 4px 0 var(--bk);
  padding: 11px 18px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
#perfil-wrap .prf-req-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--bk); background: #000; }
#perfil-wrap .prf-req-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--bk); }
#perfil-wrap .prf-req-btn i { font-size: 18px; }

/* "Recomendaciones que doy" — the professional's public given recs (LinkedIn's
   "Given"). Card grid, one per recommended object. */
/* Sibling to .prf-recs (received) — same grid/card conventions + the same
   purple-themed shadow and hover lift, so both rec sections read as one pair. */
#perfil-wrap .prf-given { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
#perfil-wrap .prf-given-card {
  display: flex; flex-direction: column; gap: 10px;
  border: var(--bd); background: #fff; box-shadow: 4px 4px 0 var(--pl);
  padding: 16px; transition: transform .14s ease, box-shadow .14s ease;
}
#perfil-wrap .prf-given-card:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--pu); }
#perfil-wrap .prf-given-hd { display: flex; align-items: center; gap: 10px; }
#perfil-wrap .prf-given-av {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid var(--bk); object-fit: cover; background: #fff;
}
#perfil-wrap .prf-given-av--ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pl); color: var(--pu);
  font-family: var(--fh); font-weight: 800; font-size: 18px;
}
#perfil-wrap .prf-given-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#perfil-wrap .prf-given-title { font-family: var(--fh); font-weight: 800; font-size: 16px; line-height: 1.12; color: var(--bk); text-transform: uppercase; }
#perfil-wrap .prf-given-meta { font-family: var(--fb); font-size: 12px; color: rgba(10,10,10,.6); font-weight: 500; letter-spacing: 0; text-transform: none; }
/* Clamp so a long testimonial doesn't stretch one grid cell past the others. */
#perfil-wrap .prf-given-why {
  font-size: 14px; line-height: 1.5; color: rgba(10,10,10,.82); font-style: italic;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
/* Progressive disclosure: hide the overflow cards until "Ver todas" expands. */
#perfil-wrap .prf-given.is-capped .prf-given-extra { display: none; }
#perfil-wrap .prf-given-more {
  margin-top: 14px; cursor: pointer; background: #fff;
  font-family: var(--fh); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--bk); border: 1px solid var(--bk); box-shadow: 3px 3px 0 var(--bk);
  padding: 9px 16px; transition: transform .12s ease, box-shadow .12s ease;
}
#perfil-wrap .prf-given-more:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--pl); }
@media (max-width: 600px) {
  #perfil-wrap .prf-given { grid-template-columns: 1fr; }
}

/* ── Contact — sticky sidebar beside About (EPK "make contact easy") ─────── */
#perfil-wrap .prf-side { position: sticky; top: 24px; }
#perfil-wrap .prf-card { border: var(--bd); background: #fff; box-shadow: 6px 6px 0 var(--yl); padding: 20px 22px; }
#perfil-wrap .prf-card .prf-h2 { border-left-color: var(--pu); }
#perfil-wrap .prf-contact { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#perfil-wrap .prf-contact a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; word-break: break-word; }
#perfil-wrap .prf-contact i { color: var(--pu); font-size: 18px; flex: 0 0 auto; }
#perfil-wrap .prf-contact a:hover { color: var(--pu); }
#perfil-wrap .prf-social { display: flex; gap: 8px; }
#perfil-wrap .prf-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: var(--bd); background: #fff; transition: background .12s ease, color .12s ease; }
#perfil-wrap .prf-social a:hover { background: var(--pu); color: #fff; }
#perfil-wrap .prf-social i { font-size: 20px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  #perfil-wrap .prf-top { grid-template-columns: 1fr; }
  #perfil-wrap .prf-side { position: static; }
  #perfil-wrap .prf-card { box-shadow: 4px 4px 0 var(--yl); }
}
/* Stack the hero early (≤760) so it never hits the awkward row-wrap zone that
   left a big black void under the actions. Content-sized column, tight padding. */
@media (max-width: 760px) {
  #perfil-wrap .prf-hero-inner {
    flex-direction: column; align-items: flex-start; flex-wrap: nowrap; text-align: left;
    gap: 14px; padding: 22px clamp(16px,5vw,26px) 26px;
  }
  #perfil-wrap .prf-hero-b { flex: 0 0 auto; width: 100%; }  /* no 340px min-height inflation */
  #perfil-wrap .prf-portrait { flex: 0 0 auto; width: 104px; box-shadow: 5px 5px 0 var(--yl); }
  #perfil-wrap .prf-portrait-ph { font-size: 46px; }
  #perfil-wrap .prf-name { font-size: clamp(30px,9vw,44px); line-height: .96; }
  #perfil-wrap .prf-titular { font-size: 15px; margin-top: 6px; }
  /* Compact the chips row + availability badge so they don't sprawl. */
  #perfil-wrap .prf-roles { gap: 5px 6px; margin-bottom: 10px; }
  #perfil-wrap .prf-role, #perfil-wrap .prf-profrole { font-size: 11px; padding: 3px 8px; }
  #perfil-wrap .prf-avail { font-size: 11px; padding: 3px 9px 3px 8px; }
  #perfil-wrap .prf-meta { gap: 6px 14px; font-size: 13px; margin-top: 12px; }
  /* Actions: CONTACT owns the first row full-width; Follow then sits on the
     next row beside the Recommend + Share icons, so the keep-track/endorse/
     share cluster reads as one group. Edit (owner) spans its own row below. */
  #perfil-wrap .prf-actions { margin-top: 16px; width: 100%; gap: 10px; }
  #perfil-wrap .prf-cta:not(.prf-cta--edit) { flex: 1 1 100%; justify-content: center; font-size: 15px; padding: 11px 16px; }
  #perfil-wrap .prf-actions .mesh-follow.is-prominent { flex: 1 1 auto; }
  #perfil-wrap .prf-actions .mesh-follow.is-prominent .mesh-follow-btn { width: 100%; }
  #perfil-wrap .prf-cta--edit { flex: 1 1 100%; justify-content: center; font-size: 15px; padding: 11px 16px; }
}

/* Subtle "report this profile" — low-key best-practice moderation hint */
#perfil-wrap .prf-report { text-align: center; padding: 22px 16px 40px; }
#perfil-wrap .prf-report-link { background: none; border: none; cursor: pointer; font-family: var(--fb); font-size: 12.5px; color: #8a857c; display: inline-flex; align-items: center; gap: 6px; opacity: .75; transition: opacity .12s, color .12s; }
#perfil-wrap .prf-report-link:hover { opacity: 1; color: #b91c1c; }
#perfil-wrap .prf-report-link[disabled] { cursor: default; color: #16a34a; opacity: 1; }

/* ─── HERO RECS PROOF LINE (School B) ─────────────────────────────────────────
   Display-only social-proof under the roles/meta on the (dark) profile hero,
   scrolls to #prf-recs. The action rocket in .prf-actions stays a pure verb —
   its inline count is hidden here so the number lives in exactly one place. */
#perfil-wrap .prf-recs-proof{
  display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 14px;
  align-self: flex-start; width: fit-content; max-width: 100%; white-space: nowrap;
  font-family: var(--fb); font-size: 14px; line-height: 1; color: #4A2A93 !important; text-decoration: none;
  background: #EDE9FE; border: 1px solid rgba(124,58,255,.28);
  padding: 6px 13px; border-radius: 999px; transition: background .15s ease;
}
#perfil-wrap .prf-recs-proof:hover{ background: #E1D9FC; }
#perfil-wrap .prf-recs-proof i{ font-size: 15px; color: #6D28D9 !important; }
#perfil-wrap .prf-recs-proof .prf-recs-proof-sub{ opacity: .72; font-size: 13px; }
#perfil-wrap .prf-actions .mesh-inline-count{ display: none !important; }
/* Mobile: drop the sub-label so the pill stays one clean row at any digit count. */
@media (max-width: 640px){ #perfil-wrap .prf-recs-proof .prf-recs-proof-sub{ display: none; } }
