/*
 * styles.css — todo el CSS del sitio. Los tokens están documentados en
 * DESIGN.md; si cambia algo aquí, cambia allí en el mismo commit.
 *
 * Diseño "naranja + blanco" con Inter, adoptado el 2026-09-12 (DECISIONS
 * D-014) en sustitución del azul con Bricolage + Plex (archivado en
 * _drafts/diseno-v1/). Principios: fondo blanco, un solo acento (naranja),
 * pocas líneas, mucho aire, una sola familia tipográfica. Contraste AA en
 * todo el texto: el naranja de texto y botones es --accent (#C4460A, 5:1
 * sobre blanco, 4.65:1 sobre surface-2); el naranja vivo --accent-bright
 * solo se usa en marcas sin texto.
 */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F6F7F9;
  --ink: #14181D;
  --ink-2: #4A5561;
  --ink-3: #7A8591;
  --line: #E6E9ED;
  --accent: #C4460A;
  --accent-hover: #AD3D09;
  --accent-bright: #F97316;
  --accent-soft: #FFF1E8;
  --accent-ink: #FFFFFF;
  --ok: #1B7F4C;
  --ok-soft: #DDF3E6;
  --warn: #9A5B00;
  --warn-soft: #FBEBD0;
  --error: #B42318;
  --error-soft: #FEE4E2;
  --shadow: 0 10px 40px -14px rgba(20, 24, 29, .18);
  --radius: 10px;
  --radius-card: 16px;
  --display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121417; --surface: #1A1D21; --surface-2: #22262B;
    --ink: #F1F3F5; --ink-2: #A9B1BA; --ink-3: #737C86; --line: #2B3037;
    --accent: #FF8A3D; --accent-hover: #FF9C5A; --accent-bright: #FF8A3D; --accent-soft: #3A2210; --accent-ink: #1A1207;
    --ok: #5FD08E; --ok-soft: #14301F; --warn: #F0B35A; --warn-soft: #3A2A0E;
    --error: #F97066; --error-soft: #3B1512;
    --shadow: 0 10px 40px -14px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #121417; --surface: #1A1D21; --surface-2: #22262B;
  --ink: #F1F3F5; --ink-2: #A9B1BA; --ink-3: #737C86; --line: #2B3037;
  --accent: #FF8A3D; --accent-hover: #FF9C5A; --accent-bright: #FF8A3D; --accent-soft: #3A2210; --accent-ink: #1A1207;
  --ok: #5FD08E; --ok-soft: #14301F; --warn: #F0B35A; --warn-soft: #3A2A0E;
  --error: #F97066; --error-soft: #3B1512;
  --shadow: 0 10px 40px -14px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* El pie siempre abajo, también en páginas cortas (lista de ofertas vacía, 404) */
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
footer.site { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.muted { color: var(--ink-2); }
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.brand small { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.links { display: flex; gap: 28px; margin-left: auto; margin-right: 20px; font-size: 15px; font-weight: 500; color: var(--ink-2); } /* a la derecha, junto al idioma y el botón */
.links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1.2; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
nav .btn { padding: 9px 16px; font-size: 14.5px; }
/* Selector de idioma (D-012): fuera de .links para que siga visible en móvil */
.nav-end { display: flex; align-items: center; gap: 18px; }
.lang { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); padding: 6px 2px; border-bottom: 1px solid transparent; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }

/* Menú móvil (< 900px): <details> sin dependencia de JS; el script inline de la página solo lo cierra */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu summary .close, .menu[open] summary .open { display: none; }
.menu[open] summary .close { display: block; }
.menu[open] summary { border-color: var(--ink-3); }
.menu .panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.menu .panel a { padding: 12px 14px; border-radius: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
.menu .panel a:hover { background: var(--surface-2); }

/* HERO */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; } /* la segunda mitad siempre en línea nueva: el corte cae en la coma */
.hero .lead { font-size: 19px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 14px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); flex: none; }

/* Shortlist card */
.shortlist {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow);
  overflow: hidden; font-size: 14.5px;
}
.shortlist header { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.shortlist header .role { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.shortlist header .timeline { font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.shortlist header .timeline b { color: var(--ink); font-weight: 600; }
.cand { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.cand:last-of-type { border-bottom: 0; }
.cand .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.cand .who { display: grid; gap: 4px; min-width: 0; }
.cand .who strong { font-weight: 600; font-size: 15px; }
.cand .stack { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.status { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.acc { background: var(--accent-soft); color: var(--accent); }
.shortlist footer { padding: 12px 22px; background: var(--surface-2); font-family: var(--mono); font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Tarjeta de perfil (hero): misma caja .shortlist, con foto y filas clave/valor */
.profile header { grid-template-columns: 96px 1fr; column-gap: 18px; align-items: center; }
.profile header img { grid-row: 1 / span 3; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.profile header .eyebrow { grid-column: 2; }
.profile header .role { grid-column: 2; }
.profile header .timeline { grid-column: 2; }
.brief-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.brief-row:last-of-type { border-bottom: 0; }
.brief-row .k { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.brief-row .v { font-size: 14.5px; }
.brief-row .v strong { font-weight: 600; }
.brief-row .stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* QUIÉN SOY: texto a la izquierda, tarjeta de perfil (.shortlist.profile) a la derecha */
.about .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about .sec-head { margin-bottom: 0; }
.about .bio { margin-top: 22px; display: grid; gap: 14px; max-width: 34em; }
.about .bio p { font-size: 16.5px; color: var(--ink-2); }
.about .bio a { font-weight: 600; color: var(--accent); }
.about .bio a:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile footer a { color: var(--ink-2); font-weight: 500; }
.profile footer a:hover { color: var(--accent); }

/* Qué contrato: grupos de stack en lista, no en tarjetas */
.stack-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; border-top: 1px solid var(--line); }
.stack-group { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stack-group .k { font-family: var(--display); font-weight: 600; font-size: 16.5px; }
.stack-group .stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* CONTACTO / Formulario de CV (envio-cv): sección sobre surface-2, tarjeta blanca */
#contact, #contacto, #apply, #aplicar { background: var(--surface-2); }
.job .apply { margin-top: clamp(40px, 6vw, 72px); }
.job .ofrece + .apply { margin-top: clamp(32px, 5vw, 56px); }
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 26px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .fields-2 { grid-template-columns: 1fr; } }
.field label { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--ink-3); font-size: 13.5px; margin-left: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="tel"], .field textarea, .field input[type="file"] {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:disabled, .field textarea:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field input[type="file"] { padding: 9px 12px; }
.field input[type="file"]::file-selector-button { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-right: 12px; cursor: pointer; }
.field .hint { font-size: 13.5px; color: var(--ink-2); }
.field .error { font-size: 13.5px; color: var(--error); }
/* Honeypot del formulario (D-006): fuera de la vista y del orden de tabulación, nunca display:none (algunos bots lo detectan). */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Mensaje general del formulario: error de envío o límite. */
.form-msg { margin: 0 0 4px; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.5; }
.form-msg.is-error { background: var(--error-soft); color: var(--error); }
.form-msg.is-ok { background: var(--ok-soft); color: var(--ok); }
.form-msg a { color: inherit; font-weight: 600; }
.consent.invalid { color: var(--error); }
.consent.invalid input { outline: 2px solid var(--error); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.consent a { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.consent a:hover { text-decoration-color: var(--accent); }
.form .btn { justify-self: start; }
.form-side { display: grid; gap: 18px; }
.form-side h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.form-side .ways { margin-top: 10px; }

/* ROLES */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.role-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px 24px; display: grid; gap: 12px; grid-template-rows: auto auto 1fr; }
.role-card h3 { font-size: 19px; font-weight: 700; }
.role-card p { font-size: 15px; color: var(--ink-2); }
.role-card .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-self: end; }

/* PROCESS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 36px; height: 2px; background: var(--accent-bright); }
.step .n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { font-size: 15px; color: var(--ink-2); }
.step .when { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* WHO */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* Cada tarjeta ocupa tres filas de la rejilla padre (título, cita, texto) con subgrid: así la cita y el texto quedan a la misma altura en las tres, sea cual sea su longitud. */
.who-card { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 10px; align-content: start; }
.who-card h3 { font-size: 21px; font-weight: 700; }
.who-card p { font-size: 15.5px; color: var(--ink-2); }
.who-card .q { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink); border-left: 3px solid var(--accent-bright); padding-left: 12px; }

/* FACTS */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { background: var(--surface-2); border-radius: var(--radius-card); padding: 24px 22px 22px; display: grid; gap: 6px; }
.fact .v { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.fact .l { font-size: 14.5px; color: var(--ink-2); }

/* CONTACT (alternativas al formulario, hoy en _drafts/contacto-ways) */
.contact .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 700; }
.contact .ways { display: grid; gap: 0; border-top: 1px solid var(--line); }
.way { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.way .k { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.way a { font-weight: 600; }
.way a:hover { color: var(--accent); }
.way .sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* OFERTAS (tipo "oferta": /jobs/, /es/empleo/; generadas por scripts/ofertas.py, D-015) */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.job-card { display: grid; gap: 10px; grid-template-rows: auto auto auto 1fr; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.job-card:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.job-card h3 { font-size: 19px; font-weight: 700; }
.job-card p { font-size: 15px; color: var(--ink-2); }
.job-card .meta { display: grid; gap: 2px; font-size: 14.5px; color: var(--ink-2); }
.job-card .meta strong { color: var(--ink); font-weight: 600; }
.job-card .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; align-self: end; } /* todas las tarjetas de la fila terminan igual */
.job-card .foot .stack { display: flex; flex-wrap: wrap; gap: 6px; }
.jobs.closed .job-card { opacity: .75; }
.closed-title { font-size: 22px; font-weight: 700; margin: 44px 0 16px; }
section .more { margin-top: 24px; font-weight: 600; }
section .more a { color: var(--accent); }
section .more a:hover { text-decoration: underline; text-underline-offset: 3px; }

.job, .job-list { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 104px); }
.job .back { font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 28px; }
.job .back a:hover { color: var(--accent); }
/* Tres piezas (cabecera, tarjeta, cuerpo) en áreas: en escritorio la tarjeta va a la derecha, fija; en móvil (una columna) el orden del DOM es cabecera → tarjeta → cuerpo, para que rango, modalidad y stack se vean antes de la descripción. */
/* Cabecera a todo el ancho (título con empaque); debajo, cuerpo y tarjeta en dos columnas. */
.job-head { max-width: 62em; margin-bottom: clamp(32px, 4vw, 48px); }
.job-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "body aside"; gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.job aside { grid-area: aside; }
.job-body { grid-area: body; }
.job h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; margin-block: 14px 20px; }
.job .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 40em; }
.job .cta { margin-top: 26px; }
/* Enlace corto para compartir la búsqueda (#55): texto seleccionable, sin JS. `user-select: all` para que un toque seleccione la URL entera; `overflow-wrap` para que no desborde en móvil. */
.job .share { margin-top: 14px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.job .share .url { font-weight: 600; user-select: all; -webkit-user-select: all; }
.job .notice { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.job .notice.warn { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.job-list .notice { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 15.5px; margin-bottom: 18px; }
.job-body { margin-top: 0; max-width: 38em; }
.job-body .stack-line { margin: 0 0 12px; }
.job-body .stack-line .stack { display: flex; flex-wrap: wrap; gap: 6px; }
/* Lo que ofrece la empresa: sección a ancho completo antes del formulario,
   con los beneficios como iconos en gris (scripts/beneficios.py); lo escrito
   a mano lleva el icono por defecto. */
.job .ofrece { padding-block: clamp(40px, 6vw, 72px) 0; }
.job .ofrece h2 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; margin-bottom: clamp(36px, 4vw, 48px); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px 16px; }
.perks li { display: grid; align-content: start; justify-items: center; gap: 10px; text-align: center; font-size: 14px; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.perk-icon { display: inline-flex; width: 44px; height: 44px; color: var(--ink-3); }
.perk-icon svg { width: 44px; height: 44px; }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; } .perk-icon, .perk-icon svg { width: 36px; height: 36px; } }
.job-body h2 { font-size: 21px; font-weight: 700; margin: 32px 0 10px; }
.job-body p, .job-body li { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.job-body p + p { margin-top: 10px; }
.job-body ul { padding-left: 20px; margin: 0; }
.job-body li + li { margin-top: 6px; }
.job aside { position: sticky; top: 86px; }
/* Quién lleva la búsqueda: bajo la tarjeta de la oferta. Foto de la home, misma que en "Quién soy". */
.quien { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.quien img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quien .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.quien strong { display: block; font-size: 16px; margin: 2px 0 4px; }
.quien p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0 0 8px; }
.quien a { font-size: 14px; font-weight: 600; color: var(--accent); }
.job-list .sec-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }

/* PÁGINA LEGAL (tipo "legal": /privacy/, /es/privacidad/): una columna de texto, sin tarjetas */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin-block: 10px 14px; }
.legal .updated { font-size: 14px; color: var(--ink-2); }
.legal .summary { margin-top: 28px; padding: 18px 20px; background: var(--surface-2); border-radius: var(--radius-card); font-size: 16px; }
.legal h2 { font-size: 22px; line-height: 1.25; font-weight: 700; margin-top: 44px; margin-bottom: 12px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; }
.legal p + p, .legal ul, .legal ol { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.legal a:not(.btn):hover { text-decoration-color: var(--accent); }
/* Los botones de las páginas legales (gracias, 404) no son enlaces de texto: sin subrayado y con su color. */
.legal .btn { text-decoration: none; }
.legal .btn-primary { color: var(--accent-ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.legal .table-wrap { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--ink-3); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .hero .wrap, .contact .wrap, .form-wrap, .about .wrap { grid-template-columns: 1fr; }
  .stack-groups { grid-template-columns: 1fr; }
  .roles, .who-grid, .jobs { grid-template-columns: 1fr 1fr; }
  .job-grid { grid-template-columns: 1fr; grid-template-areas: "aside" "body"; gap: 28px 0; }
  .job aside { position: static; }
  .job-body { margin-top: 0; }
  .steps, .facts { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .menu { display: block; }
}
@media (max-width: 560px) {
  .roles, .who-grid, .steps, .facts, .jobs { grid-template-columns: 1fr; }
  .cand { grid-template-columns: 40px 1fr; }
  .cand .status { grid-column: 2; justify-self: start; }
  .way { grid-template-columns: 1fr; gap: 4px; }
  .brief-row, .stack-group { grid-template-columns: 1fr; gap: 4px; }
  .profile header { grid-template-columns: 72px 1fr; }
  .profile header img { width: 72px; height: 72px; }
  .brand small { display: none; }
  nav .wrap { gap: 12px; }
  .nav-end { gap: 12px; }
  nav .btn { padding: 9px 12px; font-size: 14px; }
  .form { padding: 22px 18px; }
  .form .btn { justify-self: stretch; justify-content: center; }
}

@media (max-width: 420px) {
  nav .btn { padding: 9px 10px; font-size: 13.5px; }
  .lang { padding: 6px 0; }
  .brand { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > * { animation: rise .6s ease both; }
  .hero > .wrap > :nth-child(2) { animation-delay: .12s; }
  @keyframes rise { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Hero secondary path */
.hero .alt { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.hero .alt a { font-weight: 600; color: var(--accent); }
.hero .alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
