/* =========================================================
   ÚNETE A NOSOTROS - LAM
========================================================= */

.join-page {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 45px) 0 80px;
    overflow: hidden;
    background: radial-gradient( circle at 50% 20%, rgba(255, 255, 255, 0.72), transparent 42% ), radial-gradient( circle at 90% 30%, rgba(64, 161, 220, 0.13), transparent 34% ), linear-gradient( 135deg, #d9eef9 0%, #c5e4f4 48%, #add8ed 100% );
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.join-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(540px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}


/* =========================================================
   PANEL VISUAL IZQUIERDO
========================================================= */

/* =========================================================
   FOTO EQUIPO - PANEL IZQUIERDO
========================================================= */

/* =========================================================
   FOTO EQUIPO - PANEL IZQUIERDO
========================================================= */

.join-visual {
    position: relative;
    min-height: 820px;

    overflow: hidden;
    border-radius: 30px;

    background: #ffffff;

    box-shadow:
        0 30px 70px rgba(15, 45, 70, 0.16);
}


/* IMAGEN */
.join-team-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    /* Imagen clara y natural */
    opacity: 1;
    filter:
        brightness(1.08)
        contrast(1.04)
        saturate(1.05);

    transform: scale(1);

    transition:
        transform 0.8s cubic-bezier(.16, 1, .3, 1),
        filter 0.6s ease;
}


/* SIN CAPA OSCURA */
.join-visual-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;
    pointer-events: none;

    background: transparent;
}


/* EFECTO PREMIUM AL PASAR EL CURSOR */
.join-visual:hover .join-team-image {
    transform: scale(1.025);

    filter:
        brightness(1.12)
        contrast(1.05)
        saturate(1.07);
}

/* OSCURECER SOLO PARA LEGIBILIDAD */

.join-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(2, 10, 18, 0.88) 0%, rgba(2, 10, 18, 0.68) 48%, rgba(2, 10, 18, 0.28) 100% );
    z-index: 1;
}


.join-visual-content {
    position: relative;
    z-index: 3;
    padding: 72px 58px;
    color: #ffffff;
}


/* =========================================================
   TITULO
========================================================= */

.join-visual .page-subtitle {
    color: var(--lam-red);
    font-weight: 800;
    letter-spacing: 0.14em;
}


.join-title {
    max-width: 620px;
    margin: 25px 0 0;
    color: #ffffff;
    font-size: clamp( 3.8rem, 5.5vw, 6.8rem );
    font-weight: 900;
    line-height: 0.90;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}


    .join-title strong {
        display: block;
        margin-top: 10px;
        color: var(--lam-red);
        text-shadow: 0 0 30px rgba(239, 37, 45, 0.18);
    }


.join-description {
    max-width: 560px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================================
   BENEFICIOS LADO IZQUIERDO
========================================================= */

.join-benefits {
    display: grid;
    gap: 26px;
    margin-top: 55px;
}


.join-benefit {
    display: flex;
    align-items: center;
    gap: 18px;
}


.join-benefit-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(9, 29, 45, 0.72);
    color: var(--lam-red);
    font-size: 1.25rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.join-benefit strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}


.join-benefit p {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.5;
}


/* =========================================================
   PANEL FORMULARIO
========================================================= */

.join-form-panel {
    padding: 38px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.84), rgba(231, 245, 252, 0.68) );
    box-shadow: 0 30px 80px rgba(31, 77, 107, 0.14);
    backdrop-filter: blur(24px) saturate(125%);
    -webkit-backdrop-filter: blur(24px) saturate(125%);
}


/* =========================================================
   HEADER FORMULARIO
========================================================= */

.join-form-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}


.join-form-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--lam-red);
    color: var(--lam-red);
    font-size: 1.3rem;
}


.join-form-header > div:last-child > span {
    color: var(--lam-red);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}


.join-form-header h2 {
    margin: 5px 0 0;
    color: #102432;
    font-size: clamp( 2rem, 2.6vw, 3.2rem );
    line-height: 1;
    text-transform: uppercase;
}


.join-form-header p {
    margin-top: 12px;
    color: #526f81;
    line-height: 1.6;
    font-size: 0.88rem;
}


/* =========================================================
   FORMULARIO
========================================================= */

.join-form {
    display: grid;
    gap: 18px;
}


.join-form-row {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 14px;
}


.join-field label {
    display: block;
    margin-bottom: 8px;
    color: #17394d;
    font-size: 0.74rem;
    font-weight: 800;
}


    .join-field label span {
        color: var(--lam-red);
    }


/* =========================================================
   INPUTS
========================================================= */

.join-input-wrap {
    position: relative;
}


    .join-input-wrap > i {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #66889c;
        pointer-events: none;
        z-index: 2;
    }


    .join-input-wrap input,
    .join-input-wrap select,
    .join-input-wrap textarea {
        width: 100%;
        border: 1px solid rgba(31, 105, 151, 0.14);
        outline: none;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.58);
        color: #102432;
        font: inherit;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }


    .join-input-wrap input,
    .join-input-wrap select {
        height: 56px;
        padding: 0 42px 0 45px;
    }


    .join-input-wrap select {
        appearance: none;
        cursor: pointer;
    }


    .join-input-wrap textarea {
        min-height: 125px;
        resize: vertical;
        padding: 16px 16px 16px 45px;
        line-height: 1.6;
    }


.join-textarea-wrap > i {
    top: 18px;
    transform: none;
}


.join-input-wrap input::placeholder,
.join-input-wrap textarea::placeholder {
    color: #718c9c;
}


.join-input-wrap:focus-within > i {
    color: #1789c4;
}


.join-input-wrap input:focus,
.join-input-wrap select:focus,
.join-input-wrap textarea:focus {
    border-color: rgba(34, 137, 197, 0.42);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.10), 0 14px 30px rgba(31, 77, 107, 0.08);
}


/* =========================================================
   CAMPOS OPERADOR
========================================================= */

.join-operator-fields {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(31, 105, 151, 0.20);
    background: rgba(204, 232, 246, 0.22);
}


    .join-operator-fields[hidden] {
        display: none;
    }


/* =========================================================
   CONTADOR
========================================================= */

.join-character-counter {
    margin-top: 8px;
    color: #718c9c;
    font-size: 0.72rem;
    text-align: right;
}


/* =========================================================
   ARCHIVO CV
========================================================= */

.join-file-upload {
    min-height: 90px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px dashed rgba(31, 105, 151, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.40);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}


    .join-file-upload:hover {
        transform: translateY(-2px);
        border-color: rgba(36, 139, 198, 0.42);
        background: rgba(255, 255, 255, 0.62);
    }


.join-file-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(49, 151, 211, 0.10);
    color: #1789c4;
    font-size: 1.2rem;
}


.join-file-copy {
    min-width: 0;
}


    .join-file-copy strong {
        display: block;
        color: #102432;
        font-size: 0.84rem;
    }


    .join-file-copy small {
        display: block;
        margin-top: 4px;
        color: #6b8798;
        font-size: 0.70rem;
    }


.join-file-button {
    padding: 11px 16px;
    border-radius: 10px;
    background: #102432;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}


.join-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}


.join-file-selected {
    margin-top: 8px;
    color: #5b788a;
    font-size: 0.72rem;
    word-break: break-word;
}


/* =========================================================
   MENSAJES
========================================================= */

.join-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 0.80rem;
    font-weight: 700;
}


.join-message-error {
    border: 1px solid rgba(239, 37, 45, 0.18);
    background: rgba(239, 37, 45, 0.08);
    color: #a4171d;
}


.join-message-success {
    border: 1px solid rgba(30, 170, 102, 0.18);
    background: rgba(30, 170, 102, 0.08);
    color: #147447;
}


/* =========================================================
   BOTÓN
========================================================= */

.join-submit {
    width: 100%;
    min-height: 60px;
    justify-content: center;
    border: 0;
    cursor: pointer;
    margin-top: 3px;
}


/* =========================================================
   BENEFICIOS INFERIORES
========================================================= */

.join-company-benefits {
    margin-top: 28px;
    padding: 28px 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: 0 20px 55px rgba(31, 77, 107, 0.10);
}


    .join-company-benefits h2 {
        margin: 0;
        color: #102432;
        text-align: center;
        font-size: clamp( 1.5rem, 2.2vw, 2.4rem );
        text-transform: uppercase;
    }


.join-company-benefits-grid {
    display: grid;
    grid-template-columns: repeat( 6, minmax(0, 1fr) );
    gap: 0;
    margin-top: 28px;
}


    .join-company-benefits-grid > div {
        min-height: 85px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0 18px;
        border-right: 1px solid rgba(31, 105, 151, 0.10);
        color: #294b5e;
    }


        .join-company-benefits-grid > div:last-child {
            border-right: 0;
        }


    .join-company-benefits-grid i {
        flex-shrink: 0;
        color: var(--lam-red);
        font-size: 1.35rem;
    }


    .join-company-benefits-grid span {
        font-size: 0.76rem;
        line-height: 1.5;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .join-layout {
        grid-template-columns: 1fr;
    }


    .join-visual {
        min-height: 700px;
    }


    .join-company-benefits-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
        row-gap: 18px;
    }
}


@media (max-width: 700px) {

    .join-page {
        padding: calc(var(--header-height) + 35px) 0 60px;
    }


    .join-layout {
        gap: 20px;
    }


    .join-visual {
        min-height: 620px;
        border-radius: 22px;
    }


    .join-visual-content {
        padding: 50px 28px;
    }


    .join-title {
        font-size: clamp( 3rem, 14vw, 5rem );
    }


    .join-form-panel {
        padding: 28px 22px;
        border-radius: 22px;
    }


    .join-form-row {
        grid-template-columns: 1fr;
    }


    .join-file-upload {
        grid-template-columns: auto 1fr;
    }


    .join-file-button {
        grid-column: 1 / -1;
        text-align: center;
    }


    .join-company-benefits {
        padding: 26px 20px;
    }


    .join-company-benefits-grid {
        grid-template-columns: 1fr;
    }


        .join-company-benefits-grid > div {
            justify-content: flex-start;
            border-right: 0;
            border-bottom: 1px solid rgba(31, 105, 151, 0.10);
        }


            .join-company-benefits-grid > div:last-child {
                border-bottom: 0;
            }
}
