/* ============================================================================
   Empleos — usa la LÍNEA GRÁFICA del sitio (tokens de app.css: --navy #262161,
   --navy-2, --green #6fb43f, --green-2, --canvas, --paper, --warm, --warm-line,
   --line, --muted, --ink-2). No define tokens propios ni paleta fría.
   Reutiliza .dir-hero / .dir-section-shell / .dir-section-head / .section-label /
   .dir-filter-bar / .btn de app.css; aquí solo lo específico de vacantes.
   ============================================================================ */

/* ---------- Hero (panel navy dividido, réplica del hero del Directorio) ---------- */
.emp-hero { position: relative; overflow: hidden; color: #fff; background: #1d1957; }
.emp-hero::before { content: ''; position: absolute; inset: auto auto -12rem -8rem; width: 34rem; height: 34rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.emp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(420px, .85fr); }
.emp-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; min-height: 500px; width: min(100%, 820px); margin-left: auto; padding: 3.5rem clamp(2rem, 6vw, 7rem) 4.75rem 2rem; }
.emp-hero-crumbs { display: flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .58); font-size: .78rem; font-weight: 700; }
.emp-hero-crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.emp-hero-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.emp-hero-copy h1 { margin-top: 1.25rem; max-width: 15ch; color: #fff; font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 800; line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.emp-hero-copy > p { margin-top: 1.35rem; max-width: 54ch; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.65; }
.emp-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.35rem; margin-top: 1.85rem; }
.emp-hero-actions .btn { min-height: 50px; }
.emp-hero-alt { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .88); font-size: .88rem; font-weight: 800; text-decoration: none; }
.emp-hero-alt svg { color: #b6f0a3; width: 1.05rem; height: 1.05rem; }
.emp-hero-alt:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.emp-hero-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; margin-top: 2.25rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.emp-hero-summary > div { padding: .95rem .75rem 0 0; }
.emp-hero-summary > div + div { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: 1.1rem; }
.emp-hero-summary dt { color: rgba(255, 255, 255, .55); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.emp-hero-summary dd { margin: .3rem 0 0; color: #fff; font-size: 1.3rem; font-weight: 800; font-family: "Outfit", "Plus Jakarta Sans", sans-serif; }
.emp-hero-visual { position: relative; min-height: 500px; overflow: hidden; margin: 0; background: #dfe5e7; }
.emp-hero-visual::before { content: ''; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 9px; background: var(--green); }
.emp-hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 25, 87, .3), transparent 42%); pointer-events: none; }
.emp-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.emp-hero-visual figcaption { position: absolute; left: 1.75rem; bottom: 1.5rem; z-index: 2; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.emp-hero-visual figcaption span { display: block; font-size: .78rem; opacity: .82; }
.emp-hero-visual figcaption strong { font-size: 1rem; font-weight: 800; }
@media (max-width: 900px) {
    .emp-hero-grid { grid-template-columns: 1fr; }
    .emp-hero-copy { min-height: 0; width: 100%; margin: 0; padding: 2.75rem 1.35rem 2.5rem; }
    .emp-hero-visual { min-height: 300px; order: -1; }
}

/* ---------- Grid de vacantes (mismo lenguaje que .dir-doctor-card) ---------- */
.emp-vac-grid {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.emp-vac-card {
    display: flex; flex-direction: column; gap: 1rem; position: relative;
    border: 1px solid var(--warm-line); border-radius: 16px; background: var(--paper);
    padding: 1.65rem; box-shadow: 0 14px 32px rgba(38, 33, 97, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.emp-vac-card:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 180, 63, .55);
    box-shadow: 0 26px 48px rgba(38, 33, 97, .14);
}
.emp-vac-card.is-hidden { display: none; }
.emp-vac-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.emp-vac-tag {
    display: inline-flex; align-items: center; gap: .4rem; background: var(--warm); color: var(--navy);
    font-size: .72rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase;
    padding: .38rem .7rem; border-radius: 999px;
}
.emp-vac-tag svg { width: .9rem; height: .9rem; color: var(--green); }
.emp-vac-type { color: var(--green-2); font-size: .78rem; font-weight: 950; white-space: nowrap; }
.emp-vac-title {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    font-weight: 800; font-size: 1.28rem; line-height: 1.2; color: var(--navy); margin: 0; letter-spacing: -.01em;
}
.emp-vac-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.emp-vac-meta li { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; }
.emp-vac-meta svg { width: 1rem; height: 1rem; color: var(--green); }
.emp-vac-desc { color: var(--muted); font-size: .94rem; line-height: 1.7; margin: 0; }
.emp-vac-foot {
    margin-top: auto; display: flex; align-items: center; justify-content: flex-start;
    padding-top: .95rem; border-top: 1px solid var(--warm-line);
}
.emp-vac-cta {
    display: inline-flex; align-items: center; gap: .5rem; color: var(--navy);
    font-weight: 900; font-size: .9rem; text-decoration: none;
}
.emp-vac-cta svg { width: 1.05rem; height: 1.05rem; color: var(--green); transition: transform .16s ease; }
.emp-vac-card:hover .emp-vac-cta { color: var(--green-2); }
.emp-vac-card:hover .emp-vac-cta svg { transform: translateX(4px); }

/* ---------- Búsqueda ---------- */
.emp-search { position: relative; margin-top: 1.75rem; max-width: 520px; }
.emp-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--muted); pointer-events: none; }
.emp-search input {
    width: 100%; padding: .95rem 1rem .95rem 3rem; border: 1px solid var(--warm-line);
    border-radius: 14px; background: var(--paper); color: var(--ink-2); font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.emp-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(38, 33, 97, .1); }
.emp-noresults { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); padding: 2.75rem 1rem; }
.emp-noresults[hidden] { display: none; }
.emp-noresults svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Estado vacío ---------- */
.emp-empty {
    max-width: 620px; margin: 2.25rem auto 0; text-align: center;
    background: var(--paper); border: 1px solid var(--warm-line); border-radius: 22px;
    padding: 3.25rem 2rem; box-shadow: 0 14px 32px rgba(38, 33, 97, .05);
}
.emp-empty-icon { display: inline-grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 20px; background: var(--warm); color: var(--navy); margin-bottom: 1.35rem; }
.emp-empty-icon svg { width: 1.9rem; height: 1.9rem; }
.emp-empty h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--navy); margin: 0 0 .6rem; letter-spacing: -.01em; }
.emp-empty p { color: var(--muted); line-height: 1.75; margin: 0 0 1.6rem; }

/* ---------- Detalle de vacante ---------- */
.emp-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 800; text-decoration: none; font-size: .92rem; }
.emp-back:hover { color: var(--navy); }
.emp-back svg { width: 1.05rem; height: 1.05rem; }
.emp-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2.75rem; align-items: start; margin-top: 1.5rem; }
.emp-detail-head { border-bottom: 1px solid var(--warm-line); padding-bottom: 1.6rem; margin-bottom: 1.9rem; }
.emp-detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.emp-detail-head h1 {
    font-family: "Outfit", "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; letter-spacing: -.02em;
    font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--navy); margin: 0 0 1rem;
}
.emp-detail-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.emp-detail-meta li { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .98rem; }
.emp-detail-meta svg { width: 1.15rem; height: 1.15rem; color: var(--green); }
.emp-detail-block { margin-bottom: 1.9rem; }
.emp-detail-block h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--navy); margin: 0 0 .85rem; letter-spacing: -.01em; }
.emp-prose p { color: var(--ink-2); line-height: 1.85; margin: 0 0 .8rem; }
.emp-prose ul { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.emp-prose li { position: relative; padding-left: 1.9rem; color: var(--ink-2); line-height: 1.65; }
.emp-prose li::before { content: ''; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem; border-radius: 50%; background: rgba(111, 180, 63, .2); box-shadow: inset 0 0 0 2px var(--green); }
.emp-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.emp-skills li { background: var(--warm); color: var(--navy); font-weight: 800; font-size: .85rem; padding: .42rem .85rem; border-radius: 999px; }

/* ---------- Tarjeta de postulación ---------- */
.emp-apply { position: sticky; top: 1.5rem; }
.emp-apply-card { background: var(--paper); border: 1px solid var(--warm-line); border-radius: 20px; box-shadow: 0 20px 44px rgba(38, 33, 97, .08); padding: 1.9rem; }
.emp-apply-card h2 { display: flex; align-items: center; gap: .55rem; font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 0 0 .35rem; }
.emp-apply-card h2 svg { width: 1.35rem; height: 1.35rem; color: var(--green); }
.emp-apply-sub { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1.35rem; }
.emp-field { margin-bottom: 1rem; }
.emp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.emp-field label { display: block; font-weight: 800; font-size: .86rem; color: var(--ink-2); margin-bottom: .4rem; }
.emp-field label span { color: var(--green-2); }
.emp-field input { width: 100%; padding: .8rem .9rem; border: 1px solid var(--warm-line); border-radius: 12px; font-size: .98rem; color: var(--ink-2); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.emp-field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(38, 33, 97, .1); }
.emp-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; border: 2px dashed var(--warm-line); border-radius: 14px; padding: 1.5rem 1rem; cursor: pointer; background: var(--warm); transition: border-color .15s, background .15s; }
.emp-drop:hover, .emp-drop.is-drag { border-color: var(--green); background: rgba(111, 180, 63, .07); }
.emp-drop.has-file { border-style: solid; border-color: var(--green); background: rgba(111, 180, 63, .08); }
.emp-drop-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--paper); color: var(--navy); box-shadow: 0 8px 18px rgba(38, 33, 97, .08); }
.emp-drop-icon svg { width: 1.3rem; height: 1.3rem; }
.emp-drop.has-file .emp-drop-icon { color: var(--green-2); }
.emp-drop-text { font-weight: 800; color: var(--ink-2); font-size: .92rem; word-break: break-word; }
.emp-drop-text b { color: var(--navy); }
.emp-drop-hint { font-size: .78rem; color: var(--muted); }
.emp-consent { display: flex; gap: .65rem; align-items: flex-start; margin: 1.1rem 0; cursor: pointer; }
.emp-consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green); flex: none; }
.emp-consent span { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.emp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.emp-submit { width: 100%; margin-top: .25rem; }
.emp-submit[disabled] { opacity: .75; cursor: progress; }
.emp-spin { animation: emp-spin 1s linear infinite; }
@keyframes emp-spin { to { transform: rotate(360deg); } }
.emp-msg { margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.emp-msg[hidden] { display: none; }
.emp-msg.error { background: #fdeceb; color: #b42318; border: 1px solid #f3c9c5; }
.emp-msg.ok { background: rgba(111, 180, 63, .12); color: #3f7a26; border: 1px solid rgba(111, 180, 63, .35); }
.emp-success { text-align: center; padding: 1rem .5rem; }
.emp-success[hidden] { display: none; }
.emp-success-icon { display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: rgba(111, 180, 63, .14); color: #3f7a26; margin-bottom: 1rem; }
.emp-success-icon svg { width: 1.9rem; height: 1.9rem; }
.emp-success h3 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 0 0 .5rem; }
.emp-success p { color: var(--muted); line-height: 1.7; margin: 0 0 1.25rem; }

/* ---------- Suscripción a alertas (banda navy de marca) ---------- */
.emp-subscribe { margin-top: 3rem; }
.emp-subscribe-card {
    display: flex; gap: 1.75rem; align-items: center; position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff;
    border-radius: 24px; padding: 2.75rem 2.5rem; box-shadow: 0 30px 60px -24px rgba(38, 33, 97, .5);
}
.emp-subscribe-card::after { content: ''; position: absolute; right: -70px; top: -70px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(111, 180, 63, .35), transparent 70%); pointer-events: none; }
.emp-subscribe-icon { flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 18px; background: rgba(255, 255, 255, .12); color: #b6f0a3; position: relative; }
.emp-subscribe-icon svg { width: 1.8rem; height: 1.8rem; }
.emp-subscribe-body { flex: 1; min-width: 0; position: relative; }
.emp-subscribe-body h2 { font-family: "Outfit", sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.95rem); margin: 0 0 .45rem; color: #fff; letter-spacing: -.01em; }
.emp-subscribe-body > p { margin: 0 0 1.25rem; color: #d6d9ee; line-height: 1.6; max-width: 62ch; }
.emp-subscribe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.emp-subscribe-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.emp-subscribe-row input[type=email] { flex: 1; min-width: 220px; padding: .9rem 1.1rem; border: 0; border-radius: 12px; font-size: 1rem; background: #fff; color: var(--ink-2); }
.emp-subscribe-row input[type=email]:focus { outline: 3px solid rgba(111, 180, 63, .6); outline-offset: 1px; }
.emp-subscribe-msg { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 12px; font-size: .9rem; line-height: 1.45; }
.emp-subscribe-msg[hidden] { display: none; }
.emp-subscribe-msg.error { background: rgba(255, 255, 255, .16); color: #ffdad5; }
.emp-subscribe-msg.ok { background: rgba(111, 180, 63, .3); color: #eafce0; }
.emp-subscribe-legal { margin: .9rem 0 0; font-size: .76rem; color: #a9aed2; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .emp-detail-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .emp-apply { position: static; }
}
@media (max-width: 640px) {
    .emp-field-row { grid-template-columns: 1fr; }
    .emp-vac-grid { grid-template-columns: 1fr; }
    .emp-subscribe-card { flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 1.9rem 1.4rem; }
    .emp-subscribe-row .btn { width: 100%; }
}
