/* ============================================================
   Forum Constructora — Bolsa de Trabajo
   css/bolsa.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --surface: #f7f5f4;
  --surface2: #ede9e8;
  --accent: #bb271a;
  --accent-dark: #8f1c12;
  --text: #1a1614;
  --muted: #7a716e;
  --muted-light: #b0a8a5;
  --line: rgba(0,0,0,0.10);
  --line-strong: rgba(0,0,0,0.18);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 34px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-links .cta:hover { background: var(--accent-dark); }
.nav-social { display: flex; gap: 14px; align-items: center; }
.nav-social a { opacity: .4; transition: opacity .2s; }
.nav-social a:hover { opacity: .85; }
.nav-social img { height: 20px; width: 20px; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5% 64px;
  overflow: hidden;
  background: var(--surface);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1400&auto=format&fit=crop&q=60') center/cover no-repeat;
  opacity: .10;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(62px, 7vw, 80px);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 22px;
  color: var(--muted);
  max-width: 540px;
  font-weight: 400;
}
.hero-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-tag {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  background: var(--bg);
}
.hero-tag strong { color: var(--text); }

/* ── SECTION HEADER ── */
.section-header {
  padding: 72px 5% 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.section-label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--text);
}
.section-header p {
  color: var(--muted);
  font-size: 19px;
  max-width: 380px;
  font-weight: 300;
}
.count-badge {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--surface2);
  letter-spacing: -.03em;
  line-height: 1;
  flex-shrink: 0;
}

/* ── VACANCY GRID ── */
.vacancies { padding: 0 5% 80px; }
.vacancy-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 380px;
  border: 1px solid var(--line);
  margin-top: 40px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.vacancy-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.vacancy-card:nth-child(even) { grid-template-columns: 1fr 380px; }
.vacancy-card:nth-child(even) .card-img { order: 2; }
.vacancy-card:nth-child(even) .card-body { order: 1; }

.card-img {
  position: relative;
  overflow: hidden;
  background: var(--surface2);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
  filter: saturate(.75) brightness(.9);
}
.vacancy-card:hover .card-img img { transform: scale(1.04); filter: saturate(.9) brightness(.95); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(187,39,26,.5) 0%, transparent 60%);
  pointer-events: none;
}
.card-num {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: var(--font-display);
  font-size: 62px; font-weight: 800;
  color: rgba(255,255,255,0.22);
  line-height: 1; pointer-events: none;
}
.vacancy-card:nth-child(even) .card-num { left: auto; right: 20px; }

.card-body {
  background: var(--bg);
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-area {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card-area::before {
  content: ''; width: 20px; height: 1px;
  background: var(--accent); display: block;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: clamp(29px, 2.5vw, 30px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.05; margin-bottom: 6px;
  letter-spacing: .01em; color: var(--text);
}
.card-location {
  font-size: 14px; color: var(--muted);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 6px;
}
.card-location svg { opacity: .45; flex-shrink: 0; }
.card-description {
  font-size: 16px; color: var(--muted);
  font-weight: 300; margin-bottom: 24px;
  line-height: 1.7; max-width: 440px;
}
.card-tags {
  display: flex; flex-wrap: wrap;
  gap: 8px; margin-bottom: 28px;
}
.tag {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px;
  border: 1px solid var(--line-strong);
  color: var(--muted); border-radius: 2px;
  white-space: nowrap; background: var(--bg);
}
.tag.highlight {
  border-color: rgba(187,39,26,.35);
  color: var(--accent);
  background: rgba(187,39,26,.05);
}
.card-reqs { margin-bottom: 28px; }
.card-reqs-title {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted-light);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.req-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.req-list li {
  font-size: 15.5px; color: var(--text);
  font-weight: 300; padding-left: 16px;
  position: relative; line-height: 1.55;
}
.req-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}
.card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.card-exp {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.card-exp strong {
  color: var(--accent-dark);
  font-size: 18px; font-weight: 700;
  display: block; margin-top: 2px;
}
.card-salary {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.card-salary strong {
  color: var(--text);
  font-size: 15px; font-weight: 600;
  display: block; margin-top: 2px;
  letter-spacing: 0;
}
.btn-apply {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 2px;
  transition: background .2s, gap .2s;
  white-space: nowrap;
}
.btn-apply:hover { background: var(--accent-dark); gap: 14px; }
.btn-apply svg { flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: #f7f5f4;
  border-top: 1px solid var(--line);
  padding: 56px 5% 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.footer-brand img { height: 32px; display: block; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: var(--muted); font-weight: 300; max-width: 240px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 13px; font-weight: 300; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); font-weight: 300; margin-bottom: 10px;
}
.footer-contact-item svg { margin-top: 2px; flex-shrink: 0; opacity: .45; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a img { height: 22px; width: 22px; opacity: .35; transition: opacity .2s; }
.footer-social a:hover img { opacity: .75; }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--muted-light); font-weight: 300; }
.footer-bottom a { color: var(--muted); text-decoration: none; font-size: 12px; transition: color .2s; }
.footer-bottom a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .vacancy-card,
  .vacancy-card:nth-child(even) { grid-template-columns: 1fr; }
  .vacancy-card:nth-child(even) .card-img { order: 0; }
  .vacancy-card:nth-child(even) .card-body { order: 0; }
  .card-img { min-height: 240px; }
  .card-body { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-social { display: none; }
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 90;
  padding: 0 5%;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.mobile-menu.is-open {
  max-height: 420px;
  padding: 24px 5% 28px;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu ul li {
  border-bottom: 1px solid var(--line);
}
.mobile-menu ul li:last-child { border-bottom: none; }
.mobile-menu ul a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .2s, padding-left .2s;
}
.mobile-menu ul a:hover { color: var(--accent); padding-left: 6px; }
.mobile-menu .cta-mobile {
  color: var(--accent) !important;
}
.mobile-social {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mobile-social a img { height: 22px; width: 22px; opacity: .45; transition: opacity .2s; }
.mobile-social a:hover img { opacity: .85; }
