/* ========================================
    Información de resultados
======================================== */
.vacancies-section {
    padding: 32px 0 0;
}

.vacancies-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

/* ========================================
    Tarjeta de vacante
======================================== */
.vacancy-card {
    display: flex;
    background: var(--bg-primary);
    padding: 32px 32px 56px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    box-shadow: 0px 1px 2px 0px var(--shadow-primary);
    gap: 24px;
    font-family: Montserrat;
}

.vacancy-card__header {
    display: flex;
}

.vacancy-card__icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    margin-right: 16px;
    color: var(--text-white);
}

.vacancy-card__title-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vacancy-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
}

.vacancy-card__title a {
    color: var(--text-dark-blue);
    text-decoration: none;
}

.vacancy-card__title a:hover {
    color: var(--text-accent);
}

.vacancy-card__description-text {
    font-weight: 400;
    font-size: 16px;
    color: var(--text-primary);
    margin: 12px 0;
}

.vacancy-card__meta {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    gap: 8px;
}

.vacancy-card__meta-icon {
    display: block;
    width: 11px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.vacancy-card__date {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 14px;
}

.vacancy-card__date-icon {
    display: block;
    width: 11px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 8px;
}

.vacancy-card__right {
    display: flex;
    text-align: right;
    min-width: fit-content;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.vacancy-card__tag {
    padding: 8px 16px;
    color: var(--text-dark-blue);
}

.vacancy-card__button {
    width: fit-content;
    align-self: flex-end;
    margin-top: 8px;
    padding: 8px 24px;
}

/* ========================================
    Clases CSS para las etiquetas de las vacantes
======================================== */
.vacancy-tag--presencial {
    color: #1E40AF;
}

.vacancy-tag--tiempo-completo {
    color: #166534;
}

.vacancy-tag--hibrido {
    color: #6B21A8;
}

.vacancy-tag--gerencial {
    color: #9A3412;
}

.vacancy-tag--coordinacion {
    color: #854D0E;
}

/* ========================================
    Iconos de las vacantes
======================================== */
.vacancy-card__icon {
    display: block;
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
    background-image: url('../../images/icons/people.svg');
}

.vacancy-card__icon--operaciones {
    background-image: url('../../images/icons/graph.svg');
}

.vacancy-card__icon--tecnologia {
    background-image: url('../../images/icons/code.svg');
}

.vacancy-card__icon--finanzas {
    background-image: url('../../images/icons/calculator.svg');
}

.vacancy-card__icon--recursos-humanos {
    background-image: url('../../images/icons/suit.svg');
}

/* ========================================
    Estado vacío
======================================== */
.vacancies-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.empty-state {
    text-align: center;
    max-width: 400px;
}

.empty-state h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: var(--text-dark-blue);
}

.empty-state p {
    margin: 0 0 24px 0;
    color: var(--text-primary);
    font-size: 16px;
}

/*
/* ========================================
    Contacto de reclutamiento
======================================== */
.levanta-contact {
    padding: 32px;
}

.contact__container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.contact__title {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark-blue);
    margin: 0 0 32px;
}

.contact__image {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
}

.contact__content {
    color: var(--text-primary);
    width: 100%;
    font-family: Montserrat;
    text-align: center;
    gap: 4px;
}

.contact__content--cdmx {
    margin-bottom: 54px;
}

.contact__content--gdl {
    margin-bottom: 120px;
}

.contact__subtitle {
    font-weight: 500;
    font-size: 14px;
}

.contact__location {
    font-size: 12px;
    margin-bottom: 20px;
}

.contact__link {
    font-weight: 600;
    font-size: 14px;
    padding: 13px;
}

.contact__link-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

/* ========================================
    Acciones rápidas
======================================== */
.levanta-quick-actions {
    font-family: Montserrat;
    padding: 32px;
    margin-top: 20px;
}

.quick-actions__title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark-blue);
    margin: 0 0 21px;
}

.quick-actions__item {
    display: flex;
    padding: 16px;
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--text-dark-blue);
    justify-content: space-between;
    align-items: center;
}

.quick-actions__item-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quick-actions__item-icon {
    color: var(--text-accent);
    height: 100%;
    min-height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.quick-actions__item-title {
    font-weight: 500;
    font-size: 14px;
}

.quick-actions__item-arrow {
    color: var(--text-gray);
    width: 14px;
    opacity: .6;
}

/* ========================================
    Ayuda
======================================== */
.levanta-help {
    font-family: Montserrat;
    padding: 32px;
    background: linear-gradient(135deg, #9B1C1C 0%, #991B1B 70.71%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    text-align: center;
}

.help__icon {
    width: 36px;
    height: 36px;
}

.help__title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 9px;
}

.help__description {
    color: var(--border-primary);
    font-size: 14px;
    margin: 0 0 24px;
}

.help__link {
    padding: 13px 24px;
}

/* ========================================
    Página individual de vacante
======================================== */
.vacancy-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.vacancy-single-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vacancy-breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-link {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #b91c1c;
}

.vacancy-single-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.vacancy-meta-info {
    margin-bottom: 1.5rem;
}

.vacancy-department-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.vacancy-publication-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.vacancy-content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vacancy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.vacancy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.vacancy-description,
.requirement-content {
    color: #4b5563;
    line-height: 1.7;
}

.requirement-group {
    margin-bottom: 1.5rem;
}

.additional-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #374151;
    font-weight: 600;
}

.info-item span {
    color: #6b7280;
}

.contact-info {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

.contact-person {
    margin-top: 1rem;
}

.contact-email a {
    color: #dc2626;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.vacancy-single-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
    Responsive Design
======================================== */

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-form {
        flex-direction: column;
    }

    .filter-group {
        min-width: auto;
    }

    .vacancy-card {
        flex-direction: column;
    }

    .vacancy-card__right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .additional-info-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .vacancy-single-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .vacancies-filters,
    .vacancy-single-container {
        padding: 1rem;
    }
    
    .vacancy-card__right {
        flex-direction: column;
    }

    .vacancy-card__right > * {
        text-align: center;
        width: 100%;
    }
}