/* ============================================================
   Página de perfil (Leoh Marhym) — réplica del estilo
   leonincstudios.com/leoh-marhym. Tema oscuro, acento rojo.
   ============================================================ */
:root {
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --card: #16161a;
  --ink: #f5f5f7;
  --muted: #9aa0a8;
  --line: #262629;
  --brand: #e6001e;
  --brand-2: #ff3b52;
  --red: #e6001e;
  --pad: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.pf-loading { text-align: center; color: var(--muted); padding: 120px 20px; letter-spacing: 0.1em; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.pf-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.pf-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pf-brand img { height: 54px; width: auto; }
.pf-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.pf-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); padding: 4px 2px; position: relative; transition: color 0.2s;
}
.pf-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand); transform: scaleX(0); transition: transform 0.25s;
}
.pf-nav a:hover { color: var(--ink); }
.pf-nav a:hover::after { transform: scaleX(1); }

/* ---------- Secondary anchor nav (no sticky: el header compartido ya es sticky) ---------- */
.pf-subnav {
  position: relative;
  background: rgba(10,10,11,0.9);
  border-bottom: 1px solid var(--line);
}
.pf-subnav .inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; gap: 22px; overflow-x: auto; justify-content: center;
}
.pf-subnav a {
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; transition: color 0.2s;
}
.pf-subnav a:hover { color: var(--brand-2); }

/* ---------- Hero ---------- */
.pf-hero { padding: 74px 0 56px; text-align: center; position: relative; }
.pf-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 50% 0%, rgba(230,0,30,0.14), transparent 70%);
}
.pf-photo {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 0 auto 26px;
  border: 3px solid rgba(255,255,255,0.1); box-shadow: 0 0 0 6px rgba(230,0,30,0.14), 0 20px 60px rgba(0,0,0,0.6);
}
.pf-name { font-size: clamp(28px, 5vw, 46px); font-weight: 700; letter-spacing: -0.01em; }
.pf-title {
  font-size: 15px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-2);
  margin-top: 8px; font-weight: 500;
}
.pf-contact { display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.pf-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.pf-contact a:hover { color: var(--ink); }
.pf-contact .lbl { color: #6b6b72; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }

.pf-socials { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pf-soc {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: all 0.2s;
}
.pf-soc:hover { border-color: var(--brand); background: var(--brand); transform: translateY(-3px); }
.pf-soc svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Section shell ---------- */
.pf-section { padding: 60px 0; border-top: 1px solid var(--line); }
.pf-eyebrow { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.pf-h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; margin-top: 6px; }
.pf-section-head { margin-bottom: 34px; }

/* ---------- Demo reel ---------- */
.pf-reel { text-align: center; }
.pf-reel .pf-section-head { margin-bottom: 26px; }
.pf-reel-frame {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; background: #000; cursor: pointer; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.pf-reel-frame img, .pf-reel-frame iframe, .pf-reel-frame video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.pf-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); transition: background 0.2s;
}
.pf-reel-frame:hover .pf-play { background: rgba(0,0,0,0.1); }
.pf-play .dot {
  width: 82px; height: 82px; border-radius: 50%; background: rgba(230,0,30,0.92);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(230,0,30,0.5);
}
.pf-play .dot::after { content: ''; border-style: solid; border-width: 15px 0 15px 26px; border-color: transparent transparent transparent #fff; margin-left: 6px; }

/* ---------- Experiencia (timeline) ---------- */
.pf-timeline { position: relative; }
.pf-exp {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.pf-exp:first-child { border-top: none; }
.pf-exp .when { color: var(--muted); font-size: 13.5px; }
.pf-exp .when .org { color: var(--ink); font-weight: 600; display: block; font-size: 15px; margin-bottom: 2px; }
.pf-exp .when .loc { display: block; margin-top: 4px; font-size: 12.5px; color: #6b6b72; }
.pf-exp .role { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.pf-exp .desc { color: var(--muted); font-size: 14.5px; white-space: pre-line; }
@media (max-width: 720px) {
  .pf-exp { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Proyectos ---------- */
.pf-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .pf-proj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pf-proj-grid { grid-template-columns: 1fr; } }
.pf-proj {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); background: var(--card);
}
.pf-proj img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pf-proj:hover img { transform: scale(1.06); }
.pf-proj .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-weight: 600; font-size: 16px;
}

/* ---------- Acerca de mi ---------- */
.pf-about p { color: #c9ccd2; font-size: 16px; margin-bottom: 18px; white-space: pre-line; }
.pf-about { max-width: 860px; }

/* ---------- Featured ---------- */
.pf-featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card);
}
@media (max-width: 820px) { .pf-featured-card { grid-template-columns: 1fr; } }
.pf-featured-card .media { position: relative; min-height: 300px; }
.pf-featured-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-featured-card .body { padding: 34px 34px 38px; }
.pf-featured-card .tag { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }
.pf-featured-card .ft { font-size: 26px; font-weight: 700; margin: 10px 0 14px; }
.pf-featured-card .desc { color: var(--muted); font-size: 15px; }
.pf-featured-card .making-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin: 22px 0 6px; font-weight: 600; }
.pf-featured-card .making { color: var(--muted); font-size: 14px; }
.pf-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 11px 22px;
  font-size: 14px; font-weight: 600; transition: filter 0.2s, transform 0.2s;
}
.pf-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ---------- Social CTA ---------- */
.pf-cta { text-align: center; padding: 70px 0; }
.pf-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 26px; }
.pf-cta .pf-socials { margin-top: 0; }

/* ---------- Footer ---------- */
.pf-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 46px 0 30px; }
.pf-footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; text-align: center; }
.pf-footer-logo img { height: 46px; margin: 0 auto 18px; }
.pf-footer .copy { color: #6b6b72; font-size: 13px; margin-top: 20px; }
.pf-footer .flinks { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.pf-footer .flinks a { color: var(--muted); font-size: 13px; }
.pf-footer .flinks a:hover { color: var(--ink); }

/* ============================================================
   Vacantes (listado + detalle)
   ============================================================ */
.jobs-wrap { max-width: 960px; margin: 0 auto; padding: 60px 24px 80px; }
.jobs-title { text-align: center; margin-bottom: 8px; }
.jobs-title h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
.jobs-title p { color: var(--muted); margin-top: 6px; }

.jobs-filters {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: end;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; margin: 30px 0 20px;
}
.jobs-filters .fg { flex: 1; min-width: 180px; }
.jobs-filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.jobs-filters select, .jobs-filters input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; color-scheme: dark;
}
.jobs-filters select:focus, .jobs-filters input:focus { outline: none; border-color: var(--brand); }
.jobs-count { color: var(--muted); font-size: 14px; margin: 6px 2px 18px; }
.jobs-count b { color: var(--ink); }

.job-card {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; margin-bottom: 14px; transition: border-color 0.2s, transform 0.2s;
}
.job-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.job-card .jc-main { min-width: 0; }
.job-card .jc-title { font-size: 20px; font-weight: 600; }
.job-card .jc-loc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.job-card .jc-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.job-tag {
  font-size: 12px; letter-spacing: 0.04em; color: var(--brand-2);
  background: rgba(230,0,30,0.14); border-radius: 999px; padding: 4px 12px;
}
.job-view {
  flex: none; background: var(--brand); color: #fff; border-radius: 999px;
  padding: 11px 22px; font-size: 14px; font-weight: 600; transition: filter 0.2s;
}
.job-view:hover { filter: brightness(1.1); }
.jobs-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ---- Detalle ---- */
.job-detail { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.job-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.job-back:hover { color: var(--ink); }
.job-detail .jd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.job-detail h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.job-detail .jd-loc { color: var(--muted); margin-top: 8px; }
.job-detail .jd-meta { display: flex; gap: 30px; flex-wrap: wrap; margin: 26px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.job-detail .jd-meta .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.job-detail .jd-meta .v { font-size: 16px; font-weight: 600; margin-top: 3px; }
.job-sec { margin-top: 32px; }
.job-sec > h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.job-rich h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.job-rich p { color: #c9ccd2; margin-bottom: 10px; }
.job-rich ul { list-style: none; margin: 0 0 12px; padding: 0; }
.job-rich li { color: #c9ccd2; padding-left: 20px; position: relative; margin-bottom: 7px; }
.job-rich li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.job-apply {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 14px 30px;
  font-size: 15px; font-weight: 600; transition: filter 0.2s, transform 0.2s;
}
.job-apply:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ============================================================
   Pie de página del portafolio (footer.js) — reutilizado aquí
   ============================================================ */
.site-footer {
  margin-top: 100px;
  padding: 40px var(--pad) 70px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.footer-top { margin-bottom: 24px; }
.footer-logo img { height: 116px; width: auto; display: block; border-radius: 8px; }
.footer-divider { height: 1px; background: #262626; margin-bottom: 46px; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.9fr;
  gap: 40px 48px;
}
.fcol h4 { font-size: 22px; font-weight: 700; margin-bottom: 26px; }
.fcol > a {
  display: block;
  color: #b9b9b9;
  text-decoration: none;
  font-size: 19px;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.fcol > a:hover { color: #fff; }
.social-icons { display: flex; gap: 20px; color: #fff; margin-bottom: 26px; }
.social-icons a { color: #fff; opacity: 0.9; transition: opacity 0.2s, color 0.2s; }
.social-icons a:hover { color: var(--red); opacity: 1; }
.subscribe {
  display: inline-flex;
  align-items: center;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.subscribe:hover { background: #383838; }
.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2a2a2a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  width: 210px;
  justify-content: flex-start;
}
.lang-select .flag { font-size: 20px; }
.lang-select .chev { margin-left: auto; opacity: 0.7; }
.story-tabs { display: flex; gap: 12px; margin-bottom: 18px; }
.story-tab {
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 13px 26px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.story-tab.active { background: #fff; color: #000; border-color: #fff; }
.story-card {
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 28px 32px;
  min-height: 220px;
}
.story-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.story-body { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; }
.story-body p { color: #bdbdbd; font-size: 16px; line-height: 1.6; max-width: 460px; }
.story-more {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: underline;
  white-space: nowrap;
  flex: none;
}
.story-more:hover { color: var(--red); }
.story-empty { color: #888; font-size: 16px; }
@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 44px 48px; }
}
@media (max-width: 820px) {
  .story-body { flex-direction: column; gap: 16px; }
  .story-more { align-self: flex-start; }
}
@media (max-width: 560px) {
  .site-footer { padding-bottom: 48px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .fcol h4 { margin-bottom: 18px; }
  .fcol > a { font-size: 17px; margin-bottom: 16px; }
  .footer-logo img { height: 84px; }
  .lang-select { width: 100%; }
  .story-card h3 { font-size: 24px; }
}
