/* ========== Hapleo · Landing Page Styles ========== */
:root {
  --hapleo-blue: #1E5BFF;
  --hapleo-blue-dark: #1240C2;
  --hapleo-blue-deep: #0A1E5C;
  --hapleo-green: #3DDC97;
  --hapleo-green-dark: #2BB67B;

  --ink: #0B1530;
  --ink-2: #1A2647;
  --muted: #5A6685;
  --muted-2: #8590AB;
  --line: #E6EAF3;
  --line-2: #EFF2F8;

  --bg: #FBFCFE;
  --bg-2: #F4F6FB;
  --bg-card: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 21, 48, 0.04), 0 1px 1px rgba(11, 21, 48, 0.02);
  --shadow-md: 0 4px 12px rgba(11, 21, 48, 0.06), 0 1px 3px rgba(11, 21, 48, 0.04);
  --shadow-lg: 0 18px 50px -12px rgba(11, 21, 48, 0.18), 0 4px 12px rgba(11, 21, 48, 0.06);
  --shadow-blue: 0 18px 40px -12px rgba(30, 91, 255, 0.45);

  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

section { position: relative; }

/* ----- Typography ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hapleo-blue);
  background: rgba(30, 91, 255, 0.08);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hapleo-green);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.05; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 56ch;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .lead { margin: 16px auto 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--hapleo-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--hapleo-blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--ink-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-green { background: var(--hapleo-green); color: var(--ink); }
.btn-green:hover { background: var(--hapleo-green-dark); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.btn-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--hapleo-blue); font-weight: 600; font-size: 15px;
}
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  border-color: #D5DCEC;
  box-shadow: var(--shadow-md);
}

/* ----- Chip ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip.green { background: rgba(61, 220, 151, 0.1); color: var(--hapleo-green-dark); border-color: rgba(61, 220, 151, 0.25); }
.chip.blue  { background: rgba(30, 91, 255, 0.08); color: var(--hapleo-blue); border-color: rgba(30, 91, 255, 0.18); }

/* ----- Backgrounds / FX ----- */
#neural-bg {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,21,48,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,21,48,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.blob-blue  { background: radial-gradient(circle, rgba(30,91,255,0.5), transparent 70%); }
.blob-green { background: radial-gradient(circle, rgba(61,220,151,0.45), transparent 70%); }

/* ----- Search expandable ----- */
.nav-search-trigger {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-search-trigger:hover { background: var(--hapleo-blue); color: #fff; }

.search-bar {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  width: calc(100% - 32px);
  max-width: 720px;
  z-index: 99;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.search-bar.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.search-row { display: flex; align-items: center; gap: 12px; }
.search-row svg { color: var(--muted); flex-shrink: 0; }
.search-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
}
.search-row input::placeholder { color: var(--muted-2); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.search-suggestions .label { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing:.08em; text-transform:uppercase; align-self: center; margin-right: 4px; }
.search-suggestions .sug {
  font-size: 13px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--bg-2); color: var(--ink-2); cursor: pointer;
  transition: background .2s, color .2s;
}
.search-suggestions .sug:hover { background: var(--hapleo-blue); color: #fff; }

/* Hero Fiverr-style searchbar */
.hero-search {
  display: flex; align-items: center; gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-md);
  margin-top: 28px;
  max-width: 540px;
  transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within { box-shadow: var(--shadow-lg); border-color: var(--hapleo-blue); }
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: none; outline: none; background: transparent;
  padding: 12px 14px;
  font-family: inherit; font-size: 15.5px; color: var(--ink);
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search button {
  background: var(--hapleo-blue);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .2s;
}
.hero-search button:hover { background: var(--hapleo-blue-dark); transform: translateY(-1px); }
.hero-search-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-search-tags .label { font-size: 13px; color: var(--muted); align-self: center; margin-right: 4px; }
.hero-search-tags .tag {
  font-size: 13px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.hero-search-tags .tag:hover { background: var(--hapleo-blue); color: #fff; border-color: var(--hapleo-blue); }

/* ----- Job detail modal ----- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,21,48,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 60px 20px 20px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .2s;
}
.modal-backdrop.open { display: flex; opacity: 1; }
.modal {
  background: #fff;
  border-radius: 24px;
  width: 100%; max-width: 720px;
  box-shadow: 0 30px 80px -20px rgba(11,21,48,0.45);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  cursor: pointer; transition: background .2s;
}
.modal-close:hover { background: var(--line); }
.modal-body { padding: 28px 32px; }
.modal-body h4 { font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px; font-weight: 500; }
.modal-body ul { margin: 0 0 24px; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.modal-body p { color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.modal-foot {
  padding: 20px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}

/* Auth modal */
.auth-modal { max-width: 440px; }
.auth-tabs { display: flex; background: var(--bg-2); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-form { display: grid; gap: 14px; }
.auth-form label { font-size: 13px; color: var(--muted); }
.auth-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit; font-size: 15px;
  outline: none;
  transition: border-color .2s;
}
.auth-form input:focus { border-color: var(--hapleo-blue); }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  cursor: pointer; transition: background .2s;
}
.auth-google:hover { background: var(--bg-2); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ----- Transparencia / recomendaciones IA section ----- */
.transparency { padding: 120px 0; background: var(--bg); position: relative; overflow: hidden; }
.trans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 980px) { .trans-grid { grid-template-columns: 1fr; } }
.trans-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.trans-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trans-card .icon-pill {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: rgba(30,91,255,0.1);
  color: var(--hapleo-blue);
}
.trans-card h3 { font-size: 20px; margin-bottom: 10px; }
.trans-card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.trans-card .preview {
  margin-top: 20px; padding: 14px;
  background: var(--bg-2);
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid var(--line);
}

/* CV pipeline timeline */
.cv-timeline {
  margin-top: 80px;
  background: linear-gradient(135deg, #0A1530 0%, #142353 100%);
  border-radius: 28px;
  padding: 56px 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cv-timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(61,220,151,0.18), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(30,91,255,0.25), transparent 50%);
  pointer-events: none;
}
.cv-timeline-inner { position: relative; z-index: 1; }
.cv-timeline h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cv-timeline > .sub { color: rgba(255,255,255,0.65); }
.cv-states {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 36px;
  position: relative;
}
@media (max-width: 800px) { .cv-states { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; } .cv-states > .cv-state:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 7px); justify-self: center; } }
.cv-states::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--hapleo-green), var(--hapleo-blue));
  opacity: 0.4;
  z-index: 0;
}
@media (max-width: 800px) { .cv-states::before { display: none; } }
.cv-state { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.cv-state-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #142353;
  border: 2px solid var(--hapleo-green);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--hapleo-green);
  position: relative;
}
.cv-state.active .cv-state-dot { background: var(--hapleo-green); color: #0A1530; box-shadow: 0 0 0 6px rgba(61,220,151,0.18); }
.cv-state.future .cv-state-dot { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); }
.cv-state .cv-state-label { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cv-state .cv-state-time { font-size: 11px; font-family: var(--font-mono); color: rgba(255,255,255,0.45); }
.cv-state.active .cv-state-time { color: var(--hapleo-green); }

/* ----- Header / Nav ----- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(11,21,48,0.06);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px -8px rgba(11,21,48,0.1);
  transition: top .3s ease, box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 10px 30px -10px rgba(11,21,48,0.18); }
.nav-logo { height: 28px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--hapleo-blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 180px 0 80px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 60px; }
}
.hero h1 { margin-top: 22px; }
.hero h1 .accent { color: var(--hapleo-blue); position: relative; }
.hero h1 .accent-green { color: var(--hapleo-green-dark); }
.hero .lead { margin-top: 22px; font-size: 19px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.hero-trust div { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--hapleo-green-dark); flex-shrink: 0; }

/* Hero visual: floating cards */
.hero-visual {
  position: relative;
  height: 540px;
}
@media (max-width: 1000px) { .hero-visual { height: 460px; margin-top: 24px; } }

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  will-change: transform;
}

/* ----- Partners strip ----- */
.partners {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
}
.partners-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.partners-row {
  display: flex; gap: 48px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.72;
}
.partner-slot {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

/* ----- Process steps · 2x2 grid, large cards, neural connections ----- */
.process { padding: 120px 0; position: relative; }
.process-wrap { position: relative; margin-top: 64px; }
.process-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) { .process-grid { grid-template-columns: 1fr; gap: 20px; } }

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  position: relative;
  z-index: 1;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.step-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(30,91,255,0.4), rgba(61,220,151,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.step-card:hover::before { opacity: 1; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card .node-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--hapleo-blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(30,91,255,0.2), 0 0 20px rgba(30,91,255,0.5);
  z-index: 2;
}
.step-card .node-dot.green { background: var(--hapleo-green); box-shadow: 0 0 0 3px rgba(61,220,151,0.25), 0 0 20px rgba(61,220,151,0.55); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hapleo-blue);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.step-num::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--hapleo-blue);
  opacity: 0.5;
}
.step-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(30,91,255,0.1), rgba(61,220,151,0.1));
}
.step-icon svg { width: 32px; height: 32px; color: var(--hapleo-blue); }
.step-card h3 { font-size: 24px; margin-bottom: 12px; }
.step-card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.step-detail {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.step-detail .dot { width:6px;height:6px;border-radius:50%;background:var(--hapleo-green);animation:pulse 1.8s infinite; }

/* ----- For candidates section ----- */
.split-section { padding: 120px 0; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse > .visual { order: -1; }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > .visual { order: 0; }
}
.split-text h2 { margin-top: 22px; }
.split-text .lead { margin-top: 20px; }
.feature-list { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.feature-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(61,220,151,0.18);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feature-list .check svg { width: 14px; height: 14px; color: var(--hapleo-green-dark); }

/* Visual mock - profile card */
.profile-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* Empresas section: dark */
.dark-section {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #0A1530 0%, #0B1A40 100%);
  color: #fff;
  overflow: hidden;
}
.dark-section h2 { color: #fff; }
.dark-section .lead { color: rgba(255,255,255,0.7); }
.dark-section .eyebrow {
  background: rgba(61,220,151,0.12);
  color: var(--hapleo-green);
}
.dark-section .eyebrow::before { background: var(--hapleo-green); box-shadow: 0 0 0 4px rgba(61,220,151,0.2); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 800px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }
.metric { padding: 32px 24px; border-right: 1px solid rgba(255,255,255,0.08); }
.metric:last-child { border-right: none; }
@media (max-width: 800px) { .metric:nth-child(2n) { border-right: none; } .metric { border-bottom: 1px solid rgba(255,255,255,0.08); } }
.metric-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.metric-value { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.02em; }
.metric-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 6px; }

/* Empresas dashboard mock */
.empresa-mock {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
}

/* ----- Neural network section · all cards visibly connected ----- */
.neural-section {
  padding: 120px 0;
  background: linear-gradient(180deg, #FBFCFE 0%, #F1F4FB 100%);
  position: relative;
  overflow: hidden;
}
.neural-wrap {
  position: relative;
  margin-top: 64px;
  padding: 60px 40px;
}
.neural-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(30,91,255,0.06), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(61,220,151,0.06), transparent 50%);
  border-radius: 32px;
  pointer-events: none;
}
.neural-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.neural-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .neural-grid { grid-template-columns: 1fr; gap: 40px; } }

.neural-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: 0 4px 20px -8px rgba(11,21,48,0.08);
}
.neural-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(30,91,255,0.25);
  border-color: rgba(30,91,255,0.4);
}
.neural-card .ncard-dot {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--hapleo-blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(30,91,255,0.2), 0 0 20px rgba(30,91,255,0.6);
  z-index: 3;
}
.neural-card .ncard-dot.green {
  background: var(--hapleo-green);
  box-shadow: 0 0 0 3px rgba(61,220,151,0.25), 0 0 20px rgba(61,220,151,0.6);
}
.neural-card .ncard-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hapleo-green-dark);
  margin-bottom: 10px;
}
.neural-card h3 { font-size: 18px; margin-bottom: 8px; }
.neural-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ----- Methodology ----- */
.method { padding: 120px 0; background: var(--bg-2); position: relative; }
.method-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .method-cards { grid-template-columns: 1fr; } }
.method-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s, box-shadow .3s;
}
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.method-card h3 { font-size: 20px; margin-bottom: 12px; }
.method-card p { color: var(--muted); font-size: 15px; }
.method-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hapleo-blue);
  background: rgba(30,91,255,0.08);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

/* ----- Jobs section ----- */
.jobs { padding: 120px 0 60px; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 900px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .25s;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--hapleo-blue);
}
.job-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.job-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-2), #fff);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--hapleo-blue);
  flex-shrink: 0;
}
.job-company { font-size: 13px; color: var(--muted); }
.job-status { font-size: 11px; font-family: var(--font-mono); color: var(--hapleo-green-dark); margin-left: auto; display: flex; align-items: center; gap: 5px; }
.job-status::before { content:""; width:6px;height:6px;border-radius:50%; background: var(--hapleo-green); animation: pulse 2s infinite; }
.job-status.closed { color: var(--muted-2); }
.job-status.closed::before { background: var(--muted-2); animation: none; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.job-card h3 { font-size: 17px; margin-bottom: 10px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.job-meta .chip { font-size: 12px; padding: 4px 10px; }
.job-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }
.job-match {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.match-bar { width: 60px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.match-bar > span { display:block; height: 100%; background: linear-gradient(90deg, var(--hapleo-green), var(--hapleo-blue)); border-radius: 3px; }

/* ----- Final CTA ----- */
.final-cta {
  padding: 60px 0 120px;
  position: relative;
  overflow: hidden;
}
.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--hapleo-blue) 0%, #2A6BFF 100%);
  border-radius: 36px;
  padding: 80px 48px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-card h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-card .lead { color: rgba(255,255,255,0.85); margin: 22px auto 32px; }
.cta-card .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.cta-decor.g1 { width: 380px; height: 380px; background: var(--hapleo-green); top: -120px; right: -100px; }
.cta-decor.g2 { width: 280px; height: 280px; background: #6E94FF; bottom: -80px; left: -80px; }

/* ----- Footer ----- */
footer {
  background: #0A1530;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer-brand p { color: rgba(255,255,255,0.55); max-width: 32ch; margin-top: 14px; line-height: 1.55; }
.footer-col h3 { font-size: 13px; font-weight: 600; color: #fff; margin: 0 0 16px; letter-spacing: -0.01em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: 0.95; }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Anchor offset ----- */
section[id] { scroll-margin-top: 100px; }

/* ============== MOBILE RESPONSIVE FIXES ============== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Hero: padding, tipografía y centrado */
  .hero { padding: 110px 0 50px; }
  .hero-text { text-align: center; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); margin-top: 14px; word-break: break-word; hyphens: auto; }
  .hero .lead { font-size: 15px; margin-top: 16px; max-width: 38ch; margin-left: auto; margin-right: auto; }
  .hero-text .eyebrow { margin-left: auto; margin-right: auto; }

  /* Hero search · estilo Fiverr (icono solo a la derecha) */
  .hero-search {
    padding: 6px 6px 6px 18px;
    gap: 4px;
    border-radius: 999px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-search > svg:first-child { display: none; }
  .hero-search input { padding: 12px 4px; font-size: 15px; min-width: 0; flex: 1 1 auto; text-align: left; }
  .hero-search button {
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }
  .hero-search button::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.35-4.35'/></svg>") center/contain no-repeat;
  }
  .hero-search button svg { display: none; }

  .hero-search-tags { gap: 6px; margin-top: 14px; justify-content: center; }
  .hero-search-tags .label { font-size: 12px; flex-basis: 100%; text-align: center; margin: 0 0 4px; }
  .hero-search-tags .tag { font-size: 12px; padding: 5px 12px; }

  .hero-trust { gap: 14px; margin-top: 28px; padding-top: 20px; font-size: 12.5px; justify-content: center; }

  /* Hero visual: stack vertical con leve rotación (cada card se ve entera) */
  .hero-visual {
    height: auto !important;
    min-height: 0;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .hero-visual .float-card {
    position: relative !important;
    width: calc(100% - 24px) !important;
    max-width: 320px;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 18px;
    box-shadow: 0 14px 40px -8px rgba(11,21,48,0.22);
  }
  .hero-visual .float-card:nth-child(1) { transform: rotate(-2deg) !important; }
  .hero-visual .float-card:nth-child(2) { transform: rotate(2deg) !important; align-self: flex-end; }
  .hero-visual .float-card:nth-child(3) { transform: rotate(-1.5deg) !important; align-self: flex-start; }
  .hero-visual img[aria-hidden="true"] {
    display: block !important;
    position: absolute !important;
    bottom: -20px !important;
    right: -10px !important;
    width: 90px !important;
    opacity: 0.18 !important;
    transform: rotate(12deg) !important;
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 380px) {
  .hero-visual { gap: 14px; }
  .hero-visual .float-card { max-width: 290px; padding: 14px; }
}

  /* Eyebrow */
  .eyebrow { font-size: 11px; padding: 6px 10px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: clamp(24px, 8vw, 32px); }
  .hero-search button { width: 38px; height: 38px; }
}

/* ============== CARRUSELES (desktop + mobile) ============== */
.neural-grid,
.jobs-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 28px;
  padding: 8px 28px 28px;
  margin: 0 -28px;
  scrollbar-width: none;
}
.neural-grid::-webkit-scrollbar,
.jobs-grid::-webkit-scrollbar { display: none; }

.neural-grid > .neural-card,
.jobs-grid > .job-card {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
  scroll-snap-align: start;
  margin: 0;
}
.neural-card .ncard-dot { display: none; }
.neural-wrap { margin-top: 28px; padding: 0; position: relative; }
.neural-wrap::before { display: none; }
.neural-svg { display: none; }

/* Tablet: 2 cards visibles */
@media (max-width: 960px) {
  .neural-grid > .neural-card,
  .jobs-grid > .job-card {
    flex: 0 0 calc(50% - 9px);
    max-width: calc(50% - 9px);
  }
}

/* Mobile: 1 card visible + activar carrusel en process-grid solo aquí */
@media (max-width: 720px) {
  .process-wrap { margin-top: 28px; }
  .process-svg { display: none; }
  .process-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0 16px;
    padding: 8px 16px 28px;
    margin: 0 -16px;
    scrollbar-width: none;
  }
  .process-grid::-webkit-scrollbar { display: none; }
  .process-grid > .step-card {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    scroll-snap-align: center;
    margin: 0;
  }
  .step-card .node-dot { display: none; }

  .neural-grid,
  .jobs-grid {
    gap: 14px !important;
    scroll-padding: 0 16px;
    padding: 8px 16px 28px;
    margin: 0 -16px;
  }
  .neural-grid > .neural-card,
  .jobs-grid > .job-card {
    flex: 0 0 calc(100% - 32px);
    max-width: calc(100% - 32px);
    scroll-snap-align: center;
  }

  /* Dots del proceso (solo se ven en mobile) */
  .process-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .process-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: var(--line);
    cursor: pointer;
    transition: background .2s, width .2s;
  }
  .process-dots button.is-active {
    background: var(--hapleo-blue);
    width: 24px;
    border-radius: 999px;
  }
}

/* Ocultar dots y nav del proceso en desktop (no aplica) */
@media (min-width: 721px) {
  .process-dots,
  .process-wrap > .carousel-nav { display: none !important; }
}

/* Dots indicador (creados por JS) */
.neural-dots,
.jobs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.neural-dots button,
.jobs-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.neural-dots button.is-active,
.jobs-dots button.is-active {
  background: var(--hapleo-blue);
  width: 24px;
  border-radius: 999px;
}

/* Flechas prev/next (creadas por JS) — solo desktop/tablet */
.carousel-nav {
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
@media (min-width: 721px) {
  .carousel-nav { display: flex; }
}
.carousel-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.carousel-nav button:hover { background: var(--hapleo-blue); color: #fff; border-color: var(--hapleo-blue); }
.carousel-nav button:disabled { opacity: .35; cursor: default; }
.carousel-nav button:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line); }
.carousel-nav button svg { width: 18px; height: 18px; }
.carousel-nav .neural-dots,
.carousel-nav .jobs-dots {
  margin-top: 0;
}
@media (min-width: 721px) {
  .carousel-dots--mobile { display: none !important; }
}

/* Espaciado entre secciones en mobile */
@media (max-width: 640px) {
  .transparency,
  .process,
  .split-section,
  .dark-section,
  .neural-section,
  .method,
  .jobs,
  .partners,
  .cta {
    padding: 30px 0 !important;
  }
  .final-cta { padding: 30px 0; }
  .cta-card { padding: 32px 20px; border-radius: 22px; }
  .cta-card h2 { font-size: 18px !important; max-width: 100% !important; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
  .cta-card .lead { font-size: 12.5px !important; margin: 12px auto 20px; max-width: 100% !important; line-height: 1.5; }
  .cta-card .actions { gap: 10px; }
  .cta-card .actions .btn { width: 100%; max-width: 280px; justify-content: center; font-size: 14px; padding: 12px 18px; }
  .cta-decor.g1 { width: 220px; height: 220px; top: -60px; right: -60px; }
  .cta-decor.g2 { width: 180px; height: 180px; bottom: -50px; left: -50px; }

  /* Split sections: visual encima de los botones (texto → benefits → card → botones) */
  .split { display: flex !important; flex-direction: column; gap: 24px !important; }
  .split-text { display: contents; }
  .split-text > * { order: 0; }
  .split-text > *:last-child {
    order: 2;
    margin-top: 4px;
    align-self: center;
    justify-content: center;
    text-align: center;
  }
  .split > .visual { order: 1 !important; }
  .split.reverse > .visual { order: 1 !important; }
  section[id] { scroll-margin-top: 80px; }
}
