
.machinery-cards-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Estilos de las Pestañas */
.machinery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.machinery-tab {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 1px;
}

.machinery-tab:hover {
    color: #ff6b35;
}

.machinery-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

/* Grid de Tarjetas */
.machinery-cards-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.machinery-cards-grid[data-columns='1'] {
    grid-template-columns: 1fr;
}

.machinery-cards-grid[data-columns='2'] {
    grid-template-columns: repeat(2, 1fr);
}

.machinery-cards-grid[data-columns='3'] {
    grid-template-columns: repeat(3, 1fr);
}

.machinery-cards-grid[data-columns='4'] {
    grid-template-columns: repeat(4, 1fr);
}

.machinery-card-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.machinery-card-item.hidden {
    display: none;
}

/* Tarjeta Individual */
.machinery-card {
    height: 100%;
}

.machinery-card-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.machinery-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.machinery-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.machinery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.machinery-card-inner:hover .machinery-card-image img {
    transform: scale(1.05);
}

.machinery-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.machinery-card-brand {
    color: #ff6b35;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.machinery-card-reference {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.machinery-card-specs {
    margin-bottom: 25px;
    flex: 1;
}

.machinery-spec {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.machinery-spec:last-child {
    border-bottom: none;
}

.spec-icon {
    font-size: 18px;
    margin-right: 10px;
    min-width: 25px;
}

.spec-label {
    color: #666;
    margin-right: 5px;
}

.spec-value {
    color: #2c3e50;
    font-weight: 600;
    margin-left: auto;
}

.machinery-card-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: #ff6b35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
    margin-top: auto;
}

.machinery-card-button:hover {
    background: #e55a2b;
    color: #fff;
}

.machinery-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .machinery-cards-grid[data-columns='4'] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .machinery-cards-grid[data-columns='3'],
    .machinery-cards-grid[data-columns='4'] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .machinery-card-reference {
        font-size: 20px;
    }
    
    .machinery-tabs {
        gap: 5px;
    }
    
    .machinery-tab {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .machinery-cards-grid[data-columns='2'],
    .machinery-cards-grid[data-columns='3'],
    .machinery-cards-grid[data-columns='4'] {
        grid-template-columns: 1fr;
    }
    
    .machinery-card-image {
        height: 220px;
    }
}
