/* ==========================================================
   VACANTES
========================================================== */

:root {
    --jobs-blue: #184687;
    --jobs-blue-dark: #0d2f61;
    --jobs-purple: #67013a;
    --jobs-purple-dark: #460025;
    --jobs-green: #95b734;
    --jobs-white: #ffffff;
    --jobs-text: #172033;
    --jobs-muted: #667085;
    --jobs-border: #dce4ed;
    --jobs-background: #f6f8fb;

    --jobs-shadow:
        0 18px 55px rgba(24, 70, 135, 0.11);

    --jobs-shadow-strong:
        0 28px 75px rgba(24, 70, 135, 0.17);
}

.jobs-page {
    color: var(--jobs-text);
    background: var(--jobs-white);
}

.jobs-page *,
.jobs-page *::before,
.jobs-page *::after {
    box-sizing: border-box;
}

/* ==========================================================
   HERO
========================================================== */

.jobs-hero {
    position: relative;
    padding: 88px 0 78px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 14%,
            rgba(103, 1, 58, 0.09),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #fafbfc 0%,
            #f1f4f8 58%,
            #fafbfc 100%
        );
}

.jobs-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(370px, 0.96fr);
    gap: clamp(50px, 7vw, 92px);
    align-items: center;
}

.jobs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--jobs-muted);
    font-size: 0.78rem;
}

.jobs-breadcrumb a {
    color: var(--jobs-purple);
    font-weight: 750;
    text-decoration: none;
}

.jobs-breadcrumb a:hover {
    text-decoration: underline;
}

.jobs-hero-copy h1 {
    max-width: 780px;
    margin: 15px 0 24px;
    color: var(--jobs-blue-dark);
    font-size: clamp(2.45rem, 4.7vw, 4.65rem);
    font-weight: 750;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.jobs-hero-copy h1 span {
    display: block;
    color: var(--jobs-purple);
}

.jobs-hero-lead {
    max-width: 690px;
    margin: 0;
    color: var(--jobs-muted);
    font-size: clamp(1.03rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.jobs-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.jobs-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.jobs-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #435066;
    font-size: 0.83rem;
    font-weight: 700;
}

.jobs-hero-points li span {
    display: grid;
    width: 22px;
    height: 22px;
    color: var(--jobs-purple);
    background: rgba(149, 183, 52, 0.18);
    border-radius: 50%;
    place-items: center;
}

.jobs-hero-visual {
    position: relative;
    min-height: 600px;
}

.jobs-hero-image {
    position: absolute;
    inset: 0 35px 0 15px;
    overflow: hidden;
    background: #e4e9ef;
    border-radius:
        80px
        24px
        80px
        24px;
    box-shadow: var(--jobs-shadow-strong);
}

.jobs-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jobs-hero-card {
    position: absolute;
    right: 0;
    bottom: 52px;
    z-index: 2;
    width: min(300px, 78%);
    padding: 20px 22px;
    color: var(--jobs-white);
    background:
        linear-gradient(
            145deg,
            rgba(70, 0, 37, 0.97),
            rgba(103, 1, 58, 0.94)
        );
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    box-shadow:
        0 20px 45px rgba(70, 0, 37, 0.26);
}

.jobs-hero-card span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jobs-hero-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.48;
}

/* ==========================================================
   NAVEGACIÓN
========================================================== */

.jobs-nav {
    position: sticky;
    top: 62px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid rgba(24, 70, 135, 0.06);
    border-bottom: 1px solid var(--jobs-border);
    backdrop-filter: blur(14px);
}

.jobs-nav-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 66px;
    overflow-x: auto;
    scrollbar-width: none;
}

.jobs-nav-inner::-webkit-scrollbar {
    display: none;
}

.jobs-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 22px 0;
    color: #556277;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.jobs-nav a::after {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--jobs-purple);
    border-radius: 999px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.jobs-nav a:hover {
    color: var(--jobs-purple);
}

.jobs-nav a:hover::after {
    transform: scaleX(1);
}

/* ==========================================================
   LISTADO
========================================================== */

.jobs-list-section {
    background: var(--jobs-background);
}

.jobs-heading {
    margin-bottom: 38px;
}

.jobs-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(220px, 0.34fr);
    gap: 18px;
    align-items: end;
    padding: 22px;
    background: var(--jobs-white);
    border: 1px solid var(--jobs-border);
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(24, 70, 135, 0.055);
}

.jobs-search label,
.jobs-filter label {
    display: block;
    margin-bottom: 9px;
    color: var(--jobs-text);
    font-size: 0.77rem;
    font-weight: 800;
}

.jobs-search-control {
    position: relative;
}

.jobs-search-control svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    fill: #778399;
    pointer-events: none;
    transform: translateY(-50%);
}

.jobs-search input,
.jobs-filter select {
    width: 100%;
    height: 50px;
    color: var(--jobs-text);
    font: inherit;
    font-size: 0.88rem;
    background: var(--jobs-background);
    border: 1px solid var(--jobs-border);
    border-radius: 12px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.jobs-search input {
    padding: 0 16px 0 48px;
}

.jobs-filter select {
    padding: 0 42px 0 15px;
    cursor: pointer;
}

.jobs-search input:focus,
.jobs-filter select:focus {
    background: var(--jobs-white);
    border-color: rgba(103, 1, 58, 0.48);
    box-shadow:
        0 0 0 4px rgba(103, 1, 58, 0.08);
}

.jobs-results-count {
    margin: 23px 0 18px;
    color: var(--jobs-muted);
    font-size: 0.84rem;
}

.jobs-results-count strong {
    color: var(--jobs-purple);
}

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

.job-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 28px;
    background: var(--jobs-white);
    border: 1px solid var(--jobs-border);
    border-radius: 19px;
    box-shadow:
        0 8px 26px rgba(24, 70, 135, 0.055);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    scroll-margin-top: 150px;
}

.job-card:hover {
    border-color: rgba(103, 1, 58, 0.23);
    box-shadow: var(--jobs-shadow);
    transform: translateY(-4px);
}

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

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.job-card-area {
    color: var(--jobs-purple);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #526719;
    font-size: 0.69rem;
    font-weight: 800;
    background: rgba(149, 183, 52, 0.14);
    border-radius: 999px;
}

.job-card-status::before {
    width: 7px;
    height: 7px;
    content: "";
    background: var(--jobs-green);
    border-radius: 50%;
}

.job-card h3 {
    margin: 0;
    color: var(--jobs-text);
    font-size: clamp(1.35rem, 2.2vw, 1.72rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.job-card-subtitle {
    margin: 7px 0 20px;
    color: var(--jobs-purple);
    font-size: 0.88rem;
    font-weight: 750;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.job-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    color: #526075;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--jobs-background);
    border: 1px solid var(--jobs-border);
    border-radius: 9px;
}

.job-card-meta svg {
    width: 15px;
    height: 15px;
    fill: var(--jobs-purple);
}

.job-card-summary {
    margin: 0 0 22px;
    color: var(--jobs-muted);
    font-size: 0.89rem;
    line-height: 1.7;
}

.job-details {
    margin-bottom: 23px;
    border-top: 1px solid var(--jobs-border);
    border-bottom: 1px solid var(--jobs-border);
}

.job-details summary {
    position: relative;
    padding: 18px 38px 18px 0;
    color: var(--jobs-text);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.job-details summary::-webkit-details-marker {
    display: none;
}

.job-details summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    width: 25px;
    height: 25px;
    content: "+";
    color: var(--jobs-purple);
    font-size: 1rem;
    background: rgba(103, 1, 58, 0.07);
    border-radius: 50%;
    place-items: center;
    transform: translateY(-50%);
}

.job-details[open] summary::after {
    content: "−";
}

.job-details-content {
    display: grid;
    gap: 25px;
    padding: 4px 0 22px;
}

.job-details-content h4 {
    margin: 0 0 12px;
    color: var(--jobs-text);
    font-size: 0.9rem;
}

.job-details-content ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-details-content li {
    position: relative;
    padding-left: 20px;
    color: var(--jobs-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.job-details-content li::before {
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 7px;
    height: 7px;
    content: "";
    background: var(--jobs-green);
    border-radius: 50%;
}

.job-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.job-card-actions .button {
    flex: 1 1 180px;
    justify-content: center;
}

.job-card-note {
    margin: 14px 0 0;
    color: #7a8699;
    font-size: 0.72rem;
    line-height: 1.5;
}

.jobs-empty,
.jobs-no-vacancies {
    padding: 64px 28px;
    text-align: center;
    background: var(--jobs-white);
    border: 1px solid var(--jobs-border);
    border-radius: 20px;
}

.jobs-empty > span,
.jobs-no-vacancies > span {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 19px;
    color: var(--jobs-purple);
    font-size: 1.8rem;
    background: rgba(103, 1, 58, 0.07);
    border-radius: 50%;
    place-items: center;
}

.jobs-empty h3,
.jobs-no-vacancies h2 {
    margin: 0 0 10px;
    color: var(--jobs-text);
}

.jobs-empty p,
.jobs-no-vacancies p {
    max-width: 620px;
    margin: 0 auto 23px;
    color: var(--jobs-muted);
    line-height: 1.7;
}

/* ==========================================================
   CÓMO APLICAR
========================================================== */

.jobs-application {
    background: var(--jobs-white);
}

.jobs-application-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);
    gap: clamp(48px, 8vw, 96px);
    align-items: start;
}

.jobs-application-heading h2 {
    margin: 14px 0 18px;
    color: var(--jobs-text);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -0.043em;
}

.jobs-application-heading p {
    color: var(--jobs-muted);
    line-height: 1.75;
}

.jobs-application-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jobs-application-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 25px;
    background: var(--jobs-background);
    border: 1px solid var(--jobs-border);
    border-radius: 16px;
}

.jobs-application-steps li > span {
    display: grid;
    width: 44px;
    height: 44px;
    color: var(--jobs-purple);
    font-size: 0.76rem;
    font-weight: 850;
    background: rgba(103, 1, 58, 0.08);
    border-radius: 12px;
    place-items: center;
}

.jobs-application-steps h3 {
    margin: 1px 0 8px;
    color: var(--jobs-text);
    font-size: 1.05rem;
}

.jobs-application-steps p {
    margin: 0;
    color: var(--jobs-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

/* ==========================================================
   PROCESO
========================================================== */

.jobs-process {
    color: var(--jobs-white);
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(149, 183, 52, 0.16),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            var(--jobs-purple-dark),
            var(--jobs-purple)
        );
}

.jobs-process .section-heading h2 {
    color: var(--jobs-white);
}

.jobs-process .section-heading p {
    color: rgba(255, 255, 255, 0.7);
}

.jobs-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 46px 0 0;
    padding: 0;
    list-style: none;
}

.jobs-process-card {
    min-height: 220px;
    padding: 27px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    backdrop-filter: blur(10px);
}

.jobs-process-card > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    color: var(--jobs-purple-dark);
    font-size: 0.74rem;
    font-weight: 850;
    background: var(--jobs-green);
    border-radius: 10px;
    place-items: center;
}

.jobs-process-card h3 {
    margin: 34px 0 10px;
    color: var(--jobs-white);
    font-size: 1.12rem;
}

.jobs-process-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    line-height: 1.65;
}

/* ==========================================================
   CULTURA
========================================================== */

.jobs-culture {
    background: var(--jobs-background);
}

.jobs-culture-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(0, 0.96fr);
    gap: clamp(48px, 8vw, 96px);
    align-items: center;
}

.jobs-culture-image {
    overflow: hidden;
    background: #e4e9ef;
    border-radius:
        28px
        76px
        28px
        76px;
    box-shadow: var(--jobs-shadow);
}

.jobs-culture-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.jobs-culture-copy h2 {
    margin: 14px 0 18px;
    color: var(--jobs-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.043em;
}

.jobs-culture-copy p {
    margin-bottom: 25px;
    color: var(--jobs-muted);
    line-height: 1.75;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {

    .jobs-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .jobs-hero-grid,
    .jobs-application-grid,
    .jobs-culture-grid {
        grid-template-columns: 1fr;
    }

    .jobs-hero {
        padding-top: 60px;
    }

    .jobs-hero-visual {
        min-height: 560px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .jobs-hero {
        padding: 44px 0 58px;
    }

    .jobs-hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.65rem);
    }

    .jobs-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .jobs-hero-actions .button {
        justify-content: center;
        width: 100%;
    }

    .jobs-hero-points {
        align-items: flex-start;
        flex-direction: column;
    }

    .jobs-hero-visual {
        min-height: 490px;
    }

    .jobs-hero-image {
        inset: 0 12px;
        border-radius:
            50px
            18px
            50px
            18px;
    }

    .jobs-hero-card {
        right: 0;
        bottom: 24px;
        width: calc(100% - 24px);
    }

    .jobs-filters {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .job-card {
        padding: 23px;
    }

    .job-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .job-card-actions .button {
        flex-basis: auto;
        width: 100%;
    }

    .jobs-process-grid {
        grid-template-columns: 1fr;
    }

    .jobs-process-card {
        min-height: auto;
    }

    .jobs-culture-image {
        border-radius:
            22px
            52px
            22px
            52px;
    }
}

@media (max-width: 480px) {

    .job-card-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .job-card-meta li {
        width: 100%;
    }

    .jobs-application-heading h2,
    .jobs-culture-copy h2 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .jobs-page *,
    .jobs-page *::before,
    .jobs-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}