/* ==========================================================================
   BuscasTrabajo USA — Site-wide chrome (Claude Design)
   Blue header + slate footer + on-brand content area, applied on EVERY page
   (archives, single posts, pages). The home page (front-page.php) stays
   self-contained; this file gives the rest of the site the same look.
   svg defaults are scoped to .bt-hdr/.bt-ftr so Dashicons / Font Awesome
   elsewhere are never touched.
   ========================================================================== */

:root {
	--brand-blue: #2563EB;
	--brand-blue-700: #1D4ED8;
	--brand-blue-900: #1E3A8A;
	--brand-yellow: #FAD636;
	--brand-yellow-deep: #E9B800;
	--brand-slate: #374151;
	--brand-slate-900: #1f2632;
	--bt-bg: #f5f8fd;
	--bt-surface: #ffffff;
	--bt-ink: #18222f;
	--bt-muted: #5b6878;
	--bt-line: #e6ecf4;
	--bt-radius: 18px;
	--bt-radius-sm: 11px;
	--bt-radius-btn: 999px;
	--bt-maxw: 1180px;
	--bt-shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 10px 30px -16px rgba(16,24,40,.16);
	--bt-shadow-hover: 0 2px 6px rgba(16,24,40,.07), 0 22px 48px -18px rgba(37,99,235,.32);
	--bt-font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Font safety net: Astra's Google Fonts (Noto Sans / Poppins) are dequeued for
   performance, so ensure native content headings/titles on skinned pages use the
   brand font with a system fallback (Spectra/UAGB blocks keep their own fonts). */
.bt-skin .entry-content h1, .bt-skin .entry-content h2, .bt-skin .entry-content h3,
.bt-skin .entry-content h4, .bt-skin .entry-content h5, .bt-skin .entry-content h6,
.bt-skin .entry-title, .bt-skin .ast-archive-description { font-family: var(--bt-font); }

/* ---------- Shared wrap ---------- */
.bt-hdr .bt-wrap,
.bt-ftr .bt-wrap { max-width: var(--bt-maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* svg icon defaults — ONLY inside chrome to avoid breaking icon fonts */
.bt-hdr svg,
.bt-ftr svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.bt-hdr {
	background: var(--brand-blue);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(255,255,255,.12);
	font-family: var(--bt-font);
}
.bt-hdr * { box-sizing: border-box; }
.bt-hdr-inner { display: flex; align-items: center; gap: 22px; height: 72px; }

/* logo */
.bt-logo { background: none; border: none; cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-decoration: none; }
.bt-logo:hover { text-decoration: none; }
.bt-logo-usa { font-family: var(--bt-font); font-weight: 800; font-size: 10px; letter-spacing: .22em; color: var(--brand-yellow); margin-bottom: 1px; margin-left: 2px; }
.bt-logo-main { font-family: var(--bt-font); font-weight: 800; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; }
.bt-logo-main .a { font-style: italic; color: #fff; }
.bt-logo-main .b { color: var(--brand-yellow); font-style: italic; }
.bt-logo-pin { color: var(--brand-yellow); display: inline-flex; margin-left: 1px; }

/* nav */
.bt-hdr-nav { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.bt-nav-link { font-family: var(--bt-font); font-weight: 600; font-size: 15px; color: #fff; background: none; border: none; cursor: pointer; padding: 9px 13px; border-radius: 9px; display: inline-flex; align-items: center; gap: 5px; opacity: .92; transition: background .15s ease, opacity .15s ease; white-space: nowrap; text-decoration: none; }
.bt-nav-link:hover { opacity: 1; background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }

/* dropdown */
.bt-dd { position: relative; }
.bt-dd-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: 14px; box-shadow: 0 20px 48px -16px rgba(16,24,40,.3); padding: 8px; min-width: 210px; display: none; gap: 2px; z-index: 60; }
.bt-dd.open .bt-dd-menu { display: grid; }
.bt-dd-item { font-family: var(--bt-font); font-size: 14.5px; color: var(--bt-ink); background: none; border: none; cursor: pointer; text-align: left; padding: 10px 12px; border-radius: 9px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bt-dd-item:hover { background: var(--bt-bg); color: var(--brand-blue); text-decoration: none; }
.bt-dd-item svg { color: var(--brand-blue); }
/* Two-column dropdown for the 10 sectors */
.bt-dd.open .bt-dd-menu-2col { display: grid; grid-template-columns: 1fr 1fr; min-width: 420px; }

/* Sector landing intro paragraph (above the job listing) */
.bt-sector-intro { margin: 0 0 18px; color: var(--bt-muted); font-size: 15px; line-height: 1.6; max-width: 760px; }
.bt-sector-intro p { margin: 0; }

/* search pill */
.bt-hdr-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: none; border-radius: 999px; padding: 8px 15px; min-width: 210px; max-width: 300px; color: #fff; box-shadow: none; }
.bt-hdr-search svg { flex: none; color: #fff; }
.bt-hdr-search input,
.bt-hdr-search input[type="search"] { background: transparent !important; background-color: transparent !important; border: none !important; outline: none !important; box-shadow: none !important; color: #fff !important; font-family: var(--bt-font) !important; font-size: 14px !important; line-height: 1.4 !important; width: 100%; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.bt-hdr-search input:focus { box-shadow: none !important; background: transparent !important; }
.bt-hdr-search input::placeholder { color: rgba(255,255,255,.6) !important; opacity: 1; }

/* mode + language icon buttons */
.bt-icon-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--bt-font); font-weight: 700; font-size: 13px; letter-spacing: .02em; transition: background .15s ease; }
.bt-icon-btn:hover { background: rgba(255,255,255,.22); }
.bt-icon-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* segmented ES / EN language switch */
.bt-langsw { flex: none; display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.bt-langsw-opt { font-family: var(--bt-font); font-weight: 700; font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.82); background: none; border: none; cursor: pointer; padding: 6px 13px; border-radius: 999px; line-height: 1; transition: background .15s ease, color .15s ease; }
.bt-langsw-opt:hover { color: #fff; }
.bt-langsw-opt.is-active { background: var(--brand-yellow); color: #3a2f00; }

/* burger + mobile menu */
.bt-hdr-burger { display: none; background: none; border: none; color: #fff; cursor: pointer; margin-left: auto; }
.bt-hdr-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 16px 18px; background: var(--bt-surface); border-top: 1px solid var(--bt-line); }
.bt-hdr-mobile.open { display: flex; }
/* ID selector (1-0-1) so the dark drawer links always beat the home page's
   .bt-home .bt-nav-link{color:#fff} (0-2-0); otherwise the open menu renders
   white text on the white panel and looks blank. */
#bt-hdr-mobile .bt-nav-link { color: var(--bt-ink); text-align: left; }
#bt-hdr-mobile .bt-nav-link:hover { background: var(--bt-bg); color: var(--brand-blue); }
.bt-hdr-mobile .bt-nav-head { font-family: var(--bt-font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bt-muted); padding: 12px 13px 4px; }
.bt-hdr-mobile .bt-nav-sub { padding-left: 26px; font-weight: 500; opacity: .95; }
.bt-hdr-search.mob { display: flex; margin: 0 0 10px; background: var(--bt-bg); border: 1px solid var(--bt-line); color: var(--bt-muted); }
.bt-hdr-search.mob svg { color: var(--bt-muted); }
.bt-hdr-search.mob input { color: var(--bt-ink) !important; }
.bt-hdr-search.mob input::placeholder { color: var(--bt-muted) !important; }

/* Mobile drawer accordions: collapse the long "sector" and "type" groups so the
   menu stays short and scannable. Groups are closed by default; tap to expand. */
.bt-nav-group { display: flex; flex-direction: column; }
.bt-nav-acc { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; font-family: var(--bt-font); font-weight: 600; font-size: 15px; color: var(--bt-ink); background: none; border: none; cursor: pointer; padding: 11px 13px; border-radius: 9px; text-align: left; }
.bt-nav-acc:hover { background: var(--bt-bg); }
.bt-nav-acc-chev { flex: none; fill: none; stroke: var(--bt-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.bt-nav-group.open .bt-nav-acc-chev { transform: rotate(180deg); }
.bt-nav-acc-body { display: none; padding-bottom: 4px; }
.bt-nav-group.open .bt-nav-acc-body { display: flex; flex-direction: column; gap: 2px; }

/* theme + language controls wrapper (desktop: inline at the right of the bar) */
.bt-hdr-tools { display: inline-flex; align-items: center; gap: 10px; }

@media (max-width: 940px) {
	.bt-hdr-nav, .bt-hdr-inner > .bt-hdr-search { display: none; }
	.bt-hdr-burger { display: inline-flex; margin-left: auto; }
	.bt-hdr-inner { gap: 12px; height: 60px; }
	.bt-logo-main { font-size: 21px; }
	/* The tools are relocated into the drawer by JS (placeHdrTools); skin them
	   for the light panel and lay them out as a tidy top row. */
	.bt-hdr-mobile .bt-hdr-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 13px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--bt-line); }
	.bt-hdr-mobile #bt-mode { background: var(--bt-bg); color: var(--bt-ink); width: 42px; height: 42px; }
	.bt-hdr-mobile #bt-mode:hover { background: var(--bt-line); }
	.bt-hdr-mobile .bt-langsw { background: var(--bt-bg); padding: 4px; }
	.bt-hdr-mobile .bt-langsw-opt { color: var(--bt-muted); padding: 8px 16px; }
	.bt-hdr-mobile .bt-langsw-opt:hover { color: var(--bt-ink); }
	.bt-hdr-mobile .bt-langsw-opt.is-active { background: var(--brand-yellow); color: #3a2f00; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.bt-ftr { background: var(--brand-slate); color: #fff; margin-top: 60px; font-family: var(--bt-font); }
.bt-ftr * { box-sizing: border-box; }
.bt-ftr a { text-decoration: none; }
.bt-ftr .bt-logo-main .a { color: #fff; }
.bt-ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.4fr; gap: 38px; padding: 56px 24px 44px; }
.bt-ftr-about { color: #aab4c2; font-size: 14px; margin-top: 16px; line-height: 1.6; max-width: 300px; }
.bt-ftr-h { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.bt-ftr-link { display: block; background: none; border: none; cursor: pointer; color: #b9c2cf; font-size: 14px; text-align: left; padding: 5px 0; transition: color .15s ease; text-decoration: none; }
.bt-ftr-link:hover { color: var(--brand-yellow); text-decoration: none; }
.bt-ftr-link.inline { display: inline; padding: 0; }
.bt-ftr-bar { background: var(--brand-slate-900); padding: 16px 0; }
.bt-ftr-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bt-ftr-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bt-ftr-legal .sep { color: #5a6678; }
.bt-ftr-copy { color: #8794a4; font-size: 13px; }
/* Footer uniformity: the home page (.bt-home) carries broad h4/p rules that
   strip margins and tighten line-height. These higher-specificity rules
   (.bt-ftr .x = 0-2-0) win everywhere, so the footer renders identically on
   the home page and on every internal page/post/category. */
.bt-ftr .bt-ftr-h { margin: 0 0 16px; line-height: 1.2; color: #fff; }
.bt-ftr .bt-ftr-about { margin: 16px 0 0; line-height: 1.6; }
.bt-ftr .bt-ftr-link { line-height: 1.7; }

@media (max-width: 900px) {
	.bt-ftr-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.bt-ftr-bar-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) { .bt-ftr-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   BLUE BAND — internal page header (breadcrumbs + title), full-bleed
   Rendered via the astra_content_before hook, BEFORE #content, so it spans
   edge-to-edge with no container-escape hacks.
   ========================================================================== */
.bt-band { background: var(--brand-blue); color: #fff; font-family: var(--bt-font); }
.bt-band .bt-wrap { max-width: var(--bt-maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bt-band-inner { padding: 44px 0 46px; }
.bt-band svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 13.5px; color: rgba(255,255,255,.78); margin-bottom: 14px; }
.bt-crumbs a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .15s ease; }
.bt-crumbs a:hover { color: #fff; text-decoration: none; }
.bt-crumbs svg { opacity: .55; flex: none; }
.bt-crumbs span[aria-current] { color: #fff; font-weight: 600; }
.bt-band h1 { font-family: var(--bt-font); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 0; }
.bt-band-sub { color: rgba(255,255,255,.82); font-size: 15px; margin: 12px 0 0; }
/* meta row under the title on single posts (location / salary / posted / área) */
.bt-band-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; color: rgba(255,255,255,.92); font-size: 15px; }
.bt-band-meta span { display: inline-flex; align-items: center; gap: 7px; }
.bt-band-meta svg { opacity: .92; flex: none; }
.bt-band h1 { max-width: 860px; }
@media (max-width: 700px) {
	.bt-band-inner { padding: 30px 0 32px; }
	.bt-band h1 { font-size: 27px; }
	.bt-band-meta { font-size: 14px; gap: 8px 16px; }
}

/* ==========================================================================
   CONTENT AREA — Astra archives / single / pages, on brand
   Scoped to .bt-skin (added site-wide) so the home page is unaffected.
   ========================================================================== */
.bt-skin { background: var(--bt-bg); }
.bt-skin #content { background: var(--bt-bg); }

/* Astra's own archive banner is replaced by .bt-band — hide it on archives */
.bt-skin .ast-archive-entry-banner,
.bt-skin .ast-archive-description { display: none !important; }

/* ==========================================================================
   JOB / CONTENT CARDS — used by archive.php (and reusable site-wide)
   ========================================================================== */
/* On archive/search, widen Astra's narrow content container to the band width */
.bt-skin.archive .ast-container,
.bt-skin.search .ast-container,
.bt-skin.blog .ast-container { max-width: var(--bt-maxw) !important; }

.bt-cards-wrap { width: 100%; max-width: var(--bt-maxw); margin: 0 auto; padding: 48px 0 60px; }
@media (max-width: 900px) { .bt-cards-wrap { padding: 30px 0 40px; } }
/* Phone side gutter for listing pages (categorías/sectores, blog, búsqueda).
   Astra reduces ".ast-separate-container #content .ast-container" to 0.54em
   (~8.6px) at <=544px, leaving the cards/filters pegados a los bordes. Restore
   a comfortable, uniform gutter to match the rest of the skinned pages. Longhand
   so we only touch the horizontal axis. Specificity (1,3,1) beats Astra's rule. */
@media (max-width: 544px) {
	body.bt-skin.archive #content .ast-container,
	body.bt-skin.blog #content .ast-container,
	body.bt-skin.search #content .ast-container,
	body.bt-skin.single #content .ast-container,
	body.bt-skin.page #content .ast-container,
	body.bt-skin.error404 #content .ast-container { padding-left: 18px; padding-right: 18px; }
}
.bt-cards-lead { color: var(--bt-muted); font-size: 14.5px; margin: 0 0 22px; }
.bt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .bt-grid { grid-template-columns: 1fr; } }

.bt-card { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); overflow: hidden; transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease; }
.bt-card:hover { transform: translateY(-3px); box-shadow: var(--bt-shadow-hover); border-color: rgba(37,99,235,.35); }

.bt-jcard { display: grid; grid-template-columns: 220px 1fr; }
@media (max-width: 520px) { .bt-jcard { grid-template-columns: 1fr; } }

.bt-jcard .imgph { position: relative; background: #e9eef6; min-height: 100%; display: block; overflow: hidden; }
.bt-jcard .imgph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 520px) { .bt-jcard .imgph { min-height: 150px; } }
.imgph::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(37,99,235,.10) 0 12px, rgba(37,99,235,.04) 12px 24px); }
.imgph.has-img::before { display: none; }
.imgph .imgph-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .45; color: var(--brand-blue); }
.imgph .imgph-ico svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.imgph .imgph-label { position: absolute; bottom: 8px; left: 8px; font-family: ui-monospace, monospace; font-size: 10.5px; color: #43536b; background: rgba(255,255,255,.82); padding: 2px 7px; border-radius: 5px; }

.bt-jcard-body { padding: 16px 22px; display: flex; flex-direction: column; }
.bt-jcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bt-chip { font-family: var(--bt-font); font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: rgba(37,99,235,.1); color: var(--brand-blue-700); }
.bt-chip svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bt-chip.yellow { background: rgba(250,214,54,.22); color: #6b5400; }
.bt-jcard-title { font-family: var(--bt-font); font-weight: 800; font-size: 18.5px; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-jcard-title a { color: var(--bt-ink); text-decoration: none; transition: color .15s ease; }
.bt-jcard-title a:hover { color: var(--brand-blue); }
.bt-jcard-excerpt { color: var(--bt-muted); font-size: 14px; line-height: 1.5; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bt-jcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding-top: 2px; }
.bt-jcard-meta { display: flex; align-items: center; gap: 6px; color: var(--bt-muted); font-size: 13.5px; white-space: nowrap; }
.bt-jcard-meta svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--brand-blue); flex: none; }
.bt-jcard-cta { font-family: var(--bt-font); font-weight: 700; font-size: 13.5px; color: #fff; background: var(--brand-blue); border-radius: 999px; padding: 8px 16px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: background .2s ease, transform .12s ease; white-space: nowrap; }
.bt-jcard-cta:hover { background: var(--brand-blue-700); color: #fff; transform: translateY(-1px); text-decoration: none; }
.bt-jcard-cta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Pagination (custom, used by archive.php) */
.bt-pg { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 34px 0 8px; }
.bt-pg .page-numbers { font-family: var(--bt-font); font-weight: 600; font-size: 14.5px; min-width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; background: var(--bt-surface); border: 1.5px solid var(--bt-line); color: var(--bt-ink); text-decoration: none; transition: all .15s ease; }
.bt-pg a.page-numbers:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.bt-pg .page-numbers.current { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.bt-pg .page-numbers.dots { border: none; background: none; min-width: 22px; color: var(--bt-muted); }
/* Prev / next rendered as ghost pills, matching the Claude Design prototype */
.bt-pg .page-numbers.prev, .bt-pg .page-numbers.next { width: auto; min-width: 0; padding: 0 18px; font-weight: 700; color: var(--brand-blue); border-color: var(--brand-blue); background: var(--bt-surface); }
.bt-pg .page-numbers.prev:hover, .bt-pg .page-numbers.next:hover { background: rgba(37,99,235,.07); color: var(--brand-blue); border-color: var(--brand-blue); }

.bt-empty { text-align: center; color: var(--bt-muted); padding: 60px 20px; font-size: 16px; }

/* ==========================================================================
   ARCHIVE LAYOUT — filter sidebar + sort toolbar + single-column job list
   ========================================================================== */
/* Hide Astra's default page title/banner on the Empleos Recientes template (the blue band already shows it) */
.page-template-tpl-empleos-recientes .ast-container > .entry-title,
.page-template-tpl-empleos-recientes .entry-header,
.page-template-tpl-empleos-recientes .ast-single-entry-banner { display: none; }

.bt-archive { display: grid; grid-template-columns: 282px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .bt-archive { grid-template-columns: 1fr; gap: 18px; } }

/* --- Filter rail --- */
.bt-rail { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .bt-rail { position: static; top: auto; } }
.bt-rail-card { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); padding: 20px; }
.bt-rail-h { display: flex; align-items: center; gap: 8px; font-family: var(--bt-font); font-weight: 800; font-size: 16px; color: var(--bt-ink); margin: 0 0 14px; }
.bt-rail-h svg { fill: none; stroke: var(--brand-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bt-rail-search { position: relative; display: flex; align-items: center; margin-bottom: 18px; }
.bt-rail-search svg { position: absolute; left: 12px; fill: none; stroke: var(--bt-muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bt-rail-search input { width: 100%; font-family: var(--bt-font); font-size: 14px; color: var(--bt-ink); background: var(--bt-bg); border: 1.5px solid var(--bt-line); border-radius: 10px; padding: 10px 12px 10px 36px; transition: border-color .15s ease, box-shadow .15s ease; }
.bt-rail-search input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.bt-rail-group { margin-top: 16px; }
.bt-rail-group:first-of-type { margin-top: 0; }
.bt-rail-label { font-family: var(--bt-font); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); margin: 0 0 10px; }
.bt-rail-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-filter-chip { font-family: var(--bt-font); font-weight: 600; font-size: 13px; color: var(--bt-ink); background: var(--bt-bg); border: 1px solid var(--bt-line); border-radius: 999px; padding: 7px 14px; text-decoration: none; transition: all .15s ease; white-space: nowrap; }
.bt-filter-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); text-decoration: none; }
.bt-filter-chip.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.bt-rail-ad { width: 100%; }

/* Filter rail collapse: the toggle is desktop-hidden; the body is always open
   on desktop. On mobile the rail collapses to a single tappable bar so the job
   listings sit near the top of the screen (better mobile UX + AdSense above-fold). */
.bt-rail-toggle { display: none; }
.bt-rail-body { display: block; }
@media (max-width: 900px) {
	/* These collapse rules belong ONLY to the filter rail (archive pages).
	   Scope them away from .bt-single-rail so the single-post detail card and
	   "Empleos similares" card keep their internal padding + heading on mobile
	   (otherwise their content sits flush to the card edge = pegado a los bordes). */
	.bt-rail:not(.bt-single-rail) .bt-rail-card { padding: 0; }
	.bt-rail:not(.bt-single-rail) .bt-rail-h { display: none; }
	.bt-rail-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; background: none; border: none; cursor: pointer; padding: 15px 18px; font-family: var(--bt-font); font-weight: 800; font-size: 15.5px; color: var(--bt-ink); border-radius: var(--bt-radius); }
	.bt-rail-toggle-l { display: inline-flex; align-items: center; gap: 9px; }
	.bt-rail-toggle-l svg { fill: none; stroke: var(--brand-blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
	.bt-rail-toggle-chev { fill: none; stroke: var(--bt-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; flex: none; }
	.bt-rail-toggle.is-open .bt-rail-toggle-chev { transform: rotate(180deg); }
	.bt-rail-body { display: none; padding: 0 18px 18px; }
	.bt-rail-body.open { display: block; }
}

/* Mobile tap targets: enlarge interactive chips/buttons to a comfortable size. */
@media (max-width: 600px) {
	.bt-filter-chip { padding: 10px 16px; font-size: 13.5px; }
	.bt-fav { width: 42px; height: 42px; }
	.bt-rail-search input { padding: 12px 12px 12px 36px; }
	.bt-sort-wrap select { padding: 11px 34px 11px 14px; }
}

/* Real ad slots: Ad Inserter blocks injected into the design's positions via
   bt_ad_slot(). Reserve height to avoid layout shift; no mockup styling. */
.bt-adslot { width: 100%; margin: 0 auto; display: flex; justify-content: center; align-items: center; min-height: 100px; overflow: hidden; clear: both; }
.bt-adslot ins, .bt-adslot .adsbygoogle { width: 100%; }
.bt-adslot-rect { min-height: 250px; }
.bt-adslot-inline { min-height: 120px; margin: 4px 0; }
.bt-adslot-leaderboard { min-height: 100px; }

/* AdSense placeholder slots */
.ad { position: relative; background: repeating-linear-gradient(45deg,#f1f4f9 0 10px,#eef2f8 10px 20px); border: 1px dashed #c9d3e2; border-radius: var(--bt-radius-sm, 10px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a97a8; text-align: center; }
.ad .ad-tag { position: absolute; top: 8px; left: 10px; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #9aa6b6; }
.ad .ad-size { font-family: ui-monospace, monospace; font-size: 13px; font-weight: 600; }
.ad .ad-note { font-size: 11px; margin-top: 2px; color: #aab4c2; }
/* Production-ready: min-height (not fixed height) so a real responsive AdSense
   unit can grow to its served size without clipping or pushing content (avoids
   layout shift). The placeholder still renders at this size in staging. */
.ad-rect { min-height: 280px; }
.ad-leaderboard { min-height: 110px; }
html[data-mode="dark"] .ad { background: repeating-linear-gradient(45deg,#161f2d 0 10px,#131b27 10px 20px); border-color: #303c4f; color: #6b7889; }
html[data-mode="dark"] .ad .ad-tag, html[data-mode="dark"] .ad .ad-note { color: #5c6878; }

/* --- Toolbar (count + sort) --- */
.bt-archive-main { min-width: 0; }
.bt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.bt-toolbar-count { font-family: var(--bt-font); font-size: 14.5px; color: var(--bt-muted); margin: 0; }
.bt-toolbar-count strong { color: var(--bt-ink); font-weight: 800; }
.bt-sort { display: inline-flex; align-items: center; gap: 8px; font-family: var(--bt-font); font-size: 13.5px; color: var(--bt-muted); }
.bt-sort-label { white-space: nowrap; }
.bt-sort-wrap { position: relative; display: inline-flex; align-items: center; }
.bt-sort-wrap select { appearance: none; -webkit-appearance: none; font-family: var(--bt-font); font-weight: 600; font-size: 13.5px; color: var(--bt-ink); background: var(--bt-surface); border: 1.5px solid var(--bt-line); border-radius: 10px; padding: 9px 34px 9px 14px; cursor: pointer; transition: border-color .15s ease; }
.bt-sort-wrap select:hover { border-color: var(--brand-blue); }
.bt-sort-wrap select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.bt-sort-wrap svg { position: absolute; right: 12px; fill: none; stroke: var(--bt-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* --- Single-column job list --- */
.bt-joblist { display: flex; flex-direction: column; gap: 18px; }
.bt-joblist .bt-jcard { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); overflow: hidden; transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease; }
.bt-joblist .bt-jcard:hover { transform: translateY(-2px); box-shadow: var(--bt-shadow-hover); border-color: rgba(37,99,235,.35); }
.bt-joblist .bt-jcard.is-featured { border-color: rgba(250,214,54,.7); }
.bt-jcard .imgph-wrap { position: relative; display: block; height: 100%; }
.bt-jcard .imgph-wrap .imgph { height: 100%; }
@media (max-width: 520px) { .bt-jcard .imgph-wrap, .bt-jcard .imgph-wrap .imgph { height: auto; } }

/* "Destacado" ribbon */
.bt-ribbon { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--bt-font); font-weight: 700; font-size: 12.5px; letter-spacing: 0; text-transform: none; color: #6b5400; background: var(--brand-yellow); padding: 5px 11px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.bt-ribbon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.bt-fav { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bt-line); background: var(--bt-surface); border-radius: 999px; cursor: pointer; color: var(--bt-muted); transition: all .15s ease; }
.bt-fav:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.bt-fav svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-fav.is-on { background: rgba(37,99,235,.1); border-color: var(--brand-blue); color: var(--brand-blue); }
.bt-fav.is-on svg { fill: currentColor; }

/* meta info row (location / salary / time) */
.bt-jcard-info { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 7px 0 9px; }

/* ==========================================================================
   SEARCH — empty state (no results) card
   ========================================================================== */
.bt-search-empty { max-width: 560px; margin: 0 auto; text-align: center; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); padding: 48px 32px; }
.bt-search-empty-icon { width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(37,99,235,.1); }
.bt-search-empty-icon svg { fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-search-empty-title { font-family: var(--bt-font); font-weight: 800; font-size: 22px; color: var(--bt-ink); margin: 0 0 10px; }
.bt-search-empty-text { font-family: var(--bt-font); font-size: 15px; line-height: 1.6; color: var(--bt-muted); margin: 0 0 24px; }
.bt-search-empty-text strong { color: var(--bt-ink); font-weight: 700; }
.bt-search-empty-form { position: relative; display: flex; align-items: center; gap: 8px; max-width: 420px; margin: 0 auto 18px; }
.bt-search-empty-form > svg { position: absolute; left: 14px; fill: none; stroke: var(--bt-muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bt-search-empty-form input { flex: 1; font-family: var(--bt-font); font-size: 15px; color: var(--bt-ink); background: var(--bt-bg); border: 1.5px solid var(--bt-line); border-radius: 12px; padding: 12px 14px 12px 40px; transition: border-color .15s ease, box-shadow .15s ease; }
.bt-search-empty-form input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.bt-search-empty-form button { flex: none; font-family: var(--bt-font); font-weight: 700; font-size: 14.5px; color: #fff; background: var(--brand-blue); border: none; border-radius: 12px; padding: 12px 20px; cursor: pointer; transition: background .15s ease; }
.bt-search-empty-form button:hover { background: var(--brand-blue-700); }
.bt-search-empty-cta { display: inline-flex; align-items: center; gap: 7px; font-family: var(--bt-font); font-weight: 700; font-size: 14.5px; color: var(--brand-blue); text-decoration: none; }
.bt-search-empty-cta:hover { color: var(--brand-blue-700); text-decoration: none; }
.bt-search-empty-cta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .bt-search-empty { padding: 36px 20px; } .bt-search-empty-form { flex-wrap: wrap; } .bt-search-empty-form button { width: 100%; } }
/* 404 page: two CTAs below the empty-state card, wrap on small screens. */
.bt-404-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 4px; }

/* ==========================================================================
   CONTACT PAGE — info aside + form card (Claude Design). Wraps the page's
   own Contact Form 7 block (rendered via the_content) without rewriting it.
   ========================================================================== */
.bt-contact-wrap { width: 100%; max-width: var(--bt-maxw); margin: 0 auto; padding: 48px 0 60px; }
@media (max-width: 900px) { .bt-contact-wrap { padding: 30px 0 40px; } }
.bt-contact { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .bt-contact { grid-template-columns: 1fr; gap: 20px; } }

.bt-contact-aside { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); padding: 28px 26px; }
.bt-contact-h { font-family: var(--bt-font); font-weight: 800; font-size: 24px; color: var(--bt-ink); margin: 0 0 10px; }
.bt-contact-lead { font-family: var(--bt-font); font-size: 15px; line-height: 1.65; color: var(--bt-muted); margin: 0 0 24px; }
.bt-contact-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.bt-contact-point { display: flex; align-items: flex-start; gap: 14px; }
.bt-contact-ic { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(37,99,235,.1); }
.bt-contact-ic svg { fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-contact-point-txt { font-family: var(--bt-font); font-size: 14px; line-height: 1.55; color: var(--bt-muted); }
.bt-contact-point-txt b { display: block; font-weight: 700; font-size: 15px; color: var(--bt-ink); margin-bottom: 2px; }
.bt-contact-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--bt-bg); border: 1px solid var(--bt-line); font-family: var(--bt-font); font-size: 13.5px; line-height: 1.5; color: var(--bt-muted); }
.bt-contact-note svg { flex: none; fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.bt-contact-note a { color: var(--brand-blue); font-weight: 700; text-decoration: none; }
.bt-contact-note a:hover { text-decoration: underline; }

.bt-contact-card { background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); padding: 32px; }
@media (max-width: 520px) { .bt-contact-card { padding: 24px 20px; } }
.bt-contact-card-head { margin-bottom: 22px; }
.bt-contact-card-h { font-family: var(--bt-font); font-weight: 800; font-size: 20px; color: var(--bt-ink); margin: 0 0 6px; }
.bt-contact-card-sub { font-family: var(--bt-font); font-size: 14.5px; line-height: 1.55; color: var(--bt-muted); margin: 0; }

/* Neutralize the user's UAGB/Spectra container so it fits the card cleanly */
.bt-contact-form .wp-block-uagb-container,
.bt-contact-form .uagb-container-inner-blocks-wrap { max-width: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; display: block !important; }
.bt-contact-form .alignfull { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }

/* Contact Form 7 field skinning */
.bt-contact-form .wpcf7 { font-family: var(--bt-font); }
.bt-contact-form .wpcf7-form p { margin: 0 0 16px; font-family: var(--bt-font); font-size: 14.5px; font-weight: 600; color: var(--bt-ink); }
.bt-contact-form label { display: block; font-family: var(--bt-font); font-size: 14.5px; font-weight: 600; color: var(--bt-ink); }
.bt-contact-form input[type="text"],
.bt-contact-form input[type="email"],
.bt-contact-form input[type="tel"],
.bt-contact-form input[type="url"],
.bt-contact-form input[type="number"],
.bt-contact-form input[type="date"],
.bt-contact-form select,
.bt-contact-form textarea { width: 100%; font-family: var(--bt-font); font-size: 15px; font-weight: 400; color: var(--bt-ink); background: var(--bt-bg); border: 1.5px solid var(--bt-line); border-radius: 12px; padding: 12px 14px; margin-top: 7px; transition: border-color .15s ease, box-shadow .15s ease; box-sizing: border-box; }
.bt-contact-form textarea { min-height: 140px; resize: vertical; }
.bt-contact-form input:focus,
.bt-contact-form select:focus,
.bt-contact-form textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.bt-contact-form input::placeholder,
.bt-contact-form textarea::placeholder { color: var(--bt-muted); opacity: .8; }
.bt-contact-form .wpcf7-submit { width: auto; display: inline-flex; align-items: center; justify-content: center; font-family: var(--bt-font); font-weight: 700; font-size: 15px; color: #fff; background: var(--brand-blue); border: none; border-radius: 12px; padding: 13px 28px; margin-top: 4px; cursor: pointer; transition: background .15s ease, transform .12s ease; box-shadow: 0 8px 20px -10px rgba(37,99,235,.7); }
.bt-contact-form .wpcf7-submit:hover { background: var(--brand-blue-700); transform: translateY(-1px); }
.bt-contact-form .wpcf7-spinner { margin: 0 0 0 10px; }
.bt-contact-form .wpcf7-not-valid-tip { font-family: var(--bt-font); font-size: 12.5px; font-weight: 600; color: #dc2626; margin-top: 5px; }
.bt-contact-form .wpcf7-not-valid { border-color: #dc2626 !important; }
.bt-contact-form .wpcf7-response-output { font-family: var(--bt-font); font-size: 14px; line-height: 1.5; border-radius: 12px; padding: 12px 16px !important; margin: 18px 0 0 !important; }

/* Dark mode for the new search + contact components */
html[data-mode="dark"] .bt-search-empty-icon,
html[data-mode="dark"] .bt-contact-ic { background: rgba(96,150,255,.16); }
html[data-mode="dark"] .bt-search-empty-icon svg,
html[data-mode="dark"] .bt-contact-ic svg,
html[data-mode="dark"] .bt-contact-note svg { stroke: #8ab0ff; }
html[data-mode="dark"] .bt-contact-note a,
html[data-mode="dark"] .bt-search-empty-cta { color: #8ab0ff; }

/* ==========================================================================
   DARK MODE — html[data-mode="dark"]. The brand blue header and band stay
   blue (good contrast); the page surface, cards, text and footer go dark.
   User-authored Spectra/UAGB blocks with explicit colors keep their colors.
   ========================================================================== */
html[data-mode="dark"] {
	--bt-bg: #0d131e;
	--bt-surface: #18212f;
	--bt-ink: #e9eef5;
	--bt-muted: #9aa6b8;
	--bt-line: #2a3445;
	--bt-shadow-card: 0 1px 2px rgba(0,0,0,.45), 0 12px 32px -18px rgba(0,0,0,.7);
	--bt-shadow-hover: 0 2px 6px rgba(0,0,0,.5), 0 24px 50px -18px rgba(37,99,235,.5);
}
html[data-mode="dark"] body.bt-skin,
html[data-mode="dark"] .bt-skin #content { background: var(--bt-bg); color: var(--bt-ink); }
html[data-mode="dark"] .bt-skin h1,
html[data-mode="dark"] .bt-skin h2,
html[data-mode="dark"] .bt-skin h3,
html[data-mode="dark"] .bt-skin h4,
html[data-mode="dark"] .bt-skin .entry-title,
html[data-mode="dark"] .bt-skin .entry-title a,
html[data-mode="dark"] .bt-skin .bt-jcard-title a { color: var(--bt-ink); }
html[data-mode="dark"] .bt-skin .entry-content,
html[data-mode="dark"] .bt-skin .entry-content p,
html[data-mode="dark"] .bt-skin .entry-content li,
html[data-mode="dark"] .bt-skin .entry-content td,
html[data-mode="dark"] .bt-skin .bt-jcard-excerpt,
html[data-mode="dark"] .bt-skin .bt-cards-lead { color: #c3cdda; }
html[data-mode="dark"] .bt-skin .entry-content strong,
html[data-mode="dark"] .bt-skin .entry-content b { color: var(--bt-ink); }
html[data-mode="dark"] .bt-skin .entry-meta,
html[data-mode="dark"] .bt-skin .entry-meta a,
html[data-mode="dark"] .bt-skin .ast-blog-meta-container { color: var(--bt-muted); }
html[data-mode="dark"] .bt-skin .entry-content a { color: #8ab0ff; }
html[data-mode="dark"] .bt-skin blockquote { background: var(--bt-surface); }
/* Astra boxed-layout content cards (single posts/pages, comments) — keep them dark, not white. */
html[data-mode="dark"] .bt-skin.ast-separate-container .ast-article-single,
html[data-mode="dark"] .bt-skin.ast-separate-container .ast-article-post,
html[data-mode="dark"] .bt-skin.ast-separate-container .comment-respond,
html[data-mode="dark"] .bt-skin.ast-separate-container .ast-comment-list .comment-body,
html[data-mode="dark"] .bt-skin.ast-separate-container #secondary .widget { background-color: var(--bt-surface); }
html[data-mode="dark"] .imgph { background: #1e293a; }
html[data-mode="dark"] .imgph::before { background-image: repeating-linear-gradient(135deg, rgba(96,150,255,.14) 0 12px, rgba(96,150,255,.05) 12px 24px); }
html[data-mode="dark"] .imgph .imgph-label { background: rgba(12,18,28,.78); color: #aeb9c9; }
html[data-mode="dark"] .bt-ftr { background: #0a0f18; }
html[data-mode="dark"] .bt-ftr-bar { background: #060a11; }
html[data-mode="dark"] ::-webkit-scrollbar-thumb { background: #2f3b4d; }
html[data-mode="dark"] .bt-pg .page-numbers { background: var(--bt-surface); border-color: var(--bt-line); color: var(--bt-ink); }
html[data-mode="dark"] .bt-pg .page-numbers.current { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* Smooth transition when toggling mode */
body.bt-skin, .bt-skin #content, .bt-card, .bt-jcard, .bt-rail-card, .bt-filter-chip, .bt-fav, .bt-ftr, .imgph, .bt-band { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

/* Single post / page header card */
.bt-skin .ast-single-post .entry-header,
.bt-skin .page .entry-header { margin-bottom: 22px; }

/* Post cards in archives (extends redesign.css shadows) */
.bt-skin .ast-article-post,
.bt-skin .ast-separate-container .ast-article-post {
	border-radius: var(--bt-radius);
	border: 1px solid var(--bt-line);
	box-shadow: var(--bt-shadow-card);
	transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease;
}
.bt-skin .ast-article-post:hover {
	transform: translateY(-3px);
	box-shadow: var(--bt-shadow-hover);
	border-color: rgba(37,99,235,.35);
}
.bt-skin .ast-article-post .post-thumb img,
.bt-skin .wp-block-post-featured-image img,
.bt-skin .entry-content img.wp-post-image { border-radius: 12px; }

/* Entry titles */
.bt-skin .entry-title { font-family: var(--bt-font); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.bt-skin .entry-title a { color: var(--bt-ink); text-decoration: none; transition: color .15s ease; }
.bt-skin .entry-title a:hover { color: var(--brand-blue); }

/* Meta */
.bt-skin .ast-article-post .post-meta,
.bt-skin .entry-meta,
.bt-skin .ast-blog-meta-container { color: var(--bt-muted); font-size: 13.5px; }
.bt-skin .entry-meta a { color: var(--bt-muted); }
.bt-skin .entry-meta a:hover { color: var(--brand-blue); }

/* Read more / buttons → blue pill */
.bt-skin .read-more a,
.bt-skin .ast-button,
.bt-skin .entry-content .wp-block-button__link,
.bt-skin .wp-block-button__link {
	background: var(--brand-blue);
	color: #fff;
	border-radius: var(--bt-radius-btn);
	font-family: var(--bt-font);
	font-weight: 700;
	border: none;
	transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.bt-skin .read-more a:hover,
.bt-skin .ast-button:hover,
.bt-skin .wp-block-button__link:hover {
	background: var(--brand-blue-700);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -10px rgba(37,99,235,.6);
}

/* Single post content polish */
.bt-skin .ast-single-post .entry-content { font-family: var(--bt-font); }
.bt-skin .entry-content a { color: var(--brand-blue); }
.bt-skin .entry-content a:hover { color: var(--brand-blue-700); }
.bt-skin .entry-content h2,
.bt-skin .entry-content h3,
.bt-skin .entry-content h4 { font-family: var(--bt-font); font-weight: 800; letter-spacing: -.01em; color: var(--bt-ink); }
.bt-skin blockquote {
	border-left: 4px solid var(--brand-yellow);
	background: var(--bt-surface);
	border-radius: 0 var(--bt-radius-sm) var(--bt-radius-sm) 0;
	padding: 14px 20px;
}

/* Sidebar widgets */
.bt-skin .widget-area .widget,
.bt-skin .sidebar-main .widget {
	background: var(--bt-surface);
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	box-shadow: var(--bt-shadow-card);
	padding: 20px;
	margin-bottom: 22px;
}
.bt-skin .widget-title,
.bt-skin .widget .widget-title {
	font-family: var(--bt-font);
	font-weight: 800;
	font-size: 16px;
	color: var(--bt-ink);
	margin-bottom: 14px;
}
.bt-skin .widget a { color: var(--bt-ink); }
.bt-skin .widget a:hover { color: var(--brand-blue); }

/* Pagination */
.bt-skin .ast-pagination .page-numbers,
.bt-skin .ast-pagination a { border-radius: 10px; }
.bt-skin .ast-pagination .page-numbers.current {
	background: var(--brand-blue);
	color: #fff;
	border-color: var(--brand-blue);
}

/* ==========================================================================
   STATIC PAGES — Sobre Nosotros, Contacto, legales (Spectra/UAGB content)
   Keep author-built blocks intact; just unify the band + container + spacing.
   ========================================================================== */
/* Hide Astra's own centered page-title banner — our blue bt-band (with
   breadcrumbs) is emitted by bt_auto_band() and matches the rest of the site. */
.bt-skin.page:not(.page-template-tpl-empleos-recientes) .ast-single-entry-banner,
.bt-skin.page:not(.page-template-tpl-empleos-recientes) .ast-single-post > .ast-article-single > .entry-header { display: none; }

/* Match the site content width and give consistent band->content spacing.
   Astra's plain container adds margin-top:60px on #primary; we zero it and let
   a small #content pad + the Spectra container's own padding set the rhythm. */
.bt-skin.page:not(.page-template-tpl-empleos-recientes) .ast-container { max-width: var(--bt-maxw) !important; }
.bt-skin.page:not(.page-template-tpl-empleos-recientes) #primary { margin-top: 0; margin-bottom: 0; }
.bt-skin.page:not(.page-template-tpl-empleos-recientes) #content { padding: 8px 0 40px; }
@media (max-width: 900px) {
	.bt-skin.page:not(.page-template-tpl-empleos-recientes) #content { padding: 4px 0 32px; }
}

/* ==========================================================================
   SINGLE POST — "detalle de empleo" layout (Claude Design), via single.php
   ========================================================================== */
/* Widen Astra's boxed container to the band width on single posts, and hide
   any Astra-rendered single banner/title (our blue band shows the title). */
.bt-skin.single .ast-container,
.bt-skin.single-post .ast-container { max-width: var(--bt-maxw) !important; }
.bt-skin.single .ast-single-entry-banner,
.bt-skin.single .ast-single-post > .ast-article-single > .entry-header { display: none; }

.bt-single-wrap { width: 100%; max-width: var(--bt-maxw); margin: 0 auto; padding: 44px 0 60px; }
@media (max-width: 900px) { .bt-single-wrap { padding: 28px 0 42px; } }

.bt-single { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
@media (max-width: 980px) { .bt-single { grid-template-columns: 1fr; gap: 26px; } }
.bt-single-main { min-width: 0; }

/* featured image */
.bt-single-media { margin: 0 0 24px; border-radius: var(--bt-radius); overflow: hidden; aspect-ratio: 16 / 8; background: #e9eef6; }
.bt-single-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* chips row */
.bt-single-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.bt-chip.soft { background: var(--bt-bg); color: var(--bt-muted); border: 1px solid var(--bt-line); text-decoration: none; }
.bt-chip.soft:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* article body typography */
.bt-article-body { font-size: 16.5px; line-height: 1.72; color: var(--bt-ink); }
.bt-article-body p { margin: 0 0 1.1em; }
.bt-article-body h2 { font-family: var(--bt-font); font-size: 25px; font-weight: 800; letter-spacing: -.01em; margin: 36px 0 14px; color: var(--bt-ink); }
.bt-article-body h3 { font-family: var(--bt-font); font-size: 20px; font-weight: 700; margin: 28px 0 10px; color: var(--bt-ink); }
.bt-article-body ul, .bt-article-body ol { padding-left: 22px; margin: 0 0 1.2em; }
.bt-article-body li { margin-bottom: 9px; }
.bt-article-body li::marker { color: var(--brand-blue); }
.bt-article-body img { border-radius: 12px; height: auto; }
.bt-article-body > *:first-child { margin-top: 0; }
/* Mobile overflow guards: keep any author-inserted media / long words / tables
   inside the column so the page never scrolls sideways on small screens. */
.bt-article-body { overflow-wrap: break-word; word-wrap: break-word; }
.bt-article-body img,
.bt-article-body iframe,
.bt-article-body video,
.bt-article-body embed,
.bt-article-body object { max-width: 100%; }
.bt-article-body iframe,
.bt-article-body video { height: auto; }
.bt-article-body pre { max-width: 100%; overflow-x: auto; }
.bt-article-body table { display: block; max-width: 100%; overflow-x: auto; }

/* "Aviso importante" notice box */
.bt-notebox { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; padding: 16px 18px; font-size: 14.5px; line-height: 1.55; color: #5a4a00;
	background: rgba(250,214,54,.12); border: 1px solid rgba(233,184,0,.4); border-left: 4px solid var(--brand-yellow); border-radius: var(--bt-radius-sm); }
.bt-notebox svg { flex: none; color: var(--brand-yellow-deep); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.bt-notebox b { color: #5a4a00; }

/* prev / next nav */
.bt-prevnext { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--bt-line); }
.bt-prevnext-link { display: inline-flex; align-items: center; gap: 10px; max-width: 47%; font-family: var(--bt-font); color: var(--bt-ink); text-decoration: none;
	border: 1.5px solid var(--bt-line); border-radius: var(--bt-radius-btn); padding: 9px 16px; transition: all .15s ease; background: var(--bt-surface); }
.bt-prevnext-link:hover { border-color: var(--brand-blue); color: var(--brand-blue); text-decoration: none; }
.bt-prevnext-link.next { margin-left: auto; text-align: right; }
.bt-prevnext-link svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-prevnext-link span { display: flex; flex-direction: column; min-width: 0; }
.bt-prevnext-label { font-weight: 700; font-size: 13px; }
.bt-prevnext-title { font-size: 12.5px; color: var(--bt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .bt-prevnext-title { display: none; } .bt-prevnext-link { max-width: 48%; } }

/* sidebar: details card */
.bt-detail-card { display: flex; flex-direction: column; }
.bt-detail-salary { font-family: var(--bt-font); font-weight: 800; font-size: 22px; color: var(--brand-blue); }
.bt-detail-salary-cap { color: var(--bt-muted); font-size: 13.5px; margin: 2px 0 16px; }
.bt-detail-rows { display: grid; gap: 11px; font-size: 14px; margin-bottom: 18px; }
.bt-detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bt-detail-k { display: inline-flex; align-items: center; gap: 7px; color: var(--bt-muted); white-space: nowrap; }
.bt-detail-k svg { flex: none; fill: none; stroke: var(--brand-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bt-detail-row b { font-family: var(--bt-font); color: var(--bt-ink); text-align: right; }
.bt-detail-cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; font-family: var(--bt-font); font-weight: 700; font-size: 15px;
	background: var(--brand-blue); color: #fff; border-radius: var(--bt-radius-btn); padding: 12px 18px; text-decoration: none; transition: background .2s ease, transform .12s ease; }
.bt-detail-cta:hover { background: var(--brand-blue-700); color: #fff; transform: translateY(-1px); text-decoration: none; }
.bt-detail-cta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bt-detail-save.bt-fav { width: 100%; height: auto; border-radius: var(--bt-radius-btn); gap: 8px; margin-top: 10px; padding: 11px 18px; font-family: var(--bt-font); font-weight: 700; font-size: 14.5px; }

/* sidebar: empleos similares */
.bt-similar-list { display: grid; gap: 14px; }
.bt-similar-item { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.bt-similar-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #e9eef6; position: relative; }
.bt-similar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-similar-thumb .imgph { width: 100%; height: 100%; }
.bt-similar-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-similar-text b { font-family: var(--bt-font); font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--bt-ink); }
.bt-similar-item:hover .bt-similar-text b { color: var(--brand-blue); }
.bt-similar-sub { font-size: 12.5px; color: var(--bt-muted); }

/* related grid (bottom) */
.bt-related { margin-top: 18px; padding-top: 8px; }
.bt-sec-head { margin-bottom: 24px; }
.bt-eyebrow { display: block; font-family: var(--bt-font); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 8px; }
.bt-sec-head h2 { font-family: var(--bt-font); font-weight: 800; font-size: 28px; letter-spacing: -.01em; color: var(--bt-ink); margin: 0; }
.bt-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .bt-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bt-related-grid { grid-template-columns: 1fr; } .bt-sec-head h2 { font-size: 23px; } }

/* vertical job card (related) */
.bt-gcard { display: flex; flex-direction: column; background: var(--bt-surface); border: 1px solid var(--bt-line); border-radius: var(--bt-radius); box-shadow: var(--bt-shadow-card); overflow: hidden; transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease; }
.bt-gcard:hover { transform: translateY(-3px); box-shadow: var(--bt-shadow-hover); border-color: rgba(37,99,235,.35); }
.bt-gcard .imgph-wrap { display: block; aspect-ratio: 16 / 10; position: relative; }
.bt-gcard .imgph-wrap .imgph { position: absolute; inset: 0; height: 100%; }
.bt-gcard .imgph-wrap .imgph.has-img img { width: 100%; height: 100%; object-fit: cover; }
.bt-gcard-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.bt-gcard-title { font-family: var(--bt-font); font-weight: 700; font-size: 16.5px; line-height: 1.28; margin: 0; }
.bt-gcard-title a { color: var(--bt-ink); text-decoration: none; }
.bt-gcard-title a:hover { color: var(--brand-blue); }
.bt-gcard-meta { color: var(--bt-muted); font-size: 13px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.bt-gcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.bt-gcard-meta svg { color: var(--brand-blue); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   BLOG ARCHIVE — editorial card grid (Claude Design "Blog y guías de empleo")
   ========================================================================== */
.bt-blog-ad { width: 100%; margin-bottom: 28px; }
.bt-blog-grid,
.bt-empresa-grid { align-items: stretch; }
.bt-acard .bt-gcard-body { gap: 8px; }
.bt-acard-excerpt { color: var(--bt-muted); font-size: 13.5px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-acard-more { margin-top: 4px; color: var(--brand-blue); font-family: var(--bt-font); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.bt-acard-more:hover { gap: 8px; text-decoration: none; }
.bt-acard-more svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.bt-empty { color: var(--bt-muted); font-family: var(--bt-font); font-size: 15px; text-align: center; padding: 40px 0; }

/* --- dark mode for single-post elements --- */
html[data-mode="dark"] .bt-single-media,
html[data-mode="dark"] .bt-similar-thumb { background: #1e293a; }
html[data-mode="dark"] .bt-notebox { background: rgba(250,214,54,.08); border-color: rgba(233,184,0,.3); color: #e7d9a6; }
html[data-mode="dark"] .bt-notebox b { color: #f3e6b0; }
html[data-mode="dark"] .bt-prevnext-link { background: var(--bt-surface); }
html[data-mode="dark"] .bt-chip.soft { background: #0f1722; }
