/* ---- Hero ---- */
.jhero { width: 100%; aspect-ratio: 2560 / 493; background: var(--gray-bg); }
.jhero__pic { display: block; width: 100%; height: 100%; }
.jhero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .jhero { aspect-ratio: 2039 / 1359; } }

/* ---- Intro ---- */
.jobs-intro { padding-bottom: 28px; }
.jobs-intro__title { margin-bottom: .35em; }
.jobs-intro__lead { margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

/* ---- Ofertas / acordeón ---- */
.jobs-offers { padding-top: 28px; }
.jobs-offers__title { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: 0 0 26px; }

.jacc { border-top: 1px solid var(--gray-line); }
.jacc__item { border-bottom: 1px solid var(--gray-line); }
.jacc__h { margin: 0; font-size: inherit; font-weight: inherit; }
.jacc__head {
    display: flex; align-items: center; gap: 15px;
    width: 100%; padding: 20px 4px; background: transparent; border: none;
    text-align: left; cursor: pointer; font-family: inherit;
}
.jacc__ico { position: relative; width: 18px; height: 18px; flex: none; }
.jacc__ico::before, .jacc__ico::after {
    content: ''; position: absolute; background: var(--ink); transition: opacity .25s ease, background-color .25s ease;
}
.jacc__ico::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.jacc__ico::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.jacc__title { font-size: 1.1rem; color: var(--ink); transition: color .25s ease; }
.jacc__item.is-open .jacc__ico::after { opacity: 0; }
.jacc__item.is-open .jacc__ico::before { background: var(--orange); }
.jacc__item.is-open .jacc__title { color: var(--orange); }
.jacc__head:hover .jacc__title { color: var(--orange); }

.jacc__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease-out; }
.jacc__body { padding: 4px 4px 30px 33px; }
.offer-desc { color: #555; font-size: .98rem; line-height: 1.6; }
.offer-desc p { margin: 0 0 12px; }
.offer-desc ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.offer-desc ol { margin: 0 0 12px; padding-left: 20px; list-style: decimal; }
.offer-desc li { margin-bottom: 6px; }
.offer-desc strong, .offer-desc h3, .offer-desc h4 { color: var(--ink); font-weight: 700; }
.offer-desc h3, .offer-desc h4 { display: block; margin: 16px 0 6px; font-size: 1rem; }
.offer-cta { margin-top: 26px; }

.jobs-empty { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 22px; }

@media (max-width: 768px) {
    .jacc__body { padding-left: 26px; }
    .jobs-offers__title { font-size: 1.3rem; }
}

/* ---- Formulario ---- */
.jform__header { text-align: center; margin-bottom: 34px; }
.jform__eyebrow { color: var(--orange); font-weight: 700; font-size: 1.25rem; margin: 0 0 .25em; text-transform: uppercase; letter-spacing: .03em; }
.jform__title { color: var(--ink); font-weight: 700; font-size: 1.5rem; margin: 0; }

.jform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.jform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.jform__field { display: flex; flex-direction: column; min-width: 0; margin-top: 15px; }
.jform__grid .jform__field { margin-top: 0; }
/* el atributo hidden debe ganar al display:flex de .jform__field (campo "Otros") */
.jform__field[hidden] { display: none; }

.jform__input {
    width: 100%; padding: 14px 15px; font-family: inherit; font-size: 1rem;
    color: var(--ink); background: #f9fafc; border: 1px solid #e8e8e8; border-radius: 6px; box-sizing: border-box;
}
.jform__input::placeholder { color: #b6b6b6; }
.jform__input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,126,45,.12); }
.jform__input[aria-invalid="true"] { border-color: var(--orange); }
.jform__select { color: var(--ink); cursor: pointer; }
.jform__textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.jform__input--sum { max-width: 65px; }

.jform__file { margin-top: 26px; display: flex; flex-flow: row wrap; align-items: center; gap: 14px; }
.jform__file-label { flex-basis: 100%; order: 1; color: #8a8a8a; font-size: .95rem; }
.jform__file-hint { color: #b0b0b0; }
.jform__file .jform__err { order: 4; flex-basis: 100%; }
.jform__file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.jform__file-btn {
    order: 2; flex: none; width: 50px; height: 50px; border-radius: 50%; border: none;
    background: #d3d3d3; cursor: pointer; position: relative; transition: background-color .2s ease;
}
.jform__file-btn:hover { background: var(--orange); }
.jform__file-ico, .jform__file-ico::before { content: ''; position: absolute; background: #fff; }
.jform__file-ico { top: 50%; left: 50%; width: 18px; height: 2px; transform: translate(-50%, -50%); }
.jform__file-ico::before { top: -8px; left: 8px; width: 2px; height: 18px; }
.jform__file.is-ok .jform__file-btn { background: var(--orange); }
.jform__file-name { order: 3; font-size: .92rem; color: var(--orange); font-weight: 700; word-break: break-all; }

.jform__legal { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.jform__consent { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: #8a8a8a; }
.jform__consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.jform__consent a { color: var(--orange); font-weight: 700; }
.jform__consent a:hover { color: var(--orange-dark); }
.jform__consent.has-error label { color: var(--orange); }

.jform__spam { margin-top: 26px; display: flex; flex-flow: row wrap; align-items: center; column-gap: 12px; row-gap: 8px; }
.jform__spam-label { font-size: .95rem; color: var(--ink-soft); }
.jform__spam .jform__err { flex-basis: 100%; }

.jform__err { color: var(--orange); font-size: 13px; margin-top: 6px; }
.jform__status { color: #d33; font-size: .95rem; margin: 22px 0 0; text-align: center; }

.jform__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.jform__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 150px; min-height: 48px; padding: 12px 40px; font-family: inherit; }
.jform__submit.is-loading { background: var(--orange-dark); cursor: default; pointer-events: none; }
.jform__submit.is-loading .jform__submit-label { display: none; }
.jform__submit.is-loading .jform__dots { display: inline-flex; }
.jform__dots { display: none; align-items: center; gap: 7px; }
.jform__dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .35; animation: jformDots 1s infinite ease-in-out; }
.jform__dots i:nth-child(2) { animation-delay: .18s; }
.jform__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes jformDots { 0%, 100% { opacity: .35; transform: scale(.7); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .jform__dots i { animation: none; opacity: .75; } }

.jform__success { text-align: center; max-width: 560px; margin: 0 auto; }
.jform__success-ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff; margin-bottom: 18px; }
.jform__success-title { color: var(--orange); margin: 0 0 .4em; }
.jform__success-text { color: var(--ink); margin: 0 0 26px; line-height: 1.6; }

/* ---- Modal límite de candidaturas ---- */
.jform__limit { max-width: 480px; padding: 38px 34px; text-align: center; }
.jform__limit-text { font-size: 1.1rem; color: var(--ink); line-height: 1.55; margin: 0 0 26px; }
.modal--jobs-limit .modal__close {
    position: static; top: auto; right: auto; width: auto; height: auto;
    border-radius: 999px; padding: 12px 34px; font-weight: 700;
}

@media (max-width: 600px) {
    .jform__grid { grid-template-columns: 1fr; }
    .jform__actions .btn { width: 100%; text-align: center; }

    /* CV: botón a la izquierda, etiqueta a su derecha en 2 líneas */
    .jform__file-btn { order: 1; }
    .jform__file-label { order: 2; flex: 1; }
    .jform__file-hint { display: block; }
    .jform__file-name { order: 3; flex-basis: 100%; }
}
