:root {
    --navy: #0b1c2d;
    --charcoal: #1e1e1e;
    --light-gray: #f4f6f8;
    --gold: #c9a24d;
    --orange: #ff9100;
    --cyan: #1cb7e9;
    --white: #ffffff;    
    --gris2: #3b4951;
    /* Espaciados */
    --spacing-section: 4rem;
    --spacing-inner: 2rem;
    /* Sombra */
    --shadow: 0 10px 20px rgba(0, 0, 0, .5);
}



.busqueda {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--orange);
}

    .busqueda input, .busqueda select {
        padding: 0.5rem;
        border-radius: 15px;
        border: 1px solid #ccc;
        background: var(--light-gray);
        color: var(--charcoal);
    }

    .busqueda input::placeholder {
        color: var(--orange);
    }

    /* No results */
.no-results {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.no-results-card {
    max-width: 520px;
    width: 90%;
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(11, 28, 45, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    /* borde tipo “rayitas separadas” */
    border: 1.5px dashed rgba(255, 145, 0, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeUp 0.4s ease;
}

    .no-results-card i {
        font-size: 2.5rem;
        color: var(--orange);
        margin-bottom: 1rem;
    }

    .no-results-card h3 {
        color: var(--white);
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .no-results-card p {
        color: var(--cyan);
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

/* Animación sutil, no circo */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Grid de vacantes */

.grid-vacantes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .grid-vacantes {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tarjeta */
.vacante {
    display: flex;
    flex-direction: column;
    text-align: left; /* más profesional */
    background: linear-gradient( 180deg, #3b4951 0%, #334048 100% );
    border-radius: 18px;
    padding: 2.4rem 2.2rem;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

    .vacante::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient( 90deg, var(--orange), var(--gold));
    }

    /* Hover más elegante */
    .vacante:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    /* Título */
    .vacante h3 {
        color: var(--orange);
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 1.2rem;
        line-height: 1.3;
    }

    /* Subtítulos */
    .vacante h4 {
        margin-top: 1.6rem;
        margin-bottom: 0.6rem;
        color: var(--cyan);
        font-size: 1.05rem;
        font-weight: 600;
        border-left: 3px solid var(--orange);
        padding-left: 0.6rem;
    }

    .vacante p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--light-gray);
        margin-bottom: 1rem;
    }

    /* Listas generales */
    .vacante ul {
        margin: 0.3rem 0 1rem 0;
        padding-left: 1.4rem;
        list-style: none;
        color: var(--light-gray);
    }

    .vacante > ul:first-of-type {
        margin-bottom: 1.5rem;
        padding-left: 1.2rem;
    }

        .vacante > ul:first-of-type li {
            font-size: 0.95rem;
            opacity: 0.9;
        }

        .vacante ul li {
            position: relative;
            margin-bottom: 0.4rem;
            
        }

            /* Bullet personalizado */
            .vacante ul li::before {
                content: "";
                width: 6px;
                height: 6px;
                background: var(--orange);
                border-radius: 50%;
                position: absolute;
                left: -0.8rem;
                top: 0.45rem;
            }

    /* Botón */
    .vacante button {
        background: transparent;
        border: 2px solid var(--cyan);
        color: var(--cyan);
        padding: 0.75rem 2rem;
        border-radius: 1rem;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.25s ease;
        display: block;
        margin: auto auto 0 auto;
    }

        .vacante button:hover {
            background: var(--cyan);
            color: var(--navy);
            transform: translateY(-2px);
        }


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
}

.modal-content {
    background: var(--navy);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    color: var(--white);
    animation: popup .25s ease;
}

@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content button {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 9999px;
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

    .modal-content button:hover {
        background: var(--orange);
        color: var(--white);
    }

#modal-aplicar input,
#modal-aplicar select,
#modal-aplicar textarea {
    all: unset;
    box-sizing: border-box;
    font-family: inherit;
}

#modal-aplicar input,
#modal-aplicar select,
#modal-aplicar textarea {
    width: 45%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: var(--gris2);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 5px;
}

input,
textarea {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 47px;
}

#modal-aplicar textarea::placeholder,
#modal-aplicar input::placeholder {
    color: var(--white);
}

#form-cv .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

#form-cv input {
    width: 100%;
    height: 44px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: var(--gris2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 0.95rem;
}

#form-cv .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
}

#form-cv input {
    width: 100%;
    height: 44px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: var(--gris2);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 0.95rem;
}

    #form-cv input[type="file"] {
        cursor: pointer;
    }

        #form-cv input[type="file"]::file-selector-button {
            background: var(--cyan);
            border: none;
            border-radius: 999px;
            padding: 0.4rem 1rem;
            margin-right: 0.75rem;
            font-weight: 600;
            color: var(--navy);
            cursor: pointer;
        }

            #form-cv input[type="file"]::file-selector-button:hover {
                background: var(--orange);
            }


#modal-aplicar form button[type="submit"] {
    margin-top: 1.5rem;
    align-self: center;
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-weight: 600;
    transition: all 0.25s ease;
}

    #modal-aplicar form button[type="submit"]:hover {
        background: var(--cyan);
        color: var(--navy);
        transform: translateY(-2px);
    }

.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.25s ease, scale 0.25s ease;
}

    .cerrar:hover {
        scale: 1.2;
        color: red;
    }

.file-name {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--cyan);
    opacity: 0.85;
}


.hidden {
    display: none;
    border-radius: 100%;
}

/* Overlay */
.response-modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 45, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

    /* Oculto */
    .response-modal.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Caja */
.response-box {
    width: min(420px, 92vw);
    background: linear-gradient(180deg, #0b1c2d, #081726);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    /* Título */
    .response-box h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: var(--cyan);
    }

    /* Texto */
    .response-box p {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--white);
        opacity: 0.9;
        margin-bottom: 1.6rem;
    }

/* Botón */
#response-close {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, var(--cyan), var(--orange));
    color: var(--navy);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    #response-close:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(28,183,233,0.4);
    }
