/* ConvertMate Hiring — hiring.convertmate.co
   v3: light, lenguaje real de marca. Edgecutting display + Geist +
   Geist Mono, atmósfera verde sutil, hairlines, data pills. */

@font-face {
  font-family: "Edgecutting Lite";
  src: url("/assets/fonts/edgecutting-lite-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --tint: #f3f9f5;
  --hairline: #e7ece9;
  --ink: #0e1613;
  --body: #3d4a44;
  --muted: #64716a;
  --green: #00ff84;
  --green-pill-bg: #ccffe3;
  --green-pill-border: #9dffcd;
  --green-icon: #00964d;
  --green-text: #067541;
  --green-deep: #00371d;
  --red: #dd3345;
  --display: "Edgecutting Lite", "Geist", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 100;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: rgba(0, 255, 132, 0.3); color: var(--green-deep); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.35s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 8px 32px rgba(14, 22, 19, 0.06); }
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.logo img { height: 19px; width: auto; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  min-width: 0;
  margin-left: 0.75rem;
  padding-left: 1.35rem;
  border-left: 1px solid var(--hairline);
}
.crumbs a { transition: color 0.18s; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: #c3cdc7; }
.crumbs .current {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-cta { margin-left: auto; }
@media (max-width: 699px) {
  .crumbs { display: none; }
  .btn { font-size: 0.88rem; padding: 0.55rem 1.15rem; }
  .btn-lg { font-size: 0.98rem; padding: 0.8rem 1.7rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.62rem 1.35rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn .arr { display: inline-block; transition: transform 0.18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 8px 28px rgba(14, 22, 19, 0.22); transform: translateY(-1px); }

.btn-green {
  background: var(--green);
  color: var(--green-deep);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0, 55, 29, 0.12), 0 8px 28px rgba(0, 255, 132, 0.25);
}
.btn-green:hover {
  background: #2bfd97;
  box-shadow: 0 1px 0 rgba(0, 55, 29, 0.12), 0 12px 40px rgba(0, 255, 132, 0.4);
  transform: translateY(-1px);
}

.btn-lg { font-size: 1rem; padding: 0.85rem 1.9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 520px at 82% -12%, rgba(0, 255, 132, 0.11), transparent 62%),
    radial-gradient(700px 420px at 8% 4%, rgba(0, 255, 132, 0.05), transparent 58%),
    var(--bg);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--body);
  max-width: 56ch;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 1rem;
}
.hero-meta .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.hero-meta .value { font-weight: 500; font-size: 0.97rem; letter-spacing: -0.01em; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .hero-meta { animation: rise 0.6s var(--ease) both; }
  .hero-sub { animation-delay: 0.07s; }
  .hero-meta { animation-delay: 0.14s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Manifesto ---------- */

.manifesto { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 6vw, 5rem); }
.manifesto p {
  max-width: 58ch;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.manifesto p + p { margin-top: 1.4rem; }
.manifesto strong { color: var(--ink); font-weight: 600; }

/* ---------- Section grammar ---------- */

.section {
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.section-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}
.section h2 {
  justify-self: start;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: sticky;
  top: 92px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--bg);
  padding: 0.45rem 0.9rem;
}
.section .body { max-width: 720px; }
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

@media (max-width: 799px) {
  .section-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .section h2 { position: static; }
}

/* ---------- Lists (hairline rows) ---------- */

.list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}
.list li:first-child { padding-top: 0.25rem; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list strong { color: var(--ink); font-weight: 600; }

/* ---------- KPI table ---------- */

.kpis { border-top: 1px solid var(--hairline); }
.kpi {
  display: grid;
  grid-template-columns: minmax(170px, 250px) 1fr;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
}
.kpi-name { font-weight: 600; color: var(--ink); font-size: 0.97rem; letter-spacing: -0.01em; }
.kpi-desc { color: var(--muted); font-size: 0.95rem; }
.kpi.main .kpi-name { font-size: 1.05rem; }
.kpi.main .kpi-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 255, 132, 0.22), 0 0 12px rgba(0, 255, 132, 0.5);
  margin-right: 0.65rem;
  vertical-align: 2px;
}
@media (max-width: 639px) {
  .kpi { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Check / cross lists ---------- */

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
.checks li, .checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--body);
  line-height: 1.58;
}
.checks .mark, .checklist .mark {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 0.22rem;
  color: var(--green-icon);
}
.checklist li { padding: 0.95rem 0; border-bottom: 1px solid var(--hairline); }
.checklist li:first-child { padding-top: 0.25rem; }
.checklist li:last-child { border-bottom: 0; }
@media (max-width: 699px) {
  .checks { grid-template-columns: 1fr; gap: 1.25rem; }
}

.crosses li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  line-height: 1.58;
}
.crosses li:first-child { padding-top: 0.25rem; }
.crosses li:last-child { border-bottom: 0; }
.crosses .mark { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 0.22rem; color: var(--red); }
.crosses strong { color: var(--ink); font-weight: 600; }

/* ---------- Tools (mono chips) ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.5rem 0.95rem;
  background: var(--bg);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.chip:hover { border-color: #cddcd3; background: var(--tint); }

/* ---------- Compensación ---------- */

.comp-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  max-width: 26ch;
}
.comp-headline em {
  font-style: normal;
  background: linear-gradient(transparent 66%, rgba(0, 255, 132, 0.35) 66%);
}
.comp-note { margin-top: 1.1rem; color: var(--muted); max-width: 58ch; }

/* ---------- About / stats ---------- */

.about-lead { max-width: 58ch; color: var(--body); font-size: 1.05rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem 0; margin-top: 2.4rem; }
.stat { flex: 1 1 180px; min-width: 160px; }
.stat + .stat { border-left: 1px solid var(--hairline); padding-left: 2rem; margin-left: 2rem; }
.stat .num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  background: var(--green-pill-bg);
  border: 1px solid var(--green-pill-border);
  border-radius: 9px;
  padding: 0.22rem 0.7rem;
}
.stat .desc { margin-top: 0.65rem; font-size: 0.92rem; color: var(--muted); max-width: 24ch; }
@media (max-width: 639px) {
  .stat + .stat { border-left: 0; padding-left: 0; margin-left: 0; }
  .stats { flex-direction: column; gap: 1.5rem; }
}

/* ---------- Prose ---------- */

.prose p { max-width: 58ch; color: var(--body); font-size: 1.02rem; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(900px 480px at 50% 120%, rgba(0, 255, 132, 0.18), transparent 66%),
    linear-gradient(180deg, #ffffff, #f0fdf5);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}
.cta h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}
.cta p { margin-top: 1.3rem; color: var(--body); max-width: 52ch; font-size: 1.05rem; }
.cta .btn { margin-top: 2.4rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hairline); background: var(--bg); }
.footer-inner {
  padding: 2.25rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer img { height: 17px; width: auto; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Index ---------- */

.index-hero {
  position: relative;
  background:
    radial-gradient(1000px 520px at 82% -12%, rgba(0, 255, 132, 0.11), transparent 62%),
    radial-gradient(700px 420px at 8% 4%, rgba(0, 255, 132, 0.05), transparent 58%),
    var(--bg);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.index-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.roles { padding-bottom: clamp(2rem, 4vw, 3rem); }
.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.9rem, 4vw, 2.6rem) 1.5rem;
  margin: 0 -1.5rem;
  border-radius: 20px;
  border-top: 1px solid var(--hairline);
  transition: background 0.22s var(--ease);
}
.role-row:first-child { border-top: 0; }
.role-row:hover { background: var(--tint); }
.role-team { font-family: var(--mono); font-size: 0.8rem; color: var(--green-text); }
.role-row h2 {
  margin-top: 0.4rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.025em;
}
.role-desc { margin-top: 0.6rem; color: var(--muted); max-width: 58ch; }
.role-meta { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.role-arrow {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--bg);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.role-arrow svg { transition: transform 0.22s var(--ease); }
.role-row:hover .role-arrow {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-deep);
  box-shadow: 0 6px 22px rgba(0, 255, 132, 0.35);
}
.role-row:hover .role-arrow svg { transform: translateX(2px); }
@media (max-width: 639px) {
  .role-row { grid-template-columns: 1fr; }
  .role-arrow { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
