:root {
  --teal: #17c9c0;
  --blue: #2e9df4;
  --brand: #015e7c;
  --brand-dark: #015570;
  --brand-deep: #003242;
  --ink: #101828;
  --ink-strong: #0b1c26;
  --muted: #475467;
  --line: #e4e7ec;
  --surface: #f9fafb;
  --tint: #eff2f3;
  --tint-strong: #e1e6e9;
  --green: #12b76a;
  --sky: #0ba5ec;
  --grad: linear-gradient(90deg, var(--teal), var(--blue));
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.1);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08);
  --maxw: 1216px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

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

.container { max-width: var(--maxw); margin: 0 auto; }
.container--narrow { max-width: 768px; }

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

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s ease, filter 0.15s ease, color 0.15s ease;
}
.btn--lg { padding: 14px 26px; font-size: 17px; }

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

.btn--grad { color: #fff; background: var(--grad); box-shadow: var(--shadow-md); }
.btn--grad:hover { color: #fff; filter: brightness(0.95); }

.btn--outline { color: var(--brand); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { background: var(--surface); }

.btn--ghost { color: #344054; background: #fff; border: 1px solid var(--line); }
.btn--ghost:hover { color: #344054; background: var(--surface); }

.btn--white { color: var(--brand); background: #fff; box-shadow: var(--shadow-md); }
.btn--white:hover { background: var(--surface); }

.btn--translucent { color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--translucent:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }

/* --- Anuncio + navbar --- */
.announcement {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__actions .btn { padding: 9px 16px; font-size: 15px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }
.brand__name { font-weight: 700; font-size: 22px; color: var(--ink-strong); letter-spacing: -0.02em; }
.brand__name--sm { font-size: 19px; }

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tint) 0%, #fff 45%, rgba(23, 201, 192, 0.08) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 88px 24px 96px; }
.hero__copy { max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint-strong);
  color: #014b63;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero__title {
  margin-bottom: 20px;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero__lead { margin-bottom: 36px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.hero__proof li { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero__photos {
  position: absolute;
  top: 0;
  bottom: 0;
  right: max(24px, calc((100% - var(--maxw)) / 2));
  width: 500px;
  display: flex;
  gap: 20px;
  justify-content: center;
  overflow: hidden;
}
.hero__col { width: 230px; flex-shrink: 0; }
.hero__col--offset { margin-top: -40px; }
.hero__track { display: flex; flex-direction: column; }
.hero__track--a { animation: rise 26s linear infinite; }
.hero__track--b { animation: rise 34s linear infinite; }

@keyframes rise {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.pcard {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  background: var(--tint-strong);
}
.pcard img { width: 100%; height: 270px; object-fit: cover; display: block; }
/* Las fotos son ambientales: no llevan nombre, rating ni monto. Ninguna cara real
   puede leerse como una persona que trabaja en la plataforma (ver README). */
.pcard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 50, 66, 0.45), transparent);
  pointer-events: none;
}

/* --- Secciones --- */
.section { padding: 96px 24px; background: #fff; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section__title { margin-bottom: 16px; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.section__lead { font-size: 18px; color: var(--muted); line-height: 1.6; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- Pasos --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__step { font-size: 13px; font-weight: 600; color: var(--sky); margin-bottom: 6px; }
.card__title { margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* --- Split (trabajadores / empresas) --- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split--reverse { flex-wrap: wrap-reverse; }
.split__copy { flex: 1 1 460px; min-width: 300px; }
.split__copy .section__lead { margin-bottom: 32px; }
.split__media { flex: 1 1 380px; min-width: 280px; display: flex; justify-content: center; }
.split__media img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.feature { display: flex; gap: 16px; }
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature__title { font-weight: 600; font-size: 17px; }
.feature__text { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* --- Confianza --- */
.trust { background: var(--brand-deep); padding: 64px 24px; }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }
.trust__item svg { display: block; margin: 0 auto 14px; }
.trust__stat { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.trust__text { font-size: 15px; color: #9fb0bb; margin-top: 6px; }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__q { margin: 0; font-size: inherit; font-weight: inherit; }
.faq__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq__icon { color: var(--brand); font-size: 22px; font-weight: 400; }
.faq__a { padding: 0 24px 20px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* --- CTA final --- */
.cta { padding: 96px 24px; background: linear-gradient(120deg, var(--teal), var(--blue)); }
.cta__inner { max-width: 840px; margin: 0 auto; text-align: center; }
.cta__title { margin-bottom: 16px; font-size: 46px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.cta__lead { margin-bottom: 36px; font-size: 19px; color: rgba(255, 255, 255, 0.92); line-height: 1.6; }
.cta__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* --- Footer --- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 24px 32px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; margin-bottom: 40px; }
.footer__brand { max-width: 300px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--muted); }
.footer__col a:hover { color: var(--brand); }
.footer__heading { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; }
.footer__social { display: flex; gap: 14px; margin-top: 4px; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--muted); }

/* --- Páginas legales (términos, privacidad) --- */
.legal { padding: 64px 24px 96px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__title { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal__updated { font-size: 14px; color: var(--muted); margin-bottom: 40px; }

/* Aviso de borrador. Debe eliminarse (junto con esta regla) cuando el documento
   pase revisión legal y entre en vigor. */
.legal__draft {
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-left: 4px solid #f79009;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 15px;
  line-height: 1.6;
  color: #93370d;
}
.legal__draft strong { display: block; margin-bottom: 6px; color: #7a2e0e; }

.legal__toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 48px;
}
.legal__toc ol { margin: 0; padding-left: 20px; list-style: decimal; columns: 2; column-gap: 32px; }
.legal__toc li { font-size: 14px; margin-bottom: 6px; break-inside: avoid; }

.legal h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal p { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal ul li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }

.legal table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { font-weight: 600; color: var(--ink); background: var(--surface); }
.legal__table-wrap { overflow-x: auto; }

/* Marca los datos que faltan por definir. No debe quedar ninguno en producción. */
.todo {
  background: #fef3f2;
  color: #b42318;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .legal__title { font-size: 32px; }
  .legal__toc ol { columns: 1; }
  .legal h2 { font-size: 21px; }
}

/* --- Reveal on scroll (activado por main.js) --- */
.js-reveal { opacity: 0; transform: translateY(22px); }
.js-reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.65s ease var(--reveal-delay, 0s), transform 0.65s ease var(--reveal-delay, 0s); }

/* --- Responsive --- */
/* Sin espacio para la columna lateral, el marquee gira a horizontal: dos filas
   a lo ancho en direcciones opuestas. En vertical la ventana recortaba las caras. */
@media (max-width: 1180px) {
  .hero__copy { max-width: none; }

  .hero__photos {
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    flex-direction: column;
    gap: 16px;
    width: calc(100% + 48px);
    margin: 56px -24px 0;
    overflow: hidden;
  }
  .hero__col { width: 100%; overflow: hidden; }
  .hero__col--offset { margin-top: 0; }

  .hero__track { flex-direction: row; width: max-content; }
  .hero__track--a { animation: slide 44s linear infinite; }
  .hero__track--b { animation: slide 52s linear infinite reverse; }

  .pcard { width: 190px; flex-shrink: 0; margin: 0 16px 0 0; }
  .pcard img { height: 240px; }
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}

@media (max-width: 640px) {
  .hero__inner { padding: 56px 24px 72px; }
  .hero__title { font-size: 42px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas .btn { width: 100%; }
  .section { padding: 72px 24px; }
  .section__title { font-size: 32px; }
  .section__lead { font-size: 17px; }
  .cta__title { font-size: 34px; }
  .cta__actions .btn { width: 100%; }
  .nav__login { display: none; }
  .footer__cols { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__track { animation: none; }
  .js-reveal, .js-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}
