/* Vacantes — estilos públicos. El color de marca viene de theme.php (--brand). */
:root { --ink:#16202c; --muted:#5c6876; --line:#e3e7ec; --bg:#f5f7fa; --card:#fff; --ok:#1a7f37; --err:#b42318; --r:14px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--brand); }
.hidden { display:none !important; }
.muted { color:var(--muted); } .small { font-size:.875rem; } .center { text-align:center; }
.wrap { max-width:1140px; margin:0 auto; padding:0 20px; }
.wrap.narrow { max-width:760px; padding-top:40px; padding-bottom:40px; }

/* Barra superior */
.vbar { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.vbar-in { display:flex; align-items:center; justify-content:space-between; height:66px; }
.brand { display:flex; align-items:center; text-decoration:none; color:var(--ink); font-weight:800; font-size:1.25rem; letter-spacing:.02em; }
.brand img { max-height:40px; max-width:200px; display:block; }
.vbar nav { display:flex; gap:22px; } .vbar nav a { color:var(--ink); text-decoration:none; font-weight:600; font-size:.95rem; }
.vbar nav a:hover { color:var(--brand); }

/* Portada */
.hero { background:linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%); color:#fff; padding:64px 0 88px; }
.hero h1 { font-size:clamp(2rem, 4.5vw, 3rem); line-height:1.15; margin:0 0 14px; letter-spacing:-.01em; }
.hero p { max-width:680px; margin:0; font-size:1.1rem; opacity:.93; }
.filters { display:grid; grid-template-columns:1fr 220px 220px; gap:12px; background:#fff; padding:14px; border-radius:var(--r); box-shadow:0 10px 30px rgba(16,32,48,.10); margin:-40px 0 18px; position:relative; }
.filters input, .filters select { font:inherit; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); width:100%; }
.filters input:focus, .filters select:focus { outline:2px solid var(--brand); outline-offset:-1px; }
.count { margin:4px 2px 14px; }

/* Tarjetas */
.jobs { display:grid; grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:18px; padding-bottom:60px; }
.jcard { display:flex; flex-direction:column; background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:22px 22px 18px; text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s, transform .15s; }
.jcard:hover { border-color:var(--brand); box-shadow:0 10px 28px rgba(16,32,48,.10); transform:translateY(-2px); }
.jcard-top { display:flex; justify-content:space-between; gap:10px; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
.jarea { color:var(--brand); font-weight:700; } .jcode { color:var(--muted); font-family:ui-monospace, Consolas, monospace; letter-spacing:.02em; white-space:nowrap; }
.jcard h2 { font-size:1.25rem; line-height:1.3; margin:8px 0 8px; }
.jcard p { margin:0 0 14px; color:var(--muted); font-size:.95rem; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.chip { background:var(--brand-soft); color:var(--ink); border-radius:999px; padding:4px 12px; font-size:.82rem; font-weight:600; }
.jcard-foot { margin-top:auto; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:.82rem; color:var(--muted); border-top:1px solid var(--line); padding-top:12px; }
.jcard-foot .go { margin-left:auto; color:var(--brand); font-weight:700; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:28px; }
.empty { margin:20px 0 60px; padding:48px 24px; }

/* Detalle */
.jhero { background:linear-gradient(135deg, var(--brand) 0%, var(--brand-d) 100%); color:#fff; padding:34px 0 40px; }
.jhero .crumbs { margin:0 0 10px; font-size:.9rem; opacity:.9; } .jhero .crumbs a { color:#fff; }
.jhero h1 { margin:0 0 14px; font-size:clamp(1.7rem, 3.6vw, 2.5rem); line-height:1.2; }
.jhero .chip { background:rgba(255,255,255,.16); color:#fff; }
.jid { margin:2px 0 0; opacity:.92; font-size:.95rem; }
.jgrid { display:grid; grid-template-columns:minmax(0, 1fr) 330px; gap:28px; padding-top:28px; padding-bottom:64px; align-items:start; }
.jmain { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:8px 32px 28px; }
.lead { font-size:1.12rem; color:var(--ink); border-left:4px solid var(--brand); padding:4px 0 4px 16px; margin:24px 0 6px; }
.jsec { padding:20px 0 6px; border-bottom:1px solid var(--line); }
.jsec:last-child { border-bottom:0; }
.jsec h2 { font-size:1.2rem; margin:0 0 10px; color:var(--brand-d); }
.prose { color:#2a3542; }
.vlist { margin:0; padding:0; list-style:none; }
.vlist li { position:relative; padding:5px 0 5px 28px; color:#2a3542; }
.vlist li::before { content:""; position:absolute; left:4px; top:14px; width:9px; height:9px; border-radius:50%; background:var(--brand); opacity:.85; }
.jside .sticky { position:sticky; top:86px; padding:24px; }
.jside h3 { margin:0 0 12px; font-size:1.1rem; line-height:1.3; }
.jside dl { margin:0 0 18px; display:grid; grid-template-columns:auto 1fr; gap:8px 14px; font-size:.92rem; }
.jside dt { color:var(--muted); } .jside dd { margin:0; font-weight:600; }
.share { margin-top:16px; font-size:.9rem; }
.linkbtn { background:none; border:0; color:var(--brand); font:inherit; cursor:pointer; padding:0; text-decoration:underline; }

/* Botones y formulario */
.btn { display:inline-block; background:var(--brand); color:#fff; border:0; border-radius:10px; padding:12px 22px; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; transition:background .15s; }
.btn:hover { background:var(--brand-d); } .btn.big { padding:14px 26px; font-size:1.02rem; } .btn.block { display:block; text-align:center; }
.btn.ghost { background:#fff; color:var(--brand); border:1px solid var(--line); }
.btn:disabled { opacity:.6; cursor:wait; }
.apply { padding-bottom:10px; }
.aform { display:flex; flex-direction:column; gap:14px; }
.aform .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.aform label { display:flex; flex-direction:column; gap:6px; font-weight:600; font-size:.92rem; }
.aform input, .aform textarea { font:inherit; font-weight:400; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); }
.aform input:focus, .aform textarea:focus { outline:2px solid var(--brand); outline-offset:-1px; border-color:transparent; }
.aform .file input { padding:10px; background:var(--bg); }
.aform .check { flex-direction:row; align-items:flex-start; gap:10px; font-weight:400; }
.aform .check input { margin-top:5px; }
.aform .btn { align-self:flex-start; }
.hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.ok-box { background:#e9f7ee; border:1px solid #bfe5cb; color:#14532d; border-radius:12px; padding:18px 20px; }
.ok-box h3 { margin:0 0 6px; }
.err-box { background:#fdecea; border:1px solid #f4c7c1; color:#7f1d1d; border-radius:12px; padding:14px 18px; }
.err-box ul { margin:6px 0 0; padding-left:20px; }
.preview-bar { background:#fff4d6; color:#6b4300; text-align:center; padding:8px 12px; font-size:.92rem; }

.vfoot { border-top:1px solid var(--line); background:#fff; padding:22px 0; font-size:.88rem; color:var(--muted); }

@media (max-width:900px) {
  .jgrid { grid-template-columns:1fr; }
  .jside { order:-1; } .jside .sticky { position:static; }
  .filters { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .aform .grid2 { grid-template-columns:1fr; }
  .jmain { padding:4px 18px 20px; }
  .hero { padding:44px 0 72px; }
  .vbar nav { gap:14px; }
}

/* =====================================================================
   v2 — Mismo estilo que el sitio principal (tema ESITEC)
   ===================================================================== */
:root { --ink:#14202e; --muted:#4a5868; --line:#e3e8ee; --bg:#f4f6f9; --navy:#0a1a33; --accent:#f29a2e; }
body { font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; }
h1, h2, h3, .brand, .btn, .jcard h2, .jside h3 { font-family: "Barlow Semi Condensed", "Source Sans 3", system-ui, sans-serif; }
h1, h2, h3 { letter-spacing: -0.005em; }
.wrap { max-width: 1248px; padding: 0 24px; }

/* Barra superior */
.vtop { background: var(--navy); color: #c7d3e3; font-size: 14px; }
.vtop-in { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 9px; padding-bottom: 9px; }
.vtop a { color: inherit; text-decoration: none; } .vtop a:hover { color: #fff; }

/* Encabezado */
.vbar { border-bottom: 1px solid var(--line); }
.vbar-in { height: 84px; gap: 24px; }
.brand img { max-height: 58px; max-width: 220px; }
.vnav { display: flex; gap: 30px; align-items: center; height: 84px; margin-left: auto; }
.vnav a { display: flex; align-items: center; height: 84px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.vnav a:hover { color: var(--brand); }
.vnav a.on { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.vcta { padding: 13px 22px; font-size: 15px; white-space: nowrap; }
.vmenu { display: none; position: relative; }
.vmenu summary { list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; }
.vmenu summary::-webkit-details-marker { display: none; }
.vmenu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(10,26,51,.14); padding: 8px; z-index: 20; }
.vmenu nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 6px; }
.vmenu nav a:hover, .vmenu nav a.on { background: var(--brand-soft); color: var(--brand); }

/* Portada */
.hero, .jhero { position: relative; overflow: hidden; background: linear-gradient(90deg, #061630 0%, #0a1a33 60%, var(--brand-d) 100%); }
.hero::after, .jhero::after {
	content: ""; position: absolute; right: -60px; top: -40px; width: 560px; height: 660px; pointer-events: none; opacity: .08;
	background: url(../../wp-content/themes/esitec-child/assets/img/circuito-blanco.png) right top / contain no-repeat;
}
.hero .wrap, .jhero .wrap { position: relative; z-index: 1; }
.hero h1, .jhero h1 { font-weight: 700; }
.btn { border-radius: 8px; }

/* Pie de página */
.vfoot { background: var(--navy); color: #c7d3e3; border-top: 0; padding: 0; font-size: 15px; }
.vfoot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
.vfoot h3 { margin: 0 0 12px; color: #fff; font-size: 18px; }
.vfoot a { display: block; color: #c7d3e3; text-decoration: none; margin-bottom: 8px; }
.vfoot a:hover { color: #fff; }
.vfoot p { margin: 0 0 8px; }
.vfoot-logo { height: 60px; width: auto; margin-bottom: 12px; }
.vfoot-bottom { border-top: 1px solid #22344f; padding: 16px 0; font-size: 14px; color: #9fb0c6; }
.vfoot-bottom a { display: inline; margin: 0; }

@media (max-width: 1000px) {
	.vnav, .vcta { display: none; }
	.vmenu { display: block; margin-left: auto; }
	.vbar-in { height: 72px; }
	.brand img { max-height: 48px; }
}
@media (max-width: 700px) {
	.vfoot-in { grid-template-columns: 1fr; }
	.vtop-hours { display: none; }
}
