:root {
    --job-color: #3a86ff;
    --job-light: #e6f0ff;
    --company-color: #8338ec;
    --company-light: #f2e6ff;
    --product-color: #ff006e;
    --product-light: #ffe6ef;
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #1b263b;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --danger-color: #7209b7;
    --icon-color: #666;
}
body {
    background-color: #F5E1E6;
    min-height: 100vh;
}
.card-img-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    font-size: 3rem;
    color: var(--primary-color);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    loading: lazy;
}
.advanced-search {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.search-filter {
    flex: 1;
    min-width: 200px;
}
.search-filter select, 
.search-filter input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
}
.search-actions {
    display: flex;
    gap: 10px;
}
.search-btn {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn i {
    margin-right: 8px;
}
.search-btn:hover {
    background-color: var(--secondary-color);
}
.reset-btn {
    padding: 12px 20px;
    background-color: #f1f1f1;
    color: #555;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.reset-btn:hover {
    background-color: #e1e1e1;
}
.categories {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}
.category-btn {
    padding: 10px 20px;
    background-color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.category-btn i {
    margin-right: 8px;
}
.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: white;
}
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding-bottom: 50px;
}
.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 4px solid var(--primary-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.job-card {
    border-top-color: var(--job-color);
}
.job-card .card-category {
    background-color: var(--job-light);
    color: var(--job-color);
}
.company-card {
    border-top-color: var(--company-color);
}
.company-card .card-category {
    background-color: var(--company-light);
    color: var(--company-color);
}
.product-card {
    border-top-color: var(--product-color);
}
.product-card .card-category {
    background-color: var(--product-light);
    color: var(--product-color);
}
.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.card-category i {
    margin-right: 5px;
    font-size: 14px;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.company-card .card-title {
    font-weight: bold;
}
.card-firma {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.card-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}
.card-meta i {
    margin-right: 6px;
    color: var(--accent-color);
    font-size: 1rem;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    height: 50px;
    box-sizing: border-box;
    gap: 10px;
}
.card-icons {
    display: flex;
    gap: 10px;
}
.card-icons i {
    color: var(--icon-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: none;
}
.card-icons i:hover {
    color: var(--secondary-color);
}
.card-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}
.job-card .card-btn {
    background-color: var(--job-color);
}
.company-card .card-btn {
    background-color: var(--company-color);
}
.product-card .card-btn {
    background-color: var(--product-color);
}
.card-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.loading {
    text-align: center;
    padding: 20px;
    font-weight: 600;
    color: #666;
    display: none;
}
.skeleton-loading {
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.skeleton-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (max-width: 992px) {
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }
    .search-filter {
        min-width: 100%;
    }
    .search-actions {
        width: 100%;
    }
    .search-btn, .reset-btn {
        flex: 1;
    }
}
@media (max-width: 768px) {
    .categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .categories::-webkit-scrollbar {
        display: none;
    }
    .category-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .main-content {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
@media (max-width: 480px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .card-footer {
        flex-direction: row;
        gap: 10px;
        align-items: center;
        height: auto;
        min-height: 50px;
    }
    .card-btn {
        width: auto;
    }
}