/* Estilos generales basados en el diseño de tu sitio web */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #2c3e50;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #e9ecef;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif !important;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 8, 17, 0.719), rgba(0, 44, 91, 0.541)), 
                url('../../images/bolsa-de-trabajo/hero-bolsa-de-trabajo.jpg') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.vacancy-counter {
    background-color: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--primary-color);
}

.counter-text {
    font-size: 1.2rem;
}

/* Filtros de búsqueda */
.filters-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.filters-section h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group select,
.filter-group input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Sección de vacantes */
.vacancies-section {
    margin-bottom: 50px;
}

.section-title {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.vacancy-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vacancy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vacancy-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
}

.vacancy-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.vacancy-department {
    font-size: 0.9rem;
    opacity: 0.8;
}

.vacancy-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vacancy-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.vacancy-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.vacancy-info-item i {
    color: var(--primary-color);
}

.vacancy-description {
    margin-bottom: 25px;
    flex-grow: 1;
}

.vacancy-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.vacancy-date {
    font-size: 0.85rem;
    color: #666;
}

.vacancy-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-urgent {
    background-color: #ffebee;
    color: var(--primary-color);
}

.tag-new {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    display: none;
}

.no-results i {
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
}

/* CTA Section */
.cta-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

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

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 30px;
}

.modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .vacancies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .vacancies-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-content {
        margin: 20px auto;
    }
    
    .modal-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .close-modal {
        align-self: flex-end;
        margin-top: -10px;
    }
}