/* =========================================================
   Ciudad Home · Bolsa de Trabajo
   ========================================================= */

.ch-job-board,
.ch-job-detail-page {
    color: #1d2533;
}

.ch-job-board__content,
.ch-job-detail {
    padding-top: 42px;
    padding-bottom: 58px;
}

.ch-job-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #ff3e0c;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* =========================================================
   Alertas
   ========================================================= */

.ch-job-alert {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    background: #fff;
    color: #5f6978;
}

.ch-job-alert > svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.ch-job-alert strong,
.ch-job-alert span {
    display: block;
}

.ch-job-alert strong {
    color: #344050;
    font-size: 13px;
}

.ch-job-alert span {
    margin-top: 2px;
    font-size: 12px;
}

.ch-job-alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
    font-size: 12px;
}

.ch-job-alert--success {
    border-color: #bfe4ca;
    background: #f1fbf4;
    color: #267348;
}

.ch-job-alert--success strong {
    color: #267348;
}

.ch-job-alert--error {
    grid-template-columns: 1fr;
    border-color: #f1c3b7;
    background: #fff5f2;
    color: #a8442d;
}

.ch-job-alert--error strong {
    color: #a8442d;
}

/* =========================================================
   Encabezado principal
   ========================================================= */

.ch-job-board__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.ch-job-board__intro > div {
    max-width: 760px;
}

.ch-job-board__intro h2 {
    margin: 0;
    color: #222a37;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.ch-job-board__intro p {
    max-width: 700px;
    margin: 10px 0 0;
    color: #6b7480;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   Botones
   ========================================================= */

.ch-job-primary,
.ch-job-secondary,
.ch-job-filter-submit,
.ch-job-contact-primary,
.ch-job-contact-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .12s ease,
        box-shadow .15s ease;
}

.ch-job-primary,
.ch-job-filter-submit,
.ch-job-contact-primary {
    border: 1px solid #ff3e0c;
    background: #ff3e0c;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(239, 90, 40, .22);
}

.ch-job-primary:hover,
.ch-job-filter-submit:hover,
.ch-job-contact-primary:hover {
    background: #d64d1e;
    border-color: #d64d1e;
    transform: translateY(-1px);
}

.ch-job-primary svg,
.ch-job-contact-primary svg {
    width: 17px;
    height: 17px;
}

.ch-job-secondary,
.ch-job-contact-secondary {
    border: 1px solid #dfe4ea;
    background: #fff;
    color: #4e5968 !important;
}

.ch-job-secondary:hover,
.ch-job-contact-secondary:hover {
    border-color: #ffbaa7;
    background: #fffaf8;
}

/* =========================================================
   Filtros
   ========================================================= */

.ch-job-filters {
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e5e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 8px 24px rgba(20, 28, 40, .05);
}

.ch-job-type-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ch-job-type-tabs::-webkit-scrollbar {
    display: none;
}

.ch-job-type-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #fff;
    color: #667180 !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
}

.ch-job-type-tabs a.is-active {
    border-color: #ff3e0c;
    background: #fff1ec;
    color: #d64d1e !important;
}

.ch-job-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(170px, .7fr) minmax(170px, .7fr) auto;
    gap: 10px;
    align-items: end;
}

.ch-job-filter-grid label {
    display: block;
    margin: 0;
}

.ch-job-filter-grid label > span:not(.sr-only) {
    display: block;
    margin-bottom: 6px;
    color: #667180;
    font-size: 11px;
    font-weight: 700;
}

.ch-job-filter-grid input,
.ch-job-filter-grid select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9dee6;
    border-radius: 11px;
    background: #fff;
    color: #354050;
    font: inherit;
    font-size: 13px;
    outline: 0;
}

.ch-job-filter-grid input:focus,
.ch-job-filter-grid select:focus {
    border-color: #aeb8c5;
    box-shadow: 0 0 0 2px rgba(255, 62, 12, .08);
}

.ch-job-search {
    position: relative;
}

.ch-job-search svg {
    position: absolute;
    left: 12px;
    bottom: 13px;
    width: 18px;
    height: 18px;
    color: #7d8794;
    pointer-events: none;
}

.ch-job-search input {
    padding-left: 38px;
}

.ch-job-filter-submit {
    height: 44px;
    padding-left: 22px;
    padding-right: 22px;
}

/* =========================================================
   Resultados
   ========================================================= */

.ch-job-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: #77818e;
    font-size: 12px;
}

.ch-job-results-head strong {
    margin-right: 4px;
    color: #273140;
    font-size: 15px;
}

.ch-job-results-head a {
    color: #ff3e0c !important;
    font-weight: 700;
    text-decoration: none !important;
}

.ch-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ch-job-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e5e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 8px 24px rgba(20, 28, 40, .05);
    transition:
        transform .14s ease,
        box-shadow .14s ease,
        border-color .14s ease;
}

.ch-job-card:hover {
    transform: translateY(-2px);
    border-color: #f2c4b8;
    box-shadow: 0 2px 6px rgba(20, 28, 40, .06), 0 14px 34px rgba(20, 28, 40, .08);
}

.ch-job-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.ch-job-card__top time {
    color: #9199a4;
    font-size: 10.5px;
    white-space: nowrap;
}

.ch-job-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ch-job-badge--offer {
    background: #fff0eb;
    color: #d84e21;
}

.ch-job-badge--seek {
    background: #eef5ff;
    color: #3d6f9e;
}

.ch-job-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.ch-job-card h3 a {
    color: #222b38 !important;
    text-decoration: none !important;
}

.ch-job-card__owner {
    margin-top: 6px;
    color: #5f6977;
    font-size: 12px;
    font-weight: 700;
}

.ch-job-card > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 11px 0 0;
    color: #737d8a;
    font-size: 12.5px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ch-job-card__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ch-job-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 0 8px;
    border: 1px solid #e9ecf0;
    border-radius: 8px;
    background: #fafbfc;
    color: #687281;
    font-size: 10.5px;
}

.ch-job-card__meta svg {
    width: 14px;
    height: 14px;
}

.ch-job-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.ch-job-card__footer > div span,
.ch-job-card__footer > div strong {
    display: block;
}

.ch-job-card__footer > div span {
    color: #969eaa;
    font-size: 10.5px;
}

.ch-job-card__footer > div strong {
    margin-top: 3px;
    color: #35404e;
    font-size: 12.5px;
}

.ch-job-card__footer > a {
    flex: 0 0 auto;
    color: #ff3e0c !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.ch-job-pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.ch-job-empty {
    padding: 48px 20px;
    border: 1px solid #e5e8ed;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.ch-job-empty > svg {
    width: 44px;
    height: 44px;
    color: #727c8a;
}

.ch-job-empty h3 {
    margin: 14px 0 0;
    color: #293341;
    font-size: 20px;
}

.ch-job-empty p {
    margin: 7px 0 18px;
    color: #7a8491;
    font-size: 13px;
}

/* =========================================================
   Modal de publicación
   ========================================================= */

.ch-job-modal[hidden] {
    display: none !important;
}

.ch-job-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ch-job-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 24, 33, .58);
    backdrop-filter: blur(3px);
}

.ch-job-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border: 1px solid #e4e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(14, 20, 30, .24);
}

.ch-job-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e4e8ed;
    border-radius: 10px;
    background: #fff;
    color: #667180;
    cursor: pointer;
}

.ch-job-modal__close svg {
    width: 18px;
    height: 18px;
}

.ch-job-modal__head {
    max-width: 690px;
    padding-right: 42px;
}

.ch-job-modal__head h2 {
    margin: 0;
    color: #202936;
    font-size: 27px;
    letter-spacing: -.03em;
}

.ch-job-modal__head p {
    margin: 7px 0 0;
    color: #747e8b;
    font-size: 13px;
    line-height: 1.55;
}

.ch-job-publish-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.ch-job-publish-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ch-job-publish-type label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 70px;
    margin: 0;
    padding: 14px;
    border: 1px solid #e1e5ea;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.ch-job-publish-type label.is-active {
    border-color: #ff9e83;
    background: #fff6f2;
    box-shadow: 0 0 0 2px rgba(255, 62, 12, .06);
}

.ch-job-publish-type input {
    margin-top: 3px;
    accent-color: #ff3e0c;
}

.ch-job-publish-type strong,
.ch-job-publish-type small {
    display: block;
}

.ch-job-publish-type strong {
    color: #35404e;
    font-size: 13px;
}

.ch-job-publish-type small {
    margin-top: 3px;
    color: #858e9a;
    font-size: 11px;
    line-height: 1.4;
}

.ch-job-form-section {
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fff;
}

.ch-job-form-section[hidden] {
    display: none !important;
}

.ch-job-form-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ch-job-form-section__title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff0eb;
    color: #ff3e0c;
    font-size: 11px;
    font-weight: 800;
}

.ch-job-form-section__title strong,
.ch-job-form-section__title small {
    display: block;
}

.ch-job-form-section__title strong {
    color: #394452;
    font-size: 13px;
}

.ch-job-form-section__title small {
    margin-top: 2px;
    color: #8b94a0;
    font-size: 10.5px;
}

.ch-job-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.ch-job-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ch-job-field {
    display: block;
    min-width: 0;
    margin: 0;
}

.ch-job-field--wide {
    grid-column: 1 / -1;
}

.ch-job-field > span {
    display: block;
    margin-bottom: 6px;
    color: #566174;
    font-size: 11.5px;
    font-weight: 700;
}

.ch-job-field > span small {
    color: #9aa2ad;
    font-weight: 500;
}

.ch-job-field input,
.ch-job-field select,
.ch-job-field textarea {
    width: 100%;
    border: 1px solid #d9dee6;
    border-radius: 11px;
    background: #fff;
    color: #293442;
    font: inherit;
    font-size: 13px;
    outline: 0;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.ch-job-field input,
.ch-job-field select {
    height: 44px;
    padding: 0 12px;
}

.ch-job-field textarea {
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.5;
}

.ch-job-field input:focus,
.ch-job-field select:focus,
.ch-job-field textarea:focus {
    border-color: #aeb8c5;
    box-shadow: 0 0 0 2px rgba(255, 62, 12, .08);
}

.ch-job-field--file input {
    height: auto;
    padding: 9px 10px;
}

.ch-job-field--file > small {
    display: block;
    margin-top: 6px;
    color: #919aa6;
    font-size: 10.5px;
}

.ch-job-form-section--security {
    background: #fafbfc;
}

.ch-job-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 23px 0 0;
    color: #687281;
    font-size: 11px;
    line-height: 1.45;
}

.ch-job-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #ff3e0c;
}

.ch-job-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.ch-job-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

/* =========================================================
   Ficha individual
   ========================================================= */

.ch-job-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
    color: #65707e !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.ch-job-back svg {
    width: 16px;
    height: 16px;
}

.ch-job-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

.ch-job-detail__main {
    overflow: hidden;
    border: 1px solid #e5e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 8px 24px rgba(20, 28, 40, .05);
}

.ch-job-detail__hero {
    padding: 28px;
    border-bottom: 1px solid #edf0f3;
}

.ch-job-detail__hero h1 {
    margin: 12px 0 0;
    color: #202936;
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.ch-job-detail__owner {
    margin-top: 8px;
    color: #5f6977;
    font-size: 14px;
    font-weight: 700;
}

.ch-job-detail__chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ch-job-detail__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 0 9px;
    border: 1px solid #e6e9ee;
    border-radius: 9px;
    background: #fafbfc;
    color: #687281;
    font-size: 10.5px;
    font-weight: 600;
}

.ch-job-detail__section {
    padding: 24px 28px;
    border-bottom: 1px solid #edf0f3;
}

.ch-job-detail__section:last-child {
    border-bottom: 0;
}

.ch-job-detail__section h2 {
    margin: 0 0 10px;
    color: #2b3543;
    font-size: 19px;
    font-weight: 700;
}

.ch-job-detail__section p {
    margin: 0;
    color: #5f6976;
    font-size: 13.5px;
    line-height: 1.72;
}

.ch-job-detail__legacy {
    color: #5f6976;
    font-size: 13.5px;
    line-height: 1.72;
}

.ch-job-detail__legacy h1,
.ch-job-detail__legacy h2,
.ch-job-detail__legacy h3,
.ch-job-detail__legacy h4 {
    color: #2b3543;
}

.ch-job-detail__aside {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 14px;
}

.ch-job-contact-card,
.ch-job-publish-mini {
    padding: 20px;
    border: 1px solid #e5e8ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 28, 40, .04), 0 8px 24px rgba(20, 28, 40, .05);
}

.ch-job-contact-card__eyebrow {
    display: block;
    color: #ff3e0c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.ch-job-contact-card__salary {
    margin-top: 12px;
    padding: 13px 0;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.ch-job-contact-card__salary small,
.ch-job-contact-card__salary strong {
    display: block;
}

.ch-job-contact-card__salary small {
    color: #8a93a0;
    font-size: 10.5px;
}

.ch-job-contact-card__salary strong {
    margin-top: 4px;
    color: #2d3745;
    font-size: 16px;
}

.ch-job-contact-card dl {
    margin: 13px 0 16px;
}

.ch-job-contact-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f4;
}

.ch-job-contact-card dl > div:last-child {
    border-bottom: 0;
}

.ch-job-contact-card dt,
.ch-job-contact-card dd {
    margin: 0;
    font-size: 11px;
}

.ch-job-contact-card dt {
    color: #9098a4;
    font-weight: 500;
}

.ch-job-contact-card dd {
    color: #4f5967;
    font-weight: 700;
    text-align: right;
}

.ch-job-contact-primary,
.ch-job-contact-secondary {
    width: 100%;
    margin-top: 8px;
}

.ch-job-contact-card__note {
    display: block;
    margin-top: 13px;
    color: #969eaa;
    font-size: 10px;
    line-height: 1.45;
}

.ch-job-publish-mini strong,
.ch-job-publish-mini span {
    display: block;
}

.ch-job-publish-mini strong {
    color: #344050;
    font-size: 13px;
}

.ch-job-publish-mini span {
    margin-top: 4px;
    color: #87909c;
    font-size: 11px;
    line-height: 1.45;
}

.ch-job-publish-mini a {
    display: inline-block;
    margin-top: 10px;
    color: #ff3e0c !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
    .ch-job-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ch-job-search {
        grid-column: 1 / -1;
    }

    .ch-job-filter-submit {
        width: 100%;
    }

    .ch-job-detail__layout {
        grid-template-columns: 1fr;
    }

    .ch-job-detail__aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .ch-job-board__content,
    .ch-job-detail {
        padding-top: 26px;
        padding-bottom: 42px;
    }

    .ch-job-board__intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .ch-job-board__intro h2 {
        font-size: 25px;
    }

    .ch-job-board__intro .ch-job-primary {
        width: 100%;
    }

    .ch-job-grid {
        grid-template-columns: 1fr;
    }

    .ch-job-modal {
        padding: 8px;
    }

    .ch-job-modal__dialog {
        max-height: calc(100vh - 16px);
        padding: 20px 15px;
        border-radius: 14px;
    }

    .ch-job-modal__head h2 {
        font-size: 23px;
    }

    .ch-job-publish-type,
    .ch-job-form-grid--2 {
        grid-template-columns: 1fr;
    }

    .ch-job-form-section {
        padding: 15px;
    }

    .ch-job-consent {
        margin-top: 0;
    }

    .ch-job-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ch-job-detail__hero,
    .ch-job-detail__section {
        padding: 20px 17px;
    }

    .ch-job-detail__hero h1 {
        font-size: 26px;
    }

    .ch-job-detail__aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ch-job-filters {
        padding: 13px;
    }

    .ch-job-filter-grid {
        grid-template-columns: 1fr;
    }

    .ch-job-search {
        grid-column: auto;
    }

    .ch-job-type-tabs {
        margin-left: -2px;
        margin-right: -2px;
        padding-bottom: 2px;
    }

    .ch-job-card {
        padding: 16px;
    }

    .ch-job-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .ch-job-modal__actions {
        grid-template-columns: 1fr;
    }

    .ch-job-modal__actions .ch-job-primary,
    .ch-job-modal__actions .ch-job-secondary {
        width: 100%;
    }
}
