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

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Montserrat',sans-serif;
    overflow-x: hidden;
}


html {
    scroll-behavior: smooth;
}


.hero-trabaja-nosotros{
    overflow:hidden;
}

.hero-trabaja-nosotros{
    min-height:100vh;
    background:#ffffff;
    padding:40px 8%;

    padding-top:clamp(80px, 8vw, 120px);

}





.trabaja-header{
    margin-top: 50px;
    position: relative;
    text-align: center;
}

.trabaja-header h2{
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
}

.trabaja-header h2 span{
    position: relative;
    display: inline-block;
    z-index: 2;
    color: #111;
}

.trabaja-header h2 span::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100vw;      /* ocupa todo el ancho de la ventana */
    height: 60px;      /* alto de la franja */

    background: #F2EE00;

    z-index: -1;
}

















/* CONTENEDOR DEL FORMULARIO */
.postulacion-info{
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 30px;
    background: transparent;
}

/* GRID */
.form-postulacion{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* CAMPOS */
.campo{
    display: flex;
    flex-direction: column;
}

.campo.full{
    grid-column: 1 / -1;
}

/* LABEL */
.campo label{
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 5px;
}

/* INPUTS */
.campo input,
.campo select,
.campo textarea{
    width: 100%;
    height: 42px;
    padding: 0 12px;

    border: 1px solid #d8d8d8;
    border-radius: 10px;

    font-size: 14px;
    outline: none;
    transition: .25s;
}

.campo textarea{
    height: 110px;
    padding: 12px;
    resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus{
    border-color: #F2EE00;
    box-shadow: 0 0 0 3px rgba(242,238,0,.25);
}

/* INPUT FILE */
.campo input[type="file"]{
    height: auto;
    padding: 10px;
}

.campo small{
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

/* BOTÓN */
.campo button{
    width: 180px;
    height: 45px;

    border: none;
    border-radius: 50px;

    background: #F2EE00;
    color: #111;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   CONTENEDOR GENERAL
========================================== */
.postulacion-container{
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 0px;

    display: flex;
    align-items: flex-start;
    gap: 25px;
}

/* ==========================================
   IMAGEN IZQUIERDA
========================================== */
.postulacion-img{
    width: 34%;
    min-width: 400px;
}

.postulacion-img img{
    width: 100%;
    height: 100%;
    max-height: 512px;

    object-fit: cover;
    display: block;

    border-radius: 22px;
}

/* ==========================================
   FORMULARIO
========================================== */
.postulacion-info{
    width: 66%;

    border: 2px solid #E5E5E5;
    border-radius: 22px;

    padding: 30px;
    background: transparent;
}

/* ==========================================
   GRID (3 columnas)
========================================== */
.form-postulacion{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

/* ==========================================
   CAMPOS
========================================== */
.campo{
    display: flex;
    flex-direction: column;
}

.campo.full{
    grid-column: 1 / -1;
}

/* ==========================================
   LABELS
========================================== */
.campo label{
    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 600;

    color: #222;
}
/* ==========================================
   INPUTS - SELECT - TEXTAREA (COMPACTO)
========================================== */
.campo input,
.campo select,
.campo textarea{
    width: 100%;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #d8d8d8;
    border-radius: 8px;

    background: #fff;

    font-size: 13px;
    color: #222;

    outline: none;
    transition: .2s;
}

/* TEXTAREA */
.campo textarea{
    height: 90px;
    padding: 10px;
    resize: vertical;
}

/* FOCUS */
.campo input:focus,
.campo select:focus,
.campo textarea:focus{
    border-color: #F2EE00;
    box-shadow: 0 0 0 2px rgba(242,238,0,.15);
}

/* FILE */
.campo input[type=file]{
    height: auto;
    padding: 8px;
}

/* SMALL TEXTO */
.campo small{
    margin-top: 4px;
    font-size: 11px;
    color: #777;
}


/* ==========================================
   BOTÓN
========================================== */
.campo button{

    width:200px;
    height:45px;

    border:none;
    border-radius:40px;

    background:#F2EE00;
    color:#111;

    font-size:14px;
    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.campo button:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(0,0,0,.15);

}
.campo.full button{
    display: block;
    margin: 10px auto 0 auto;
}
/* ==========================================
   SELECT2
========================================== */
.select2-container{
    width:100% !important;
}

.select2-container--default .select2-selection--single{

    height:42px !important;

    border:1px solid #D8D8D8 !important;

    border-radius:10px !important;

}

.select2-container--default .select2-selection__rendered{

    line-height:42px !important;

    font-size:14px;

    padding-left:12px !important;

}

.select2-container--default .select2-selection__arrow{

    height:42px !important;

}

.select2-dropdown{

    border-radius:10px;

    border:1px solid #D8D8D8;

}

.select2-search__field{

    height:34px;

    border-radius:8px !important;

    padding:6px 10px !important;

}





/* ocupa 2 columnas */
.campo.full-2{
    grid-column: span 2;
}

/* botón file full ancho */
.custom-file-upload{
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;   /* 🔥 clave */
    padding: 10px 12px;

    border: 1px solid #d8d8d8;
    border-radius: 10px;

    background: #fff;

    cursor: pointer;
    font-size: 13px;
}

/* input oculto */
.file-input{
    display: none;
}

/* icono */
.custom-file-upload i{
    font-size: 16px;
    color: #111;
}

/* texto archivo */
.file-name{
    font-size: 12px;
    color: #666;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    flex: 1; /* 🔥 ocupa espacio y empuja bien */
}














/* grid de 3 imágenes */
.img-grid{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

/* cada cuadro */
.img-box{
    position: relative;

    height: 90px;

    border: 2px dashed #d8d8d8;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: .2s;
}

/* ocultar input */
.img-box input{
    display: none;
}

/* texto */
.img-text{
    font-size: 12px;
    color: #666;
}

/* hover */
.img-box:hover{
    border-color: #F2EE00;
    background: rgba(242,238,0,.05);
}

/* responsive */
@media(max-width:768px){
    .img-grid{
        grid-template-columns: 1fr;
    }
}

.img-box{
    border: 2px dashed #d8d8d8;
    border-radius: 12px;

    padding: 15px;
    text-align: center;

    cursor: pointer;

    transition: .25s;

    user-select: none;
}

.img-box:hover{
    border-color: #F2EE00;
    background: #fffbea;
}

/* cuando arrastras encima */
.img-box.drag{
    border-color: #00c853;
    background: #eaffea;
}

.select2-selection__clear{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0 !important;
    margin: 0 !important;

    width: auto !important;
    height: auto !important;

    line-height: 1 !important;

    font-size: 16px;
    color: #999;

    cursor: pointer;

    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}





#confetti{
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}









/* =========================
   RESPONSIVE TRABAJA CON NOSOTROS
========================= */

@media(max-width:768px){

    body{
        overflow-x:hidden;
    }

    .hero-trabaja-nosotros{
        padding:30px 20px;
        min-height:auto;
    }

    /* =========================
       TÍTULO
    ========================= */

    .trabaja-header{
        
        padding-top:clamp(120px, 12vw, 180px);
        margin-top:30px;
    }

    .trabaja-header h2{
        font-size:2.2rem;
        line-height:1.2;
        text-align:center;
    }

    .trabaja-header h2 span{
        position:relative;
        display:inline-block;
        z-index:2;
    }

    .trabaja-header h2 span::before{
        width:200vw;
        height:45px;
    }

    /* =========================
       CONTENEDOR
    ========================= */

    .postulacion-container{
        flex-direction:column;
        gap:30px;
        margin:40px auto;
    }


    /* =========================
    IMAGEN
    ========================= */

    .postulacion-img{
    width:100% !important;
    max-width: 100% !important;
    min-width:0 !important;
    margin:0 auto !important;
    }

    .postulacion-img img{
        width:100% !important;
        height:600px !important;
        max-height:600px !important;
        object-fit:cover !important;
        border-radius:22px !important;
    }

    /* =========================
       FORMULARIO
    ========================= */

    .postulacion-info{
        width:100%;
        padding:20px;
    }

    .form-postulacion{
        grid-template-columns:1fr;
        gap:15px;
    }

    .campo.full,
    .campo.full-2{
        grid-column:auto;
    }

    .campo input,
    .campo select,
    .campo textarea{
        font-size:14px;
    }

    .campo textarea{
        height:120px;
    }

    /* =========================
       BOTÓN
    ========================= */

    .campo.full button{
        width:100%;
        max-width:280px;
        margin:10px auto 0;
    }

    /* =========================
       ARCHIVO
    ========================= */

    .custom-file-upload{
        width:100%;
    }

    /* =========================
       IMÁGENES
    ========================= */

    .img-grid{
        grid-template-columns:1fr;
        gap:15px;
    }

    .img-box{
        min-height:90px;
    }

    /* =========================
       SELECT2
    ========================= */

    .select2-container{
        width:100% !important;
    }

    .select2-container--default .select2-selection--single{
        height:42px !important;
    }

    .select2-container--default .select2-selection__rendered{
        line-height:42px !important;
    }

}


/* =========================
   CELULARES PEQUEÑOS
========================= */

@media(max-width:420px){

    .hero-trabaja-nosotros{
        padding:25px 15px;
    }

    .trabaja-header h2{
        font-size:1.8rem;
    }

    .trabaja-header h2 span::before{
        height:40px;
    }

    .postulacion-container{
        margin:30px auto;
    }

    .postulacion-info{
        padding:15px;
        border-radius:16px;
    }

    .postulacion-img img{
        height:240px;
    }

    .campo input,
    .campo select,
    .campo textarea{
        font-size:13px;
    }

    .campo button{
        width:100%;
    }

    .custom-file-upload{
        padding:10px;
    }

    .file-name{
        font-size:11px;
    }

    .img-box{
        min-height:80px;
    }

}

.swal2-container{
    z-index: 99999 !important;
}

.file-info{
    display:block;
    margin-top:6px;
    font-size:13px;
    color:#777;
}