@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --uws-navy: #01093a;
    --uws-navy-soft: #09134e;
    --uws-ink: #252a2e;
    --uws-muted: #687079;
    --uws-line: #dde1e6;
    --uws-soft: #f5f6f8;
    --uws-white: #ffffff;
}

.join-main,
.join-main *,
.join-main *::before,
.join-main *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", sans-serif;
    margin: 0;
    color: var(--uws-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Navbar y footer se controlan exclusivamente desde navbar.css y footer.css. */

.join-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.join-hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('../imagenes/carrousel1-2.jpg') center 47% / cover no-repeat;
}

.join-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(1, 9, 58, .92) 0%, rgba(1, 9, 58, .78) 42%, rgba(1, 9, 58, .34) 72%, rgba(1, 9, 58, .12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .20), transparent 45%);
}

.join-hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 70px auto 0;
    color: #fff;
    animation: joinHeroIn .8s ease both;
}

.join-eyebrow,
.join-kicker {
    display: inline-block;
    color: var(--uws-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.join-eyebrow {
    color: rgba(255, 255, 255, .72);
    margin-bottom: 18px;
}

.join-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 600;
}

.join-hero-content > p {
    margin: 22px 0 30px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, .82);
    font-weight: 400;
}

.join-hero-link,
.join-hero-link:link,
.join-hero-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    transition: gap .22s ease, border-color .22s ease;
}

.join-hero-link:hover {
    gap: 16px;
    border-color: #fff;
}

.join-intro {
    padding: 105px 0 95px;
    background: #fff;
}

.join-intro-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.join-section-heading h2,
.join-centered-heading h2,
.join-process-heading h2,
.join-cta h2 {
    color: var(--uws-ink);
    margin: 10px 0 0;
    letter-spacing: -.035em;
    line-height: 1.08;
    font-weight: 600;
}

.join-section-heading h2 {
    font-size: clamp(2.1rem, 4vw, 3.55rem);
}

.join-intro-copy {
    border-left: 1px solid var(--uws-line);
    padding-left: 38px;
}

.join-intro-copy p {
    font-size: 17px;
    line-height: 1.82;
    margin: 0;
    color: #485058;
}

.join-intro-copy p + p {
    margin-top: 24px;
}

.join-pillars {
    padding: 105px 0 115px;
    background: var(--uws-soft);
    border-top: 1px solid #eceef1;
    border-bottom: 1px solid #eceef1;
}

.join-centered-heading {
    max-width: 780px;
    margin: 0 auto 55px;
    text-align: center;
}

.join-centered-heading h2 {
    font-size: clamp(2.15rem, 4vw, 3.35rem);
}

.join-centered-heading > p {
    color: var(--uws-muted);
    font-size: 16px;
    line-height: 1.75;
    margin: 20px auto 0;
    max-width: 700px;
}

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

.join-pillar-card {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 16px;
    padding: 34px 34px 32px;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.join-pillar-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--uws-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.join-pillar-card:hover {
    transform: translateY(-4px);
    border-color: #cdd2d9;
    box-shadow: 0 18px 45px rgba(1, 9, 58, .07);
}

.join-pillar-card:hover::after {
    transform: scaleX(1);
}

.join-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.join-card-number {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #9097a0;
}

.join-card-topline i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f2f6;
    color: var(--uws-navy);
    font-size: 16px;
}

.join-pillar-card h3 {
    color: var(--uws-navy);
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 28px;
    font-weight: 600;
}

.join-card-point {
    padding-top: 18px;
    border-top: 1px solid #eceef1;
}

.join-card-point + .join-card-point {
    margin-top: 18px;
}

.join-card-point strong {
    display: block;
    font-size: 14px;
    color: #30363c;
    margin-bottom: 7px;
}

.join-card-point p {
    margin: 0;
    color: var(--uws-muted);
    font-size: 14px;
    line-height: 1.7;
}

.join-process {
    padding: 110px 0 120px;
    background: var(--uws-navy);
    color: #fff;
}

.join-kicker-light {
    color: rgba(255, 255, 255, .6);
}

.join-process-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 65px;
}

.join-process-heading .join-kicker {
    grid-column: 1 / -1;
    margin-bottom: -45px;
}

.join-process-heading h2 {
    color: #fff;
    font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.join-process-heading > p {
    color: rgba(255, 255, 255, .7);
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
}

.join-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, .24);
}

.join-step {
    position: relative;
    padding: 34px 25px 0 0;
    min-height: 230px;
}

.join-step:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .13);
    margin-right: 25px;
}

.join-step-number {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--uws-navy);
    font-weight: 700;
    margin-bottom: 25px;
}

.join-step h3 {
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 12px;
    font-weight: 600;
}

.join-step p {
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 14px;
    line-height: 1.7;
}

.join-cta {
    padding: 95px 0 110px;
    background: #fff;
}

.join-cta-panel {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
    background: #f6f7f9;
    border: 1px solid #e6e8eb;
    border-radius: 18px;
    padding: 55px 58px;
}

.join-cta h2 {
    font-size: clamp(2rem, 3.8vw, 3.15rem);
}

.join-cta-copy p {
    margin: 16px 0 0;
    color: var(--uws-muted);
    line-height: 1.7;
}

.join-mail-button,
.join-mail-button:link,
.join-mail-button:visited {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #d9dde2;
    border-radius: 12px;
    color: var(--uws-navy);
    background: #fff;
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    min-width: 0;
}

.join-mail-button:hover {
    transform: translateY(-2px);
    border-color: #bfc5cd;
    box-shadow: 0 12px 30px rgba(1, 9, 58, .07);
}

.join-mail-button > i:first-child {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--uws-navy);
    color: #fff;
}

.join-mail-button span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.join-mail-button small {
    display: block;
    color: #8a9199;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.join-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease var(--reveal-delay, 0ms), transform .65s ease var(--reveal-delay, 0ms);
}

.join-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes joinHeroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 1020px) {
    .join-pillar-card {
        min-height: 0;
    }

    .join-timeline {
        grid-template-columns: repeat(2, 1fr);
        border-top: 0;
        gap: 0;
    }

    .join-step {
        border-top: 1px solid rgba(255, 255, 255, .2);
        padding-bottom: 35px;
    }

    .join-step:not(:last-child) {
        margin-right: 0;
        border-right: 0;
    }

    .join-step:nth-child(odd) {
        padding-right: 30px;
        margin-right: 30px;
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

    .join-cta-panel {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 760px) {
    .join-container,
    .join-hero-content {
        width: min(100% - 32px, 1120px);
    }

    .join-hero {
        min-height: 570px;
        background-position: 45% center;
    }

    .join-hero-overlay {
        background: linear-gradient(90deg, rgba(1, 9, 58, .93), rgba(1, 9, 58, .68));
    }

    .join-intro,
    .join-pillars,
    .join-process,
    .join-cta {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .join-intro-grid,
    .join-process-heading,
    .join-cta-panel {
        grid-template-columns: 1fr;
    }

    .join-intro-grid {
        gap: 35px;
    }

    .join-intro-copy {
        padding-left: 20px;
    }

    .join-pillar-grid {
        grid-template-columns: 1fr;
    }

    .join-pillar-card {
        padding: 28px 25px 27px;
    }

    .join-process-heading {
        gap: 22px;
        margin-bottom: 45px;
    }

    .join-process-heading .join-kicker {
        grid-column: auto;
        margin-bottom: 0;
    }

    .join-timeline {
        grid-template-columns: 1fr;
    }

    .join-step,
    .join-step:nth-child(odd) {
        margin: 0;
        padding: 28px 0 32px;
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
        min-height: 0;
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 18px;
    }

    .join-step-number {
        margin: 0;
    }

    .join-cta-panel {
        padding: 38px 26px;
        border-radius: 14px;
    }

    .join-mail-button {
        grid-template-columns: auto 1fr;
    }

    .join-mail-button > i:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .join-hero {
        min-height: 520px;
    }

    .join-hero-content {
        margin-top: 62px;
    }

    .join-hero h1 {
        font-size: 3rem;
    }

    .join-intro-copy p {
        font-size: 15px;
    }

    .join-centered-heading {
        text-align: left;
    }

    .join-pillar-card h3 {
        font-size: 20px;
    }

    .join-mail-button {
        padding: 15px;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .join-main,
    .join-main *,
    .join-main *::before,
    .join-main *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .join-reveal {
        opacity: 1;
        transform: none;
    }
}
