/* =========================================
   ESTILOS PARA EL BUSCADOR DE EMPLEOS
   ========================================= */

.jobs_main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: calc(100vh - 80px);
}

/* --- Buscador (Header) --- */
.jobs_search_section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--light-grey);
    text-align: center;
}

.jobs_search_title {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 10px;
}

.jobs_search_subtitle {
    color: var(--grey);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.jobs_search_form {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.search_input, .search_select {
    padding: 14px 20px;
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    outline: none;
    transition: border-color 0.3s ease;
}

.search_input {
    flex: 2; /* Ocupa más espacio */
}

.search_select {
    flex: 1;
}

.search_input:focus, .search_select:focus {
    border-color: var(--mvl-blue);
}

.search_btn {
    background: var(--mvl-blue);
    color: var(--white);
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search_btn:hover {
    background: var(--mvl-dark-blue);
}

/* --- Lista de Resultados --- */
.results_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
}

.results_header h2 {
    color: var(--black);
    font-size: 1.5rem;
}

.results_count {
    color: var(--grey);
    font-weight: 600;
}

/* --- Grid de Tarjetas (CSS Mágico para Responsive) --- */
.jobs_grid {
    display: grid;
    /* Crea columnas que mínimo miden 320px y se estiran si sobra espacio */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.job_card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--light-grey);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 159, 227, 0.3); /* Un toque del celeste institucional */
}

.job_card_header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.job_card_logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--background);
    border: 1px solid var(--light-grey);
    padding: 5px;
}

.job_card_titles {
    flex: 1;
}

.job_card_title {
    font-size: 1.2rem;
    color: var(--black);
    margin-bottom: 5px;
    line-height: 1.2;
}

.job_card_enterprise {
    color: var(--grey);
    font-weight: 600;
    font-size: 0.95rem;
}

.job_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    background: var(--background);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
}

.tag_location { background: #e3f2fd; color: #1976d2; }
.tag_modality { background: #e8f5e9; color: #2e7d32; }
.tag_salary { background: #fff3e0; color: #f57c00; }

.job_card_excerpt {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.5;
}

.job_card_footer {
    margin-top: auto; /* Empuja el footer hacia abajo del todo */
    padding-top: 15px;
    border-top: 1px solid var(--light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job_card_date {
    font-size: 0.85rem;
    color: #999;
}

.job_card_btn {
    background: var(--white);
    color: var(--mvl-blue);
    border: 2px solid var(--mvl-blue);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.job_card_btn:hover {
    background: var(--mvl-blue);
    color: var(--white);
}

/* Responsive para celulares */
@media screen and (max-width: 768px) {
    .jobs_search_form {
        flex-direction: column;
    }
    
    .search_btn {
        padding: 14px;
    }
}