/* Feed de Salmon-Connect y panel «Administra tu empresa». Va al final de todo: usa los tokens --fx-* de fx.css (claro y oscuro) y no cambia colores ni la paleta, solo orden, aire y esquinas.
   Publicaciones: tarjeta de 16 px de radio, 20 px de aire entre una y otra, foto con bordes redondeados, nota de origen en una sola fila compacta. */

.fd-post, .fd-job { margin-bottom: 20px; padding: 0; overflow: hidden; border-radius: var(--fx-radius-xl); background: var(--fx-surface-1); border: 1px solid var(--fx-border); box-shadow: var(--fx-bevel); transition: border-color var(--fx-dur-base) var(--fx-ease), box-shadow var(--fx-dur-base) var(--fx-ease); }
.fd-post:hover, .fd-job:hover { border-color: var(--fx-border-strong); box-shadow: var(--fx-bevel), var(--fx-shadow-1); }
/* las publicaciones automáticas (novedades) ya no «flotan» distinto al resto: se distinguen por su etiqueta, no por la sombra */
.fd-post.fd-auto { border: 1px solid var(--fx-border) !important; box-shadow: var(--fx-bevel) !important; transform: none; }
.fd-post.fd-auto:hover { border-color: var(--fx-border-strong) !important; box-shadow: var(--fx-bevel), var(--fx-shadow-1) !important; }
.fd-compose { margin-bottom: 20px; }
.fd-more { margin: 4px 0 28px; }

/* encabezado: logo, nombre, quién y cuándo; la etiqueta del tipo a la derecha como una píldora */
.fd-head { gap: 12px; padding: 18px 20px 10px; align-items: center; }
.fd-head a.who { min-width: 0; }
.fd-head a.who b { font: 600 15px/20px var(--fx-font-ui); letter-spacing: -.005em; }
.fd-head a.who .muted { color: var(--fx-text-3); font-size: 12.5px; }
.fd-head .badge.right { flex: none; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--fx-surface-2); border: 1px solid var(--fx-border); color: var(--fx-text-2); font-weight: 500; }
.fd-head .badge.right.gold { background: var(--fx-accent-subtle); border-color: transparent; color: var(--fx-accent-text); }

/* cuerpo: título con presencia, texto más sobrio */
.fd-body { padding: 4px 20px 14px; }
.fd-body h4 { margin: 2px 0 6px; font: 600 19px/26px var(--fx-font-display); letter-spacing: -.01em; color: var(--fx-text-1); text-wrap: balance; }
.fd-body p { line-height: 1.55; color: var(--fx-text-1); }
.fd-auto .fd-body p { color: var(--fx-text-2); font-size: 13.5px; }

/* foto y video: dentro de la tarjeta, con esquinas redondeadas (nunca cuadrados ni a sangre) */
.fd-media { margin: 0 20px 14px; border-radius: var(--fx-radius-lg); overflow: hidden; background: var(--fx-surface-2); border: 1px solid var(--fx-border); }
.fd-media img, .fd-media video { display: block; width: 100%; max-height: 480px; object-fit: contain; background: var(--fx-surface-2); }
.fd-auto .fd-media img { aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; }
.fd-yt-play { border-radius: 0; }
.fd-file { margin: 0 20px 14px; border-radius: var(--fx-radius-lg); background: var(--fx-surface-2); border-color: var(--fx-border); }

/* nota de origen, licitación, aviso o aplicativo: una fila baja y ordenada, con el botón chico */
.fd-cta { margin: 0 20px 14px; min-height: 44px; padding: 6px 6px 6px 14px; gap: 10px; flex-wrap: nowrap; border-radius: var(--fx-radius-lg); background: var(--fx-surface-2); border: 1px solid var(--fx-border); }
.fd-cta > .small { flex: 1; min-width: 0; font-size: 12.5px; color: var(--fx-text-2); }
.fd-cta > .small b { color: var(--fx-text-1); font-weight: 600; }
.fd-cta .btn { flex: none; height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.fd-cta .btn svg { width: 14px; height: 14px; }
/* el aviso de empleo es una tarjeta con relleno propio (el título, las etiquetas y el texto van dentro, con aire) */
.fd-job { padding: 20px 20px 16px; overflow: visible; }
.fd-job .fd-cta { margin: 14px 0 0; }
.job-head { display: flex; gap: 14px; align-items: flex-start; }
.job-title { flex: 1; min-width: 0; }
.job-title h4 { margin: 0 0 2px; font: 600 17px/24px var(--fx-font-display); letter-spacing: -.01em; }
.job-link { color: inherit; text-decoration: none; } .job-link:hover h4 { color: var(--fx-accent-text); }
.job-co { font-size: 13.5px; color: var(--fx-text-2); } .job-co a { color: var(--fx-text-1); text-decoration: none; } .job-co a:hover { text-decoration: underline; }
.fd-job .ax-chips, .job-public .ax-chips { margin: 12px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.job-desc { margin: 12px 0 0; color: var(--fx-text-2); font-size: 14px; line-height: 1.55; }
.job-save { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--fx-radius-md); border: 1px solid var(--fx-border); background: transparent; color: var(--fx-text-2); cursor: pointer; }
.job-save:hover { background: var(--fx-surface-2); color: var(--fx-text-1); } .job-save.on { color: var(--fx-accent-text); border-color: var(--fx-accent); } .job-save.on svg { fill: currentColor; } .job-save svg, .chip-btn svg { width: 18px; height: 18px; }
.job-as { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-md); background: var(--fx-surface-2); }
.job-row, .job-app, .job-public { margin-bottom: 14px; }
.job-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 14px 0 0; }
.job-kpis div { padding: 10px 12px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-md); background: var(--fx-surface-2); }
.job-kpis b { display: block; font: 600 20px/26px var(--fx-font-display); } .job-kpis span { font-size: 12px; color: var(--fx-text-3); }
.job-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 0; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.job-public { padding: 28px; } .job-public h1 { font: 600 24px/32px var(--fx-font-display); }
.job-public .job-actions { margin-top: 18px; }
.job-body { white-space: pre-line; line-height: 1.65; color: var(--fx-text-1); max-width: 70ch; }
@media (max-width: 640px) { .fd-job { padding: 16px 16px 14px; } .job-public { padding: 20px 16px; } .job-head { gap: 10px; } }

/* reacciones y acciones */
.fd-count { padding: 0 20px 10px; color: var(--fx-text-3); }
.fd-bar { gap: 2px; padding: 6px 12px; border-top: 1px solid var(--fx-border); }
.fd-act { padding: 8px 12px; border-radius: var(--fx-radius-md); color: var(--fx-text-2); font: 500 13px/20px var(--fx-font-ui); }
.fd-act:hover { background: var(--fx-surface-2); color: var(--fx-text-1); }
.fd-comments { padding: 12px 20px 16px; border-top: 1px solid var(--fx-border); }

@media (max-width: 640px) {
  .fd-post, .fd-job { margin-bottom: 16px; border-radius: var(--fx-radius-lg); }
  .fd-head { padding: 14px 16px 8px; }
  .fd-body { padding: 2px 16px 12px; } .fd-body h4 { font-size: 17px; line-height: 24px; }
  .fd-media, .fd-file, .fd-cta { margin-left: 16px; margin-right: 16px; }
  .fd-count { padding: 0 16px 8px; } .fd-comments { padding: 10px 16px 14px; }
  .fd-cta { flex-wrap: wrap; padding: 8px 8px 8px 12px; } .fd-cta > .small { flex-basis: 100%; }
}

/* panel «Administra tu empresa» (Mi empresa) */
.hub { margin-bottom: 20px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.hub-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-lg); background: var(--fx-surface-2); }
.hub-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-h b { font: 600 14px/20px var(--fx-font-ui); }
.hub-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--fx-radius-md); background: var(--fx-accent-subtle); color: var(--fx-accent-text); }
.hub-tile p { margin: 0; }
.hub-act { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
/* ---- el feed: columna lateral a la derecha (el menú sigue a la izquierda); las franjas de arriba solo en pantallas angostas ---- */
.fd-rail { max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.fd-rail > :empty { display: none; }
.fd-rail .alert { margin: 0 !important; font-size: 13px; }
.fd-rail .fd-stats { margin: 0; padding: 0 4px; line-height: 1.6; }
.fd-narrow { display: none; } .fd-narrow:empty { display: none !important; }
@media (max-width: 1180px) { .fd-narrow { display: block; } .fd-narrow > .card { margin-bottom: 14px; } }
.hoy-slim { padding: 12px 16px; }
.hoy-minis { display: grid; gap: 8px; margin: 10px 0 0; }
.hoy-mini { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-md); background: var(--fx-surface-2); }
.hoy-mini.alert { border-color: var(--fx-warning); } .hoy-mini > span.small { grid-column: 1 / -1; color: var(--fx-text-2); } .hoy-mini b { font-weight: 600; }
.hoy-inds.rail { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
.hoy-inds.rail .hoy-ind { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 6px 10px; }
.fd-photo { border-color: var(--fx-accent); }

/* ---- la publicación al estilo LinkedIn: foto, nombre, cargo y empresa, y hace cuánto ---- */
.fd-head .who { flex: 1; min-width: 0; line-height: 1.3; }
.fd-head .who-name { color: var(--fx-text-1); text-decoration: none; } .fd-head .who-name:hover b { text-decoration: underline; color: var(--fx-accent-text); }
.fd-head .who-name b { font: 600 15px/20px var(--fx-font-ui); }
.fd-sub { font-size: 13px; color: var(--fx-text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .fd-sub a { color: inherit; text-decoration: none; } .fd-sub a:hover { text-decoration: underline; }
.fd-time { font-size: 12px; color: var(--fx-text-3); }
.fd-quick button { display: inline-flex; align-items: center; gap: 8px; } .fd-quick button svg { width: 18px; height: 18px; color: var(--fx-text-2); }

/* ---- reacciones sobrias: íconos de línea en círculos suaves, sin emoticones de colores ---- */
.fd-rxi { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fx-surface-3); color: var(--fx-text-2); border: 2px solid var(--fx-surface-1); font-style: normal; flex: none; }
.fd-rxi svg { width: 12px; height: 12px; }
.fd-rxs { display: inline-flex; } .fd-rxs .fd-rxi + .fd-rxi { margin-left: -6px; }
.fd-count > [data-lc] { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border-radius: var(--fx-radius-md); } .fd-count > [data-lc]:empty { cursor: default; }
.fd-count > [data-lc]:hover .fd-who { text-decoration: underline; color: var(--fx-text-1); }
.fd-count { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.fd-picker { padding: 6px 8px; gap: 4px; border-radius: 999px; background: var(--fx-surface-1); border: 1px solid var(--fx-border-strong); box-shadow: var(--fx-shadow-1); }
.fd-picker button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--fx-text-2); font-size: 0; }
.fd-picker button svg { width: 20px; height: 20px; }
.fd-picker button:hover, .fd-picker button:focus-visible { transform: translateY(-3px); background: var(--fx-accent-subtle); color: var(--fx-accent-text); }
.fd-act .fd-emo { display: inline-grid; place-items: center; font-size: 0; } .fd-act .fd-emo svg { width: 18px; height: 18px; }
.fd-act.on { color: var(--fx-accent-text); }
.fd-rxtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--fx-border); margin-bottom: 8px; }
.fd-rxtabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--fx-text-2); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fd-rxtabs button.on { color: var(--fx-text-1); border-bottom-color: var(--fx-accent); }
.fd-rxtabs .fd-rxi { border: 0; width: 20px; height: 20px; }
.fd-rxlist { max-height: 60vh; overflow: auto; }
.fd-rxrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--fx-border); } .fd-rxrow:last-child { border-bottom: 0; }
.fd-rxrow .grow { flex: 1; min-width: 0; }

/* ---- sugerencia de grupos entre las publicaciones ---- */
.fd-suggest { margin-bottom: 20px; border-radius: var(--fx-radius-xl); }
.fd-sug-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--fx-border); border-radius: var(--fx-radius-md); background: var(--fx-surface-2); color: var(--fx-text-1); text-decoration: none; }
.fd-sug-row small { display: block; color: var(--fx-text-3); }
.char-count { text-align: right; margin-top: 4px; font-variant-numeric: tabular-nums; } .char-count.near { color: var(--fx-warning); }
.job-app select[data-st] { width: auto; min-width: 190px; } .job-app [data-note] { flex: 1; width: auto; min-width: 0; }

/* Salmon-Connect: barra de pestañas con los atajos a la derecha, y barra de filtros de empleos */
.sc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sc-bar .tabs { margin-bottom: 0; }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jb-row input[type=text] { flex: 1 1 240px; max-width: none; min-width: 0; }
.jb-row .btn { margin-left: auto; }
.jb-chips .right { margin-left: auto; }

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar.has-photo { background: none; padding: 0; overflow: hidden; }
.avatar.needs-photo { position: relative; }
.avatar.needs-photo::after { content: "+"; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--fx-accent, #f2b800); color: #111; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.fd-me-photo { background: none; border: 0; padding: 0; border-radius: 50%; position: relative; cursor: default; }
.fd-me-photo.needs { cursor: pointer; }
.fd-me-photo.needs::after { content: "+"; position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--fx-accent, #f2b800); color: #111; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid var(--fx-surface-1, #fff); }
@media (max-width: 640px) { .jb-row select { flex: 1 1 42%; max-width: none; } .jb-row .btn { flex: 1 1 100%; margin-left: 0; } .sc-actions .btn { flex: 1 1 auto; } }

/* vista previa de enlaces (como en LinkedIn) */
.fd-post .fd-body a { color: var(--fx-accent-text, inherit); text-decoration: underline; overflow-wrap: anywhere; }
.fd-link { display: block; margin: 12px 0 0; border: 1px solid var(--fx-border, #ddd); border-radius: var(--fx-radius-md, 10px); overflow: hidden; text-decoration: none !important; color: inherit !important; background: var(--fx-surface-2, transparent); }
.fd-link:hover { border-color: var(--fx-border-strong, #bbb); }
.fd-link img { display: block; width: 100%; max-height: 300px; object-fit: cover; background: var(--fx-surface-3, #eee); }
.fd-link-t { display: grid; gap: 3px; padding: 10px 14px 12px; }
.fd-link-t b { font-size: 15px; line-height: 1.3; color: var(--fx-text-1, inherit); }
.fd-link-d { font-size: 13px; color: var(--fx-text-2, inherit); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-link-t small { color: var(--fx-text-3, inherit); font-size: 12px; }
.fd-link-prev { position: relative; margin-top: 10px; }
.fd-link-prev .fd-link { margin: 0; display: flex; align-items: center; }
.fd-link-prev .fd-link img { width: 120px; height: 80px; max-height: none; flex: none; }
.fd-link-prev .fd-link-t { flex: 1; min-width: 0; padding: 8px 40px 8px 14px; }
.fd-link-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; background: #222; color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; }
