/* =========================================================
   HuntByting — Dark tech theme
   ========================================================= */

:root {
  /* Fondos */
  --bg-0: #040a18;
  --bg-1: #071226;
  --bg-2: #0a1a35;
  --surface: rgba(12, 28, 58, 0.65);
  --surface-solid: #0c1c3a;

  /* Acentos */
  --cyan: #22d3ee;
  --cyan-bright: #19f0ff;
  --turquoise: #2dd4bf;
  --sky: #38bdf8;
  --blue: #1d8fd6;
  --indigo: #3b3fb8;

  /* Texto */
  --text: #e8f1ff;
  --text-muted: #9fb4d3;
  --text-dim: #6f87ab;

  /* Bordes y brillos */
  --border: rgba(56, 189, 248, 0.22);
  --border-strong: rgba(34, 211, 238, 0.5);
  --glow: 0 0 24px rgba(34, 211, 238, 0.35);

  --gradient-accent: linear-gradient(135deg, #19f0ff 0%, #2dd4bf 45%, #38bdf8 100%);
  --gradient-text: linear-gradient(90deg, #19f0ff, #38bdf8 60%, #5aa9ff);

  --radius: 16px;
  --header-h: 72px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(25, 240, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(29, 143, 214, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-0));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Patrón sutil de circuito impreso en todo el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280' fill='none' stroke='%2322d3ee' stroke-opacity='.12' stroke-width='1'%3E%3Cpath d='M0 50h70l22 22h60'/%3E%3Cpath d='M280 140h-80l-22 22v70'/%3E%3Cpath d='M120 0v60l24 24'/%3E%3Cpath d='M30 280v-70l34-34h46'/%3E%3Cpath d='M200 0v40l-20 20h-30'/%3E%3Cpath d='M0 200h40l20-20'/%3E%3Ccircle cx='152' cy='72' r='3' fill='%2322d3ee' fill-opacity='.35'/%3E%3Ccircle cx='178' cy='232' r='3' fill='%2322d3ee' fill-opacity='.35'/%3E%3Ccircle cx='144' cy='84' r='2' fill='%2338bdf8' fill-opacity='.4'/%3E%3Ccircle cx='110' cy='176' r='3' fill='%2322d3ee' fill-opacity='.35'/%3E%3Ccircle cx='60' cy='180' r='2.5' fill='%2338bdf8' fill-opacity='.4'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 85%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.eyebrow--dark {
  color: #042033;
  border-color: rgba(4, 32, 51, 0.35);
  background: rgba(255, 255, 255, 0.25);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 10, 24, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(4, 10, 24, 0.88);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), var(--glow);
  flex-shrink: 0;
}

.brand-logo img,
.logo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-fallback {
  display: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(34, 211, 238, 0.1);
}

.nav-cta {
  color: #031525;
  font-weight: 700;
  background: var(--gradient-accent);
  margin-left: 0.4rem;
}

.nav-cta:hover,
.nav-cta.active {
  color: #031525;
  background: var(--gradient-accent);
  box-shadow: var(--glow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #031525;
  background: var(--gradient-accent);
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(34, 211, 238, 0.5);
}

.btn-ghost {
  color: var(--cyan);
  border-color: var(--border-strong);
  background: rgba(34, 211, 238, 0.05);
}

.btn-ghost:hover {
  background: rgba(34, 211, 238, 0.14);
  box-shadow: var(--glow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.hero-glow--one {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
  background: rgba(25, 240, 255, 0.28);
}

.hero-glow--two {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -140px;
  background: rgba(29, 143, 214, 0.32);
}

.hero-circuit {
  position: absolute;
  top: 50%;
  height: 120%;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}

.hero-circuit--left { left: -4%; }
.hero-circuit--right { right: -4%; }

.hero-inner {
  text-align: center;
  max-width: 880px;
}

.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-title .gradient-text {
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.22;
  font-weight: 700;
}

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Job card ---------- */
.job-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Líneas de circuito en las esquinas de la tarjeta */
.job-corner {
  position: absolute;
  width: 170px;
  height: 170px;
  pointer-events: none;
  opacity: 0.7;
  background-repeat: no-repeat;
  background-size: contain;
}

.job-corner--tl {
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 170' fill='none' stroke='%2322d3ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 30h60l20 20h40'/%3E%3Cpath d='M0 62h34l18 18v40'/%3E%3Cpath d='M30 0v18l14 14'/%3E%3Ccircle cx='124' cy='50' r='4' fill='%2322d3ee'/%3E%3Ccircle cx='52' cy='124' r='4' fill='%2322d3ee'/%3E%3Ccircle cx='44' cy='34' r='3' fill='%2338bdf8'/%3E%3C/svg%3E");
}

.job-corner--br {
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 170' fill='none' stroke='%2338bdf8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M170 140h-60l-20-20H50'/%3E%3Cpath d='M170 108h-34l-18-18V50'/%3E%3Cpath d='M140 170v-18l-14-14'/%3E%3Ccircle cx='46' cy='120' r='4' fill='%2338bdf8'/%3E%3Ccircle cx='118' cy='46' r='4' fill='%2338bdf8'/%3E%3Ccircle cx='126' cy='136' r='3' fill='%2322d3ee'/%3E%3C/svg%3E");
}

.job-header,
.job-description,
.benefits,
.job-grid {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 10px var(--turquoise);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.job-title {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.job-company {
  margin-top: 0.5rem;
  color: var(--cyan);
  font-weight: 500;
}

.job-description {
  margin-top: 1.6rem;
  max-width: 760px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text);
  line-height: 1.65;
}

/* ---------- Benefits ---------- */
.benefits {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.2rem;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(29, 143, 214, 0.04));
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
  color: var(--cyan-bright);
  background: rgba(34, 211, 238, 0.12);
  border-radius: 10px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit strong {
  font-size: 1.02rem;
  color: #fff;
}

.benefit span:last-child {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Job grid ---------- */
.job-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
}

.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  counter-reset: todo;
}

.todo-list li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--text);
  counter-increment: todo;
}

.todo-list li::before {
  content: counter(todo);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #031525;
  background: var(--gradient-accent);
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

/* ---------- Pills ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill {
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  color: #031525;
  background: var(--gradient-accent);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ---------- CTA ---------- */
.section--cta {
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: 26px;
  background: linear-gradient(135deg, #19f0ff 0%, #2dd4bf 40%, #38bdf8 100%);
  box-shadow: 0 25px 70px rgba(34, 211, 238, 0.28);
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280' fill='none' stroke='%23042033' stroke-opacity='.25' stroke-width='1.4'%3E%3Cpath d='M0 50h70l22 22h60'/%3E%3Cpath d='M280 140h-80l-22 22v70'/%3E%3Cpath d='M120 0v60l24 24'/%3E%3Cpath d='M30 280v-70l34-34h46'/%3E%3Ccircle cx='152' cy='72' r='3.5' fill='%23042033' fill-opacity='.35'/%3E%3Ccircle cx='178' cy='232' r='3.5' fill='%23042033' fill-opacity='.35'/%3E%3Ccircle cx='110' cy='176' r='3.5' fill='%23042033' fill-opacity='.35'/%3E%3C/svg%3E");
  background-size: 280px 280px;
}

.cta-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(80px);
  z-index: -1;
}

.cta-title {
  margin: 1.1rem 0 2rem;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #031525;
}

.btn-cta {
  max-width: 100%;
  padding: 1.1rem 2.2rem;
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  color: #fff;
  background: #04162d;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 34px rgba(3, 21, 37, 0.45);
  word-break: break-word;
}

.btn-cta:hover {
  background: #031020;
  box-shadow: 0 16px 44px rgba(3, 21, 37, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 10, 24, 0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.brand--footer .brand-name {
  font-size: 1.4rem;
}

.footer-tagline {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-copy a:hover {
  text-decoration: underline;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(4, 10, 24, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-circuit {
    opacity: 0.18;
  }

  .section {
    padding: 4.5rem 0;
  }

  .job-corner {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .benefits {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-cta {
    width: 100%;
    padding: 1rem 1.2rem;
  }
}

/* Respeta preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
