/* ============================================================
   YOJOB — Design Tokens & Base
   ============================================================ */

:root {
  /* Colors */
  --color-primary: #283e5c;
  --color-primary-soft: #34507a;
  --color-accent: #f29b54;
  --color-accent-dark: #db8841;
  --color-fresh: #149097;
  --color-vibrant: #e56564;
  --color-secondary: #3d82ab;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --color-bg-softer: #fafbfc;
  --color-text: #1a2235;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-soft: #eef0f3;

  /* Typography */
  --font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: clamp(36px, 5vw, 56px);
  --font-h1: clamp(28px, 3.2vw, 40px);
  --font-h2: clamp(22px, 2.4vw, 32px);
  --font-h3: clamp(18px, 1.6vw, 22px);
  --font-body-lg: 17px;
  --font-body: 16px;
  --font-small: 14px;
  --font-caption: 13px;

  /* Tweakable weights */
  --weight-display: 900;
  --weight-heading: 700;
  --weight-body: 400;
  --weight-strong: 700;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radius — tweakable */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Density — tweakable */
  --density-pad: 24px;
  --density-gap: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.08), 0 16px 48px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 3px rgba(61, 130, 171, 0.35);

  --header-h: 72px;
  --max-w: 1280px;
  --content-pad: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  font-size: var(--font-body);
  font-weight: var(--weight-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

p { margin: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: var(--font-body); }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  width: 100%;
}
.section {
  padding: 64px 0;
}
@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-size: var(--font-body);
  font-weight: var(--weight-strong);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--color-accent-dark); text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 10px 20px;
}
.btn-secondary:hover { background: var(--color-primary); color: white; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 12px;
}
.btn-ghost:hover { background: var(--color-bg-soft); text-decoration: none; }
.btn-danger {
  background: var(--color-vibrant);
  color: white;
}
.btn-danger:hover { filter: brightness(0.92); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: var(--font-small); }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn-icon:hover { background: var(--color-bg-soft); border-color: var(--color-text-muted); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: var(--font-small);
  font-weight: var(--weight-strong);
  color: var(--color-text);
}
.field-helper {
  font-size: var(--font-caption);
  color: var(--color-text-muted);
}
.field-error {
  font-size: var(--font-caption);
  color: var(--color-vibrant);
  display: flex; align-items: center; gap: 4px;
}
.input, .textarea, .select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--color-text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(40, 62, 92, 0.12);
}
.textarea { min-height: 120px; resize: vertical; padding: 12px 16px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.checkbox, .radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.checkbox input, .radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 20px; height: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.checkbox input:checked + .check-box {
  background: var(--color-fresh);
  border-color: var(--color-fresh);
}
.checkbox input:checked + .check-box svg { opacity: 1; }
.check-box svg { opacity: 0; transition: opacity 0.15s; }

.radio-circle {
  width: 20px; height: 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.radio-circle::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--color-fresh);
  border-radius: 999px;
  transform: scale(0);
  transition: transform 0.15s;
}
.radio input:checked + .radio-circle { border-color: var(--color-fresh); }
.radio input:checked + .radio-circle::after { transform: scale(1); }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-caption);
  font-weight: var(--weight-strong);
  line-height: 1.4;
  white-space: nowrap;
}
.badge-new      { background: var(--color-accent); color: white; }
.badge-sector   { background: #dbe7f0; color: var(--color-primary); }
.badge-neutral  { background: var(--color-bg-soft); color: var(--color-text-muted); }
.badge-sent     { background: rgba(61, 130, 171, 0.14); color: var(--color-secondary); }
.badge-review   { background: rgba(242, 155, 84, 0.16); color: #b86a26; }
.badge-interview{ background: rgba(20, 144, 151, 0.14); color: var(--color-fresh); }
.badge-rejected { background: rgba(229, 101, 100, 0.14); color: var(--color-vibrant); }
.badge-success  { background: rgba(20, 144, 151, 0.14); color: var(--color-fresh); }

/* ============================================================
   Card
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--density-pad);
  border: 1px solid var(--color-border-soft);
}

/* ============================================================
   Avatar / Company logo placeholders
   ============================================================ */
.avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-strong);
  color: white;
  font-size: 15px;
  flex-shrink: 0;
}
.company-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-strong);
  font-size: 11px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  padding: 4px;
  text-align: center;
  line-height: 1.1;
}

/* ============================================================
   Utilities
   ============================================================ */
.stack { display: flex; flex-direction: column; }
.row   { display: flex; align-items: center; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--font-small); }
.caption { font-size: var(--font-caption); color: var(--color-text-muted); }
.bold  { font-weight: var(--weight-strong); }

.divider { height: 1px; background: var(--color-border); border: 0; margin: 0; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.36s ease-out both; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { transform: scale(0.95); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* Screen container — root for each screen */
.screen { animation: fadeIn 0.32s ease-out; }

/* Visually hidden */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Header
   ============================================================ */
.yj-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}
.yj-header-inner {
  height: var(--header-h);
  display: flex; align-items: center;
  gap: 24px;
}
.yj-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.yj-brand:hover { text-decoration: none; }

.yj-nav-desktop {
  display: none;
  flex: 1;
  align-items: center;
  gap: 28px;
  margin-left: 16px;
}
@media (min-width: 900px) { .yj-nav-desktop { display: flex; } }
.yj-nav-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
}
.yj-nav-link:hover { text-decoration: none; color: var(--color-accent-dark); }
.yj-nav-link.is-active { color: var(--color-primary); }
.yj-nav-link.is-active::after {
  content: ''; position: absolute; bottom: -22px; left: 0; right: 0;
  height: 3px; background: var(--color-accent); border-radius: 2px 2px 0 0;
}
.yj-header-right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.yj-menu-toggle {
  display: inline-flex; background: transparent; border: 1px solid var(--color-border);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius-md); cursor: pointer; color: var(--color-primary);
}
@media (min-width: 900px) { .yj-menu-toggle { display: none; } }

.yj-nav-mobile {
  display: flex; flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--color-border-soft);
  background: white;
}
.yj-nav-mobile a {
  padding: 12px 0; color: var(--color-primary); font-weight: 600;
  border-bottom: 1px solid var(--color-border-soft);
}
.yj-nav-mobile a:last-child { border-bottom: 0; }

.yj-user-menu { position: relative; }
.yj-user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--color-border);
  padding: 4px 10px 4px 4px; border-radius: var(--radius-pill);
  cursor: pointer; color: var(--color-primary);
}
.yj-user-btn:hover { border-color: var(--color-primary); }
.yj-user-name {
  font-size: 14px; font-weight: 700; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: none;
}
@media (min-width: 720px) { .yj-user-name { display: inline; } }
.yj-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 80;
  animation: slideDown 0.15s ease-out both;
}
.yj-dropdown-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 14px; border-bottom: 1px solid var(--color-border-soft); margin-bottom: 6px;
}
.yj-dropdown-item {
  display: block; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--color-text);
  font-size: 14px;
}
.yj-dropdown-item:hover { background: var(--color-bg-soft); text-decoration: none; }
.yj-dropdown .divider { margin: 6px 0; }

/* ============================================================
   Footer
   ============================================================ */
.yj-footer {
  background: var(--color-primary);
  color: white;
  margin-top: 64px;
}
.yj-footer a { color: rgba(255,255,255,0.85); font-size: 14px; }
.yj-footer a:hover { color: white; }
.yj-footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 24px 32px;
}
@media (min-width: 720px) { .yj-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.yj-footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.yj-footer-brand .yj-claim { font-style: italic; font-size: 16px; color: rgba(255,255,255,0.85); max-width: 240px; margin: 0; }
.yj-social { display: flex; gap: 12px; margin-top: 4px; }
.yj-social a {
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.yj-social a:hover { background: rgba(255,255,255,0.18); }
.yj-footer-col { display: flex; flex-direction: column; gap: 8px; }
.yj-footer-col h4 { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin: 0 0 6px; }
.yj-footer-bottom {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.65);
}
@media (min-width: 720px) {
  .yj-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.caption-light { color: rgba(255,255,255,0.55); }

/* ============================================================
   Oferta Card
   ============================================================ */
.yj-oferta-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.18s;
  position: relative;
}
.yj-oferta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}
.yj-oferta-card:focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.yj-oferta-top {
  display: flex; align-items: center; justify-content: space-between; min-height: 28px;
}
.yj-oferta-save {
  background: transparent; border: 0; cursor: pointer; color: var(--color-text-muted);
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.yj-oferta-save:hover { background: var(--color-bg-soft); color: var(--color-vibrant); }
.yj-oferta-save.is-saved { color: var(--color-vibrant); }
.yj-oferta-head { display: flex; align-items: flex-start; gap: 12px; }
.yj-oferta-title {
  font-size: 17px; font-weight: 700; color: var(--color-primary);
  line-height: 1.25;
  text-wrap: pretty;
}
.yj-oferta-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 14px; color: var(--color-text-muted);
}
.yj-oferta-meta span { display: inline-flex; align-items: center; gap: 5px; }
.yj-oferta-salary {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--color-primary);
  font-size: 16px;
}
.yj-oferta-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.yj-oferta-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 4px;
}

/* Card variants */
.yj-oferta-card-compact { padding: 16px; gap: 8px; }
.yj-oferta-card-compact .yj-oferta-title { font-size: 15px; }
.yj-oferta-card-compact .yj-oferta-salary { font-size: 14px; }

.yj-oferta-card-spacious { padding: 28px; gap: 16px; }
.yj-oferta-card-spacious .yj-oferta-title { font-size: 19px; }

.yj-oferta-card-photo { padding: 0; overflow: hidden; }
.yj-oferta-card-photo > :not(.yj-oferta-photo) { padding-left: 20px; padding-right: 20px; }
.yj-oferta-card-photo .yj-oferta-foot { padding-bottom: 20px; padding-top: 12px; }
.yj-oferta-photo {
  height: 100px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 14px;
  overflow: hidden;
}
.yj-oferta-photo-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.18) 0, transparent 22%),
    radial-gradient(circle at 78% 70%, rgba(255,255,255,0.10) 0, transparent 30%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 15px);
}
.yj-oferta-photo-label {
  position: relative;
  color: white; font-weight: 700; font-size: 13px;
  background: rgba(0,0,0,0.18); backdrop-filter: blur(2px);
  padding: 4px 12px; border-radius: 999px;
}
.yj-oferta-card-photo .yj-oferta-top {
  position: absolute; top: 14px; left: 14px; right: 14px;
  z-index: 2; min-height: 0;
}
.yj-oferta-card-photo .yj-oferta-save {
  background: rgba(255,255,255,0.94); color: var(--color-primary);
}
.yj-oferta-card-photo .yj-oferta-head { padding-top: 16px; }

/* ============================================================
   Placeholder (decorative)
   ============================================================ */
.yj-placeholder {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.yj-placeholder-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 30%, rgba(255,255,255,0.20), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(255,255,255,0.14), transparent 30%);
  opacity: 0.9;
}
.yj-placeholder-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-weight: 700;
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.yj-tweaks-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 90;
  background: var(--color-primary); color: white;
  border: 0; padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.yj-tweaks-toggle:hover { background: var(--color-primary-soft); }
.yj-tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 95;
  width: 320px; max-height: calc(100vh - 80px);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  border: 1px solid var(--color-border);
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.yj-tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--color-border-soft);
  position: sticky; top: 0; background: white; z-index: 2;
}
.yj-tweaks-head h3 { font-size: 16px; }
.yj-tweaks-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.yj-tweak-group { display: flex; flex-direction: column; gap: 8px; }
.yj-tweak-group > label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--color-text-muted);
}
.yj-tweak-radios {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}
.yj-tweak-radios label {
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 8px 10px; text-align: center;
  font-size: 13px; cursor: pointer;
  transition: all 0.12s;
}
.yj-tweak-radios input { display: none; }
.yj-tweak-radios input:checked + span {
  background: var(--color-primary); color: white; border-color: var(--color-primary);
  display: block; margin: -8px -10px; padding: 8px 10px; border-radius: 5px;
}
.yj-tweak-color {
  display: inline-flex; align-items: center; gap: 8px;
}
.yj-tweak-color-swatch {
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s, border-color 0.1s;
}
.yj-tweak-color-swatch.is-active { border-color: var(--color-primary); transform: scale(1.08); }

.yj-tweak-slider input[type=range] { width: 100%; }
.yj-tweak-slider .val { font-size: 13px; color: var(--color-text-muted); font-weight: 700; }

/* ============================================================
   Landing
   ============================================================ */
.yj-hero { position: relative; overflow: hidden; }
.yj-hero-inner { padding: 56px 0 64px; }
@media (min-width: 900px) { .yj-hero-inner { padding: 80px 0 96px; } }

/* Hero variant: Split */
.yj-hero-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .yj-hero-split { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.yj-hero-title {
  font-size: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 18px;
  text-wrap: balance;
}
.yj-hero-title em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.yj-hero-lead {
  font-size: var(--font-body-lg);
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 540px;
  text-wrap: pretty;
}
.yj-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.yj-hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--color-text-muted);
}
.yj-hero-meta b { color: var(--color-primary); font-size: 22px; font-weight: 900; display: block; line-height: 1; }

/* Hero variant: Centered */
.yj-hero-centered { text-align: center; }
.yj-hero-centered .yj-hero-title { font-size: clamp(40px, 6vw, 72px); }
.yj-hero-centered .yj-hero-lead { margin-left: auto; margin-right: auto; }
.yj-hero-centered .yj-hero-ctas { justify-content: center; }

/* Hero search variant */
.yj-hero-search {
  background: white;
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 28px;
  max-width: 720px;
}
@media (min-width: 720px) {
  .yj-hero-search { grid-template-columns: 1fr 1fr auto; align-items: center; padding: 8px 8px 8px 8px; }
}
.yj-hero-search-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; min-height: 48px;
}
.yj-hero-search-field input {
  border: 0; outline: 0; font-size: 15px; width: 100%; background: transparent;
}
.yj-hero-search-field + .yj-hero-search-field { border-top: 1px solid var(--color-border-soft); }
@media (min-width: 720px) {
  .yj-hero-search-field + .yj-hero-search-field { border-top: 0; border-left: 1px solid var(--color-border-soft); }
}
.yj-hero-search button { margin: 4px; }

/* Hero visual area */
.yj-hero-visual {
  position: relative;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.yj-hero-visual-stack {
  position: relative; width: 100%; aspect-ratio: 4/3.4; max-width: 520px;
}
.yj-hero-vstack-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--color-border-soft);
  animation: fadeIn 0.6s ease-out both;
}
.yj-hero-vstack-card .small { font-size: 12px; }

/* Hero variant: Big-type */
.yj-hero-bigtype .yj-hero-title {
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  font-weight: 900;
}

/* Hero variant: Asymmetric collage */
.yj-hero-collage { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .yj-hero-collage { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}
.yj-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 50px);
  gap: 10px;
}
.yj-collage > * {
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
  overflow: hidden;
  position: relative;
}
.yj-collage > *::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 50%);
}

/* Section title block */
.yj-section-title {
  text-align: center; margin-bottom: 48px;
}
.yj-section-title h2 { font-size: var(--font-h2); }
.yj-section-title .lead {
  color: var(--color-text-muted);
  max-width: 600px; margin: 12px auto 0;
  text-wrap: pretty;
}
.yj-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  padding: 6px 12px; background: rgba(242, 155, 84, 0.12);
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Como funciona pasos */
.yj-steps { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) { .yj-steps { grid-template-columns: repeat(3, 1fr); } }
.yj-step {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.yj-step-num {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.yj-step h3 { font-size: 18px; }
.yj-step p { color: var(--color-text-muted); font-size: 15px; }

/* Testimonials */
.yj-testimonials { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .yj-testimonials { grid-template-columns: repeat(3, 1fr); } }
.yj-testimonial {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.yj-testimonial blockquote {
  font-size: 17px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}
.yj-testimonial blockquote::before { content: '“'; font-size: 48px; color: var(--color-accent); line-height: 0.5; vertical-align: -10px; margin-right: 4px; font-family: serif; }
.yj-testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }

/* CTA section */
.yj-cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  color: white;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .yj-cta-band { grid-template-columns: 1.4fr 1fr; padding: 64px; }
}
.yj-cta-band h2 { color: white; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; line-height: 1.1; }
.yj-cta-band p { color: rgba(255,255,255,0.85); max-width: 480px; }
.yj-cta-band .yj-cta-band-arts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; opacity: 0.95;
}
.yj-cta-art {
  height: 80px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: white;
}
.yj-cta-art-1 { background: var(--color-accent); }
.yj-cta-art-2 { background: var(--color-fresh); }
.yj-cta-art-3 { background: var(--color-vibrant); }
.yj-cta-art-4 { background: var(--color-secondary); }

/* Sector chips on landing */
.yj-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.yj-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--color-border);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.yj-chip:hover { border-color: var(--color-primary); background: var(--color-bg-soft); text-decoration: none; }
.yj-chip-icon { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: white; }

/* Logos band */
.yj-logos-band {
  background: var(--color-bg-soft);
  padding: 32px 0;
}
.yj-logos {
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center;
  opacity: 0.7;
}
.yj-logos .company-logo { background: white; }

/* ============================================================
   Ofertas page (búsqueda)
   ============================================================ */
.yj-page { padding: 32px 0 64px; }
.yj-page-head {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.yj-search-bar {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-soft);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .yj-search-bar { grid-template-columns: 1.4fr 1fr auto; }
}
.yj-search-bar-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  min-height: 48px;
}
.yj-search-bar-field + .yj-search-bar-field {
  border-top: 1px solid var(--color-border-soft);
}
@media (min-width: 720px) {
  .yj-search-bar-field + .yj-search-bar-field { border-top: 0; border-left: 1px solid var(--color-border-soft); }
}
.yj-search-bar input, .yj-search-bar select {
  border: 0; outline: 0; font-size: 15px; width: 100%; background: transparent;
}

.yj-results-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .yj-results-layout { grid-template-columns: 280px 1fr; }
}
.yj-filters {
  background: white;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 22px;
  height: fit-content;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.yj-filter-group h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.yj-filter-group .checkbox { display: flex; padding: 6px 0; font-size: 14px; }

.yj-results-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 16px;
}
.yj-results-count { font-weight: 700; color: var(--color-primary); }
.yj-results-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .yj-results-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .yj-results-grid.is-three { grid-template-columns: 1fr 1fr 1fr; } }

/* ============================================================
   Oferta detalle
   ============================================================ */
.yj-detalle-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) {
  .yj-detalle-layout { grid-template-columns: 1fr 340px; }
}
.yj-detalle-main {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 32px;
}
.yj-detalle-cover {
  height: 120px; margin: -32px -32px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #283e5c, #3d82ab);
  position: relative; overflow: hidden;
}
.yj-detalle-cover::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 60%, rgba(255,255,255,0.16), transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(255,255,255,0.10), transparent 40%);
}
.yj-detalle-headblock {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
}
.yj-detalle-logo {
  background: white; border-radius: var(--radius-md);
  padding: 12px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px;
  font-weight: 900; font-size: 22px;
  flex-shrink: 0;
  margin-top: -44px; /* hang halfway over cover */
}
.yj-detalle-titleblock {
  padding-top: 4px;
}
.yj-detalle-titleblock h1 { font-size: var(--font-h1); margin-bottom: 6px; line-height: 1.15; }
.yj-detalle-titleblock .company-name { color: var(--color-text-muted); font-size: 17px; font-weight: 700; }
.yj-detalle-metarow {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  padding: 20px; background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  margin: 24px 0;
}
@media (min-width: 720px) { .yj-detalle-metarow { grid-template-columns: repeat(4, 1fr); } }
.yj-detalle-metarow .meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.yj-detalle-metarow .meta-item .meta-label {
  font-size: 12px; text-transform: uppercase; color: var(--color-text-muted);
  letter-spacing: 0.06em; font-weight: 700;
}
.yj-detalle-metarow .meta-item .meta-value {
  font-size: 15px; font-weight: 700; color: var(--color-primary);
  display: flex; align-items: center; gap: 6px;
}
.yj-detalle-section { margin-bottom: 32px; }
.yj-detalle-section h2 { font-size: 18px; margin-bottom: 12px; color: var(--color-primary); }
.yj-detalle-section p { color: var(--color-text); line-height: 1.65; text-wrap: pretty; }
.yj-detalle-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.yj-detalle-section li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--color-text); line-height: 1.5;
}
.yj-detalle-section li::before {
  content: ''; width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-fresh);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  background-size: 12px;
}

.yj-detalle-sidebar { display: flex; flex-direction: column; gap: 16px; }
.yj-sidebar-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.yj-sidebar-card.is-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.yj-sidebar-card .salary-big {
  font-size: 32px; font-weight: 900; color: var(--color-primary);
  display: flex; align-items: center; gap: 6px;
  line-height: 1;
}
.yj-sidebar-stat { display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--color-text-muted); }
.yj-sidebar-stat b { color: var(--color-primary); font-weight: 700; }

/* ============================================================
   Registro
   ============================================================ */
.yj-registro {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .yj-registro { grid-template-columns: 1fr 1fr; } }
.yj-registro-aside {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-soft));
  color: white;
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 28px;
  position: relative; overflow: hidden;
}
.yj-registro-aside::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 22% 18%, rgba(242,155,84,0.20), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(20,144,151,0.16), transparent 40%);
  pointer-events: none;
}
.yj-registro-aside h1 { color: white; font-size: clamp(28px, 3vw, 40px); position: relative; line-height: 1.1; }
.yj-registro-aside p { color: rgba(255,255,255,0.85); position: relative; font-size: 16px; }
.yj-registro-aside ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.yj-registro-aside li {
  display: flex; gap: 12px; align-items: flex-start;
  color: rgba(255,255,255,0.92);
}
.yj-registro-aside li svg { color: var(--color-accent); flex-shrink: 0; margin-top: 3px; }

.yj-registro-main {
  padding: 32px;
  display: flex; flex-direction: column;
  justify-content: center;
}
@media (min-width: 900px) {
  .yj-registro-main { padding: 64px; }
}
.yj-registro-form-wrap { max-width: 460px; width: 100%; margin: 0 auto; }
.yj-registro-form-wrap h2 { font-size: var(--font-h2); margin-bottom: 8px; }
.yj-registro-form-wrap .form-sub { color: var(--color-text-muted); margin-bottom: 28px; }
.yj-registro-tabs {
  display: inline-flex; padding: 4px;
  background: var(--color-bg-soft); border-radius: 999px;
  margin-bottom: 24px;
}
.yj-registro-tab {
  padding: 8px 18px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; color: var(--color-text-muted); cursor: pointer;
  transition: all 0.18s;
}
.yj-registro-tab.is-active { background: white; color: var(--color-primary); box-shadow: var(--shadow-sm); }
.yj-form-grid { display: grid; gap: 16px; }
.yj-form-grid-2 { grid-template-columns: 1fr 1fr; }
.yj-form-foot { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   Dashboard
   ============================================================ */
.yj-dash-layout {
  display: grid; grid-template-columns: 1fr; gap: 0;
  min-height: calc(100vh - var(--header-h));
}
@media (min-width: 900px) {
  .yj-dash-layout { grid-template-columns: 260px 1fr; }
}
.yj-sidebar {
  background: var(--color-bg-soft);
  border-right: 1px solid var(--color-border-soft);
  padding: 28px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: var(--header-h);
  height: fit-content;
  max-height: calc(100vh - var(--header-h));
  overflow: auto;
}
.yj-sidebar-section {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted); font-weight: 700;
  padding: 12px;
}
.yj-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-text); font-weight: 600; font-size: 14px;
  border-left: 3px solid transparent;
}
.yj-sidebar a.is-active {
  background: white;
  border-left-color: var(--color-accent);
  color: var(--color-primary);
}
.yj-sidebar a:hover { background: white; text-decoration: none; }

.yj-dash-main { padding: 32px 24px; }
@media (min-width: 900px) { .yj-dash-main { padding: 40px 48px; } }
.yj-dash-head { margin-bottom: 28px; }
.yj-dash-head h1 { font-size: var(--font-h1); margin-bottom: 4px; }
.yj-dash-head p { color: var(--color-text-muted); }

.yj-metrics {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}
@media (min-width: 1024px) { .yj-metrics { grid-template-columns: repeat(4, 1fr); } }
.yj-metric {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.yj-metric-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center; color: white;
  margin-bottom: 8px;
}
.yj-metric-value { font-size: 32px; font-weight: 900; color: var(--color-primary); line-height: 1; }
.yj-metric-label { color: var(--color-text-muted); font-size: 14px; }
.yj-metric-trend { font-size: 13px; color: var(--color-fresh); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

.yj-dash-section { margin-bottom: 36px; }
.yj-dash-section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.yj-dash-section-head h2 { font-size: 22px; }

.yj-candidatos-list { display: flex; flex-direction: column; gap: 10px; }
.yj-candidato-row {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  padding: 16px; display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px; align-items: center;
}
.yj-candidato-row .cand-name { font-weight: 700; }
.yj-perfil-bar { width: 80px; height: 6px; background: var(--color-border); border-radius: 999px; overflow: hidden; }
.yj-perfil-bar > div { height: 100%; background: var(--color-fresh); border-radius: 999px; }

/* Crear oferta */
.yj-form-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 32px;
  max-width: 760px;
}
.yj-form-step {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  font-weight: 700;
}
.yj-form-step.is-done { color: var(--color-fresh); }
.yj-form-step.is-active { background: var(--color-primary); color: white; }
.yj-form-step-num {
  width: 28px; height: 28px; border-radius: 999px;
  background: white; color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.yj-form-step.is-active .yj-form-step-num { background: white; color: var(--color-primary); }

.yj-form-section { margin-bottom: 32px; }
.yj-form-section h3 { font-size: 17px; margin-bottom: 4px; }
.yj-form-section .help { color: var(--color-text-muted); font-size: 14px; margin-bottom: 18px; }

.yj-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.yj-pill-radio { position: relative; }
.yj-pill-radio input { position: absolute; opacity: 0; }
.yj-pill-radio span {
  display: inline-block; padding: 8px 16px;
  border: 1.5px solid var(--color-border); border-radius: 999px;
  cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--color-text); transition: all 0.15s;
}
.yj-pill-radio input:checked + span {
  background: var(--color-primary); color: white; border-color: var(--color-primary);
}
.yj-pill-radio:hover span { border-color: var(--color-primary); }

/* Mobile menu helpers */
@media (max-width: 899px) {
  .yj-sidebar { display: none; }
}

/* Application toast */
.yj-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: white;
  padding: 14px 22px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: fadeIn 0.3s ease-out, fadeOut 0.5s ease-in 2.7s forwards;
  font-weight: 600;
}
@keyframes fadeOut { to { opacity: 0; transform: translate(-50%, 10px); } }

/* Sección diferencial equipo humano */
.yj-diff {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .yj-diff { grid-template-columns: 1fr 1fr; }
}

/* Empty states */
.yj-empty {
  background: white; border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center; color: var(--color-text-muted);
}
.yj-empty h3 { color: var(--color-primary); margin-bottom: 6px; }
