/* ===========================================================================
   MI ALCAMPO — PORTAL DE EMPLEO
   Dirección: "The split stage" · Nunito · identidad real de Alcampo (rojo/verde)
   =========================================================================== */

:root {
  /* colour — identidad real de Alcampo */
  --ground:    #F5F6F4;
  --surface:   #FFFFFF;
  --surface-2: #EDEEEA;
  --ink:       #1C1C1A;
  --ink-2:     #6B6E69;
  --line:      #E1E3DE;
  --red:       #E2231A;
  --red-deep:  #B01C14;
  --red-tint:  #FBE4E2;
  --lime:      #009846;  /* verde Alcampo */
  --lime-deep: #1F6B32;
  --lime-tint: #E2F0E6;
  --dark:      #16281B;  /* verde profundo de marca */
  --on-dark:   #F2F4EF;

  /* type — Nunito (redondeada y cercana, como la identidad Alcampo) */
  --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body:  clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead:  clamp(1.25rem, 1.08rem + 0.8vw, 1.75rem);
  --step-head:  clamp(2rem, 1.3rem + 3.2vw, 3.5rem);

  /* geometry */
  --radius: 16px;
  --nav-h: 66px;
  --mx: clamp(16px, 4.5vw, 56px);
  --maxw: 1240px;
  --read: 46ch;
  --section-gap: clamp(72px, 11vw, 168px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  font-size: var(--step-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step-small);
  line-height: 1;
  border: none;
  border-radius: 999px;
  padding: .95em 1.6em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .15s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-dark); }

.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-lg { font-size: var(--step-body); padding: 1.05em 2em; }
.btn-block { width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--mx);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo { height: 36px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface-2); }
.nav-action {
  background: var(--ink);
  color: var(--on-dark) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-action:hover { background: var(--red) !important; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}

/* ── HERO · split stage ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - var(--nav-h));
  background: var(--ground);
}
.hero-read {
  padding: clamp(36px, 5vw, 80px) var(--mx);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(var(--read) + 2 * var(--mx));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: .32em;
}
.hero h1 em { font-style: normal; display: block; }
.hero-lead {
  font-size: var(--step-lead);
  line-height: 1.32;
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 2em;
  font-weight: 400;
}
.hero-trust {
  margin-top: 1.8em;
  font-size: var(--step-small);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.hero-trust b { color: var(--ink); font-weight: 600; }

/* stage (sticky photograph with slow crossfade) */
.hero-stage { position: relative; }
.stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  background: var(--dark);
}
.stage-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.stage-img.is-on { opacity: 1; }
.stage-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--ground);
  color: var(--ink);
  padding: 16px clamp(18px, 2.4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--step-small);
  font-weight: 500;
}
.stage-bar b { font-weight: 600; }

/* ── SECTION SHELL ───────────────────────────────────────────────────────── */
.section { padding-block: var(--section-gap); }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--mx);
}
.section-head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 44ch; }
.section-head h2 {
  font-size: var(--step-head);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--ink);
}
.section-head p {
  margin-top: .6em;
  font-size: var(--step-lead);
  color: var(--ink-2);
  line-height: 1.4;
}

/* ── STATS MOSAIC (full-bleed) ───────────────────────────────────────────── */
.statmosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  min-height: clamp(320px, 46vw, 560px);
}
.statmosaic-photo { position: relative; overflow: hidden; }
.statmosaic-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.statmosaic-tiles { display: grid; grid-template-rows: 1fr 1fr; }
.stat-tile {
  padding: clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.stat-tile.red  { background: var(--red);  color: #fff; }
.stat-tile.lime { background: var(--lime); color: #fff; }
.stat-fig {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 5.5vw, 5.75rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.stat-cap {
  margin-top: .55em;
  font-size: var(--step-body);
  font-weight: 500;
  max-width: 18ch;
  line-height: 1.3;
}

/* ── JOBS ────────────────────────────────────────────────────────────────── */
.jobs-wrap {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

/* filters */
.filters { position: sticky; top: calc(var(--nav-h) + 20px); }
.filters-panel {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
}
.filters-title {
  font-weight: 600;
  font-size: var(--step-body);
  margin-bottom: 18px;
}
.filter-group { margin-bottom: 18px; }
.filter-group > label {
  display: block;
  font-size: var(--step-small);
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.filter-group select,
.filter-group input[type=text] {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: var(--step-small);
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
  outline: none;
  transition: border-color .2s var(--ease);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--red); }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: var(--step-small);
  font-weight: 500;
}
.check input[type=checkbox] {
  accent-color: var(--red);
  width: 17px; height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}
.filters-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.btn-reset {
  text-align: center;
  text-decoration: none;
  color: var(--ink-2);
  font-size: var(--step-small);
  font-weight: 500;
  padding: 6px;
  transition: color .2s var(--ease);
}
.btn-reset:hover { color: var(--red); }

/* list header */
.jobs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.jobs-count { font-size: var(--step-body); color: var(--ink-2); }
.jobs-count strong { color: var(--ink); font-weight: 600; }
.jobs-count .active-flag { color: var(--red); font-weight: 600; font-size: var(--step-small); }
.sort-select {
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: var(--step-small);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* job row */
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: flex-start;
  position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(26,24,22,.35); /* taste-skill-ignore: hover feedback, not at rest */
}
.job-card.destacada { border-left: 6px solid var(--lime); }
.job-flag {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lime-deep);
}
.job-main { flex: 1; min-width: 0; }
.job-title {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.job-title a { text-decoration: none; color: inherit; transition: color .2s var(--ease); }
.job-title a:hover { color: var(--red); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  font-size: var(--step-small);
  color: var(--ink-2);
}
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-meta svg { width: 14px; height: 14px; color: var(--red); }
.job-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink);
  white-space: nowrap;
}
.chip-salary { background: var(--lime-tint); color: var(--lime-deep); }
.chip-new    { background: var(--red); color: #fff; }

.job-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.job-vac { font-size: var(--step-small); color: var(--ink-2); }
.job-date { font-size: .78rem; color: var(--ink-2); }

/* ── AREAS ───────────────────────────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.area-tile {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.area-tile:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.area-tile:hover .area-count { color: #fff; }
.area-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--red);
  transition: color .2s var(--ease);
}
.area-name { font-size: var(--step-body); font-weight: 600; margin-top: auto; }
.area-sub { font-size: var(--step-small); opacity: .75; }

/* ── POR QUÉ (dark field) ────────────────────────────────────────────────── */
.porque { background: var(--dark); color: var(--on-dark); }
.porque .section-head h2 { color: var(--on-dark); }
.porque-statement {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 24ch;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.porque-statement b { color: #7FD199; font-weight: 800; }
.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 72px);
}
.benefit { max-width: 38ch; }
.benefit h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: .4em;
}
.benefit p { font-size: var(--step-body); color: #CFCBC0; line-height: 1.55; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta { background: var(--red); color: #fff; }
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--mx);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 40px);
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 16ch;
}

/* ── JOB DETAIL (oferta.php) ─────────────────────────────────────────────── */
.detail-head { background: var(--surface); padding: clamp(28px, 4vw, 52px) 0; }
.detail-head-inner { max-width: 1060px; margin: 0 auto; padding-inline: var(--mx); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step-small);
  color: var(--ink-2);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.03;
  margin-bottom: 20px;
  max-width: 20ch;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-2);
  padding: 8px 14px;
  border-radius: 999px;
}
.meta-chip svg { width: 15px; height: 15px; color: var(--red); }
.meta-chip.pay { background: var(--lime-tint); color: var(--lime-deep); }
.meta-chip.pay svg { color: var(--lime-deep); }

.detail-body {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--mx);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.detail-section { margin-bottom: clamp(40px, 5vw, 64px); }
.detail-section:last-child { margin-bottom: 0; }
.content-title {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.job-description { font-size: var(--step-body); line-height: 1.75; color: var(--ink); }
.job-description p { margin-bottom: 14px; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--step-body);
  line-height: 1.5;
}
.req-list li::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: .5em;
}
.related-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
}
.related-row + .related-row { margin-top: 2px; }
.related-row:hover .related-t { color: var(--red); }
.related-t { font-weight: 600; font-size: var(--step-body); transition: color .2s var(--ease); }
.related-sub { font-size: var(--step-small); color: var(--ink-2); margin-top: 3px; }
.related-row svg { color: var(--red); flex-shrink: 0; }

.apply-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
}
.apply-aside .btn { width: 100%; margin-bottom: 22px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; }
.info-list svg { color: var(--red); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.info-k { font-size: var(--step-small); color: var(--ink-2); }
.info-v { font-weight: 600; font-size: var(--step-small); }
.share { margin-top: 20px; }
.share-k { font-size: var(--step-small); color: var(--ink-2); margin-bottom: 10px; }
.share-row { display: flex; gap: 8px; }
.share-row a {
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
}
.share-li { background: #0A66C2; }
.share-wa { background: #25D366; }

/* ── APPLY FORM (aplicar.php) ────────────────────────────────────────────── */
.apply-head { background: var(--red); color: #fff; padding: clamp(40px, 5vw, 64px) 0; }
.apply-head-inner { max-width: 780px; margin: 0 auto; padding-inline: var(--mx); }
.apply-head .breadcrumb { color: rgba(255,255,255,.75); margin-bottom: 20px; }
.apply-head .breadcrumb a { color: rgba(255,255,255,.9); }
.apply-head .breadcrumb span { color: rgba(255,255,255,.5); }
.apply-head h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.apply-head p { font-size: var(--step-body); opacity: .9; }

.apply-wrap { max-width: 780px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--mx); }
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  margin-bottom: 18px;
}
.form-section-title {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: var(--step-small); font-weight: 600; color: var(--ink); }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: var(--step-body);
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.1); /* taste-skill-ignore: focus ring feedback */ }
.form-control::placeholder { color: #AEA99E; }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.5; }

.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px) 20px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-2);
  display: block;
  position: relative;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.upload-zone:hover, .upload-zone.drag-active { border-color: var(--lime-deep); background: var(--lime-tint); }
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-ico { color: var(--ink-2); margin-bottom: 10px; display: inline-flex; }
.upload-text { font-size: var(--step-body); font-weight: 600; }
.upload-hint { font-size: var(--step-small); color: var(--ink-2); margin-top: 5px; }
.upload-filename { font-size: var(--step-small); color: var(--red); font-weight: 600; margin-top: 10px; display: none; }

.privacy-check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: var(--step-small); color: var(--ink-2); line-height: 1.5; margin-bottom: 24px;
}
.privacy-check input[type=checkbox] {
  accent-color: var(--red); margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; cursor: pointer;
}
.privacy-check a { color: var(--red); }

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--step-small);
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error { background: var(--red-tint); color: var(--red-deep); }
.alert-error svg { color: var(--red); }

/* ── SUCCESS / EMPTY ─────────────────────────────────────────────────────── */
.success-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
}
.state-mark {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.state-mark.ok { background: var(--lime); color: var(--ink); }
.state-mark.none { background: var(--surface-2); color: var(--ink-2); }
.state-mark svg { width: 30px; height: 30px; }
.success-card h2 { font-size: var(--step-head); font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.success-card p { color: var(--ink-2); line-height: 1.6; margin-bottom: 28px; max-width: 46ch; margin-inline: auto; }

.empty-state {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(48px, 7vw, 80px) 24px;
  text-align: center;
}
.empty-state h3 { font-size: var(--step-lead); font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: var(--step-body); color: var(--ink-2); margin-bottom: 24px; }

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.page-btn:hover { background: var(--surface-2); }
.page-btn.active { background: var(--red); color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: #B4B0A6; padding: clamp(56px, 7vw, 96px) 0 36px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--mx); }
.footer-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 13vw, 10rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--on-dark);
  text-decoration: none;
  display: block;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: 48px;
}
.footer-brand p { font-size: var(--step-small); line-height: 1.7; max-width: 30ch; color: #9B9890; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.footer-social a { font-size: var(--step-small); color: #B4B0A6; text-decoration: none; transition: color .2s var(--ease); }
.footer-social a:hover { color: #fff; }
.footer-col h4 {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: var(--step-small);
  color: #9B9890;
  text-decoration: none;
  margin-bottom: 11px;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  margin-top: 20px;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--step-small);
  color: #817E76;
}
.footer-legal { display: flex; gap: 20px; }
.footer-bottom a { color: #817E76; text-decoration: none; }
.footer-bottom a:hover { color: var(--on-dark); }
.credits { margin-top: 28px; font-size: .78rem; line-height: 1.6; color: #6B6860; max-width: 90ch; }
.credits a { color: #817E76; }

/* ── LEGAL ───────────────────────────────────────────────────────────────── */
.legal-head { background: var(--surface); padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 2.5vw, 28px); }
.legal-inner { max-width: 860px; margin: 0 auto; padding-inline: var(--mx); }
.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.legal-updated { color: var(--ink-2); font-size: var(--step-small); }
.legal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.legal-tab {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step-small);
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.legal-tab:hover { background: var(--line); }
.legal-tab.active { background: var(--red); color: #fff; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--mx); }
.legal-note {
  background: var(--lime-tint);
  color: var(--lime-deep);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: var(--step-small);
  line-height: 1.5;
  margin-bottom: 32px;
}
.prose { max-width: 72ch; }
.prose h2 {
  font-size: var(--step-lead);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 1.9em 0 .5em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1em; line-height: 1.75; }
.prose ul { margin: 0 0 1.1em 1.3em; display: flex; flex-direction: column; gap: .45em; }
.prose li { line-height: 1.6; }
.prose a { color: var(--red); }
.prose strong { font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; padding: 11px 14px; vertical-align: top; }
.prose thead th { background: var(--surface-2); font-weight: 700; }
.prose tbody tr + tr td { border-top: 1px solid var(--line); }

/* ── CUENTA (candidatos) ─────────────────────────────────────────────────── */
.auth-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--mx);
}
.auth-card { background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 4.5vw, 56px); }
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 8px;
}
.auth-sub { color: var(--ink-2); font-size: var(--step-small); margin-bottom: 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { margin-top: 6px; }
.auth-alt { margin-top: 22px; font-size: var(--step-small); color: var(--ink-2); text-align: center; }
.auth-alt a { color: var(--red); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-back { display: inline-block; margin-top: 20px; font-size: var(--step-small); color: var(--ink-2); text-decoration: none; }
.auth-back:hover { color: var(--red); }

.account-head { background: var(--surface); padding: clamp(28px, 4vw, 52px) 0; }
.account-head-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--mx); }
.account-hi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.02;
  margin-bottom: 8px;
}
.account-head p { color: var(--ink-2); font-size: var(--step-body); }
.account-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--mx);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.account-wrap h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.01em; margin-bottom: 18px; }
.cand-list { display: flex; flex-direction: column; gap: 12px; }
.cand-row {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cand-info { min-width: 0; }
.cand-title { font-size: var(--step-body); font-weight: 600; }
.cand-title a { color: inherit; text-decoration: none; }
.cand-title a:hover { color: var(--red); }
.cand-meta { font-size: var(--step-small); color: var(--ink-2); margin-top: 4px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.cand-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.estado { padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.estado.nuevo          { background: var(--surface-2); color: var(--ink); }
.estado.revisado       { background: #E6EEF9; color: #1B5FB0; }
.estado.preseleccionado{ background: var(--lime-tint); color: var(--lime-deep); }
.estado.entrevista     { background: var(--lime); color: #fff; }
.estado.descartado     { background: var(--red-tint); color: var(--red-deep); }
.estado.contratado     { background: var(--lime-deep); color: #fff; }

.profile-card { background: var(--surface-2); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 30px); position: sticky; top: calc(var(--nav-h) + 20px); }
.profile-card h2 { font-size: var(--step-body); }
.profile-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.profile-k { font-size: var(--step-small); color: var(--ink-2); }
.profile-v { font-weight: 600; font-size: var(--step-small); word-break: break-word; }
.profile-card .btn { width: 100%; }

.account-empty { background: var(--surface); border-radius: var(--radius); padding: clamp(40px, 6vw, 64px); text-align: center; }
.account-empty h2 { margin-bottom: 8px; }
.account-empty p { color: var(--ink-2); margin-bottom: 24px; }

@media (max-width: 860px) { .account-wrap { grid-template-columns: 1fr; } .profile-card { position: static; } }

.apply-note {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: var(--step-small);
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 20px;
}
.apply-note a { color: var(--red); font-weight: 600; }
.field-hint { font-size: var(--step-small); color: var(--ink-2); line-height: 1.45; margin-top: 2px; }

/* ── MOTION ──────────────────────────────────────────────────────────────── */
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal[data-d="1"].in { transition-delay: .07s; }
.reveal[data-d="2"].in { transition-delay: .14s; }
.reveal[data-d="3"].in { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stage-img { transition: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .jobs-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-panel { padding: 20px; }
  .detail-body { grid-template-columns: 1fr; }
  .apply-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-read { order: 2; max-width: none; padding-block: clamp(36px, 8vw, 56px); }
  .hero-stage { order: 1; }
  .stage { position: relative; top: 0; height: 58svh; }
  .statmosaic { grid-template-columns: 1fr; }
  .statmosaic-photo { min-height: 56vw; }
  .statmosaic-tiles { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--mx) 18px;
    box-shadow: 0 20px 30px -16px rgba(26,24,22,.3); /* taste-skill-ignore: mobile menu overlay */
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-action { margin-left: 0; margin-top: 6px; }
  .nav-burger { display: inline-flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; }
  .job-aside { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; text-align: left; }
  .job-flag { position: static; margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── SEARCH (shared, hero + inline) ──────────────────────────────────────── */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 7px 7px 10px;
  transition: border-color .2s var(--ease);
}
.search:focus-within { border-color: var(--red); }
.search-field {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  height: 46px;
}
.search-field svg { width: 17px; height: 17px; color: var(--ink-2); flex-shrink: 0; }
.search-field input {
  border: none;
  background: transparent;
  font-size: var(--step-small);
  color: var(--ink);
  width: 100%;
  outline: none;
  font-family: inherit;
}
.search-field input::placeholder { color: #AEA99E; }
.search-divider { width: 1.5px; height: 28px; background: var(--line); flex-shrink: 0; }
.btn-search {
  background: var(--red);
  color: #fff;
  border: none;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: var(--step-small);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.btn-search:hover { background: var(--red-deep); }

@media (max-width: 680px) {
  .search { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 10px; }
  .search-divider { display: none; }
  .search-field { height: 50px; }
  .btn-search { width: 100%; height: 50px; justify-content: center; }
}
