/* Maketa · webs a medida (trabajos.html). Se carga después de landing.css y usa sus
   tokens, botones, nav, cierre y pie: aquí solo va lo propio de esta página. */

/* ---------- entrada ---------- */

.jobs-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.jobs-hero h1 { margin-top: 22px; max-width: 980px; font-size: clamp(44px, 6.6vw, 96px); font-weight: 760; line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.jobs-hero h1 .accent { color: var(--accent); }
.jobs-hero .lead { margin-top: 28px; max-width: 640px; }
/* Índice por sector: quien llega sabe enseguida dónde está lo suyo. */
.sectors ul { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.sector { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px #d9d7d0; color: var(--ink); font-size: 15px; font-weight: 600; transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease; }
.sector:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sector:active { scale: 0.97; }

/* La tira de sectores (trabajos.js): aparece bajo el menú al pasar la entrada y
   sube a ocupar su sitio cuando el menú se aparta. En el móvil se desliza. */
.secbar { position: fixed; left: 0; right: 0; top: 0; z-index: 45; background: rgba(251, 250, 248, 0.94); border-bottom: 1px solid rgba(22, 23, 27, 0.06); opacity: 0; visibility: hidden; transform: translateY(calc(var(--nav-h, 70px) - 100%)); transition: transform 0.35s var(--ease), opacity 0.25s ease, visibility 0s linear 0.35s; }
.secbar.is-on { opacity: 1; visibility: visible; transform: translateY(var(--nav-h, 70px)); transition: transform 0.35s var(--ease), opacity 0.25s ease; }
.is-nav-up .secbar.is-on { transform: none; }
.secbar__list { display: flex; gap: 6px; margin: 0 -24px; padding: 10px 24px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.secbar__list::-webkit-scrollbar { display: none; }
.secbar .sector { flex: none; min-height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.secbar .sector[aria-current='true'] { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Con la tira encima, cada pieza se queda por debajo al saltar a ella. */
.job[id] { scroll-margin-top: calc(var(--nav-h, 70px) + 72px); }

/* ---------- las piezas ---------- */

/* Debajo de la última pieza, poco margen: el cambio de banda ya separa. */
.jobs { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 6vw, 80px); background: var(--white); border-top: 1px solid var(--line-soft); }
.jobs .wrap { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
/* La destacada, en grande: ventana a un lado y texto al otro. */
.jobs__feature .job { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
/* El resto, en rejilla de dos: se recorre de un vistazo. */
.jobs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 80px) clamp(28px, 3.4vw, 48px); }
.jobs__grid .job { display: flex; flex-direction: column; gap: 26px; }

/* La web, funcionando, dentro de una ventana: es producto, así que lleva sombra. */
.job__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px #ecebe6, 0 40px 80px -30px rgba(22, 23, 27, 0.35);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.job__frame:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px #e3e1db, 0 50px 90px -30px rgba(22, 23, 27, 0.45); }
.job__bar { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.job__bar i { width: 10px; height: 10px; border-radius: 10px; background: #dcdad3; }
.job__bar span { justify-self: center; margin-right: 37px; padding: 3px 14px; border-radius: 999px; background: var(--white); color: var(--ink-faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.job__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #edecef; }
/* Póster y, encima, el vídeo del gesto: aparece cuando empieza a sonar (trabajos.js). */
.job__screen picture, .job__screen img, .job__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.job__screen video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.job__screen.is-playing video { opacity: 1; }
.job__hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; display: grid; place-items: center; }
.job__open { padding: 10px 18px; border-radius: 999px; background: rgba(22, 23, 27, 0.86); color: #fff; font-size: 15px; font-weight: 650; opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.job__frame:hover .job__open, .job__hit:focus-visible .job__open { opacity: 1; transform: none; }
.job__hit:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.job__copy h2 { margin-top: 10px; font-size: clamp(32px, 3vw, 42px); font-weight: 760; line-height: 1; letter-spacing: -0.035em; }
.jobs__feature .job__copy h2 { margin-top: 14px; font-size: clamp(40px, 4.6vw, 64px); line-height: 0.98; letter-spacing: -0.04em; }
.job__lead { margin-top: 12px; max-width: 520px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.jobs__feature .job__lead { margin-top: 20px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; }
/* Lo que se puede tocar, en etiquetas cortas. */
.job__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.job__tags li { padding: 5px 12px; border-radius: 999px; background: var(--panel); color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.job__ctas { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.job__ctas .btn { cursor: pointer; border: 0; }
/* "Quiero algo así" como enlace: el botón fuerte de cada tarjeta es "Verla en vivo". */
.job__want { padding: 10px 0; border: 0; background: none; color: var(--ink); font-size: 16px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; transition: text-decoration-color 0.2s ease; }
.job__want:hover { text-decoration-color: var(--accent); }

/* ¿Ninguna es lo tuyo? */
.job-any { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: clamp(32px, 4vw, 48px); border-radius: 26px; background: var(--paper); border: 1.5px dashed #d9d7d0; }
.job-any h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 760; letter-spacing: -0.035em; line-height: 1; }
.job-any p { margin-top: 12px; max-width: 520px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.job-any .btn { border: 0; cursor: pointer; }
/* A lo ancho bajo la rejilla; si la última fila tiene una sola pieza, ocupa el hueco de al lado. */
.jobs__grid > .job-any { grid-column: 1 / -1; }
.jobs__grid > article:nth-of-type(odd):last-of-type + .job-any { grid-column: auto; flex-direction: column; justify-content: center; align-items: flex-start; }

@media (max-width: 960px) {
  .jobs__feature .job { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .jobs__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .job__bar span { margin-right: 0; }
  .job-any .btn { width: 100%; }
}

/* ---------- cómo se hace ---------- */

.how { padding: clamp(64px, 7vw, 96px) 0 clamp(80px, 10vw, 130px); }
.how__in { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.how__side { flex: 1 1 340px; position: sticky; top: 120px; }
.how__side h2 { font-size: clamp(38px, 4.2vw, 60px); }
.how__side .lead { margin-top: 22px; max-width: 400px; }
.how__list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.how__list li { display: flex; gap: 22px; align-items: flex-start; padding: 30px 34px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.how__n { flex: none; width: 40px; height: 40px; border-radius: 40px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 750; }
.how__list h3 { font-size: 24px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.2; }
.how__list p { margin-top: 8px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 900px) { .how__side { position: static; } }
@media (max-width: 560px) { .how__list li { padding: 24px 22px; gap: 16px; } }

/* ---------- "Quiero algo así" ---------- */

.want {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  /* landing.css pone `* { margin: 0 }`: sin esto el diálogo no se centra. */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(22, 23, 27, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}
.want::backdrop { background: rgba(19, 20, 24, 0.55); }
.want[open] { animation: fade 0.4s var(--ease) both; }
.want__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 30px 32px 0; }
.want__head h2 { margin-top: 8px; font-size: 26px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; }
.want__form, .want__done { display: flex; flex-direction: column; gap: 16px; padding: 18px 32px 32px; }
.want__intro { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.want__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.want__field { display: flex; flex-direction: column; gap: 6px; }
.want__field > span { font-size: 14px; font-weight: 650; }
.want__field small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.want__field input, .want__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid #d9d7d0;
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.want__field textarea { padding: 12px 14px; resize: vertical; line-height: 1.5; }
.want__field input:focus, .want__field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.want__field input[aria-invalid='true'], .want__consent input[aria-invalid='true'] { border-color: #b3261e; }
.want__err { font-style: normal; font-size: 14px; color: #b3261e; }
.want__err:empty { display: none; }
.want__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.want__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.want__error { font-size: 15px; color: #b3261e; }
.want__error[hidden], .want__done[hidden], .want__form[hidden] { display: none; }
.want__done-title { font-size: 26px; font-weight: 720; letter-spacing: -0.02em; }
.want__done p:not(.want__done-title) { color: var(--ink-soft); }
.want__done .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .want__head { padding: 24px 22px 0; }
  .want__form, .want__done { padding: 16px 22px 24px; }
}

@media (hover: none) {
  .job__frame:hover { transform: none; box-shadow: 0 0 0 1px #ecebe6, 0 40px 80px -30px rgba(22, 23, 27, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .job__frame:hover { transform: none; }
}
