/* =========================================================
RESET
========================================================= */

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

body{

    font-family:'Segoe UI',sans-serif;

    background:#f4f7fb;

    color:#0f172a;

    overflow-x:hidden;
}

/* =========================================================
SECTION
========================================================= */

.jobs-slider-section{

    position:relative;

    height:100vh;

    display:flex;

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

    padding:20px 20px 10px;

    overflow:hidden;

    background:
    linear-gradient(
    135deg,
    #ffffff 0%,
    #f3f7fc 40%,
    #eef4ff 100%);
}

/* FONDO PREMIUM */

.jobs-slider-section::before{

    content:"";

    position:absolute;

    width:700px;
    height:700px;

    top:-220px;
    right:-120px;

    background:
    radial-gradient(
    circle,
    rgba(212,160,23,.12),
    transparent 70%);
}

.jobs-slider-section::after{

    content:"";

    position:absolute;

    width:900px;
    height:900px;

    bottom:-420px;
    left:-320px;

    background:
    radial-gradient(
    circle,
    rgba(15,23,42,.05),
    transparent 70%);
}

/* =========================================================
CONTAINER
========================================================= */

.jobs-container{

    position:relative;

    width:100%;
    max-width:1250px;

    z-index:2;
}

/* =========================================================
TITLE
========================================================= */

.section-title{

    text-align:center;

    margin-bottom:30px;

    margin-top:30px;
}

.tag-title{

    display:inline-block;

    padding:10px 22px;

    border-radius:50px;

    background:
    rgba(255,255,255,.7);

    backdrop-filter:blur(10px);

    color:#d4a017;

    font-size:.82rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:22px;

    border:
    1px solid rgba(255,255,255,.4);
}

.section-title h1{

    font-size:
    clamp(1.9rem,4vw,3.9rem);

    line-height:1;

    margin-bottom:10px;

    font-weight:900;

    letter-spacing:-2px;

    color:#0f172a;
}

.section-title h1 span{

    background:
    linear-gradient(
    135deg,
    #c89b3c,
    #f8e08a,
    #b8860b);

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.section-title p{

    max-width:720px;

    margin:auto;

    color:#475569;

    line-height:1.7;

    font-size:.92rem;
}

/* =========================================================
SLIDER
========================================================= */

.jobs-slider{

    position:relative;

    display:flex;

    align-items:center;

    justify-content:center;
}

.slider-track{

    display:flex;

    gap:18px;

    width:100%;

    overflow:hidden;

    scroll-behavior:smooth;

    padding:10px;

    transition:opacity .3s ease;
}

.slider-track:hover{
    
    opacity:.95;
}

/* =========================================================
SLIDER DOTS / INDICADORES
========================================================= */

.slider-dots{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    margin-top:28px;

    padding:0 20px;
}

.dot{

    width:14px;
    height:14px;

    border-radius:50%;

    background:rgba(15,23,42,.2);

    cursor:pointer;

    transition:.4s ease;

    border:2px solid transparent;
}

.dot:hover{

    background:rgba(15,23,42,.4);

    transform:scale(1.15);
}

.dot.active{

    background:linear-gradient(135deg, #facc15, #d4a017);

    box-shadow:0 0 15px rgba(212,160,23,.4);

    transform:scale(1.3);

    border-color:rgba(250,204,21,.3);
}

/* =========================================================
NAV BUTTONS
========================================================= */

.nav-btn{

    width:54px;
    height:54px;

    border:none;

    border-radius:50%;

    flex-shrink:0;

    cursor:pointer;

    color:#0f172a;

    background:
    rgba(255,255,255,.8);

    backdrop-filter:blur(12px);

    transition:.4s;

    z-index:5;

    box-shadow:
    0 10px 30px rgba(15,23,42,.08);
}

.nav-btn:hover{

    background:#0f172a;

    color:white;

    transform:
    scale(1.08);
}

.nav-btn:active{
    
    transform:scale(0.95);
}

.prev{
    margin-right:18px;
}

.next{
    margin-left:18px;
}

/* =========================================================
CARDS
========================================================= */

.job-card{

    position:relative;

    width: calc((100% - 36px) / 3);
    min-width: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);

    border-radius:30px;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    transition:.5s ease;

    backdrop-filter:blur(12px);

    border:
    1px solid rgba(255,255,255,.4);

    box-shadow:
    0 15px 35px rgba(15,23,42,.08);

    animation:
    floatCard 3s ease-in-out infinite;
}

.job-card:nth-child(odd){

    background:
    linear-gradient(
    180deg,
    #ffffff,
    #f8fafc);
}

.job-card:nth-child(even){

    background:
    linear-gradient(
    160deg,
    #081120,
    #0f172a,
    #111827);

    color:white;
}

.job-card:hover{

    transform:
    translateY(-10px);

    box-shadow:
    0 30px 60px rgba(15,23,42,.18);
}

/* BORDE PREMIUM */

.job-card::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:30px;

    padding:1px;

    background:
    linear-gradient(
    180deg,
    rgba(255,255,255,.5),
    transparent);

    -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

    pointer-events:none;
}

/* =========================================================
CARD IMAGE
========================================================= */

.job-image{

    position:relative;

    width:100%;
    height:130px;

    overflow:hidden;
    
}

.job-image img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition: transform 1s ease;
}

.job-card:hover .job-image img{

    transform:scale(1.09);
}

/* =========================================================
CARD CONTENT
========================================================= */

.job-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:10px 14px;
}

.job-location{

    color:#d4a017;

    font-size:.72rem;

    font-weight:700;

    text-transform:uppercase;

    margin-bottom:6px;
}

.job-content h2{

    font-size:.95rem;

    line-height:1.25;

    margin-bottom:8px;

    font-weight:800;
}

.salary{

    color:#c89b3c;

    font-weight:800;

    margin-bottom:1px;
}

.job-content ul{

    list-style:none;

    margin-bottom:10px;
}

.job-content ul li{

    position:relative;

    padding-left:22px;

    margin-bottom:5px;

    line-height:1.4;

    font-size:.82rem;
}

.job-content ul li::before{

    content:"✔";

    position:absolute;

    left:0;

    color:#facc15;
}

/* =========================================================
BUTTONS
========================================================= */

.btn-modal,
.modal-btn{

    border:none;

    border-radius:50px;

    cursor:pointer;

    font-weight:800;

    transition:.4s;

    background:
    linear-gradient(
    135deg,
    #facc15,
    #d4a017);

    color:#0f172a;
}

.btn-modal{

    margin-top:auto;

    padding:10px 18px;

    width:150px;

    font-size:.82rem;

    align-self:center;

    box-shadow:
    0 10px 20px rgba(212,160,23,.25);
}

.btn-modal:hover,
.modal-btn:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 18px 35px rgba(212,160,23,.28);
}

.modal-btn{

    padding:14px 28px;

    min-width:220px;
}

/* =========================================================
MODAL
========================================================= */

.modal{

    position:fixed;

    inset:0;

    display:none;

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

    padding:20px;

    background:
    rgba(5,10,20,.75);

    backdrop-filter:blur(10px);

    z-index:9999;

    animation:fadeModal .4s ease;
}

.modal-box{

    width:100%;
    max-width:820px;
    max-height: 90vh;

    border-radius:30px;

    overflow:hidden;

    background:white;

    position:relative;

    box-shadow:
    0 25px 80px rgba(0,0,0,.35);

    animation:modalUp .45s ease;

    display: flex;

    flex-direction: column;
}

/* =========================================================
HEADER PREMIUM MODAL
========================================================= */

.modal-header{

    position:relative;

    display:flex;

    align-items:center;

    gap:24px;

    min-height:190px;

    padding:24px 28px;

    overflow:hidden;

    border-radius:
    30px 30px 0 0;

    background:
    linear-gradient(
    135deg,
    #020817 0%,
    #081120 40%,
    #0f172a 100%);
}

/* =========================================================
OVERLAY
========================================================= */

.modal-header-overlay{

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    135deg,
    rgba(255,215,0,.05),
    transparent 40%),

    radial-gradient(
    circle at right,
    rgba(255,215,0,.12),
    transparent 45%);

    z-index:1;
}

/* =========================================================
ICONO IZQUIERDO
========================================================= */

.modal-icon-box{

    position:relative;

    width:110px;
    height:110px;

    border-radius:50%;

    flex-shrink:0;

    display:flex;

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

    z-index:2;

    background:
    radial-gradient(
    circle,
    rgba(255,255,255,.06),
    rgba(255,255,255,.02));

    border:
    2px solid rgba(255,215,0,.55);

    box-shadow:
    0 0 30px rgba(255,215,0,.18);
}

.modal-icon-box i{

    font-size:2.7rem;

    color:white;
}

/* =========================================================
INFO
========================================================= */

.modal-title{

    position:relative;

    z-index:2;

    flex:1;

    max-width:420px;

    padding-right:50px;
}

.modal-location{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 18px;

    border-radius:50px;

    background:
    rgba(255,215,0,.08);

    border:
    1px solid rgba(255,215,0,.2);

    color:#facc15;

    font-size:.78rem;

    font-weight:700;

    margin-bottom:16px;

    backdrop-filter:blur(10px);
}

.modal-title h2{

    color:white;

    font-size:2rem;

    line-height:1.1;

    font-weight:800;

    letter-spacing:-1px;

    margin-bottom:14px;

    text-shadow:
    0 5px 20px rgba(0,0,0,.35);
}

.modal-mini-salary{

    color:#facc15;

    font-size:1rem;

    font-weight:700;
}

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

.modal-side-image{

    position:absolute;

    right:0;
    top:0;

    width:42%;
    height:100%;

    z-index:1;

    overflow:hidden;
}

.modal-side-image img{

    width:125%;
    height:125%;

     object-fit:contain;

    opacity:.92;

    filter:
    brightness(.95)
    contrast(1.02);
}

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

.modal-side-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
    90deg,
    #081120 0%,
    rgba(8,17,32,.92) 15%,
    rgba(8,17,32,.35) 45%,
    transparent 100%);
}

/* =========================================================
BOTON CERRAR
========================================================= */

.close-modal{

    position:absolute;

    top:18px;
    right:18px;

    width:52px;
    height:52px;

    border-radius:50%;

    display:flex;

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

    z-index:5;

    cursor:pointer;

    color:white;

    background:
    rgba(255,255,255,.08);

    border:
    1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    transition:.4s;
}

.close-modal:hover{

    background:#facc15;

    color:#0f172a;

    transform:
    rotate(90deg)
    scale(1.05);
}

/* =========================================================
MODAL CONTENT
========================================================= */

.modal-content{

    padding:28px;

    overflow-y: auto;

    flex: 1;
}

/* Scrollbar personalizado premium */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.3);
}

.modal-content p{

    color:#475569;

    line-height:1.7;

    margin-bottom:22px;

    font-size:.97rem;
}

.modal-box h3{

    margin-bottom:18px;

    color:#0f172a;

    padding-left:14px;

    position:relative;

    font-size:1.1rem;
}

.modal-box h3::before{

    content:"";

    position:absolute;

    left:0;
    top:2px;

    width:4px;
    height:22px;

    border-radius:20px;

    background:
    linear-gradient(
    180deg,
    #facc15,
    #d4a017);
}

.modal-box ul{

    list-style:none;

    margin-bottom:24px;
}

.modal-box ul li{

    position:relative;

    padding-left:26px;

    margin-bottom:12px;

    color:#475569;

    line-height:1.6;
}

.modal-box ul li::before{

    content:"";

    position:absolute;

    left:0;
    top:8px;

    width:10px;
    height:10px;

    border-radius:50%;

    background:#facc15;
}

/* =========================================================
GRID
========================================================= */

.modal-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:14px;

    margin-top:24px;
}

.modal-info{

    padding:22px;

    border-radius:20px;

    background:#ffffff;

    border:
    1px solid rgba(15,23,42,.06);

    box-shadow:
    0 8px 20px rgba(15,23,42,.04);
}

.modal-info h4{

    margin-bottom:10px;

    color:#0f172a;
}

.modal-info p{

    margin:0;

    font-size:.92rem;
}

.modal-actions{

    display:flex;

    justify-content:center;

    margin-top:30px;
}

/* =========================================================
ANIMATIONS
========================================================= */

@keyframes floatCard{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-6px);
    }

    100%{
        transform:translateY(0px);
    }
}

@keyframes modalUp{

    from{

        opacity:0;

        transform:
        translateY(30px)
        scale(.96);
    }

    to{

        opacity:1;

        transform:
        translateY(0)
        scale(1);
    }
}

@keyframes fadeModal{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

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

@media(max-width:1200px){

    .slider-track{

        overflow-x:auto;

        padding-bottom:20px;
    }
}

@media(max-width:1024px){

    .job-card{

        width: calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
}

@media(max-width:768px){

    .jobs-slider{

        flex-direction:column;
    }

    .nav-btn{

        display:none;
    }

    .job-card{

        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .modal-box{

        max-width:95%;
    }

    .modal-header{

        min-height:auto;

        flex-direction:column;

        align-items:flex-start;

        padding:24px;
    }

    .modal-side-image{

        position:absolute;

        inset:0;

        width:100%;

        opacity:.18;
    }

    .modal-title{

        max-width:100%;
    }

    .modal-title h2{

        font-size:1.5rem;
    }

    .modal-icon-box{

        width:82px;
        height:82px;
    }

    .modal-icon-box i{

        font-size:2rem;
    }

    .modal-grid{

        grid-template-columns:1fr;
    }

    .modal-content{

        padding:22px;
    }

    .section-title h1{

        line-height:1.1;
    }
}

/* =========================================================
FULLSCREEN PERFECTO
========================================================= */

.jobs-container{

    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;
}

.jobs-slider{

    flex:1;

    align-items:center;
}

/* =========================================================
PANTALLAS EXTRA PEQUEÑAS (MÓVILES COMPACTOS)
========================================================= */
@media(max-width:576px){
    .modal-icon-box{
        display: none !important;
    }
    .modal-header{
        padding: 16px 20px;
    }
    .modal-title h2{
        font-size: 1.25rem;
    }
    .modal-content{
        padding: 16px 20px;
    }
    .close-modal{
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }
}

/* =========================================================
   RESPONSIVE HEIGHT CLIPPING CORRECTIONS
========================================================= */
@media(max-width:768px){
    /* Cancelamos la altura fija de 100vh que corta la sección en pantallas móviles */
    .jobs-slider-section {
        height: auto !important;
        min-height: 100vh !important;
        padding-top: 110px !important; /* Espacio prudente para el header fijo */
        padding-bottom: 50px !important;
        overflow: visible !important;
    }

    .jobs-container {
        height: auto !important;
    }

    .jobs-slider {
        height: auto !important;
    }

    /* Aseguramos que la tarjeta ocupe el espacio disponible sin desbordar */
    .job-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}